Need help routing the chat
# 🤝help
n
Hey community, I need some help figuring out how to re-route the conversation. I have the conversation go to a sign up area and this will ask for the information seen in the image. After that it checks a google sheet to see if that information has an account or not, if it doesn't it will then add it to the google sheet then send a message back through the webhook I have. This applies the same if they do have an account. It will send a message back saying they have an account. Now this is where I need help, I need it to route the conversation based on the answered provided by the webhook. It needs to be able to either take them down the route of saying you have an account and they might need help figuring out what it is or take them down the route where it continues the conversation casually. So two very different paths. I am not sure if i need to use "intentions" or "expressions" I don't fully understand them and i have been playing around with them and haven't figured it out. Maybe it is something different, I am not to sure but it the path will be dictated by the webhook response which is premade in my webhook. If anyone knows a solution your help would be greatly appreciated as always. Thank you in advance 🙂 (PS. I know the variable names are not great, this is just a test bot that i am experimenting on)

https://cdn.discordapp.com/attachments/1145000394045534208/1145000394217492510/Screenshot_2023-08-26_at_4.10.06_PM.png

https://cdn.discordapp.com/attachments/1145000394045534208/1145000394490118144/Screenshot_2023-08-26_at_4.11.01_PM.png

g
Expressions - If user has current account , If user doesn't have account. Use code block to catch hook then use expressions based on the return string.
n
Yea I already had that as you can see in the code but after some experimenting I ended up figuring it out. Thanks anyway man 👍
2 Views