Parameter collection node

Updated at:

This document describes how to configure the Parameter Collection node in process management and provides an application example.

Overview

A Parameter Collection node defines and collects key information from a user, storing it as a parameter value. Subsequent steps in the process can then use this value for conditional logic or in replies.

image.png

Configuration

  • Node name: A default node name is provided, which you can change to suit your business requirements.

  • Parameter selection: Two modes are available: prompt mode and custom mode.

    Note

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

    • Prompt mode: Define the bot's collection requirements for this node by using a prompt.

      Parameter

      Click Add Parameter and select a pre-created parameter.

      For more information about how to configure parameters, see Parameters.

      Parameter description

      The parameter description defaults to the explanation provided in the API plugin's knowledge base.

      Value source

      The value source for an API parameter supports three types: fixed value, reference, and model recognition.

      • Fixed value: The parameter is assigned a static text value that you specify.image

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

        • Input/output parameters of an API plugin.

        • System preset parameters.

        • Contextual parameters (parameters passed during the conversation).
          If a contextual parameter with the same name as an API parameter is passed in, the system automatically uses the passed-in value and does not collect it through the conversation flow.image

          Note

          If you set the value source to reference in a Parameter Collection node, you can add a parameter source option. This allows you to select a parameter that was collected earlier in the current process.

          image

      • Model recognition: The bot converses with the user to collect the required information and populate the API request.

      Required

      Select this checkbox to make the parameter mandatory for subsequent actions.

      Note

      Parameter Collection Prompt: When in prompt mode, you can provide sample conversations for parameter collection to help the bot complete the collection.

    • Custom mode: Parameters are processed in their defined order. For parameters with a value source of fixed value or reference, their values are assigned directly. For parameters with a value source of dialog recognition, they are collected one by one. You can configure an inquiry prompt and reconfirmation prompt for each parameter.

      Parameter

      Click Add Parameter and select a pre-created parameter.

      For more information about how to configure parameters, see Parameters.

      Parameter description

      The parameter description defaults to the explanation provided in the API plugin's knowledge base.

      Value source

      The value source for an API parameter supports three types: fixed value, reference, and model recognition.

      • When the value source is fixed value, the parameter is assigned a static text value that you specify.image

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

        • Input/output parameters of an API plugin.

        • System preset parameters.

        • Contextual parameters (parameters passed during the conversation).
          If a contextual parameter with the same name as an API parameter is passed in, the system automatically uses the passed-in value and does not collect it through the conversation flow.

        image

        Note

        If you set the value source to reference in a Parameter Collection node, you can add a parameter source option. This allows you to select a parameter that was collected earlier in the current process.

        image

      • When the value source is model recognition, the bot converses with the user to collect the required information and populate the API request.

        Parameter

        Description

        Basic configuration

        Parameter name

        The name of the parameter field to be collected. It identifies the parameter's meaning in the request. Examples: Address, Phone, CarNumber.

        Parameter description

        Describes the parameter's meaning, format, and business requirements. This description helps the model understand what to collect.

        Parameter collection method

        Supports Standard Collection and Interactive Collection methods. The standard method is suitable for identifying parameters from a single user input. The interactive method is used for scenarios where a parameter is missing, incomplete, or requires follow-up confirmation. It includes collecting information for phone numbers, license plate numbers, and addresses.

        Advanced configuration

        Maximum inquiry attempts

        Sets the maximum number of times the bot can ask for the same parameter. If this limit is exceeded, the bot stops asking and proceeds to fallback processing.

        Set parameter value after maximum inquiries

        The value assigned to the parameter if the user fails to provide valid information within the maximum number of attempts. You can configure it as a null value, a default value, a fixed text string, or a business-specified value to ensure the process continues to execute.

        • Standard Collection method

          Parameter

          Description

          Inquiry method

          Supports Prompt and Fixed Utterance methods. Use these to configure how the bot follows up when a parameter is missing, incomplete, or requires confirmation.

          Inquiry prompt

          The text the bot uses to ask the user a question when a parameter is missing or not fully recognized.

          Collection rules

          Defines collection criteria, such as whether the parameter is required, its format, completeness, and if ambiguous values are allowed. The bot uses these rules to validate the user's input.

          Select command

          Commands are used for integrating external systems with the bot conversation, such as a transfer to agent command. When replying, the bot also sends the command as a contextual parameter, which the external system can then use.

          Parameter reconfirmation

          If enabled, the bot asks the user to confirm the collected parameter value.

          image

        • Interactive Collection method

          Parameter

          Description

          Screenshot

          Phone number

          This method identifies and completes a user's phone number. If the user provides a partial number, enters the number in multiple turns, or includes irrelevant text in their response, the bot will ask for the remaining information and confirm once the complete number is collected.

          image

          License plate number

          This method identifies vehicle license plate information. If the user provides only the main part of the plate number while omitting the provincial abbreviation, or if the bot determines the information is incomplete, it will ask for the missing part and confirm after obtaining the full plate number.

          image

          Address

          This method gathers, completes, and confirms user addresses in a natural conversation. If the user provides a vague or incomplete address, or if the address does not meet business requirements, the bot will continue to ask follow-up questions until it obtains an address that meets the defined rules. Two methods are available for address validation: the Amap Web Service API or a custom API.

          Note

          For the Amap API, see Amap Web Service API.

          For the custom API method, see Interactive Parameter Collection - Address - Custom API.

          image

          image

          image

      Required

      Select this checkbox to make the parameter mandatory for subsequent actions.

  • Branch condition: When enabled, the bot evaluates branch conditions in sequence. If a condition is met, the process jumps to the corresponding subsequent node.

Application example

Scenario: In an integration scenario, a single process contains multiple nodes, including a bot reply node, a Parameter Collection node, and a call plugin node. In this process, a user requests an on-site repair service, and the bot collects the user's phone number to create a work order.

The example process is as follows:

image.png

Configuration steps

  1. Create a new process and go to the process canvas.

  2. Configure the intent edge so that a request for on-site repair service triggers this process.

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

For instructions on configuring a bot reply node, see bot reply node.
  1. Add a "Phone Number Collection" Parameter Collection node and select custom mode:

    1. Click Add Parameter and add the userPhone parameter.

    2. Set the value source to dialog recognition.

    3. Mark it as required.image.png

    4. Click Configure to set up dialog recognition for the parameter.

      1. Set the Inquiry Method to prompt.

      2. Add the inquiry prompt as shown in the figure below, and add a contextual parameter.

      3. Add the command: system_collect_number. When the bot collects the phone number, it sends the "collect number" command, which brings up the user's phone keyboard.

      4. Enable the Parameter Reconfirmation switch to reconfirm the phone number.

      image.png

  2. Add a "Phone Number Confirmation" Parameter Collection node. Configure its parameter selection in the same way as the previous step, and then add a branch condition:

    1. The user modifies an incorrect phone number.image.png

    2. The user confirms the correct phone number.image.png

    image.png

  3. After the user confirms the phone number, add a call plugin node to create a work order, followed by a bot reply node to end the process.

For instructions on configuring a call plugin node, see call plugin node. For instructions on configuring a bot reply node, see bot reply node.

Result

image.png