https://discord.gg/botpress logo
#🤝help
How can I make the bot understand what day of the week it is and give an answer based on that?
# 🤝help
q

quiet-kite-63878

07/21/2023, 6:02 AM
I want the AI to show activities from the database based on the current day of the week
f

famous-zoo-73118

07/21/2023, 4:26 PM
Hi @quiet-kite-63878 you could use an Execute card and then in the "Generate code" input enter a prompt like "Store the name of the day of the week (in lowercase) in a workflow variable called dayOfWeek". It should automatically (or should I say, automagically 😄 ) generate the proper code to do it and then in the rest of your bot workflow you can refer to the
@dayOfWeek
variable to have some logic depending on what day of the week it is.