Set up a Message Flow from Existing Flow

You can build a message flow by starting from an existing one - either by cloning a message flow or importing a JSON file, and making modifications as needed.

Procedure

Step 1. Create a message flow from an existing flow

  1. Log in to PBX web portal, go to Automation Workflow > Message Flow Designer.
  2. Create a message flow using one of the following methods.
    Method Instruction
    Clone an existing message flow
    1. On the right of the desired message flow, click .

    2. In the pop-up window, complete the following settings for the new message flow as needed, then click Save.

      • Name: Edit the flow name.
      • Remark: Edit the brief description.
      • Applicable to: Select the channel type to which the message flow is applicable.
    Import an existing message flow (JSON file)
    Note: Prepare a JSON file that does not exceed 50 MB. For quick reuse, you can export message flows from another P-Series PBX System.
    1. At the top of the list, click Add.
    2. In the pop-up window, complete the following settings, then click Save.

      • Name: Enter a name to help you identify the message flow.
      • Remark: Optional. Add a brief description.
      • Create Method: Select Import from File.
      • Upload File: Click Upload to select and upload a JSON file.
    The message flow is created, and the webpage is redirected to the configuration page.
    Tip: If needed, you can click at the top of the configuration page to modify the flow basic information, including name, remark, and the applicable channel types.

Step 2. Edit components

Tip: If you need to configure PBX features while editing components, click Open in a new tab at the top-right corner to continue editing in a separate tab.

  1. Click component to edit its settings.
    Note: To add more components, click on the desired branch, then select a component.

    Refer to the table below for introduction and instruction on each component.

    Component Description
    Session Start

    Session Start component is the entry point of a message flow. This component is uneditable.

    Send Message Send Message component enables the system to automatically send messages to customers.

    For more information, see Send Message.

    Send WhatsApp Template Message Send WhatsApp Template Message component enables the system to automatically send messages to customers using specified WhatsApp message templates.
    Important: This component is available only when the message flow is only applicable to WhatsApp channel type.

    For more information, see Send WhatsApp Template Message.

    Wait for Reply Wait for Reply component allows you to set the reply timeout and route the message session depending on whether a reply is received.

    For more information, see Wait for Reply.

    Menu Menu component allows you to present the customer with a set of menu options, and route the message session based on the value that they reply.

    For more information, see Menu.

    Business Hours

    Business Hours component allows you to route the message session to different destinations based on the time of day.

    For more information, see Business Hours.

    Wait Wait component enables the system to automatically route the message session to the connected component upon reply timeout.

    For more information, see Wait.

    Condition Condition component allows routing the message session based on logical expressions.

    For more information, see Condition.

    Loop Loop component allows a group of components to be executed repeatedly based on the loop strategy.

    For more information, see Loop.

    Internal Data Ops Internal Data Ops component allows you to query data from PBX-native database.
    For more information, see the following topics:
    Email Sender Email Sender component enables the system to automatically send emails to a recipient via configured email server and record the send logs, enabling real-time notifications.

    For more information, see Email Sender.

    Database Access Database Access component allows you to interact with database during a message flow. You can execute SQL operations to retrieve or update data as needed.

    For more information, see Database Access.

    HTTP Request HTTP Request component allows you to send HTTP requests to external web servers, enabling data exchange with third-party services.

    For more information, see HTTP Request.

    Transfer

    Transfer component allows you to transfer the message session to a specific destination to terminate the current message flow.

    For more information, see Transfer.

    Close Close component enables the system to automatically disconnect the message session to terminate the current message flow.

    For more information, see Close.

  2. At the top-right corner, click Save.

Step 3. Enable the message flow

On the message flow list, turn on the switch of the desired message flow and click OK in the pop-up window.

What to do next

Go to Messaging > Message Channel, and set the message flow as the destination for message channels matching the flow's applicable channel type.

After configuration, inbound messages received via the channels will enter the message flow directly, and the system will automatically perform the routing strategy in the flow.