I want my rasa chatbot should greet according to time.
Example:
- if time is between 4 A.M. to 11.59 A.M. then it should greet Good Morning.
- if time is between 12 P.M. to 5.00 P.M. then it should greet Good Afternoon.
- if time is after 5.00 P.M. then it should greet Good Evening.
Can you please help.
stephens
(Greg Stephens)
2
Welcome to the forum! You can create an action that will provide the response based upon the time of day. Take a look at the docs on Actions.
You’ll create a story something like this:
* utter_greet
- action_greet_timeofday
And in your action server you will have a action called action_greet_timeday
which will utter the appropriate greeting based upon the time.