https://discord.gg/botpress logo
Expresions problem
# 🤝help
g
Sorry for writing again, now I have a different kind of problem. I am getting a response from the webhook, 1st case is, when the reservation in Google Calendar is created (for testing I have a value of 100 in the body) and the second where it's not created, AI is generating a suggested time (for testing the expression, I have a random number in here). So, when there's no reservation in that moment, bot should say "Great, reservation is completed", and create a reservation. MAKE.com is working okay, becouse the reservation is created, but the answer in botpress is making the trouble. I can't write a expression separating those answers. Second line is the suggestion in my language, text generated by AI, which should only start when there is no free reservation date in the time wanted by customer. In the image you can see, there's a response in the botpress "100", so it should run the Done node, but this is not happening. https://cdn.discordapp.com/attachments/1393910969583013948/1393910969863766026/image.png?ex=6874e440&is=687392c0&hm=b6df6b13f58d4e4519cf59415de122ba39efc023348a396ee1b4d148c05e1eae& https://cdn.discordapp.com/attachments/1393910969583013948/1393910970396577895/image.png?ex=6874e440&is=687392c0&hm=12223a3e2009c57ed279f8302416acdebd047427a551eccda6bc71602b6362b4& https://cdn.discordapp.com/attachments/1393910969583013948/1393910970669338677/image.png?ex=6874e441&is=687392c1&hm=58a7bcb4dceeeda920e548b8965ca5c42d8192f66549c279458b8519fc5aee3f& https://cdn.discordapp.com/attachments/1393910969583013948/1393910970958479411/image.png?ex=6874e441&is=687392c1&hm=08b05d0c590f7841be0fcc6f941b4b91491aa1b1bbc40be9a60a8e2f2769a157&
r
I think the problem lies in the variable which is being used to store the value 100 you should use an execute card to separate out 100 into a workflow variable and then use it in the workflow
p
Yeah you should validate the values stored in your variable using text cards.