Check benefit payment status by voice
Workflow purpose
This guide demonstrates how to use Proto's AI agent to let beneficiaries of a cash transfer or social protection programme check their payment by voice – sending a WhatsApp or Webchat voice message in Urdu, Punjabi, Sindhi or Pashto instead of typing.
The workflow transcribes the voice message, confirms the beneficiary's ID number back to them, looks up their payment in your programme's payment system and replies with the amount, date and collection details. If a payment is missing, smaller than expected or has had money wrongly deducted, the beneficiary can report it in the same conversation and it's logged as a grievance with a reference number.
Many beneficiaries find voice easier than typing, especially in their own language. Letting them speak removes the barrier, and logging grievances in the same conversation means problems at payment points are recorded instead of lost.
Who can benefit from this guide:
- Social protection and cash transfer programmes
- Government agencies paying pensions, stipends or subsidies
- Grievance redress units handling payment complaints
- Development partners funding benefit delivery
Check payment status by voice
This workflow answers payment questions from voice messages and logs payment grievances 24/7. See how to build a voice payment status workflow.
1. Turn on voice for the AI agent
Let the AI agent understand voice messages.
- Open the AI agent’s Voice tab and, under Speech-to-text, turn on Enable speech-to-text recognition. Under Languages, select the languages your beneficiaries speak, e.g. Urdu, Punjabi, Sindhi and Pashto.
- On Webchat, turn on Enable audio messaging in the channel settings, and turn on Large voice recording button so the microphone is easy to find. WhatsApp voice messages are transcribed automatically.
Each voice message is transcribed and handled like a typed message, so the rest of this workflow works for voice and text alike. The AI agent replies in text, in the beneficiary’s language. Live agents see both the audio and the transcript in the Inbox.
2. Create a trigger
Start the flow when a beneficiary asks about a payment.
- 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. “Payment Status”) and add a short description (e.g. “Triggers if user asks about their benefit payment, instalment or cash transfer, including when it will arrive or why it hasn’t.”).
- Add training phrases in the languages people use, in script and in Roman script, e.g. “میری قسط کب آئے گی”, “Meri qist kab aayegi”, “Meri payment nahi aayi”, “When is my next payment”.
If the beneficiary hasn’t chosen a language yet, add a Send message with a quick reply for each language, then a Switch language action, so replies come in that language.
3. Identify the beneficiary and confirm by reading back
Spoken numbers are easy to mishear, so always confirm them.
Add an Ask survey action. Action title: Beneficiary ID
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Please say or type your 13-digit ID card number | id_number |
Text | Please say or type the 13 digits of your ID card number |
Then add a Send message that reads the number back:
“I heard {id_number}. Is that correct?”
Add quick reply options: Yes | No. Under a Message received sub-trigger for No (training phrases: no, wrong, نہیں, nahi), add a Jump action back to the survey.
4. Look up the payment
Add a Send API action:
- HTTP method: GET
- URL endpoint: your programme’s payment system, passing
id_number - Headers: the authorisation key your system requires
- Resulting variable:
payment
Under the Error and Timed out branches, add a Send message apologising and offering to log a callback request.
5. Reply based on payment status
Add a Branch action with one condition per status:
| Condition | Send message |
|---|---|
payment["status"] == "paid" |
“Your payment of Rs {payment[“amount”]} was released on {payment[“paid_date”]}. You can collect it from {payment[“collection_point”]}.“ |
payment["status"] == "scheduled" |
“Your next payment of Rs {payment[“amount”]} is due from {payment[“next_date”]}.“ |
payment["status"] == "on_hold" |
“Your payment is on hold because {payment[“hold_reason”]}. {payment[“next_step”]}“ |
payment["status"] == "not_enrolled" |
“I couldn’t find an active enrolment for this ID card. You can ask me how to register.” |
Keep messages short and simple – they may be read aloud to someone else.
6. Log a payment grievance
After the status message, add a Send message with quick reply options: I didn’t receive it | I received less | Money was deducted | That’s all.
Under a Message received sub-trigger for each problem, add an Ask survey action. Action title: Payment grievance
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Please tell me what happened | grievance_details |
Text | Please describe what happened |
| How much did you receive? | amount_received |
Number | Please say or type the amount in rupees |
| Where did you collect it? | collection_place |
Text | Please name the shop, agent or bank |
Turn Enable skip on for the amount and place, as they don’t apply to a missing payment. The beneficiary can answer each question by voice.
Then add a Create ticket action:
- Subject: e.g. “{grievance_type} – {id_number}”
- Description:
grievance_details,amount_received,collection_placeand the payment details frompayment - Assignee: your grievance redress team
- Auto-apply tags: missing-payment, short-payment or illegal-deduction, so you can see which payment points have problems
Set grievance_type with a Set variable action under each sub-trigger. If grievances are managed in a separate grievance redress system, use a Send API action (HTTP method: POST) instead.
Finish with a Send message giving the reference and what happens next, e.g. “Your complaint is logged. Your reference is {_new_ticket.short_id}. We’ll contact you on this number.”
7. Hand over to a live agent
For anything the AI agent can’t resolve, add a Live agent handoff action assigned to your grievance team, with Live agent availability check turned on. Live agents can play the beneficiary’s voice messages and read the transcripts in the Inbox.
8. Test the flow
Validate every path before going live using the AI agent tester side panel, and test voice on a real phone.
- Send voice messages in each language, including with background noise, and check the transcripts.
- Say an ID number and confirm the read-back catches mistakes.
- Test each payment status and each grievance type, and check tickets reach the right team with the right tags.
- Have someone unfamiliar with the flow try it in their own language.
- 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)