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
| Node Type | Description |
|---|---|
| Trigger | Starts the flow when a message matches the condition |
| Condition | Evaluates logic (if/else) based on message content |
| Send Message | Sends text, media, or template messages |
| AI Processing | Calls OpenRouter API for intelligent responses |
| Wait/Delay | Adds delay between messages for natural conversation |
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
eCommerce Store
Build WhatsApp stores with product catalogs and orders.