Qiu Xue
Qiu Xue

Reputation: 163

Making chatbot that can giving response base on time

I'm using program-o to develop my chatbot on my own website

Let's say if I type "good morning" to my bot at night, the bot will still respond to me "morning".
what I want is if I type "good morning" to my bot at night, the bot will respond "current time is 9pm, so you shouldn't use morning ".
Is there any possible solution to this kind of problem?

Upvotes: 1

Views: 108

Answers (1)

Steve Worswick
Steve Worswick

Reputation: 905

Yes, you need to look at the <date> tag and check its contents. I answered this question here:

AIML Chatbot response differs at different times?

By coincidence, I also posted a category that handles "Good morning".

Upvotes: 1

Related Questions