help needed urgently 😭😭

Please how can i go around this logic.. with buildship Am using the WhatsApp bot node and i want a situation were by only registered or authenticated user's on my app can chat with the bot, else if the number isn't registered the bot will notify the user on WhatsApp to go the app and register.. thanks
6 Replies
AI Support
AI Support2w ago
AI Support Bot Information
<@1232585408374771763> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support2w ago
AI Response
It seems there are no specific pre-built nodes or templates available for the exact use case of a WhatsApp bot that interacts only with authenticated or registered users on your app. However, you can build this functionality in BuildShip by designing a workflow with the following logic: 1. User Authentication Check: - Use a node to check if the incoming WhatsApp number is registered in your app's user database. - You might store the user information in a database like Firebase, Supabase, or MongoDB. 2. Conditional Workflow Execution: - If the number is registered or authenticated, proceed with sending the chat messages to the bot. - If not authenticated, respond with a message instructing the user to register on your app. 3. Send Notification: - Use the WhatsApp bot node to send the appropriate message based on the user's authentication status. If you wish to get detailed assistance in building this workflow, please feel free to reach out via the in-app support for more customized help.
BuildShip AI Support
David 🤫😌👈
Should it be in a user collection or different collection in firebase
Luis
Luis2w ago
Hi @David 🤫😌👈, you can store the users information including there number in a users collection. You can check if its the first time there chatting with the bot by looking up the users collection with their phone number. Using a branch node you can then continue the conversation if they are registered otherwise notify them that the first need to register to continue.
David 🤫😌👈
Thank you so much on this.. I will try it out.. By the way does The WhatsApp node "sender number" also the same format of that which would be stored in the collection. Or this doesn't matter?
Luis
Luis5d ago
That's correct. It just needs the full number with country code included.

Did you find this page helpful?