Check whether a provider is licensed through AI chat
Workflow purpose
This guide demonstrates how a regulator can use Proto's AI agent to answer one of the most important questions a consumer can ask: is this provider licensed?
A person types the name of a lender, loan app, insurer, bank or telecoms operator. The AI agent searches your public register, asks the person to choose when several entries could match, and replies with the licence type and status – licensed, suspended or revoked – in plain language. When nothing is found, it gives a careful warning without calling the provider illegal, and offers a way to report it. For licensed providers, it shares the official website and phone number, so people can spot impersonators using a real firm's name.
A check that takes seconds in a chat app is far more likely to happen before someone pays a fee or shares their ID than a search on a regulator's website.
Who can benefit from this guide:
- Central banks and financial regulators licensing banks, lenders and payment providers
- Insurance regulators
- Communications regulators licensing telecoms operators and service providers
- Anti-scam centres and consumer protection agencies
- Ombudsman schemes answering questions about who they cover
Check a provider's licence
This workflow searches your public register and tells people whether a provider is licensed, and how to reach it safely, 24/7. See how to build a licence check workflow.
1. Create a trigger
Start the flow when a person wants to know whether a provider is licensed or legitimate.
- Navigate to the Workflows tab in the AI agent settings.
- Click New workflow and select Message received as the Workflow type.
- Name the trigger (e.g. “Licence Check”) and add a short description (e.g. “Triggers if user asks whether a company, lender, app, insurer or telecoms operator is licensed, registered, legal or legitimate.”).
- Add training phrases (e.g. “Is this lender licensed”, “Is this loan app legal”, “Check if an insurer is registered”, “Is this company real”, “Can I trust this mobile money agent”).
2. Send an opening message
Explain what the check can and can’t tell the person.
Add a Send message action:
“I can check our public register of licensed providers. Tell me the name of the company, and if you have it, its website or app name. The register shows who is licensed by us – it doesn’t cover every company in the country.”
3. Collect the provider’s details
Ask for the name, and anything else that helps tell similar names apart.
Add an Ask survey action. Action title: Provider details
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| What’s the name of the company, lender or app? | provider_input |
Text | Please enter the name as you saw it |
| Its website or app name, if you have it | provider_web |
Text | Please enter a website address or app name |
Keep Enable skip off for the name and turn it on for the website or app name.
4. Search the public register
Find every entry the name could refer to, not just an exact match.
Add a SQL Query action against your register database, set up in Database Connections. SQL Query is available on Enterprise plans; on other plans, put the query behind your own API and use Send API instead. The query is read-only and never takes variables directly – use bind parameters. On PostgreSQL, for example:
SELECT registered_name, trading_name, licence_number, licence_type, status, website, phone FROM register WHERE registered_name ILIKE ‘%’ || $1 || ‘%’ OR trading_name ILIKE ‘%’ || $1 || ‘%’ OR $2 = ANY(websites_and_apps) ORDER BY registered_name LIMIT 3
Set Bind parameters $1 to {provider_input} and $2 to {provider_web}. On MySQL, use %(name)s and %(web)s instead. Resulting variable: provider_matches.
If your register sits behind an API instead, use a Send API action with the same inputs.
A text search catches partial names but not nicknames or misspellings. If people often use names that aren’t in the register, add an LLM matching step here – see match institution names to the official register.
Under the Error and Timed out branches, add a Send message with a link to the register on your website, so the person can still check.
5. Handle several possible matches
Never guess between two similar names – a scammer may have chosen a name close to a licensed firm’s.
Add a Branch action:
| Condition | Next step |
|---|---|
_.len(provider_matches) == 0 |
Continue to Step 7 |
_.len(provider_matches) == 1 |
Set variable provider to provider_matches[0], then continue to Step 6 |
| Else | Ask the person to choose, as below |
Under Else, add a Send message listing the matches:
“I found more than one provider with a similar name:
- {provider_matches[0][“registered_name”]} (trading as {provider_matches[0][“trading_name”]})
- {provider_matches[1][“registered_name”]} (trading as {provider_matches[1][“trading_name”]})
- {provider_matches[2][“registered_name”]} (trading as {provider_matches[2][“trading_name”]}) Which one do you mean?“
Add quick reply options: 1 | 2 | 3 | None of these. Use a second, two-line version of this message when the query returns exactly two matches. Under each number, add a Message received sub-trigger and a Set variable action to store the chosen entry as provider, then continue to Step 6. Under None of these, continue to Step 7.
6. Reply with the licence status
Explain what each status means for the person, not just the label on the register.
Add a Branch action on provider["status"]:
| Condition | Send message |
|---|---|
provider["status"] == "licensed" |
“{provider[“registered_name”]} holds a {provider[“licence_type”]} licence, number {provider[“licence_number”]}, and is licensed to operate.“ |
provider["status"] == "suspended" |
“{provider[“registered_name”]}’s {provider[“licence_type”]} licence is currently suspended. It may not take on new customers while the suspension lasts. If you already have an account or policy, your existing rights still apply.“ |
provider["status"] == "revoked" |
“{provider[“registered_name”]}’s licence has been revoked. It is no longer permitted to offer {provider[“licence_type”]} services. Please don’t sign up or make payments to it.“ |
| Else | “{provider[“registered_name”]} is on our register, but its status needs checking by our team.“ Then a Live agent handoff action. |
After a licensed reply, add quick reply options: Check contact details | Check another provider | That’s all. After suspended or revoked, offer Report it | Speak to an agent.
Under Check another provider, add a Jump action back to Step 3.
7. Warn carefully when nothing is found
“Not on the register” doesn’t mean “illegal”. The provider may be licensed by another authority, trade under a different name, or not need a licence for what it does. The message has to protect the person without accusing anyone.
Add a Send message:
“I couldn’t find {provider_input} on our register. That doesn’t necessarily mean it’s operating illegally – it may use a different registered name, or be licensed by another authority. But until you can confirm it’s licensed, please don’t pay any fees upfront, share your ID or PIN, or install apps it sends you.”
Add quick reply options: Try another name | Report it | Speak to an agent.
- Under Try another name, add a Jump action back to Step 3. Use a Set variable action to count attempts, so the person is offered Speak to an agent rather than a third retry.
- Under Report it, add a Jump action to your workflow for reporting unlicensed operators, so the details already collected carry over.
- Under Speak to an agent, add a Live agent handoff action with Live agent availability check turned on.
If several authorities share your platform and the provider may fall under one of them, see route complaints to the right regulator by mandate for handing the person over.
8. Help people verify contact details
Scammers often use a licensed firm’s real name with their own phone number, website or social media page. A licence check isn’t complete until the person knows how to reach the real provider.
Under Check contact details, add a Send message:
“These are the official contact details we hold for {provider[“registered_name”]}: Website: {provider[“website”]} Phone: {provider[“phone”]} If someone contacted you from a different number, website or social media page, they may not be from {provider[“registered_name”]}, even if they use its name.“
Add quick reply options: They used different details | That’s all. Under They used different details, add a Jump action to your reporting workflow – an impersonation of a licensed firm is worth reporting even though the firm itself is licensed.
Keep the register’s contact details current – this answer is only as safe as the data behind it.
9. Test the flow
Validate every path before going live using the AI agent tester side panel.
- Build and test in an undeployed version – Duplicate the live version – then Deploy when every path passes.
- Test one provider for each status – licensed, suspended and revoked – and check the licence type and number appear.
- Test a name shared by two or three entries and confirm the person is asked to choose.
- Test a made-up name and confirm the not-found warning never says the provider is illegal.
- Test Check contact details, then They used different details, and confirm the person reaches the reporting flow.
Finalise the AI agent deployment by configuring your preferred channels and languages.
.png)