When using Conversational Forms inside your agent, validation is often required to ensure the information users submit is correct and usable.
By default, Agentic Botsify’s AI will handle most validations for you — for example, if a user is supposed to enter an email, phone number, or date, the agent can recognize and validate it automatically.
But sometimes, you may want custom validation rules connected to your own systems. That’s where external API validation comes in.
Why Use External Validation?
- Business-specific checks: For example, making sure a coupon code exists in your system.
- Database lookups: Verify a customer ID, booking number, or order reference.
- Custom rules: Enforce formats or logic specific to your workflows.
How It Works
- Define the form field in your conversational form.
- In the field validation settings, connect your API endpoint.
- When the user submits input for that field, the agent sends the data to your API.
- Your API should return:
- true → If the field input is valid.
- false → If the input is invalid.
The agent will then proceed or re-prompt the user based on the response.
Example Use Case
Suppose you’re collecting a membership ID:
- User enters ID: 12345
- Agent sends it to your validation API → https://api.example.com/validate-id
- Your API checks against your database.
- Returns true if ID exists, false if not.
- The agent automatically handles the flow (asking again if invalid, moving forward if valid).
Benefits of API Validation
- Ensures real-time accuracy.
- Prevents invalid or fake data submissions.
- Gives your agent access to your live business logic and systems.
✅ Pro Tip:
Use external validation for critical data (like IDs, bookings, or payments), and let AI handle simpler fields (like name or email) to keep forms smooth and user-friendly.
Comments
0 comments
Please sign in to leave a comment.