problem with expression
# 🤝help
b
I am making a bot where the user enters the name of the restaurant they want to go to (the choice is made from a list that is previously provided given a knowledge base), how can I do so that if the name of the restaurant is misspelled, there is an error? and write it again correctly and if not go to the next node? I did it this way but it doesn't work, it's in a loop, even if you write it correctly it goes to the invalid node, I don't know what happens https://cdn.discordapp.com/attachments/1237141543148847174/1237141543656362045/image.png?ex=663a9158&is=66393fd8&hm=50a4f6df9b45485bea0b0633deb744f5f21426e1f06ec8cebcecbd4e504bd12f&
w
okay and when do you ask the KB ?
i think you can add a "find record" in a table (if the restaurant's name are in a table) or something like that , and if a record is found, you can go to the next node
b
when the user select the zone to eat the KB search a restaurant on that zone, and the user choose one restaurant (those are given ) and the answer is saved in "guardar_restaurant" and i want to compare the answer of the user with the info saved in the variable of KB and if the answers are different it gives an error, else continue https://cdn.discordapp.com/attachments/1237141543148847174/1238549698714013858/image.png?ex=663fb0cb&is=663e5f4b&hm=51ea9901dfb2e64005b4842191bd28df43f074fa87ae2a497d3de6ec2ae54468&
3 Views