Grievance Redress
Anti-Scam Utilities

Match institution names to the official register

Workflow purpose

This guide demonstrates how to use Proto's AI agent to match the name a person types to the correct institution in your official register of licensed or supervised entities.

People rarely use an institution's registered name. They use brand names, abbreviations, local nicknames, the name of a mobile app, or a misspelling. This workflow fetches your register, uses an LLM to find the closest match, and confirms it with the person before continuing. If there's no match, the person is told the institution may not be licensed – an early warning sign of a scam or an illegal lender.

Accurate matching means complaints, enquiries and scam reports are recorded against the right entity, so your reporting and supervision data can be trusted.

Who can benefit from this guide:

  • Financial, communications and insurance regulators keeping a register of licensed entities
  • Consumer protection agencies and ombudsman schemes recording complaints by institution
  • Anti-scam centres checking whether a company is licensed
  • Any organisation that needs free-text names matched to an official list

Match names to the register

This workflow matches colloquial names to your official register and flags unlicensed entities. See how to build a register matching workflow.

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. Prepare your register

Give the AI agent everything it needs to recognise each institution.

For each entity in your register, keep the registered name, a licence or registration number, the licence type and status, and a list of aliases – brand names, abbreviations, app names, former names and common local-language names. Aliases make the biggest difference to matching accuracy, so add new ones whenever case officers spot a name that wasn’t recognised.

Hold the register where your AI agent can read it: a database connected in Database Connections, or an API in your supervision system.

2. Create a trigger, or add to an existing flow

Matching is usually a step inside a larger flow, such as complaints intake or a licence check.

  • To run it on its own, navigate to the Workflows tab in the AI agent settings, click New workflow and select Message received as the Workflow type. Name it (e.g. “Institution Check”) and add training phrases (e.g. “Is this company licensed”, “Check if a lender is registered”, “Is this app legit”).
  • To use it inside another flow, add the steps below to that flow at the point where the institution name is collected.

3. Collect the institution name

Add an Ask survey action. Action title: Institution name

Field Variable Type Invalid reply
What’s the name of the company, bank or app? institution_input Text Please enter the name as you know it

Keep Enable skip off.

4. Fetch the register

Load the entries the LLM will match against.

Add a SQL Query action (or a Send API action to your supervision system) that returns each entity’s registered name, licence number, status and aliases. Resulting variable: register. SQL Query is available on Enterprise plans; on other plans, use Send API.

For large registers, narrow the list first – for example, by sector if the flow already knows it, or with a broad text search on the first few letters of institution_input – so the LLM only compares a manageable shortlist.

5. Match the name with an LLM

Add an LLM Processing action:

  • Model: your preferred model
  • System Prompt: e.g. “You match the name a member of the public uses for a company to an official register. Consider brand names, abbreviations, app names, misspellings and aliases. Only choose an entity from the register provided. Reply only with JSON: {"match": "registered name or none", "licence_number": "…", "confidence": "high" | "low" | "none", "alternatives": ["up to 3 registered names"]}.”
  • Input: Name given: {institution_input}. Register: {_.json_stringify(register)}
  • Temperature: 0, so the same name always gets the same match
  • Resulting variable: match_result

Then add a Set variable action – Variable: match_result, Chat script: _.json_parse(match_result).

6. Confirm the match with the person

Never assume – check before recording anything against an institution.

Add a Branch action:

  • If match_result["confidence"] == "high": Send message – “Do you mean {match_result[“match”]}?“ with quick reply options Yes | No.
  • Else if match_result["confidence"] == "low": Send message listing match_result["alternatives"] and asking which one it is, followed by an Ask survey to capture the choice.
  • Else: continue to Step 7.

When the person confirms, add a Set variable action to store institution_name and licence_number for the rest of the flow, then a Jump action back to the flow that needed them.

7. Warn about unlicensed entities

If no match is found, or the person rejects every suggestion, add a Send message:

“I couldn’t find {institution_input} in our register of licensed institutions. It may trade under a different name, or it may not be licensed. Please don’t share personal details or send money until you’ve checked.”

Add quick reply options: Report it | Try another name | Speak to an agent. Under Report it, add a Jump action to your scam reporting flow. Under Try another name, add a Jump action back to Step 3.

Add a Create ticket action with Auto-apply tags such as unmatched-institution, so your team can review names that weren’t recognised and add them as aliases.

8. Test the flow

Validate every path before going live using the AI agent tester side panel.

  • Test registered names, brand names, abbreviations and app names for several entities.
  • Test common misspellings and local-language names.
  • Test a name close to two entities and confirm both are offered.
  • Test a made-up name and confirm the unlicensed warning appears.
  • Check that the same input always returns the same match.
  • Build and test in an undeployed version – Duplicate the live version first – then Deploy it once every path passes.

Finalise the AI agent deployment by configuring your preferred channels and languages.