Complete Documentation
Everything you need to know about creating, testing, and activating AI-powered workflows in Bitrix24
Gemini Flash (Free)
Claude Sonnet
Bitrix24 CRM
How It Works
From plain English to a live Bitrix24 workflow in 3 steps
1
You Describe It
Type what you want in plain English โ no technical knowledge needed
2
AI Parses It
Gemini or Claude reads your description and converts it to a structured workflow blueprint
3
Bitrix24 Creates It
The blueprint is sent to your Bitrix24 account via API and saved as a Business Process template
4
You Activate It
Go to Bitrix24 โ CRM โ Automation and turn the workflow ON for your chosen entity
Real Examples
See exactly what the AI does with your words
When a deal is won, send a WhatsApp message to the client
TriggerDeal Won
EntityCRM_DEAL
ActionSend WhatsApp โ {{CONTACT_PHONE}} โ "Congratulations! Your deal has been confirmed."
Create a follow-up task for the sales manager when a new lead is created
TriggerLead Created
EntityCRM_LEAD
ActionCreate Task โ "Follow up with new lead" โ Assign to {{ASSIGNED_BY_ID}}
Send an email to the client when their invoice is overdue
TriggerInvoice Overdue
EntityCRM_INVOICE
ActionSend Email โ {{CONTACT_EMAIL}}
Notify the sales team when a deal is lost and create a review task
TriggerDeal Lost
EntityCRM_DEAL
Action 1Send Notification โ Sales Team
Action 2Create Task โ "Review lost deal reasons"
When a lead is converted, assign it to the sales manager
TriggerLead Converted
EntityCRM_LEAD
ActionAssign Responsible โ {{ASSIGNED_BY_ID}}
All 20 Triggers
These are the events that can start a workflow. Mention one of these in your description.
Deal Triggers
deal_wonDeal is marked as Won
Say: "deal is won"
deal_lostDeal is marked as Lost
Say: "deal is lost"
deal_createdA new deal is created in CRM
Say: "new deal created"
deal_updatedAny field on a deal changes
Say: "deal is updated"
stage_changedDeal moves to a new pipeline stage
Say: "stage changes" "moves to stage"
Lead Triggers
lead_createdA new lead is added to CRM
Say: "new lead" "lead arrives"
lead_convertedLead is converted into a deal
Say: "lead converted"
lead_updatedAny field on a lead changes
Say: "lead is updated"
Contact & Company Triggers
contact_createdA new contact is added to CRM
Say: "new contact"
contact_updatedA contact record is updated
Say: "contact changes"
company_createdA new company is added to CRM
Say: "new company"
company_updatedA company record is updated
Say: "company changes"
Task Triggers
task_createdA new task is created
Say: "new task"
task_completedTask is marked as complete
Say: "task done" "task completed"
task_overdueTask passes its deadline
Say: "task overdue" "task is late"
Invoice, Quote & Activity Triggers
invoice_overdueInvoice is past due date
Say: "invoice overdue" "payment late"
invoice_paidInvoice is marked as paid
Say: "invoice paid"
quote_createdA new quote is created
Say: "new quote"
quote_approvedQuote is approved by client
Say: "quote approved"
meeting_scheduledA meeting is added to calendar
Say: "meeting scheduled"
activity_addedA note or activity is logged
Say: "activity added" "note added"
All 22 Actions
Chain multiple actions together in a single workflow description.
Messaging
send_whatsappSend WhatsApp via Bitrix24 Open Channels
Fields: tomessage
send_emailSend email to contact
Fields: tosubjectbodytemplate_id
send_smsSend SMS via Bitrix24 telephony
Fields: tomessage
send_notificationInternal Bitrix24 notification bell
Fields: tomessage
send_bitrix_messageInternal Bitrix24 chat message
Fields: tomessage
Tasks & Activities
create_taskCreate a new task
Fields: titleassigneedeadlineprioritydescription
update_taskUpdate a field on an existing task
Fields: fieldvalue
set_reminderCreate a CRM activity reminder
Fields: titleassigneedatetime
schedule_callSchedule a call in CRM activities
Fields: todatetimeassignee
CRM Operations
create_dealCreate a new deal in CRM
Fields: titleassigneestage
update_dealUpdate a field on the deal
Fields: fieldvalue
create_contactCreate a new contact record
Fields: title
create_companyCreate a new company record
Fields: title
create_invoiceGenerate a new invoice
Fields: title
create_quoteCreate a new quote
Fields: titleassignee
Workflow Control
assign_responsibleChange the responsible person
Fields: assignee
move_stageMove deal to a specific pipeline stage
Fields: stage
update_fieldUpdate any CRM field value
Fields: fieldvalue
add_commentAdd a comment to the record timeline
Fields: message
add_tagAdd a tag to the CRM record
Fields: tag
remove_tagRemove a tag from the CRM record
Fields: tag
External
webhookCall any external URL (POST/GET) with deal data
Fields: urlmethodmessage
Smart Variables
The AI automatically inserts these into action fields. At runtime, Bitrix24 replaces them with real values from the CRM record.
| Variable | What it inserts at runtime | Best used in |
{{CONTACT_PHONE}} | Contact's phone number from CRM | WhatsApp, SMS recipient |
{{CONTACT_EMAIL}} | Contact's email address from CRM | Email recipient |
{{CONTACT_NAME}} | Contact's full name | Message body, task title |
{{ASSIGNED_BY_ID}} | Current responsible user ID | Task assignee, notification target |
{{ASSIGNED_BY_NAME}} | Current responsible user's name | Message body, comments |
{{DEAL_TITLE}} | Name of the deal | Task title, message body |
{{DEAL_ID}} | Numeric ID of the deal | Webhook body, comments |
{{DEAL_AMOUNT}} | Deal value / amount | Invoice, message body |
{{DEAL_CURRENCY}} | Currency code (USD, EURโฆ) | Message body |
{{LEAD_NAME}} | Name of the lead | Notification, task title |
{{LEAD_ID}} | Numeric ID of the lead | Webhook body |
{{STAGE_NAME}} | Current pipeline stage name | Comments, notifications |
{{COMPANY_TITLE}} | Company name linked to the record | Message body, task title |
{{TASK_TITLE}} | Title of the task | Notification, comment |
{{TASK_ID}} | Numeric ID of the task | Webhook body |
{{INVOICE_ID}} | Invoice ID number | Message body, webhook |
{{INVOICE_AMOUNT}} | Invoice total amount | Payment reminder message |
{{CURRENT_DATE}} | Today's date | Comments, task deadlines |
{{CURRENT_DATETIME}} | Current date and time | Activity timestamps |
๐ก
You don't need to type these manually โ just describe what you want in English and the AI picks the right variables automatically.
How to Activate Your Workflow in Bitrix24
After clicking "Create in Bitrix24", follow these steps to turn it on
โน๏ธ
The AI Workflow Builder creates the template in Bitrix24. You need to activate it inside Bitrix24 for it to run automatically.
For Deal Workflows
- Go to CRM โ Deals
- Click Automation in the top menu
- Find your workflow in the Business Processes tab
- Click Activate or toggle it ON
For Lead Workflows
- Go to CRM โ Leads
- Click Automation in the top menu
- Find your workflow in the Business Processes tab
- Click Activate or toggle it ON
โ
Once activated, the workflow runs automatically every time the trigger condition is met โ no manual action needed.
Tips for Better Descriptions
The AI works best when your description is clear and specific
โ
Good descriptions
- "When a deal is won, send a WhatsApp to the client"
- "Create a task for the manager when a new lead is created"
- "Send an email when an invoice is overdue"
- "Notify the team when a deal is lost and create a review task"
โ Too vague โ AI will ask for clarification
- "Do something when things change"
- "Send a message to someone"
- "Automate my CRM"
- "Handle new clients"
๐ก
Formula that always works: "When [trigger event], [do this action] to/for [who]" โ Example: "When a deal is lost, send a WhatsApp to the client and create a task for the manager"
AI Providers
Choose which AI parses your workflow description
๐ข Gemini Flash FREE
Google's Gemini 1.5 Flash model. Free tier allows 1,500 requests/day. Recommended for most users. Fast and reliable for workflow parsing.
๐ฃ Claude Sonnet PAID
Anthropic's Claude Sonnet model. Requires API credits from console.anthropic.com. Slightly more accurate for complex multi-step workflows.
API Reference
For developers โ direct API endpoints
| Method | Endpoint | What it does |
GET | /health | Check server, AI providers, and Bitrix24 status |
GET | /capabilities | List all triggers, actions, entities, variables as JSON |
POST | /parse-workflow | Parse English โ workflow JSON (no Bitrix24 call) |
POST | /create-workflow | Create workflow in Bitrix24 from a workflow JSON schema |
POST | /workflow | Full pipeline: parse + create in one call |
GET | /workflows | List workflow history from local database |
GET | /bitrix-workflows | List all workflow templates in your Bitrix24 account |
DELETE | /bitrix-workflows/{id} | Delete a workflow template from Bitrix24 |
GET | /docs | Interactive Swagger API explorer |
FAQ
Common questions
The workflow was created but nothing is happening โ why?
You need to activate the workflow inside Bitrix24 after it's created. Go to CRM โ Deals/Leads โ Automation โ Business Processes โ turn it ON.
The AI said "needs clarification" โ what do I do?
Your description was too vague. Use the formula: "When [trigger], [action] to [who]". For example: "When a deal is won, send WhatsApp to the client."
Can I create workflows with multiple actions?
Yes. Just list them in your description: "When a deal is won, send WhatsApp to the client and create a follow-up task for the manager and add a comment."
How do I update an existing workflow?
Create a new workflow with your updated description. Then go to Bitrix24 โ Business Processes, deactivate the old one, and activate the new one.
Is my Bitrix24 data sent to the AI?
No. Only your text description is sent to the AI. No CRM data, contacts, or deals are ever shared with AI providers.