WACM.in Logo
Back to Documentation

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

1

Incoming Message

Customer sends a message to your WhatsApp number. The webhook triggers the flow engine.

2

Flow Processing

The AI Flow Builder processes the message through your configured flow graph, evaluating triggers and conditions.

3

AI Response (Optional)

If configured, the flow calls OpenRouter API with the company's API key for intelligent responses.

4

Send Response

The flow sends the appropriate response back to the customer via WhatsApp Cloud API.

Flow Node Types

Node TypeDescription
TriggerStarts the flow when a message matches the condition
ConditionEvaluates logic (if/else) based on message content
Send MessageSends text, media, or template messages
AI ProcessingCalls OpenRouter API for intelligent responses
Wait/DelayAdds delay between messages for natural conversation

AI Configuration

Configure AI processing in your flows using OpenRouter API:

AI Node Configuration
{
  "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:

ContactReplies

Fired when a contact sends a message

AgentReplies

Fired when an agent sends a message

eCommerce Store

Build WhatsApp stores with product catalogs and orders.

Learn More