What does it mean to verify users inside a chat assistant?
More and more, users reach services through AI chat assistants. If your company builds its own chatbot or AI assistant, you can use Persona Inquiries to verify users’ identities during a conversation and bring the result back into the chat.
Use it when a user has to prove who they are before the assistant can act. For example, to open an account, view records, book a visit, move money, or get a prescription.
It uses features you may already have: the Embedded Flow SDK, Device Handoff by QR code or short link, App Clip, the native SDKs, and webhooks. You configure Inquiry Templates, Verification Checks, and consent screens the same way you usually do.
For technical setup, read Verify users directly in chat in the developer documentation.
How it works
- Your app decides when to verify. This usually happens at sign-up or right before a sensitive action.
- The user captures their ID and selfie on the device with the best camera. On mobile, users capture with their phone’s camera. On desktop, users select a Device Handoff button at the start of the flow, for example one labeled “Continue on your phone”. The button opens Persona’s handoff screen with a QR code and a link. You do not need to build a QR code. The user submits their information through Persona’s secure flow, and Persona runs the verifications and checks that your organization has defined.
- The result comes back into the conversation. When the user finishes, Persona sends the result to your backend by webhook. Your backend tells the assistant whether the user is verified. If the user moved from a computer to a phone, your backend updates the chat on the computer.
Your backend controls what information the assistant sees. The assistant only needs to know whether the user is verified. Base your verification decision on the backend webhook result, not on events in the user’s browser.
Choose a setup
In the Native Mobile App Flow section of your Inquiry Template settings, Use native mobile app flow controls how phones verify. It applies to every user of that template, so choose one setup per template. Read the native mobile app verification guide for configuration.
| Device | Setting off (browser) | Setting on (native) |
|---|---|---|
| iPhone | Persona in a full browser tab | App Clip (iOS 17.6 or newer) |
| Android | Persona in a full browser tab | The user installs Persona Wallet from Google Play |
| Desktop | Phone handoff with Persona’s QR code or link, or in-page capture if every embedded layer allows camera access | Phone handoff is required |
Set a redirect URL on the hosted flow so users return to the chat after they finish.
If your chat runs in your own mobile app, use the Mobile SDKs for full control inside your iOS or Android app. An App Clip link also works from your app when the native setting is on.
Persona hasn’t validated chat inside a partner’s app. How links open depends on the partner’s app. A built-in browser can block the App Clip or camera access, so test on real devices before launch. A Mobile SDK requires a separate integration that the partner builds. It is not a fallback for a link-based setup.
Limits to plan for
- App Clip branding and completion: The App Clip displays Persona branding and shows “Verification Complete” regardless of the verification result. It cannot return users to the chat automatically. Users must switch back themselves.
- App Clip device requirements: App Clip requires iOS 17.6 or newer. Do not rely on an automatic browser fallback on older iPhones when the native setting is on. Choose the browser setup if you need to support older iPhones.
- Handoff link expiration: Handoff links expire after one hour by default. You can change this duration in your Inquiry Template.
- In-app browsers: Some apps open links in a built-in browser, which can prevent the App Clip from opening or block camera access. Test how the partner’s app opens links before launch.
- Partner apps on Android: Verification depends on whether the partner allows links to open outside its app.
- Nested frames and camera access: A chat window is often an iframe inside another iframe. Every layer must allow camera access, especially on iOS Safari. Use Device Handoff for desktop users, or use in-page capture only when every embedded layer allows camera access.
How do you set it up?
- Decide where your app starts verification, such as new user sign-up or before a sensitive action.
- Choose a setup from the table. In your Inquiry Template’s Capture Methods, turn on handoff for desktop web and mobile web. Mobile web is included because a user can open the chat in an in-app browser on their phone, such as in Slack or Instagram. The camera may not work there, and handoff lets the user switch to a regular browser.
- For the browser setup, keep Use native mobile app flow off in the Native Mobile App Flow section of your Inquiry Template settings. When this setting is on, Persona replaces these screens with its own handoff page. For App Clip, turn the setting on.
- For desktop users, add a Device Handoff button to the first screen of the flow, before any step that uses the camera. The button cannot tell which device the user is on. Label it so users who are already on a phone know to skip it. For example, show “On a computer? Continue on your phone” next to a normal Continue button. The button opens Persona’s handoff screen with the QR code and link.
- Keep phone handoff turned on at the ID step in Capture Methods as a backup. This helps users who choose to continue on the computer.
- Create an Inquiry from your backend, tied to your signed-in user, with the Inquiry Template you already use. Read Creating an Inquiry for the API creation method.
- To confirm that the verified person is your user, send the details you already have, such as name and date of birth, when you create the Inquiry. Then turn on the Inquiry Comparison check and the Account comparison check.
- Follow the guide for your setup. For App Clip, read the native mobile app verification guide. For a Mobile SDK, read the Mobile SDK integration guide. For web handoff, read the Device Handoff component.
- If you load Persona in the chat window, make sure your page’s Permissions-Policy header allows Persona to use the camera.
- You can restrict which sites load your flow through Allowed Domains in the template’s Security settings or the organization Domain Manager. Template-level Allowed Domains override the organization list, so check both. Add each subdomain separately.
- Read the Inlined flow guide and Embedded flow security for web configuration.
- Set up a webhook and subscribe to the Inquiry events for the outcomes your backend acts on. Your backend receives the result however the user finishes.
- When the user finishes on their phone, have your backend check the result and update the chat to tell the assistant whether the user is verified. Use the webhook as the signal, because the completion signal in the page is not guaranteed.
- Handle cancelled and error events, and give the user a way to resume the same Inquiry.
- For hosted flows, send a new one-time link. For embedded flows and the Mobile SDKs, use a session token, because one-time links do not work there.
- If the Inquiry has expired, resume it from your backend before creating a one-time link.
- Start verification from your app’s chat when required. Show the Persona flow or the App Clip link, or start the Mobile SDK flow.
- Test the full flow in sandbox on the actual page where the chat runs. Test every browser and device you support. Check that the App Clip opens, and test both scanning the QR code and tapping the link on real devices.
What to check when it doesn’t work
- Persona doesn’t load in the chat: Check Allowed Domains in both the template’s Security settings and the organization Domain Manager. The template list overrides the organization list. Include every site and subdomain above the chat, and check that your page security settings allow Persona to load. For layout, the inline guide recommends at least 400 pixels of width and 650 pixels of height.
- The camera fails inside the page: Check that every page framing the chat allows Persona camera access through its Permissions-Policy header. If camera access still fails, move capture out of the chat window. Use Device Handoff, or use App Clip when the native setting is on and the iPhone meets its requirements.
- The chat doesn’t update after the user finishes on their phone: Check that your webhook subscribes to the required Inquiry outcome events and reaches your backend. Check that your backend sends the result update to the chat.
- The user gets stuck after cancelling or hitting an error: Check that your page handles cancelled and error events. Give the user a way to resume the existing Inquiry, as described in the setup steps.
- The App Clip doesn’t open: Check that Use native mobile app flow is on and the device runs iOS 17.6 or newer. Check whether the link opens in an app’s built-in browser.
- Android users are asked to install Persona Wallet: This is expected when Use native mobile app flow is on. For a browser-only setup, turn off the setting for the template. For verification inside your own app, use a Mobile SDK.
- The link doesn’t open as expected inside a partner’s app: Test on real devices. Check whether the partner’s built-in browser handles the link and whether the app allows links to open externally.
To learn more or request access, let us know. We're happy to help.