Join Discord
Powered by
problem with expression
# 🤝help
b
billions-toothbrush-57530
05/06/2024, 8:38 PM
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&
billions-toothbrush-57530
05/10/2024, 2:59 PM
i put this
https://cdn.discordapp.com/attachments/1237141543148847174/1238505601236074496/image.png?ex=663f87b9&is=663e3639&hm=cdbdbbcbd69ddc938d383883565412f596db6e3ee3ddc64ebd9c2f58ba227ed8&
w
wooden-beard-40210
05/10/2024, 5:21 PM
okay and when do you ask the KB ?
wooden-beard-40210
05/10/2024, 5:22 PM
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
billions-toothbrush-57530
05/10/2024, 5:54 PM
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
Previous
Next