Call plugin node

Updated at:

This topic describes how to configure the call plugin node in process management and includes a use case.

Overview

When the bot enters a call plugin node, it calls an API plugin. The process consists of two main stages:

  • Stage 1: If required input parameters are missing, the bot starts a conversation with the user to collect them. The conversational experience is the same as a standard parameter collection process.

  • Stage 2: Once all required input parameters are collected, the bot calls the API plugin, parses the response, and continues the conversation based on the configured branches.

image

Configuration

  • Node name: You can customize the node name. The system provides a default name.

  • Select API plugin: Select the API plugin required for your flow.

For instructions on how to configure an API plugin, see API plugin.
  • API plugin parameter collection: Two modes are supported: prompt mode and custom mode.

    Note

    If a context parameter matches a required parameter by name, its value is used directly, and the collection step is skipped.

    • prompt mode: Define how the bot collects parameters by using a prompt.

      API parameters

      By default, the system automatically populates this field with all parameters from the selected API plugin.

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

      • If you make any custom changes, the parameters in this node will no longer synchronize with changes made in knowledge base > API plugin.

      Parameter description

      By default, the descriptions are also synchronized with the input parameter explanations in knowledge base > API plugin.

      Value source

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

      • fixed value: The parameter is assigned a static text value. You set this by providing the text and the parameter name.image

      • reference: You can reference a value from three sources:

        • Input/output parameters of the API plugin

        • System preset parameters

        • Context parameters, which are passed during the conversation.
          If a passed context parameter has the same name as an API parameter, the system uses its value and skips the conversational collection step.image

          Note

          When the current node is a parameter collection node and the value source is set to reference, you can add a parameter source option. This allows you to select a parameter collected within the current flow.

          image

      • model recognition: The bot proactively engages the user in a natural language conversation to collect the required parameter information and populate the API request.

      Note

      Parameter collection prompt: When you select prompt mode, you can provide a sample conversation for parameter collection to guide the bot.

    • custom mode: The system processes parameters in the order they are defined. For parameters with a value source of 'fixed value' or 'reference', the value is assigned directly. For parameters with a value source of 'model recognition', the bot collects them sequentially. You can configure the inquiry and reconfirmation scripts for each parameter.

      API parameters

      By default, the system automatically populates this field with all parameters from the selected API plugin.

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

      • If you make any custom changes, the parameters in this node will no longer synchronize with changes made in knowledge base > API plugin.

      Parameter description

      By default, parameter descriptions are also synchronized with the parameter explanations in the API plugin.

      Value source

      The value for an API parameter can be sourced in three ways: fixed value, reference, or model recognition.

      • If the value source is fixed value, the parameter is assigned a static text value. You set this by providing the text and the parameter name.image

      • If the value source is reference, you can reference a value from three sources:

        • Input/output parameters of the API plugin

        • System preset parameters

        • Context parameters, which are passed during the conversation.
          If a context parameter with the same name as an API parameter is passed, the system uses its value and skips the conversational collection step.

        image

        Note

        When the current node is a parameter collection node and the value source is set to reference, you can add a parameter source option. This allows you to select a parameter collected within the current flow.

        image

      • If the value source is model recognition, the bot proactively engages the user in a natural language conversation to collect the required parameter information and populate the API request.

        • Normal collection mode

          image

        • Interactive collection mode

          image

  • Maximum API plugin timeout: The timeout for the API call. A call that exceeds this timeout is treated as an exception.

  • Model configuration: The Tongyi Xiaomi-plus model is supported. You can adjust its temperature, maximum response length, Top-K, and Top-P settings.

    • temperature: Controls the randomness of the output. Lower values make the output more deterministic and precise, while higher values make it more creative and diverse.

    • maximum response length: Sets the upper limit for the length of a single generated response. The model stops generating content when this limit is reached.

    • Top-K: Selects candidates from the Top-K tokens with the highest probability, filtering out all others.

    • Top-P: Selects from a set of candidate words whose cumulative probability reaches a threshold P. This dynamically adjusts the range of candidates to balance accuracy and diversity.

    image

  • semantic VAD wait time: When enabled, the system analyzes the recognized content to determine if the user's sentence is semantically complete. This allows it to adjust the waiting time dynamically, reducing interruptions and awkward silences.

  • Branch condition: If you enable this option, the bot evaluates the branch conditions in order. When a condition is met, the flow jumps to the corresponding subsequent node.

Use case

Scenario: In a pre-sales and after-sales ticket processing flow, the system must collect user information (such as phone number, name, and address) before submitting a ticket and reconfirm critical parameters.

The example flow is as follows:

image.png

Procedure

  1. Create a new flow and open the flow canvas editor.

  2. Create intent edges. The flow proceeds along the corresponding intent edge when a "user needs installation", "user requests for repair/maintenance/inspection", or "user has no other questions" event occurs.

  3. On the "user requests for repair/maintenance/inspection" intent edge, add a Save repair ticket call plugin node.

    1. In the call plugin node, select a pre-configured API.

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

      1. Set the value source to model recognition.image.png

  1. To set up model recognition for the parameter, click Configure.

    1. Set the Inquiry mode to prompt.

    2. You can use the default Inquiry script.

    3. Enable Parameter reconfirmation and use the default inquiry script.image.png

  2. Configure the "user needs installation" intent edge by adding a Save installation ticket call plugin node.

    1. In the call plugin node, select a pre-configured API.

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

      1. Set the value source to model recognition.

      2. In the Parameter collection prompt field, enter collection rules to customize the parameter collection process.image.png

  3. After the API call succeeds, add a bot reply node and configure the reply scripts for successful ticket submission.

For instructions on how to configure a bot reply node, see bot reply node.

Result

To verify the setup, test the "user requests for repair/maintenance/inspection" path. The bot will collect user information as defined in the plugin, reconfirm it, and submit a ticket to dispatch the task.

Collecting user information:

image.png

Reconfirming parameters:

image.png

Submitting the ticket automatically:

image.png