Onboarding workflow
# 🤝help
m
Hello, I am new to botpress and i need assistance with a task. I want to create an onboarding workflow that checks if user phone number exist on our database, if number does not exist, get some user informations like the name, phone number, email etc. pass the informations through an API endpoint to create the user account on our backend, get a response from the backend after the account is created and output it to the user. else if number exist, the bot should listen for the user input then respond to it in accordance. please, your assistance and suggestions is greatly appreciated.
b
It depends: is it a large amount of phone numbers? If it's not, you could use a condition card like: event.payload.text.toLowerCase().includes('PHONE_NUMBER_1_HERE') || event.payload.text.toLowerCase().includes('PHONE_NUMBER_2_HERE') || event.payload.text.toLowerCase().includes('PHONE_NUMBER_3_HERE')
It's probably possible with a code card also