All Products
Search
Document Center

Chat App Message Service:Use available variables

Last Updated:Nov 18, 2024

Available variables are common configuration items for component configuration. Common variables are created in the Available Variables section by default for calling during process orchestration. This topic describes default available variables and how to add, insert, and delete available variables.

Before you begin

Before you can use available variables, you need to go to the process that you want to edit and find the target component that you want to use available variables for.

  1. YesChat App Message Service Console > Process Editor > Process Management. Click the name of the flow that you want to edit. The orchestration page of the flow appears. image

  2. On the canvas, click the icon of the widget whose variables you want to use. In the widget configuration section on the right, you can view the Available Variables section.

    image

    Note

    The trigger type is a preset system variable in processes such as WhatsApp, Instagram, Viber, and Messenger. If you want to manually trigger a flow, click Start and add variables to the Basic Configurations section to receive the parameters that you pass after the flow is triggered.

Default Variables

Parameter

Description

Sample value

incomingMessage

The first upstream message of the user.

Hello

wabald

WhatsApp Business Account (WABA) ID.

10***********23

wabaPhoneNumber

Phone numbers bound to WABAs.

861301111****

customerPhoneNumber

The phone numbers of end users.

861310000****

customerName

The names of end users.

John

Create a variable

You can add available variables by referring to the following operations. You can add variables in three ways. Before you add variables, complete the preceding steps.

Add a variable to the Set Variable widget

  1. Drag the Set Variable component from the Component Library on the left side of the canvas.

  2. Click the Set Variable component on the canvas. In the right-side Variable Configuration pane, add a variable.

  3. To add multiple variables, click Add Variable. After you add the variables, click Save.

    image

  4. In the dialog box that appears, click Save.

    image

Add a variable to insert a variable

  1. On the canvas of the flow, add a variable in the Message Settings section on the right of the Send Viber Message or Send Instagram Message component, and click Insert Variable.

    image

  2. In the dialog box that appears, enter a variable name and click Create Variable to add a variable. After you exit the dialog box, click Save.

    image

  3. In the dialog box that appears, click Save.

    image

Add variables to the canvas start bar (only for Trigger Type: Manual)

  1. Click Start on the canvas. In the Basic Settings section on the right, turn off Do not accept variables. In the Variable Name field, enter the name of the variable that you want to add.

  2. To add multiple variables, click Add Variable. Click Save.

    image

  3. In the dialog box that appears, click Save.

    image

Insert a variable

You can perform the following steps to insert an available variable. Before you insert a variable, perform the steps described in the Before you begin section of this topic.

  1. In the Component Configuration section, find the location where you want to insert a variable and click Insert Variable. image

  2. In the Select Variable dialog box, find the desired variable and click Insert in the Operation column to insert the variable.image

  3. View the inserted variable.image

Delete a variable

You can perform the following operations to delete available variables. You can perform the following operations to delete available variables: Before you begin

Important

If you delete a variable, you can only delete the corresponding variable from the source component. You cannot delete the default system variable. If you delete a variable, the variable cannot be referenced. Exercise caution when you perform this operation.

Delete a variable from the Set Variable widget

  1. Click the Set Variable component on the canvas. In the right-side configuration pane, click Delete for the variable that you want to delete.

    Note

    If a variable is added by inserting a variable in the Set Variable component, click Insert Variable on the right when deleting the variable. In the dialog box that appears, click Delete.

    image

  2. Click Save. In the dialog box that appears, click Save.

    image

Other components delete variables

  1. Click the target widget on the canvas. In the right-side configuration pane, click Insert Variable.

    image

  2. In the dialog box that appears, select the variables that you want to delete and click Delete.

    image

  3. Click Save. In the dialog box that appears, click Save.

    image

Delete a variable from the canvas start (only when the trigger type is manual)

  1. Click Start on the canvas. In the right-side configuration pane, click the Delete icon.

    image

  2. Click Save. In the dialog box that appears, click Save.

    image