bot response node

Updated at:

This document describes how to configure the bot response node in flow management and provides a sample application.

Node introduction

This node sends information to the user. It provides two configuration methods: Basic settings and Advanced settings. The Basic settings method supports three response types: use a fixed response, generate a response from a prompt, and task prompt.

image.png

Instructions

Basic settings

  • Node Name: You can change the node name as needed. The system displays a default value.

  • Response Method:

    • Use fixed response: The bot responds to the user with a preset script.

    • Generate response from prompt: The node uses a conversational instruction to interact with the user. You can add a parameter value by entering "/".

    • Task Prompt: The bot uses multitasking instructions to interact with the user. You can add an API plugin by entering "@". You can add a parameter value by entering "/".

      Note

      Prompt configuration recommendations

      1. Define the prompt content from the bot's perspective. Specify how the bot should perform the task.

      2. Keep the action for a single node simple and direct. Ensure the main points are clear.

      For information about specific granularity, see the following sample templates:

      Type

      Description

      Prompt

      Demonstration

      Direct response

      Provides a sample response script. The bot uses the context and the sample script to form a complete response.

      Respond with "Are you a family member or a friend of the person involved in the incident?"

      image.png

      Response based on instruction

      Provides conversational instructions. The bot follows the instructions to talk with the user. This includes getting parameters and calling APIs.

      Multitasking Prompt

      1. Get parameter: city

      2. @API plugin: weather to query the city's weather

      image.png

      Ask and validate customer response

      Proactively asks the user a question and validates the result based on the user's response.

      Respond with: "When did the incident occur?"

      After the user provides the incident time, check if the provided time is more than ten days before the system parameter CURRENT_DATE.

      image.png

Advanced settings

In Advanced settings, you can configure system instructions to integrate with other systems during the conversation, such as a transfer to agent instruction.

The following example shows how to set up a transfer to agent instruction:

  1. Configuration: Configure the response content in the response node. In Advanced settings, define the transfer to agent instruction. In this instruction, you can set the agent skill group and pass-along parameters.

  2. Conversation flow: When the conversation reaches this node, the bot's conversation interface provides both the node response and the configured transfer to agent instruction.

  3. API integration: When you integrate the conversation API, the integrated system receives the transfer to agent instruction. The system then sends the node response to the customer and performs the transfer to an agent based on the instruction's configuration.

Sample application

Scenario description: An inquiry flow that collects user requirements and responds accordingly.

The sample flow is as follows:

image.png

Configuration steps

  1. Create a new flow and go to the flow canvas editor.

  2. Add an intent edge. When a roadside assistance intent occurs, this flow is triggered.

User seeks roadside assistance.

  1. Add a bot response node and select the "Task Prompt" mode. In the Prompt input box, enter the information to confirm with the user, as shown in the following figure:

Demonstration