You may have a situation where the chatbot should only give certain responses for certain dates and times. To achieve this, you can use the rules Intent valid from and Intent valid until. These rules should be added to the necessary conditions for an intent.
To add an intent that uses one or more of these rules, first, create a new intent as normal:
- Go to the Intents page in Chatbot studio.
- Click the Add Intent button.
- Complete the intent's Details as normal. Type a Name for this intent, and complete other details as needed.
- In the Provided that section, click Add necessary condition.
- In the Select rule dialog, click to select the appropriate rule.
Use the rule:
- Intent valid from to enable this intent from a date/time of your choice.
- Intent valid until to enable this intent until a date/time of your choice.
- Use a combination of the two rules to enable this intent between two dates.
Remember, for the valid from rule, this chooses the date and time the condition starts. For the valid until rule this chooses the date and time the condition ends.
To combine these rules to create a "between" rule:
|
You will then need to continue with the rest of the details of the intent, adding further rules, responses and actions as normal.