Restaurant delivery bot
# 🤝help
e
Hey @wonderful-apple-88667 , only the Botpress team can load problem reports to see your bot. Could you share details of what issue you are having so that the community can try to help as well?
w
i posted in help my problem because someone from botpress tell me to do it like this
can i share my bot and community take a look at code?
e
Yeah this is the right way to get help from the team, but if you want the community to be able to assist you as well, you need to share some details in here too
Just screenshots of the faulty parts would be enough for now
so we can figure out what's happening
w
ok thanks
e
and an explanation of the error and expected behavior 😉
w
i post here?
e
that's right
w
ok thanks a lot
e
Anytime 🦾
w
In the first node i capture the user lang and with an Ai agent translator works very fine, in the second node i capture the user name and phone and it also works, but in the third step i capture the order from user, and quantity and i have an error. I added aded an option to end the order if user want to end and also to show the order before finish all the order with all food it can be too much long. Just to see the error. When the user answer to end the bot must go to calculate order and is at this point i get an error: Transitioned - Main:Calculate_order_4 Executing Calculate and display the total price of a user's order.... Error Occured Transitioned - Error:On_Error Transitioned - Error:Handler https://cdn.discordapp.com/attachments/1227623560596553798/1227648364057858119/1.png?ex=66292ba2&is=6616b6a2&hm=72ca26ba532bbea84ad3530a0069c9f8ea17356d696c1a5a1192fe7ea6091acd& https://cdn.discordapp.com/attachments/1227623560596553798/1227648364389204038/2.png?ex=66292ba2&is=6616b6a2&hm=36de079e02db0d36f446e3b7b753bc77e584d84a87b7f13d4883a2d64040311c& https://cdn.discordapp.com/attachments/1227623560596553798/1227648364867489834/3.png?ex=66292ba2&is=6616b6a2&hm=9060fecefc441f257ea6da5116fe3303fcab0a20324843e37a6f9ce896b89fab& https://cdn.discordapp.com/attachments/1227623560596553798/1227648365148377169/4.png?ex=66292ba2&is=6616b6a2&hm=64e8f02caeb2c7f0949a1da6d1b4201e2cbe0fcb79b3534932180217f90391ee& https://cdn.discordapp.com/attachments/1227623560596553798/1227648365441974322/5.png?ex=66292ba2&is=6616b6a2&hm=8dd0780006e3de8a17d8faf701318adf72f383bac14d2571a3db56be35cedca2&
e
Thanks for the info
The error is happening in the "Calculate and display the total...." code
Could you send a screenshot of the code as well?
But the bot is not capturing the price and don't show it to the user
q
make sure that workflow.orderArray is 'Type: Array'
I don't know if that's the issue in your case, sometimes changing those has solved my bot's problems
w
thanks for the answer. i just changed to Object and nothing is recorded. The workflow do n't show any errors but the user can't see how much it cost his order, and what he ordered.
Maybe it is possible to fail something like userOrderPrice....?? / But normally this is set in the code (Assign selected item price) https://cdn.discordapp.com/attachments/1227623560596553798/1227696579473969223/6.png?ex=6629588a&is=6616e38a&hm=5d57a798f3bf49b43046c4bd28e4a934235c56ecbc75999eff0ffdb7c902f9e6&
l
Please export your bot and share to check the issue
w
I have lost my bot, I don't know what happened. I have exported another bot in the same place where I was editing my bot in order to add what was exported to my existing bot and it turns out that my bot has been replaced and I don't know how to recover it
lol
i'm so stupid, i spend a day
l
Lols, you imported a bot on your existing bot code. There is no return. If you have exported the lost bot, import that over, if not, its gone
6 Views