Build automated messaging workflows by creating flows, designing them on a visual canvas, and publishing them to your messaging channels.
How it works
Chat Flow provides a visual canvas for building messaging automations. Drag components between a Start and End node to define your flow logic. A typical workflow follows these stages:
Create a flow -- Start from a blank canvas, import a JSON file from an existing flow, or use a template.
Design the flow -- Drag components onto the canvas and configure their settings.
Publish the flow -- Make the flow live so it can process messages.
Update the flow (optional) -- Edit flow settings such as the name, bound account, or logging.
Delete the flow (optional) -- Remove flows that are no longer needed.
Flow states
A flow has one of two states. The current state determines which actions are available:
State | Description | Available actions |
Published | The flow is live and processing messages. | Update basic information, enable or disable logging, test |
Unpublished | The flow is saved but not active. | Update basic information, bind account (WhatsApp, Viber, or Instagram triggers only), enable or disable logging, publish, delete |
A Published flow cannot be deleted or rebound to a different account (bind account). To perform these actions, the flow must be in the Unpublished state.
Prerequisites
Chat Flow connects to WhatsApp, Messenger, and Instagram channels. Before you begin, ensure that you have:
An Alibaba Cloud account with enterprise real-name verification completed.
Chat App Message Service activated.
Complete the following channel-specific preparations as needed:
WhatsApp:
Register a WhatsApp Business Account (WABA) and bind the approved account to a channel
Messenger:
Instagram:
Create a flow
In the Chat App Message Service console, choose Chat Flow in the left navigation pane.
On the Flow Management page, click Create Flow.
Select a creation method:
Create on Blank Canvas
Start from scratch by selecting a trigger type:
Trigger type | When it fires |
Manual | Triggered by API operations or marketing campaigns |
Triggered by a WhatsApp message | |
Triggered by an Instagram message | |
Viber | Triggered by a Viber message |
Messenger | Triggered by a Messenger message |
Enter a Flow Name and Remark, then click OK.
Import Flow
Upload a JSON file exported from another flow. This creates an identical copy of the original flow.
Enter a Flow Name and Remark, then click OK.
Create Based on Template
Select a template from the View Template drop-down list and click OK.
On the Chat Flow page, click the View Template tab to browse available templates. Select a template, edit its components as needed, then click Create Flow.
You need to configure basic information only when you create a flow from a blank canvas or import a flow.
Generate Flow with Al
Enter a requirement description, and AI automatically generates the flow. Describe your business requirement in natural language. AI uses the Qwen large language model to generate the flow and displays the generation progress. After generation completes, load the flow to the canvas with one click for further editing.
For detailed instructions, see Generate workflows with AI.
Design the flow on the canvas
In the Chat App Message Service console, choose Chat Flow in the left navigation pane. On the Flow Management tab, click a flow name to open the canvas.
Click the Component Library icon. Drag components onto the canvas and place them between the Start and End nodes. Alternatively, click the
icon between the nodes to add a component.Configure each component. For details, see Chat Flow components.
Click Save.
Save your progress frequently while designing to prevent data loss.
Publish the flow
Publish the completed flow to make it live and start processing messages.
In the Chat App Message Service console, choose Chat Flow in the left navigation pane. On the Flow Management tab, click a flow name to open the canvas.
On the canvas, click Save and Publish.
On the Flow Management tab, verify that the flow status is Published.
For flows triggered by user replies, the flow starts processing only after it is both published and associated with a marketing campaign. For details, see Marketing campaigns.
Update a flow
After saving or publishing a flow, you can edit its Basic Information, Bind Account, and Log settings:
In the Chat App Message Service console, choose Chat Flow in the left navigation pane. On the Flow Management tab, find the flow and click Settings in the Actions column.
Edit the available settings:
Basic Information -- In the Edit Flow dialog box, update the Flow Name and Remarks.
Bind Account -- Click the Bind Account tab to update the Account Name and Mobile Number.
NoteThis option is available only for WhatsApp, Viber, or Instagram triggers and only when the flow status is Unpublished.
Log -- On the Log tab, enable or disable logging. When enabled, Simple Log Service (SLS) collects flow execution events for debugging, troubleshooting, and data analysis. Activate SLS before using this feature. For details, see SLS quick start.
Click OK to save your changes.
Delete a flow
Only Unpublished flows can be deleted.
In the Chat App Message Service console, choose Chat Flow in the left navigation pane.
On the Flow Management tab, find the flow and click Delete in the Actions column.
In the confirmation dialog box, click OK.
A deleted flow cannot be recovered. Proceed with caution.
References
Flow editor canvas -- Learn about the features of each area on the canvas.
Chat Flow components -- Learn about the configuration of each component.