Manage insurance policies and pay premiums through AI chat
Workflow purpose
This guide demonstrates how to use Proto's AI agent to give policyholders self-service access to their insurance – policy details, cover, contribution history and premium payments – on the messaging channels they already use.
The workflow verifies the policyholder, fetches their policy from your core insurance system and shows it in the chat, including a chart of recent contributions. When a premium is due, the person can pay by mobile money without leaving the conversation: the AI agent requests the payment, the person approves it on their phone, and the payment is confirmed in the chat.
Policy queries and missed premiums are among the highest-volume contacts for insurers, especially where many customers pay by mobile money rather than by debit order.
Who can benefit from this guide:
- Life, funeral and health insurers
- Microinsurance and mobile insurance providers
- Pension and provident funds with member contributions
- Brokers and bancassurance partners serving policyholders
Policy self-service
This workflow lets policyholders check their policy, view contributions and pay premiums 24/7. See how to build a policy self-service workflow.
1. Create a trigger
Start the flow when a policyholder asks about their policy or wants to pay.
- 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. “Policy Self-Service”) and add a short description (e.g. “Triggers if user asks about their insurance policy, cover, premiums or contributions, or wants to pay a premium.”).
- Add training phrases (e.g. “Check my policy”, “How much have I paid”, “Pay my premium”, “Is my policy active”, “My premium is overdue”).
2. Verify the policyholder
Confirm who the person is before showing any policy details.
Add an Ask survey action. Action title: Policyholder verification
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Policy number | policy_number |
Text | Please enter the policy number from your policy schedule |
| ID number | id_number |
Text | Please enter the ID number on your policy |
Keep Enable skip off. Then add a Send API action (HTTP method: GET) that looks up the policy by policy_number and id_number, with the resulting variable policy.
On WhatsApp, you can also match the person’s number with {_channel_profile.phone_number} and skip the survey for policyholders already registered with that number.
3. Offer the self-service options
Let the policyholder choose what they want to do.
Add a Send message action:
“Thanks, {policy[“holder_name”]}. Your {policy[“product_name”]} policy is {policy[“status”]}. What would you like to do?“
Add quick reply options: Policy details | My contributions | Pay a premium | Speak to an agent. Add a Message received sub-trigger for each option.
4. Show policy details
Under the Policy details sub-trigger, add a Send message with the key details from the API response, e.g.:
“Policy {policy_number} – cover: {policy[“cover_amount”]}, monthly premium: {policy[“premium”]}, next due: {policy[“next_due_date”]}, beneficiaries: {policy[“beneficiaries”]}.“
To send the full policy schedule, add a Send attachment action. File format: Document. Source: Chat script, pointing to the schedule file your system returns (e.g. policy["schedule_url"]).
5. Show contribution history
Under the My contributions sub-trigger, add a Send API action (HTTP method: GET) that fetches recent payments into contributions.
Then add a Send graph action:
- Graph type: bar
- Graph title: e.g. “Premiums paid – last 12 months”
- Chart data input: the months and amounts from
contributions - X-axis label: Month. Y-axis label: Amount
Send graph is available on Enterprise plans, and its chart shows only in Webchat and full-screen Webchat. Put it under a Branch with the condition _channel.type == "webchat" or _channel.type == "fullscreen_webchat", and under Else add a Send message listing the amount paid each month instead, for people on WhatsApp and other channels.
Follow it with a Send message summarising the total paid and any missed months.
6. Take a premium payment by mobile money
Under the Pay a premium sub-trigger, collect the payment details.
Add an Ask survey action. Action title: Premium 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 policy_number as the payment reference. Resulting variable: payment_request. The provider sends a prompt to the person’s phone to approve the payment with their PIN – the PIN is never entered in the chat.
Add a Send message:
“I’ve sent a payment request for {amount} to {momo_number}. Please approve it on your phone, then tap I’ve approved it.”
Under a Message received sub-trigger for I’ve approved it, add a Send API action (HTTP method: GET) that checks the payment status, then a Branch:
- If the payment succeeded: Send message confirming the payment and the new next due date, and a Send API that records it against the policy in your core system.
- Else: Send message explaining the payment didn’t go through, with quick reply options to try again or speak to an agent.
7. Hand over to a live agent
Under the Speak to an agent sub-trigger, and after any failed payment, add a Live agent handoff action assigned to your policy servicing team, with Live agent availability check turned on. The live agent sees the full chat in the Inbox, including the policy number and any payment attempt.
8. Test the flow
Validate every path before going live using the AI agent tester side panel.
- Test an active, a lapsed and an unknown policy, and check the right message appears.
- Check the contributions graph shows the right months and amounts.
- Run a test payment in your mobile money provider’s sandbox, including a declined payment.
- Confirm a successful payment is recorded in your core system.
- 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)