Parameter collection node

Updated at:

This document explains how to configure the parameter collection node in process management and includes an application example.

Introduction

The parameter collection node defines the key information that a bot collects. This information is stored as parameter values, which can be used in subsequent workflow steps for conditional branching or in bot replies.

image

Procedure

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

  • Parameter Selection: Choose between two modes: prompt mode and custom mode.

    Note

    If a context parameter has the same name as a parameter you want to collect, the system directly assigns the value from the context parameter and skips the collection step.

    • prompt mode: Use a single prompt to define the information the bot must collect.

      Parameter

      Click Add Parameter to select and add a pre-configured parameter.

      For details on how to configure parameters, see Parameters.

      Parameter description

      Defaults to the parameter description from the knowledge base - API plugin section.

      Value source

      The value of an API parameter can come from one of three sources: fixed value, reference, or model recognition.

      • fixed value: The parameter's value is a static text string. You assign this value by setting the text and the parameter name.image

      • reference: Use a value from one of the following sources:

        • Input/output parameters of the API plugin

        • system preset parameters

        • context parameters (parameters passed during the conversation).
          If a context parameter with the same name as an API parameter is passed, the system automatically uses its value and skips collecting it through the conversation.image

          Note

          When the current node is a parameter collection node and value source is set to reference, you can add a parameter source. You can then select a parameter collected in the current workflow as the Parameter.

          image

      • model recognition: The bot proactively interacts with the user in natural language to collect the required parameter information and adds it to the API request.

      Required

      Check this option to mark the parameter as required. The system must collect a required parameter before executing subsequent actions.

      Note

      Parameter collection prompt: When you select prompt mode, you can provide a sample dialogue to help the bot collect the parameters.

    • custom mode: Sequentially processes parameters. It directly assigns values for parameters with a value source of fixed value or reference and individually collects parameters with a value source of model recognition. You can configure specific inquiry and reconfirmation prompts for each parameter.

      Parameter

      Click Add Parameter to select and add a pre-configured parameter.

      For details on how to configure parameters, see Parameters.

      Parameter description

      Defaults to the parameter description from the knowledge base - API plugin section.

      Value source

      The value of an API parameter can come from one of three sources: fixed value, reference, or model recognition.

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

      • When the value source is reference, the parameter value comes from one of the following sources:

        • Input/output parameters of the API plugin

        • system preset parameters

        • context parameters (parameters passed during the conversation).
          If a context parameter with the same name as an API parameter is passed, the system automatically uses its value and skips collecting it through the conversation.

        image

        Note

        When the current node is a parameter collection node and value source is set to reference, you can add a parameter source. You can then select a parameter collected in the current workflow as the Parameter.

        image

      • When the value source is model recognition, the bot proactively interacts with the user in natural language to collect the required parameter information and adds it to the API request.

        • Standard collection method

          image

        • Interactive collection method

          image

      Required

      Check this option to mark the parameter as required. The system must collect a required parameter before executing subsequent actions.

  • Model configuration: Currently supports Tongyi Xiaomi-plus. You can adjust the model's temperature, maximum reply length, Top-K, and Top-P.

    • temperature: Controls the randomness of the output. A lower value results in more deterministic and precise responses, while a higher value encourages more creative and diverse outputs.

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

    • Top-K: Selects from the top K candidate tokens with the highest probability, filtering out low-probability tokens based on a fixed count.

    • Top-P: Selects from the smallest set of candidate tokens whose cumulative probability reaches the threshold P. It dynamically adjusts the candidate range to balance accuracy and diversity.

    image

  • Semantic VAD wait time: When enabled, the system analyzes the recognized content to determine if the user's utterance is semantically complete. It then adjusts the waiting duration accordingly to reduce interruptions and awkward silences.

  • Branch condition: When this option is enabled, the bot evaluates branch conditions sequentially. If a condition is met, the workflow proceeds to the corresponding node.

Application example

Scenario: In an integrated scenario involving multiple nodes in a single workflow (including a bot reply node, a parameter collection node, and a call plugin node), a user inquires about on-site repair service. The bot collects the user's phone number and creates a ticket.

The example workflow is as follows:

image.png

Configuration steps

  1. Create a new process to open the workflow canvas.

  2. Add an intent edge that triggers this workflow when a user requests on-site repair service.

Example intent: The user wants on-site repair service.
  1. Add a bot reply node to ask for the user's phone number.

For details on how to configure a bot reply node, see bot reply node.
  1. Add a parameter collection node named "Phone number collection" and select custom mode:

    1. Click Add Parameter and select userPhone.

    2. Set the value source to model recognition.

    3. Select the Required checkbox.image.png

    4. Click Configure to set up parameter recognition:

      1. Set the Inquiry Method to prompt.

      2. Add the inquiry prompt as shown in the figure below, and include a context parameter.

      3. Add the command System_CollectNumber. When the bot needs to collect the phone number, it sends the CollectNumber command to bring up the user's phone keypad.

      4. Enable the Parameter Reconfirmation switch so that the bot reconfirms the phone number.

      image.png

  2. Add a parameter collection node named "Phone number confirmation". Configure the parameter selection as described previously, and then add branch conditions:

    1. If the phone number is incorrect, the user can provide a new one.image.png

    2. If the phone number is correct, the user confirms it.image.png

    image.png

  3. After the user confirms the phone number, add a call plugin node to create a ticket, then add a bot reply node to end the workflow.

For details on how to configure these nodes, see call plugin node and bot reply node.

Demonstration

image.png