AI Flow Builder
Build visual automation workflows to handle customer interactions, process data, and integrate with AI models.
Overview
The AI Flow Builder is a visual workflow engine that lets you create automated responses for WhatsApp messages. Build complex logic without writing code, integrate AI models via OpenRouter, and create intelligent chatbots that handle customer queries 24/7.
Visual Builder
Drag-and-drop interface for creating flows
AI Integration
Connect with OpenRouter AI models
Real-time
Instant response to incoming messages
How It Works
Incoming Message
Customer sends a message to your WhatsApp number. The webhook triggers the flow engine.
Flow Processing
The AI Flow Builder processes the message through your configured flow graph, evaluating triggers and conditions.
AI Response (Optional)
If configured, the flow calls OpenRouter API with the company's API key for intelligent responses.
Send Response
The flow sends the appropriate response back to the customer via WhatsApp Cloud API.
Flow Node Types
The AI Flow Builder supports 46+ node types organized into categories:
Trigger Nodes
| Type | Description |
|---|---|
| keyword_trigger | Trigger on incoming message matching keywords |
| incoming_message | Trigger on any incoming message |
| catalog_opened | When a contact opens the product catalog |
| abandoned_cart | Cart abandonment events |
| order_created | New order placed |
| order_status_updated | Order status changed |
| reservation_created | New reservation/booking created |
| reminder_due | Scheduled reminder fires |
| template_button_clicked | Template button clicked by user |
Message Nodes
| Type | Description |
|---|---|
| message | Send plain text with variable support |
| message_link | Text with CTA URL button |
| quick_replies | Message with up to 3 quick-reply buttons |
| list_message | Interactive list with sections |
| template | WhatsApp template message with parameters |
| image / video / pdf | Media messages with captions |
| catalog_link | Link to contact's product catalog |
| cart_summary | Formatted cart summary |
| send_ext_message | Send to external phone numbers |
Logic & Data Nodes
| Type | Description |
|---|---|
| branch | Conditional branching (equals, contains, greater_than, less_than) |
| switch | Multi-way switch on a variable value |
| counter | Rate limiting per contact (daily/weekly/monthly) |
| datastore | Set custom variables in contact state |
| http | Make HTTP requests to external APIs |
| openai | AI processing with vector search & intent classification |
| product_search | Search product catalog |
| check_pricing | Check/deduct contact credits |
Management & Schedule Nodes
| Type | Description |
|---|---|
| delay | Pause flow for a duration (max 24h) |
| followup | Schedule follow-up message, continue flow |
| assign_agent | Assign/unassign staff agent to contact |
| assign_group | Add/remove contact from group |
| tag | Add/remove tag from contact |
| update_contact | Update contact fields (name, email, custom) |
| question | Ask question, wait for reply with validation |
| verification_request | Initiate OTP/magic link verification |
| verification_verify | Verify OTP code submitted by user |
| end | Terminate flow, clear contact state |
AI Configuration
Configure AI processing in your flows using OpenRouter API:
{
"provider": "openrouter",
"model": "deepseek/deepseek-v3.2",
"api_key": "company_openrouter_api_key",
"system_prompt": "You are a helpful customer support agent...",
"max_tokens": 500,
"temperature": 0.7
}Per-Tenant API Keys
Each company uses their own OpenRouter API key stored in vendor_fields. No system-wide key dependency.
Flow Events
Flows are triggered by these events:
ContactRepliesFired when a contact sends a message
AgentRepliesFired when an agent sends a message
reminder_dueFired when a scheduled reminder fires
reservation_createdFired when a new reservation is created
commerce_payment_receivedFired when a payment is confirmed
order_created / order_status_updatedFired on order events from Shopify/WooCommerce
Generate Flows with AI
Use the AI Flow API to generate flows from natural language prompts. Describe what you want your flow to do, and the AI generates the complete node and edge structure.
View AI Flow API DocumentationeCommerce Store
Build WhatsApp stores with product catalogs and orders.