Contact Centres

Verify banking KYC through AI chat

Workflow purpose

This guide demonstrates how to use Proto's platform to run a know-your-customer (KYC) check entirely through AI chat, combining an ID upload with a verification service call. This is the shared verification building block referenced by "Open bank accounts through AI chat" and similar flows, documented here on its own so it can be reused anywhere a KYC check is needed.

Who can benefit from this guide:

  • Banks and e-wallet providers with a recurring KYC requirement
  • Compliance teams needing a consistent, logged verification step
  • Products that need to re-verify an existing customer periodically
  • Any workflow that currently sends customers to a branch just to show ID

Verify banking KYC

This workflow combines an ID photo with a verification service call to confirm identity before a customer proceeds. See how to verify banking KYC through AI chat.

Just starting with the platform?
For initial setup of your AI agent – including workspace setup, agent training, and channel deployment – please start here. This workflow guide assumes your AI agent is set up and ready for more advanced configurations.

1. Create a trigger

Purpose: Start the flow wherever a KYC check is required before continuing.

  • Navigate to the Workflows tab in the AI agent settings.
  • Click New workflow and select Message received as the Workflow type, or insert this as a step inside another flow.
  • Name the trigger “KYC verification”.

2. Ask survey – ID type and number

Purpose: Know what kind of document to expect before it’s uploaded.

  • Add an Ask survey action titled ID details.
  • Field id_type – Quick replies: National ID, Passport, Driver’s licence.
  • Field id_number – Text – What’s the number on your ID?

3. Ask survey – ID photo upload

Purpose: Collect the document itself for extraction and verification.

  • Add an Ask survey action titled ID photo.
  • Field id_photo – Attachment (single file) – Please upload a clear photo of your ID. – Enable skip off.

4. Send API – extract ID data

Purpose: Read the ID rather than relying only on what the customer typed.

  • Add a Send API action (POST) named ID data extraction to your OCR or ID document service, with the uploaded file’s link in the body: {"image_url": "{id_photo["download_url"]}"}. Resulting variable: id_data. LLM Processing only reads text, so it can’t read the photo itself.
  • Success branch: add Set variable actions to keep the fields you need, such as id_name = id_data["full_name"] and id_document_number = id_data["document_number"].

5. Send API – KYC verification

Purpose: Confirm the ID against an authoritative source rather than trusting the upload alone.

  • Add a Send API action to your KYC verification service with {id_type}, {id_number}, and {id_data}. Map the response to verification_result.

6. Branch on the result

Purpose: Confirm a match automatically, and route anything uncertain to a person.

  • Add a Branch action. Condition: verification_result["match"] == true.
  • If true: Send message – “Your identity has been verified.”
  • If false: Live agent handoff to your compliance team, with Live agent availability check on, so a compliance officer sees {id_type}, {id_number} and the uploaded photo in the chat. Under If there is no live agent online, add a Create ticket action assigned to the compliance team, with Attachment(s) set to {id_photo}.

7. Test the flow

Purpose: Confirm the verification is reliable before it gates anything downstream.

  • Test with a genuine ID and confirm it verifies successfully.
  • Test with a mismatched ID number and photo, and confirm the flow escalates rather than passing the check.
  • Test with a blurry photo and confirm the extraction step returns null fields rather than a false match.