Municipal services through AI chat
Workflow purpose
This guide demonstrates how to use Proto's AI agent to give residents one place for their most common requests to a town or municipal council: checking their account balance, paying a bill, reporting a water or sewer problem, and asking about land.
The workflow verifies the resident's account and shows the balance from your billing system, takes payment by mobile money, logs faults as tickets for the right maintenance team – with a photo and location – and answers land questions from your published guidance before passing applications to the land office.
Small councils often serve residents with a handful of front-desk staff and limited opening hours. An AI agent on WhatsApp or the council's website answers routine requests at any time, and makes sure faults reach the team that fixes them.
Who can benefit from this guide:
- Town, municipal and city councils
- Local authorities and regional councils
- Water and sanitation utilities
- Land and property offices
Municipal services
This workflow handles account enquiries, bill payments, fault reports and land enquiries 24/7. See how to build a municipal services workflow.
1. Create a trigger
Start the flow when a resident contacts the council.
- 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. “Municipal Services”) and add a short description (e.g. “Triggers if user asks about their municipal account, wants to pay a bill, report a water or sewer problem, or asks about land or plots.”).
- Add training phrases (e.g. “What’s my balance”, “Pay my water bill”, “There’s a burst pipe”, “The sewer is blocked”, “How do I apply for a plot”).
Add a Send message with quick reply options: My account | Pay a bill | Report a fault | Land enquiries, and a Message received sub-trigger for each.
2. Check the account balance
Under the My account and Pay a bill sub-triggers, verify the resident’s account.
Add an Ask survey action. Action title: Account lookup
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Municipal account number | account_number |
Text | Please enter the account number from your bill |
| Erf or stand number | erf_number |
Text | Please enter the erf or stand number on your bill |
Add a Send API action (HTTP method: GET) to your municipal billing system, passing both values. Resulting variable: account. If no account matches, add a Send message and a Jump back to this step.
Then add a Send message:
“Account {account_number}: your balance is {account[“balance”]}, including water {account[“water”]}, refuse {account[“refuse”]} and rates {account[“rates”]}. Payment is due by {account[“due_date”]}.“
To send the latest statement, add a Send attachment action. File format: Document. Source: Chat script, e.g. account["statement_url"].
3. Pay a bill by mobile money
Under the Pay a bill sub-trigger, after the account lookup, add an Ask survey action. Action title: Bill payment
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Mobile money number | momo_number |
Phone | Please enter a valid mobile number |
| Amount | amount |
Number | Please enter the amount to pay |
Add a Send API action (HTTP method: POST) to your mobile money provider’s payment request endpoint, sending momo_number, amount and account_number as the reference. The resident approves the payment on their phone with their PIN, which is never entered in the chat.
Add a Send message asking them to approve it and tap I’ve paid. Under that sub-trigger, add a Send API action to check the payment status and a Branch that confirms the payment, or offers to try again.
4. Report a water or sewer fault
Under the Report a fault sub-trigger, add an Ask survey action. Action title: Fault report
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| What’s the problem? | fault_type |
Text | Please choose one of the options below |
| Where is it? Street, nearby landmark or erf number | fault_location |
Text | Please describe where the problem is |
| Send a photo if you can | fault_photo |
Attachment | Not applicable |
| Phone number for the team to contact you | phone |
Phone | Please enter a valid phone number |
Add Quick answers to the first field: Burst pipe or leak | No water | Blocked or overflowing sewer | Other. Turn Enable skip on for the photo.
Then add a Create ticket action:
- Full name and Email: from the resident’s details, or
{_customer.email}if known - Phone number:
{phone} - Subject: e.g. “{fault_type} – {fault_location}”
- Description:
fault_type,fault_locationand the photo - Assignee: the water and sanitation team
- Auto-apply tags: e.g. water-fault or sewer-fault, so you can see where faults cluster
Add a Send message confirming the report has been logged and when the team aims to respond.
5. Answer land enquiries
Under the Land enquiries sub-trigger, let the AI agent answer from your published guidance.
In the AI agent’s Knowledge base, add your land and planning guidance as a File or URL – how to apply for a plot, transfer fees, building plan approval, zoning and the documents needed. The AI agent answers questions about the process from this content.
For enquiries about a specific application or plot, add a Send message with quick reply options: That answers it | Contact the land office. Under Contact the land office, add a Create ticket action assigned to the land office, with the resident’s question in the description.
6. Hand over to a live agent
After each service, add a Send message with quick reply options: That’s all | Speak to someone. Under a Message received sub-trigger for Speak to someone, add a Live agent handoff action assigned to your customer care team, with Live agent availability check turned on, so residents know when the office will reply.
7. Test the flow
Validate every path before going live using the AI agent tester side panel.
- Look up a test account and check the balance breakdown matches your billing system.
- Run a test payment in your mobile money provider’s sandbox, including a declined payment.
- Report a fault with and without a photo, and confirm a ticket reaches the right team with the right tags.
- Ask common land questions and check the answers against your guidance.
- 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)