Forms are used to collect data from the user in Chatbot. If you are using forms in your bot then you also want that you should not receive wrong data from the user.
if you ask email from the user and the user inputs the wrong email and there is no validation then you would be receiving the wrong data, Botsify provides built in validation of data as well, but if you want to validate your data by yourself so don't worry we also have that option. Here is the process to follow to validate form fields with external API
Step 1
Go to the Create Conversational Form page, and Input the name, label, Prompt Phrase and Input Type of your form.
Step 2
Click on the settings icon on the top right
Step 3
A validation area would be extended
Step 4
Here input your Error message and validation API link, you need to return JSON data in this format {"status" : true} | {"status" : false} from your endpoint, then click on next and save the form.
Comments
0 comments
Please sign in to leave a comment.