How to not send twice "welcoming message" ?
# 🤝help
a
i'm building a chat-bot for assist client during their stay in an AirBnb. And when the conversation end,and restart i don't want to resend the welcoming message (presenting the bot , welcoming to the place) twice. Is there any solutions to this issue?

https://cdn.discordapp.com/attachments/1139551074332717096/1139551074626322462/welcoming_issue.PNG

b
Hi, you can set a variable after the initial greeting, and in the start node, first check if the variable is set (meaning the user has already been greeted) and then transition to the first time greeting or something else
r
@best-hamburger-70223 beat me to it but I want to add that I love Bordeaux especially the Wine 🙂 Good luck with your bot 🤖
a
okay thanks i'll try this ! @best-hamburger-70223
@rich-lamp-98721 there are many things cool there, but yes wine seems like the best!
f
Does this variable state get persisted across workflow runs though? Wouldn't it get reset back to not greeted on the next run?
r
@flaky-ability-96739 have a quick look here -> https://botpress.com/docs/cloud/studio/variables/#variable-scopes 🙂
4 Views