Check licence application status through AI chat
Workflow purpose
This guide demonstrates how to use Proto's AI agent to let applicants check where their licence, permit or type approval application stands – received, under review, awaiting documents, awaiting payment, approved or declined – using their application reference number.
The workflow verifies the applicant, looks the application up in your licensing system and replies with a message written for each stage. If documents are missing, the applicant can upload them in the same chat, and once a licence is issued it can be sent straight to them.
Status enquiries make up a large share of contact with any licensing office, and most can be answered from data your system already holds.
Who can benefit from this guide:
- Communications, energy and financial regulators issuing licences
- Licensing and permits teams answering status enquiries
- Government agencies processing applications for permits or certificates
- Any organisation that issues a reference number when an application is received
Check application status
This workflow verifies the applicant, looks up their application and returns its status 24/7 on web and messaging channels. See how to build an application status workflow.
1. Create a trigger
Start the flow when an applicant asks about an application they’ve already submitted.
- 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. “Application Status”) and add a short description (e.g. “Triggers if user asks about the status or progress of a licence, permit or type approval application they have already submitted.”).
- Add training phrases (e.g. “Check my application”, “What’s the status of my licence”, “Has my type approval been approved”, “Any update on my application”).
2. Collect the application reference and a contact detail
Ask for two details, so only the applicant can see the status.
Add a Send message action:
“I can check the progress of your application. I’ll need your application reference number and the email address on the application.”
Then add an Ask survey action. Action title: Application lookup
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Application reference | application_ref |
Text | Please enter the reference number from your acknowledgement letter or email |
email |
Please provide a valid email address |
Keep Enable skip off for both fields.
3. Look up the application
Fetch the live status from your licensing system.
Add a Send API action:
- HTTP method: GET
- URL endpoint: your licensing system’s lookup endpoint, passing
application_refandemail - Headers: the authorisation key your system requires
- Resulting variable:
application
If applications are held in a database rather than behind an API, use a SQL Query action – available on Enterprise plans – instead, with bind parameters for the reference and email (e.g. WHERE ref = $1 AND email = $2). Both actions branch into Success, Error and Timed out.
Add a Set variable action to store the values the next steps need: application_status, licence_type and last_updated.
4. Reply based on status
Give the applicant a message that fits their stage, not a raw status code.
Add a Branch action with one condition per status:
| Condition | Send message |
|---|---|
application_status == "received" |
“We’ve received your {licence_type} application {application_ref} and it’s in the queue for review.” |
application_status == "under_review" |
“Your {licence_type} application {application_ref} is being reviewed. Last update: {last_updated}.” |
application_status == "awaiting_payment" |
“Your application {application_ref} is waiting for payment of the licence fee. We’ve sent the invoice to {email}.” |
application_status == "awaiting_documents" |
Continues to Step 5 |
application_status == "approved" |
Continues to Step 6 |
application_status == "declined" |
“Your application {application_ref} wasn’t approved. The reasons have been sent to {email}. I can connect you with our licensing team if you have questions.” |
5. Collect missing documents
Let the applicant send what’s missing without starting a new application.
Under the awaiting documents condition, add a Send message that names what’s needed, e.g. “Your application {application_ref} is waiting for: {application.missing_documents}. You can upload them here.”
Then add an Ask survey action. Action title: Missing documents
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Upload documents | uploaded_documents |
Attachment(s) | Please upload a file |
Add a Send API action (HTTP method: POST) that sends application_ref and uploaded_documents to your licensing system, then a Send message confirming they’ve been received.
6. Send the issued licence
Deliver the licence as soon as it’s approved.
Under the approved condition, add a Send message:
“Good news – your {licence_type} application {application_ref} has been approved. Here’s your licence.”
Then add a Send attachment action. File format: Document. Source: Chat script, pointing to the licence file your system returns (e.g. application["licence_url"]).
7. Handle not found and hand over to a live agent
Stop applicants getting stuck, and route questions to your team.
- Under the Else branch, add a Send message (“I couldn’t find an application with that reference and email.”) and a Jump action back to Step 2. Use a Set variable counter and a Branch to hand over after a second failed lookup.
- After each status message, add a Send message with quick reply options: That’s all | Speak to an agent. Under a Message received sub-trigger for Speak to an agent, add a Live agent handoff action assigned to your licensing team, with Live agent availability check turned on.
The live agent sees the full chat in the Inbox, including the reference and status found.
8. Test the flow
Validate every path before going live using the AI agent tester side panel.
- Test one application for each status and check the right message appears.
- Test a valid reference with the wrong email and confirm no details are shown.
- Upload a document on an awaiting documents application and confirm it reaches your licensing system.
- Confirm an approved application sends the right licence file.
- 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.
.png)