How can my bot greet according to time

I want my rasa chatbot should greet according to time. Example:

  1. if time is between 4 A.M. to 11.59 A.M. then it should greet Good Morning.
  2. if time is between 12 P.M. to 5.00 P.M. then it should greet Good Afternoon.
  3. if time is after 5.00 P.M. then it should greet Good Evening. Can you please help.

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.