Slot Filling Node
This topic describes how to configure a slot filling node in a conversation flow and explains the meaning of each parameter.
Function Overview
In some cases, a bot must collect specific information before it can respond to a user's intent. The required response varies depending on different attribute values of the same intent type. A slot is where the bot detects, stores, and invokes attribute information related to a user's intent. As described in Entity Management, you can predefine intent attributes using entity configuration. You then use these entities in a slot filling node.
For example, after adding an "address" attribute to the "Check Weather" intent, multiple derived intents emerge—such as "Check Hangzhou Weather," "Check Beijing Weather," and "Check Jiangxi Weather"—each requiring a different response. Using entity configuration, you can generalize these into a single intent: "Check Weather for a Specific Address." In the slot filling node, set the slot detection method to "address" recognition. The bot then prompts the user to provide the missing information. If collection succeeds, slot filling succeeds and the flow proceeds down the success branch. If collection fails, slot filling fails and the system uses configured prompts to ask the user for the required information.
A slot filling node is a composite node. If the user’s first utterance triggers an intent but lacks required slot values, the node asks follow-up questions one by one until all slots are filled.
Create a Node
To create a slot filling node, go to the conversation flow canvas and drag the Slot Filling Node from the left into the canvas.

Configure Node Content
Click the slot filling node you want to configure to open its content editor. The editor includes Node Name, Slot Information, Q&A Strategy Configuration, and Branch Configuration.

Configure Slot Information
Add, Delete, or Edit Slots
In the node content editor, click Add Slot, Delete, or Edit to manage slots.

Basic Slot Configuration
When adding a slot, configure its basic information.

Slot Name: A unique identifier for the slot within this intent. Use this name later when referencing the slot.
Detection Method: The method used to detect the intent attribute, such as "address," "number," or "date." Select a predefined entity to complete this setting.
Response Content: Required. If the user does not provide the needed value, the bot triggers a follow-up question.
Post-Fill Action: The action the bot performs after successfully filling the slot and sending a reply.
Recognition Failure Handling: When the bot cannot recognize the user's input, it prompts the user to rephrase.
Timeout Handling: If the user does not respond, the bot prompts them to reply.
Required: Specifies whether this parameter must be filled for the intent. If not required, the user may skip answering the bot’s prompt.
Advanced Slot Configuration
In the slot configuration panel, click Advanced Configuration to expand advanced settings.

Condition Configuration: When enabled, slot filling occurs only if the configured conditions are met.
Collection Type: Choose whether to collect a single value or multiple values for the slot. For example, to check the weather in both Beijing and Shanghai, use multi-value collection to capture both locations at once.
Encrypt Slot: When enabled, the slot value appears as * in conversation logs to hide sensitive information.
Inherit Slot Value: When enabled, the node automatically fills the current slot using any previously filled slot value in the session that matches the Slot Name.
Branch Configuration
In the node content editor, click Add Branch to add slot-based branches. Configure each branch according to your business needs to complete branch content configuration.


Branch Name: Enter a descriptive name as needed.
Branch Condition: Defines the trigger condition that matches the user’s input. When triggered, the conversation flow enters the corresponding branch. There are three types of branch conditions:
Intent Trigger: Use this when a single intent can summarize the user’s input.
Condition Trigger: Use this when the user’s input requires a combination of conditions. The console supports conditions based on intents, entities, variables, sentiment, and more, with support for two levels of AND and OR logic groups.
Expression Trigger: Use this when a regular expression can summarize the user’s input.
Variable Assignment: After an intent is triggered, assign values to variables to record information from the conversation.
Slot Filling Result Intervention
Scenarios
When multiple slots in a node use the same detection method, configure a slot filling template to improve recognition accuracy. For example, suppose a slot filling node requires both "departure location" and "destination," and both slots use the "address" entity for detection. If a user says, "Book me a flight from Beijing to Shanghai," the bot may struggle to determine which city is the departure and which is the destination—it only recognizes both as valid addresses, potentially leading to incorrect slot assignment. In such cases, use slot filling result intervention.
How to Use
In the slot filling node content editor, click Slot Filling Template to open the template editor. Add example user utterances that use the same detection method and perform tagging to annotate slot values.

The system currently supports two annotation methods:
Select from system-recommended slot candidates and click Use to apply the annotation.
Use your mouse to highlight and tag words directly in the input box.

