You could see the date and time highlighted. This means that the entity is mapped correctly. If you don’t see them highlighted, simply drag and select the date, time with the cursor and a list of entities will pop. Select the corresponding entity like @sys.date, @sys.time.
Action and Parameters
After the entities are mapped in the training phrase section. In the Action and parameters section of the intent, the system entities @sys.date, @sys.time, and @sys.date-time have appeared.
Action and parameters
Action and Parameters
Slot Filling
The intent should match with phrases like date and time to engineer data handle the task of scheduling an appointment. However, if these phrases lack the date information or both then it will be tough because the intent cannot schedule an appointment without the time and date information.
Dialogflow provides a slot-filling feature; In which intent is matched, then the chatbot collects information from the user until the user has provided data for each of the required parameters.
REQUIRED: If this box is ticked, The intent can’t complete without the corresponding parameter
PROMPTS: Type of questions that the chatbot will ask your users if a request doesn’t contain this parameter.
To make the parameters $time and $date required, provide prompt questions for the parameters. The placement in the table determines the order the prompt questions. In our example, the $date parameter is above the $time parameter. If you want to change the order, drag up the parameter.
For the date parameter, the prompt is as follows
-
- Posts: 358
- Joined: Wed Dec 18, 2024 4:14 am