In this blog, we can see how to extract the date and time in a Dialogflow and personalize the responses.
Extracting the date, time, and personalize the responses are very much needed for the meeting booking bots to schedule events, restaurant bots, and reservation booking bots, etc. which would increase user engagement.
Entities
Dialogflow entities extract a keyword from a training phrase in the intent. The value is an action parameter. It is not necessary to create entities for every word in the sentence.
Dialogflow has pre-built entities called system entities. To know engineer data more about the entities, refer to this video.
Dialogflow provides many system entities to extract common keywords from user phrases. For example, the @sys.email type is used to extract values related to an email address like “[email protected]“. @sys.color type can be used to extract values like “red”, “blue”, “orange”, etc.
You can see the full list of system entities here.
ALT: A banner ad promoting an AI chatbot that claims to resolve 80% of customer queries. A button labeled 'Try for Free' is included."
System Entities Related to Date & Time
@sys.date – Matches a date
@sys.time – Matches a time
@sys.date-period – Matches a date interval
@sys.time-period – Matches a time interval
@sys.date-time – Matches date, time, intervals or date and time together