Call plug-in node

Updated at:

This document explains how to configure the call plug-in node in process management and includes a practical example.

Node overview

When a robot enters a call plug-in node, it calls an API plug-in. The process has two main stages:

  • Stage 1: If the API is missing required input parameters, the robot starts a conversation with the user to collect them. This process is identical to standard parameter collection.

  • Stage 2: After gathering all required input parameters, the robot automatically calls the API plug-in, parses the response, and continues the conversation based on the configured downstream branches.

image.png

Procedure

  • Node name: You can change the node name to suit your business needs. The system displays a default name.

  • Select API plug-in: Select the API plug-in required for your workflow.

For more information about how to configure an API plug-in, see API plug-in.
  • API plug-in parameter collection: Parameters can be collected in two modes: Prompt mode and custom mode.

    Note

    If a contextual parameter has the same name as a parameter that needs collection, its value is used directly, and the collection step is skipped.

    • Prompt mode: Use a prompt to define the robot's collection requirements for this node.

      API parameter

      By default, the node automatically retrieves all parameters from the selected API plug-in.

      • If you do not make any custom modifications, the parameters automatically synchronize with any changes made to the API plug-in in the knowledge base.

      • If you make any custom modifications, these parameters will no longer synchronize with the API plug-in in the knowledge base.

      Parameter description

      By default, the parameter description also synchronizes with the input parameter descriptions from the API plug-in in the knowledge base.

      Value source

      An API parameter's value can come from one of three sources: fixed value, reference, or model recognition.

      • Fixed value: The parameter value is a static text string. Assign this value by entering the text directly.image

      • Reference: Reference a value from one of three sources:

        • Input/output parameters of an API plug-in.

        • System preset parameter.

        • Contextual parameter, which is passed during the conversation.
          When a contextual parameter with the same name as an API parameter is passed, the system uses its value by default and skips the collection process.image

          Note

          If the current node is a parameter collection node and the value source is set to reference, you can add parameter source options. This allows you to select parameters collected earlier in the current workflow.

          image

      • Model recognition: The robot collects the necessary parameter information through a natural language conversation with the user and adds it to the API request.

      Note

      Parameter Collection Prompt: In Prompt mode, you can provide a sample conversation to guide the robot's parameter collection.

    • Custom mode: Parameters are processed in their defined order. Values from fixed value or reference sources are assigned directly. For parameters that use model recognition, the system collects them sequentially. You can configure the query text and confirmation script for each of these parameters.

      API parameter

      By default, the node automatically retrieves all parameters from the selected API plug-in.

      • If you do not make any custom modifications, the parameters automatically synchronize with any changes made to the API plug-in in the knowledge base.

      • If you make any custom modifications, these parameters will no longer synchronize with the API plug-in in the knowledge base.

      Parameter description

      By default, the parameter description also synchronizes with the input parameter descriptions from the API plug-in.

      Value source

      An API parameter can get its value from one of three sources: fixed value, reference, or model recognition.

      • When the value source is fixed value, the parameter value is a static text string. You assign the value by directly setting the text and parameter name.image

      • When the value source is reference, you can reference a parameter value from one of three sources:

        • Input/output parameters of an API plug-in.

        • System preset parameter.

        • Contextual parameter, which is passed during the conversation.
          When a contextual parameter with the same name as an API parameter is passed, the system uses its value by default and skips the conversational collection process.

        image

        Note

        If the current node is a parameter collection node and the value source is set to reference, you can add parameter source options. This allows you to select parameters collected earlier in the current workflow.

        image

      • When the value source for a parameter is model recognition, the robot collects the necessary information through a natural language conversation with the user and adds it to the API request.

        Parameter

        Description

        Basic configurations

        Parameter name

        The name of the parameter to be collected. This name identifies its purpose in the request. Examples: Address, Phone, CarNumber.

        Parameter description

        Describe the parameter and its requirements. This helps the model understand what information to collect and what business standards it must meet. For example: "The user needs to provide a detailed shipping address, including at least the province, city, district, and street."

        Parameter collection method

        This setting supports Standard and Interactive collection. Standard collection is suitable for identifying parameters from a single user input. Interactive collection is ideal for scenarios where a parameter is missing, incomplete, or requires follow-up questions. It includes methods for collecting phone numbers, license plate numbers, and addresses.

        Advanced configurations

        Maximum number of queries

        Set the maximum number of times the robot can ask for the same parameter. If the limit is exceeded, the system stops asking and proceeds to a fallback action.

        If the maximum number of queries is exceeded, automatically set the parameter value to

        This is a default value that the system automatically provides when the user fails to provide valid information after multiple attempts. You can configure this as an empty value, a default value, a fixed string, or a business-specific value to ensure the workflow can continue.

        • Standard collection

          Parameter

          Description

          Query method

          Supports both Prompt and fixed script methods. Use this to configure how the robot asks follow-up questions when a parameter is missing, incomplete, or needs confirmation.

          Query text

          The script the robot uses to ask the user for information when a parameter is missing or not fully recognized.

          Collection rules

          Define the criteria for parameter collection, such as required fields, format requirements, completeness, and whether to allow ambiguous values. The robot uses these rules to validate the user's response.

          Select command

          A command integrates external systems with the robot's conversation, such as a command to transfer to a human agent. When the robot replies, it also sends the command information as a contextual parameter for integration with external business systems.

          Parameter confirmation

          If enabled, the robot asks the user to confirm that the collected parameter value is correct.

          image

        • Interactive collection

          Parameter

          Description

          Screenshot

          Phone number

          Phone number collection identifies and completes a user's phone number. If the user provides a partial number, inputs it in multiple messages, or includes irrelevant text, the robot asks for the remaining digits and confirms once the number is complete.

          image

          License plate number

          License plate number collection identifies vehicle license plate information. If the user provides only the main part of the plate number without the provincial abbreviation, or if the robot determines the information is incomplete, it will ask for the missing part and confirm after obtaining the full plate number.

          image

          Address

          Address collection helps the robot proactively gather, complete, and confirm user addresses during a natural conversation. If the user provides a vague or incomplete address, or if the address does not meet business requirements, the robot continues to ask for more details until it obtains a valid result. You can validate addresses by using either the Amap API or your own custom API.

          Note

          For more information about the Amap API, see Amap Web Service API.

          For more information about using a custom API, see Interactive Parameter Collection - Address - Custom API.

          image

          image

          image

  • API plug-in maximum timeout: The timeout for the API call. If the response time exceeds this value, the call fails.

  • Branch condition: When enabled, the robot evaluates branch conditions in order. When a condition is met, the workflow proceeds to the corresponding downstream node.

