Verify personal ID through AI chat
Workflow purpose
This guide demonstrates how to use Proto's platform to verify a person's identity against a national ID registry or similar authoritative source, as a shared building block other workflows can call before releasing sensitive information. Where "Verify banking KYC through AI chat" is specific to financial onboarding, this is the more general version used across government services, healthcare, and any flow that needs to confirm who it's talking to before continuing.
Who can benefit from this guide:
- Government agencies confirming identity before releasing citizen services
- Healthcare providers verifying a patient before sharing medical information
- Any AI agent that currently asks for the same identity details in several separate flows
- Operations teams wanting one consistent verification step to reuse everywhere
Verify personal ID
This workflow checks an ID number against an authoritative registry and returns a simple verified flag other flows can branch on. See how to verify personal ID through AI chat.
1. Create a trigger
Purpose: Make this callable from any flow that needs an identity check.
- Navigate to the Workflows tab in the AI agent settings.
- Click New workflow and select Message received as the Workflow type, or configure this as a Jump target called from other flows.
- Name the trigger “Personal ID verification”.
2. Ask survey – ID number
Purpose: Get the one piece of information the registry lookup actually needs.
- Add an Ask survey action titled
ID confirmation. - Field
id_number– Text – Please confirm your national ID number. – Enable skip off.
3. Send API – registry lookup
Purpose: Check against the authoritative source rather than trusting the number alone.
- Add a Send API action to the national ID registry with
{id_number}. Map the response toregistry_match.
4. Branch on the match
Purpose: Return a clear result the next step can act on.
- Add a Branch action. Condition:
registry_match["found"] == true. - If true: Set variable –
verified = true– then add a Jump to the action that should run next. A Jump always goes to one fixed workflow or action, so if several flows use this check, have each setreturn_tobefore jumping here, and add a Branch onreturn_towith one Jump per flow. - If false: Send message – “We couldn’t verify that ID number. Please check it and try again, or reply 1 to speak with an agent.”
5. Test the flow
Purpose: Confirm the flag is set correctly before other flows rely on it.
- Test with a valid ID number and confirm
verifiedis set totrueand the Jump continues to the right action. - Test with an invalid number and confirm the flow doesn’t proceed past the verification gate.
- Test the escalation path to confirm a person can still get help if the registry lookup keeps failing.
.png)