Chat Flow components

更新时间:
复制 MD 格式

Components are the building blocks of a flow. Combine and configure them to create automated data flows.

Components

The following table lists each component and its configuration. For details, click the link in the Reference column.

Category

Icon

Name

Description

Configuration

Reference

Core

条件分支@1x

Branching by Conditions

Routes a flow into different branches based on conditional rules.

Define how conditions are evaluated by adding rules or rule groups:

  • And: All conditions in the branch must be met.

  • Or: At least one condition in the branch must be met.

Supported rule variables:

  • incomingMessage: The user's message.

  • wabaId: The WhatsApp Business Account (WABA) ID.

  • wabaPhoneNumber: The phone number associated with the WABA.

  • customerPhoneNumber: The user's phone number.

  • customerName: The user's name.

Supported matching conditions:

  • dateEquals: The date is equal to the specified value.

  • dateGreaterThan: The date is after the specified value.

  • dateLessThan: The date is before the specified value.

  • numberEquals: The number is equal to the specified value.

  • numberGreaterThan: The number is greater than the specified value.

  • numberLessThan: The number is less than the specified value.

  • stringContains: The string contains the specified value.

  • stringEquals: The string is equal to the specified value.

  • stringStartsWith: The string starts with the specified value.

  • stringIsBlank: The string is empty.

  • stringIsNotBlank: The string is not empty.

  • stringEntireMatchesRegex: The entire string matches the regular expression.

  • stringAnyMatchesRegex: Any part of the string matches the regular expression.

Branching by Conditions

跳至节点@1x

Jump to Another Step

Jumps to any other step within the flow.

Specify a target component and a maximum number of jumps. After the maximum is reached, the flow proceeds to the next step instead of jumping.

Jump to Another Step

设置变量@1x

Set Variables

Creates or modifies custom variables for use in later steps of the flow.

Add a variable and optionally assign it a value. Other components in the flow can then reference the variable.

Set Variables

等待@1x

Wait

Pauses the flow for a specified period.

Set the pause duration. The flow resumes after the specified time elapses.

Wait

识别电话号码@1x

Recognize a Phone Number

Identifies the country calling code and the ISO country code from a phone number in international format.

Outputs the calling code or country code from an incoming phone number. Supports branching based on the result.

For example, for the number 8613012345678, the component can output the calling code 86 and the ISO country code CN.

Recognize a Phone Number

从文本中识别语种@1x

Recognize Language from Text

Identifies the language of a message and saves it as a variable for use in later steps.

Automatically identifies the language of a user's message and outputs it as a variable for use in subsequent components.

Recognize language from text

识别文本中的实体@1x

Recognize Entities in Text

Extracts specific information, such as phone numbers and email addresses, from text for use in later steps.

Extract entities from a source text or variable. Supports phone numbers and email addresses.

Recognize entities in text

HTTP请求@1x

HTTP Request

Sends an HTTP request to a specified URL.

Supports two request methods:

  • GET

  • POST

Add a failure branch to define separate actions for successful and failed requests.

HTTP request

调用函数@1x (1)

Call a Function

Calls a custom function in Alibaba Cloud Function Compute to run custom business logic such as data processing, remote service invocation, or data storage.

To use this component, first activate Function Compute and configure a function in its console.

Call a Function

日期时间分支@1x

Branching by Date/Time

Directs the flow based on multiple date and time conditions.

Specify conditions based on date, time range, and day of the week. Time zone settings are supported.

Branching by Date/Time

image

Random Branch

Directs the flow into a random branch based on a defined probability. Use this to send varied messages or run A/B tests.

Set the probability for each branch. The sum of all branch probabilities must be 100%.

Random branch

image

Forward to Flow

Forwards the session to another flow and immediately ends the current flow.

Select a published flow.

Forward to Flow

Messaging

发送WhatApp消息@1x

Send a WhatsApp Message

Sends a WhatsApp message. Users can reply with WhatsApp-specific features.

Supports two actions:

  • Fixed Send

  • Reply

Both actions support the following message types:

  • Text: Supports variables.

  • Media: Supports images, audio, videos, files, and locations. Supports variables.

  • Interactive: Supports button groups or interactive lists. Supports variables.

  • Product: Supports single and multi-product messages. Supports variables.

  • Template Message: Sends a pre-approved WhatsApp Template Message.

Send a WhatsApp Message

image

Send a WhatsApp Typing Indicator

Shows a typing indicator to the user, signaling that a response is being prepared.

No configuration is required. This component applies only to WhatsApp messages and must be used with the Send a WhatsApp Message or Wait for a WhatsApp Response component.

Send a WhatsApp typing indicator

等待消息通用@1x

Wait for a WhatsApp/Viber/Instagram Response

Waits for a user to reply to a WhatsApp, Viber, or Instagram message.

Set a timeout duration for the reply. You can enable a timeout branch for when no reply is received and define output variables for use in later components.

Wait for a WhatsApp/Viber/Instagram Response

发送Viber消息@1x

Send a Viber Message

Sends a Viber message. Users can reply with Viber-specific features.

Supports two actions:

  • Fixed Send

  • Reply

Supported message types:

  • Transaction

  • Marketing

Note

Fixed Send sends a message from a selected channel or parameter to a specified number or parameter.

Send a Viber message

lQDPKHZ5IwjY-z9kZLAtIU8fzjNVMgcB_LdSn6sA_100_100

Send a Messenger Message

Sends a Messenger message. Users can reply with Messenger-specific features.

Supports two actions:

  • Fixed Send

  • Reply

Both actions support the following message types:

  • Text: Supports variables.

  • Media: Supports images, audio, videos, and files. Supports variables.

  • Quick reply: Supports variables.

  • Template Message: Supports images, message titles, subtitles, reply buttons, link buttons, button titles, and button URLs. Supports variables.

Send a Messenger Message

发送Instagram消息@1x

Send an Instagram Message

Sends an Instagram message. Users can reply with Instagram-specific features.

Supports two actions:

  • Fixed Send

  • Reply

Both actions support the following message types:

  • Text: Supports variables.

  • Image: Supports variables.

  • Quick reply: Supports variables.

  • Template Message: Supports images, message titles, subtitles, reply buttons, link buttons, button titles, and button URLs. Supports variables.

Send an Instagram message

发送短信@1x

Send an SMS Message

Sends an SMS message.

Select a Sender ID, then choose one of the following SMS types:

  • Verification code

  • Notification

  • Marketing

Send an SMS message

image

Send an Email

Sends an email.

Select an email channel and a message template to send the email.

Send an Email

Intelligence

image

Natural Language Dialog

Connects to a large language model (LLM) to maintain a continuous conversation by queuing and processing incoming messages while awaiting model responses.

Configure a model or an application to enable natural language dialog.

Natural Language Dialogue

情感主题分类@1x

Sentiment/Topic Classification

Classifies text with custom sentiment or topic labels.

Analyzes text from a variable or direct input and assigns a custom label. Branch the flow based on the assigned label. Requires Alibaba Cloud Model Studio.

Sentiment/Topic classification

image

Natural Language Generation

Uses an LLM for multi-turn conversations, knowledge retrieval, and content generation.

Configure a model or an application to use this component.

Natural Language Generation

Contact

添加至群组@1x

Subscribe to Group

Adds a user to a specified group.

Adds a user's phone number and name to the specified group.

Add to Group

移除出群组@1x

Unsubscribe from Group

Removes a user from a specified group.

Specify the group from which to remove the user.

Unsubscribe from Group