Handle vehicle licence renewal enquiries

Workflow purpose

This guide demonstrates how a transport or licensing authority can use Proto's AI agent to answer vehicle licence renewal enquiries – when a licence disc expires, what it costs to renew, and whether anything stands in the way – without a visit or a phone queue.

The AI agent looks up the vehicle by its registration number in your vehicle register, then replies based on what it finds: outstanding fines that block renewal, a roadworthiness test that's due, or a licence that's ready to renew, with the fee and a renewal link from your own system. A second path handles driving licence renewals, and replacing a lost or damaged disc. Changes of ownership, which need document checks, go to a live agent.

Renewal questions peak at the end of every month and every licensing period. Answering them in chat keeps offices free for the people who have to come in.

Who can benefit from this guide:

  • Transport departments and vehicle licensing authorities
  • Municipal and provincial licensing offices
  • Road traffic agencies managing fines and roadworthiness testing
  • Government contact centres answering motorists' questions
  • Digital government teams moving renewals online

Handle vehicle licence renewals

This workflow checks each vehicle's licence status, explains what blocks renewal and sends people to the right next step 24/7. See how to build a vehicle licence renewal 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. Create a trigger

Start the flow when a motorist asks about renewing a vehicle or driving licence.

  • 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. “Vehicle Licence Renewal”) and add a short description (e.g. “Triggers if user asks about renewing, replacing or checking the expiry of a vehicle licence disc, registration or driving licence.”).
  • Add training phrases (e.g. “Renew my licence disc”, “When does my car licence expire”, “My licence disc is expired”, “Renew my driving licence”, “I lost my licence disc”, “Transfer my car to a new owner”).

2. Ask what the person needs

Licence questions cover several tasks, so let the person choose before asking for anything.

Add a Send message action:

“I can help with vehicle and driving licences. What would you like to do?”

Add quick reply options: Renew vehicle licence | Renew driving licence | Lost or damaged disc | Change of ownership.

Under each option, add a Message received sub-trigger with a few training phrases, so a typed reply such as “my disc was stolen” still reaches the right path. Under Renew driving licence, add a Jump action to Step 7; under Lost or damaged disc, to Step 8; under Change of ownership, to Step 9. Renew vehicle licence continues to Step 3.

3. Collect the registration number

Ask for the registration number and one detail that confirms the person is the registered owner, so fines and personal details are only shown to them.

Add an Ask survey action. Action title: Vehicle lookup

Field Variable Type Invalid reply
Vehicle registration number (as shown on the number plate) registration_number Text Please enter the registration number without spaces
Last four digits of the registered owner’s ID number owner_id_last4 Text Please enter the last four digits of the ID number

Keep Enable skip off for both fields. If people often send a photo of their disc, add a note to the first question asking them to type the number instead – the AI agent can’t read it from an image.

4. Look up the vehicle

Fetch the licence record from your vehicle register.

Add a Send API action:

  • HTTP method: GET
  • URL endpoint: your vehicle register’s lookup endpoint, passing registration_number and owner_id_last4
  • Headers: the authorisation key your system requires
  • Resulting variable: vehicle

Have the endpoint return the values the next step branches on: whether the record was found, the licence expiry date, the number of days until expiry, the total of any outstanding fines that block renewal, whether a roadworthiness test is due, the renewal fee including any late penalty, and a personal renewal link from your online licensing service.

If the register is held in a database, use a SQL Query action – available on Enterprise plans – against a connection in Database Connections instead – a read-only query with Bind parameters, e.g. SELECT expiry_date, fines_due, roadworthy_due, renewal_fee FROM vehicles WHERE reg_no = $1 AND owner_id_last4 = $2 on PostgreSQL.

Then add a Set variable action to store expiry_date, days_to_expiry, fines_due, roadworthy_due, renewal_fee and renewal_link.

Under the Error and Timed out branches, add a Send message – “I can’t reach the vehicle register right now. Please try again shortly, or visit any licensing office with your registration number.” – followed by quick replies Try again | Speak to an agent.

5. Branch on the lookup result

Check what stands in the way before talking about fees. The order matters – a vehicle with outstanding fines can’t be renewed even if everything else is in order.

Add a Branch action:

