Skip to main content
Version: 1.11.1

Request Block

This chapter will explain the role of Request Block and how to use it.

Basic Concept

Request Block is an important part of the dialogue flow. When the agent needs to ask the user and obtain necessary and critical information from the user's reply message, the request block is used. At the same time, the agent will also decide which block the dialogue process should jump to next based on the information extracted from the user's reply, thereby realizing dialogue management.

Slot to fill

The request block needs to be associated with a word slot. When the agent extracts the required information from the user's reply, it will store the information content in the corresponding slot.

For example, we can use the dialogue flow to collect the user's booking information, and use the request block to ask the user's departure city. To achieve this, we can first create a slot named "departure_city", associate the city entity, and then associate the slot with the request block.

In this way, when the user replies with the departure city, the agent will fill in the slot with the city name to advance the current dialogue flow. slot-to-fill

Block Request

In the blank column below Prompts, we can configure the specific words of the agent when it asks the user questions and choose the appropriate reply method.

Reply all in turn:the agent sends out all preconfigured words at once;
Reply random one:the agent will randomly select one of the multiple words and return it to the user;
Reply one each turn:It can play the role of gradual clarification. For example, the agent first asks the user "Where is your departure city?", when the user's reply does not give city information, the agent will send a second phrase, "Please confirm and tell me specific city name". block-request-en-v1.9

Quick Replies can play the function of input reminder, we can use Manual configuration or Interface configuration to get some preset replies, they will be displayed on the Q&A page in the form of bubbles, users can use Click to replace manual input to improve reply efficiency.

When the user's reply hits multiple values that can be filled in the slot, in order for the agent to accurately extract the most correct information, we can let the agent send Clarify to the user at this time, so that the user can point out the correct options. quick-replies-en-v1.9

Slot filling strategy

  • Fill & Update by ask:Only when the dialogue flow is in the current request block, the acquired information will be filled in the associated slot. The user's messages before or after this will not be used to fill the slot;

  • Fill but not update:In the dialogue before or after this block, the agent extracts the required entity, and the extracted entity information will be filled in the to-be-filled slot of this block. However, the value will not be updated if the agent extracts the same entity again.

  • Fill & Update at any time:In the dialogue before or after this block, the agent extracts the required entity, and the extracted entity information will also be filled in the to-be-filled slot of this block.

Fill & Update at any time is often used in marketing, information query and other scenarios. Users often say multiple pieces of information at one time. Using this function can make the agent behave more intelligently. However, when confirming information, we hope that users will carefully check the agent's message and give a confirmation answer to the current question, often using Fill & Update by ask.

In addition, we can also configure the maximum number of queries for filling the slot. The number here refers to how many times the agent can ask in total if the agent does not get information from the user that it can fill the slot. If the maximum number of queries is exceeded and the slot still fails to fill, the agent will jump to the empty value route. slot-filling-strategy

Routes

We can configure the route condition according to the entity value filled in the slot, so that the current dialogue will proceed according to our expected process. If there are multiple configuration conditions, it will be executed according to the priority from top to bottom.

Route NameDescriptionAdditional Info
Branch routeFormulate a rule, when the value of the slot conforms to the rule, the current dialogue flow will flow to the next block specified by this branch.-
Default value routeWhen the slot has value, but the value does not meet the conditions of any branch route, the current dialogue flow will flow to the next block specified in the default route.-
Empty value routeWhen the slot no value, the current dialogue flow will flow to the next block specified in the default route.-
Slot updated routeWhen the slot value is updated, the current dialogue flow will flow to the next block specified in the default route.This kind of route is only configable when the slot filling strategy is set as Fill & Update at any time.

route