Composite

Appearance

What are the differences between a composite diagram element and a Flow Transfer diagram element?

In a flow, input and output parameters can be defined by using composite diagram elements. That is, after the flow in a composite diagram element is executed, other steps in the original flow can be continued. After the flow is transferred, however, the current flow ends, and the data in the transferred flow can no longer be obtained to execute the original flow.

Parameter Description

  • Node Name: name of a node.
  • Description: details of a node.
  • Input Parameters: list of input parameters for the composite diagram element.
  • Output parameters: list of output parameters for the composite diagram element.

Using the Diagram Element

A composite diagram element can function as a specific sub-function module. You can use a composite diagram to combine operations frequently used in flows. If multiple flows use the same operations, you can use a composite diagram element to write the same operations. During orchestration of a complex flow, if the number of diagram elements exceeds 100, you can use composite diagram elements to store remaining operations of the flow.

Before creating a composite diagram element, you need to perform the following operations:
  1. Create a composite diagram element catalog. (A maximum of 100 catalogs can be added.)
  2. Enter the basic information about the composite diagram element, select a catalog for storing the diagram element, and edit its flow.
  3. Edit the composite diagram element canvas. After creating a composite diagram element, orchestrate its flow on the canvas based on the basic flow orchestration logic. You can use basic diagram elements to define a composite diagram element on the Resource Management > Diagram Element page.

Typical Application Scenario

The following describes how to use a composite diagram element to greet and interact with the chatbot.

  1. Sign in to the AICC and choose Configuration Center > Flow Configuration > Intelligent IVR.
  2. Add a composite diagram element.

    1. Choose Resource Management > Diagram Element, click the Composite Diagram Element Catalog tab, and click Add.
      Figure 1 Page for adding a composite diagram element catalog
    2. Click the Composite Diagram Element tab and click Add.
      Figure 2 Page for adding a composite diagram element
    3. Click Edit Canvas in the Operation column to orchestrate the composite diagram element.
      Figure 3 Diagram element variables to be added
      Figure 4 Flow orchestration example

  3. Configure an intelligent IVR flow.

    1. Choose Flow Management > Flow Orchestration and click Add to add a simple flow.
    2. Click + in the Flow Variable area. In the dialog box that is displayed, set the variable name and data type.
      Figure 5 Flow variables to be added
      Figure 6 Flow orchestration example (composite diagram element)

      Set the input parameter of the composite diagram element to FLOW.answer to transfer the customer answer to the composite diagram element.

    3. Save and release the flow.

  4. Choose Chatbot Management and bind the flow to a chatbot.
  5. Choose Chatbot Management. In the last column corresponding to the chatbot, click Test Call. In the test dialog box that is displayed, click Start Call to test the chatbot. Enter "Hello". If the chatbot replies "Hello", the composite diagram element is configured successfully.