Condition Send message
vehicle["found"] == false “I couldn’t find a vehicle with registration {registration_number} and those ID digits. Please check both and try again.” Then a Jump action back to Step 3.
fines_due > 0 “Your licence expires on {expiry_date}, but there are outstanding fines of {fines_due} on this vehicle. These must be paid or settled before the licence can be renewed.” Continues to Step 6.
roadworthy_due == true “Your vehicle is due for a roadworthiness test. The licence can be renewed once a test centre has recorded a pass.” Continues to Step 6.
days_to_expiry > 90 “Your licence is valid until {expiry_date}. You can renew from 90 days before that date.”
Else Continues below.

Use your own renewal window in place of 90 days. To stop the not-found path looping, count attempts with a Set variable action and send the person to Step 9 after a second failed lookup.

Under Else, the licence is ready to renew. Add a Send message:

“Your licence for {registration_number} expires on {expiry_date}. The renewal fee is {renewal_fee}. You can renew online here: {renewal_link}. You’ll need your ID and proof of address if your details have changed.”

Add quick reply options: Renew at an office instead | What do I need to bring? | That’s all.

Proto doesn’t take payments in chat – the renewal link comes from your own licensing system, which handles payment and issues the disc. Under Renew at an office instead and What do I need to bring?, let the AI agent answer from its knowledge base: add your office list, opening hours, required documents and fee schedule as training sources, so these answers stay current without editing the flow.

6. Explain what’s blocking renewal

Turn a refusal into a clear next step.

Under the fines and roadworthiness branches, add a Send message with quick reply options that fit each case:

  • Fines: How do I pay fines? | I dispute a fine | Speak to an agent. Answer How do I pay fines? from the knowledge base, or with a payment link returned by your fines system through a Send API action. Under I dispute a fine, add a Jump action to Step 9 – disputes need a person.
  • Roadworthiness: Find a test centre | I’ve already passed | Speak to an agent. Answer Find a test centre from the knowledge base. Under I’ve already passed, add a Send message explaining that test results can take a few working days to reach the register, then offer the lookup again.

7. Renew a driving licence

Handle driving licences as a separate path, because they’re tied to a person, not a vehicle.

Add an Ask survey action. Action title: Driving licence lookup

Field Variable Type Invalid reply
Driving licence number driving_licence_number Text Please enter the number shown on your licence card
Date of birth (DD/MM/YYYY) date_of_birth Text Please enter your date of birth as DD/MM/YYYY

Add a Send API action to your driver register, passing both values. Resulting variable: driver. Then add a Branch action:

  • If the licence is still valid and outside the renewal window: Send message with the expiry date and when renewal opens.
  • Else if it has expired for longer than your rules allow: Send message explaining that the person may need to retake a test, with a quick reply Speak to an agent.
  • Else: Send message listing what to bring – ID, recent photos, the old licence card – and that an eye test is done at the office. If your offices take bookings, add a Jump action to your appointment flow – see book a government service appointment through AI chat.

8. Replace a lost or damaged disc

Stolen discs need an extra step, so ask how it was lost.

Add a Send message – “What happened to your disc?” – with quick reply options: Lost | Stolen | Damaged.

  • Under Stolen, add an Ask survey with a field for the police case number (variable police_case_number, Text), and explain that a stolen disc can only be replaced with a case number.
  • Under Damaged, add an Ask survey with an Attachment field for a photo of the damaged disc (variable damaged_disc_photo), with Enable skip on.
  • Then, for every option, collect the registration number and ID digits as in Step 3, add a Send API action to your duplicate disc service, and send the replacement fee with a link to apply online – or the documents to bring to an office.

9. Hand ownership changes to a live agent

Changes of ownership, fine disputes and anything the AI agent can’t settle need document checks by your staff.

Add a Send message:

“Changes of ownership need our team to check the documents from both the seller and the buyer. I’m connecting you to a live agent now.”

Add a Live agent handoff action, assigned to your licensing team, with Live agent availability check turned on. Under If there is no live agent online, add a Create ticket action:

  • Assignee: your licensing team
  • Subject: Licence enquiry – {registration_number}
  • Description: the option the person chose and any lookup results already found
  • Full name and Email: collected with a short Ask survey first
  • Auto-apply tags: vehicle-licence, plus ownership-change or fine-dispute

Then tell the person when to expect a reply. The live agent sees the whole chat in the Inbox, including the registration number and lookup results, so the person doesn’t have to repeat them.

10. 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 vehicle for each lookup result: not found, fines due, roadworthiness test due, outside the renewal window and ready to renew.
  • Test a vehicle with both fines and a test due, and confirm the fines message comes first.
  • Test a driving licence that has expired beyond your limit and confirm the retest message appears.
  • Test Stolen without a case number, then Change of ownership with no live agent online, and confirm a ticket is created.

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