AI Zone Admin Forum Add your forum

Chatbot Conference in the Netherlands on Tue 24, 2018, with international line-up! Check it out

Resetting topics using time of day
 
 

I have a bot with a topic file that asks a series of questions to help the user reflect on their day.

I only want the gambits in this topic file to be used once per day (so I’m not using any Keep or Repeat at the moment), but if the user starts a new conversation the next day, I’d like the gambits to be reset so they can be used again.

Does anyone have any thoughts on how this could be achieved?

 

 
  [ # 1 ]

at the time of the new conversation, there is a std pattern that detects that and sends use to ~introductions.
From THERE you can test if day has changed (if previously you saved prior day). and if it has, do ^reset(TOPIC ~yourtopic)  to reset that topic

 

 
  [ # 2 ]

Thanks Bruce. Can you suggest a section of the documentation to read that might give me a better understanding of how to both save that date data as well as test if it has changed?

 

 
  [ # 3 ]

doc on system variables tells what to get.. you can do
$date = ?te

and then check against that later using ?te again

 

 
  login or register to react