Document Generation

Documents
crm
disk
documentgenerator

The Problem

Managers manually fill contracts and invoices. Errors in details, wasted time.

How to use

  1. Get a free API key

    Sign up for Vibecode and issue a key with the scopes listed below. It takes less than a minute.

  2. Open your AI agent

    Launch Claude Code, Cursor, ChatGPT or whichever AI model you work with.

  3. Paste the prompt and key

    Copy the prompt below, replace vibe_api_xxx with your API key and send it to the agent. It will call the API and write working code on its own.

Screenshot: the prompt pasted into an AI agent

Screenshot: the prompt pasted into an AI agent

Prompt for AI

Copy this prompt and send it to your AI model along with your Vibecode API key

Create an automatic document generation system in Bitrix24.

On manager's command in chat — collect deal and client data from CRM, generate a document from template, upload to Disk, and send the link in chat.

API key: vibe_api_xxx
API Discovery: https://vibecode.bitrix24.com/v1/me

Concrete endpoints: GET /v1/deals/:id, GET /v1/contacts/:id, GET /v1/doc-templates, POST /v1/documents, GET /v1/crm-documents, POST /v1/files/upload
Target result field: document on Drive (POST /v1/documents, POST /v1/files/upload)

After completing the task, send feedback about any issues: POST /v1/feedback (category: bug/docs/suggestion, title, body)

Heads-up: CRM field sanitization

Bitrix24 strips text in square brackets (e.g. [TAG]) from some CRM text fields — notably the Comment field (comments). The Title field (title) is kept verbatim. If your scenario writes service markers into comments, avoid square brackets or they will silently disappear.

What You Get

Automatic contract and invoice generation from CRM data in seconds. No detail errors, no manual filling.

Required Scopes

crm
disk
documentgenerator

Endpoints for these scopes

The API resource name does not always match the scope name. Use these exact paths — guessing /v1/:scope often returns 404.

crm

/v1/leads
/v1/deals
/v1/contacts
/v1/companies
/v1/products
/v1/activities

disk

/v1/storages
/v1/folders
/v1/files

documentgenerator

/v1/documents
/v1/doc-templates

Related Solutions

Get your free key