Example

Scenario: In a pre-sales and after-sales work order process, you need to sequentially collect user information, such as phone number, name, and address, before submitting a work order. You also need to reconfirm critical parameters.

The following figure shows an example workflow.

image.png

Configuration steps

  1. Create a new workflow and open the workflow canvas.

  2. Add intent edges. When a user requests an installation, reports an issue, or indicates they have no other questions, the conversation flows to the corresponding intent edge.

  3. Configure the "User requests repair/maintenance/inspection" intent edge by adding a "Save Repair Work Order" call plug-in node.

    1. In the call plug-in node, select the API that you created.

    2. After you select the API, the API parameter and Parameter description fields are automatically populated. Select custom mode. Then, configure each parameter:

      1. For Value source, select "model recognition".image.png

  1. Click Configure to configure model recognition for parameters.

    1. For Query method, select "prompt".

    2. You can use the default value for query text.

    3. Enable the parameter confirmation switch and use the default query text.image.png

  2. Configure the "User requests installation" intent edge by adding a "Save Installation Work Order" call plug-in node.

    1. In the call plug-in node, select the API that you created.

    2. After you select the API, the API parameter and Parameter description fields are automatically populated. Select Prompt mode. Then, configure each parameter:

      1. For Value source, select "model recognition".

      2. In the Parameter Collection Prompt box, enter the collection rules to customize the parameter collection process.image.png

  3. After the API call succeeds, add a robot reply node and configure the reply scripts for a successful work order submission.

For more information about how to configure a robot reply node, see robot reply node.

Demonstration

To test the flow, use the "User requests repair/maintenance/inspection" path. In the test conversation, the robot collects user information based on the plug-in's parameters, confirms the information, and finally submits the work order to dispatch the task.

Collecting user information:

image.png

Confirmation:

image.png

Automatically submitting the work order:

image.png