https://discord.gg/botpress logo
Skip capture
# 🌎general
i
How can I tell the bot to skip a capture if the user didnt type the to be captured info?
w
What do you mean exactly ?
i
So, I ask the user for his name email and/or phone number.
Now I want the user to type his name and eg only his email and continue the conversation
but right now the capture card for, in this case, the phone number doesnt find a number in the users last message and just waits, but I dont have a question written in it so the user doesnt see anything and thinks the bot just died
I want to tell him to just continue if he doesnt find the phone number or email in the last message the user sent, is that possible?
w
I didn’t understand the whole process , but try to use AI task (give the user last message either event.preview or variables ) and ask for setting a Boolean variable to false if the phone number is not in the user’s last message
Then you can use an expression card to continue to another node
i
thanks I'll give it a try
@wooden-beard-40210 thanks again, I just tried it and it actually works really well
w
Sounds good ! That makes me feel good 😁😂
i
I put this as the task instructions:
Copy code
Extract and store the users name, email and phone number in the respective variables as followed:
their name - user.name
their email-adress - user.email
their phone number - user.telefon

If any information is missing leave the corresponding variable empty.
anything I could formulate better? my first time using AI task
w
That seems good , and if it works it’s great ! So your condition is if one of those variable is empty you jump to another node with an expression card ?
3 Views