https://discord.gg/botpress logo
Recognizing Returning Users in WhatsApp Bot Using ...
# 🤝help
m
Hello, I have a WhatsApp bot built for an online food delivery service. The bot collects essential user information such as name, phone number, and location (using map coordinates) during the ordering process. What I want to achieve is: If a user has interacted with the bot before and submitted this basic information, I want the bot to recognize the user (ideally via their phone number) in future conversations — so the bot won’t ask for their name, number, or location again. Instead, it should directly ask for the new order details like the restaurant name and items to order. Is there a way for the bot to automatically detect returning users via their phone number or any other method to skip repetitive questions and improve the user experience? Thanks in advance!
s
Sure, you just need to store the data of users in crm or a table, and then when someone messages you on whatsapp, you can check based on the phone number 🙂
m
Okey, can i do that without requesting from the user to enter his number, i mean the the bot recognize from whatsapp autmaticlly?
p
Yes you can I shared an example of that in friday's live, just use the tag: event.tags.conversation['whatsapp:userPhone'] to access your user's phone number.
m
Where can i get that vedio?
p