Report a SIM swap through AI chat
Workflow purpose
This guide demonstrates how to use Proto's AI agent to handle a suspected SIM swap – when a fraudster has moved a person's phone number to a SIM card they control, usually to receive one-time codes and empty mobile money or bank accounts.
Every minute counts. The workflow recognises the warning signs, verifies the person by their ID and account details rather than the phone number that's been taken, freezes the line through the operator's API, and flags the number to partner banks and mobile money providers. A priority ticket is opened and the person is handed to a live agent straight away, with everything already done listed in the chat.
The workflow is built for a person who can't use their own phone. They'll usually be writing from a relative's WhatsApp or from Webchat on another device, so nothing in it assumes the chat comes from the affected number.
Who can benefit from this guide:
- Mobile network operators handling SIM swap fraud
- Mobile money providers protecting wallets linked to a phone number
- Banks that send one-time codes by SMS
- National anti-scam centres coordinating operators and banks
- Fraud teams who need a complete, verified case at the first contact
Report a SIM swap
This workflow verifies the person, freezes the affected line, alerts partner banks and hands over to a live agent within minutes. See how to build a SIM swap workflow.
1. Create a trigger
Start the flow when a person describes the signs of a SIM swap, even if they don’t use the term.
- 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. “SIM Swap Report”) and add a short description (e.g. “Triggers if user reports a SIM swap, says their phone suddenly has no signal or service, received an unexpected message that their SIM was changed or replaced, or can’t log in to mobile money or banking that uses their phone number.”).
- Add training phrases (e.g. “My SIM was swapped”, “My phone has no network suddenly”, “I got a message saying my SIM was replaced”, “I can’t receive my OTP”, “Someone took my number”).
Many people won’t know the term SIM swap, so the description lists the symptoms instead.
2. Confirm the signs and set the pace
Check quickly that this is a likely SIM swap, without slowing down someone who’s sure.
Add a Send message action with quick replies:
“I’m sorry – if someone has taken over your number, we need to act quickly. Which of these has happened?”
Quick replies: No signal suddenly | Got a “SIM changed” message | Can’t log in to mobile money or banking | More than one of these | Not sure
Add a Set variable action: swap_signs = {_user_input}.
Under a Message received sub-trigger for Not sure, add a Send message explaining the difference: “If your phone shows no service but other people on the same network have signal, and you haven’t asked for a new SIM, it may be a SIM swap. Let’s check it anyway – it takes two minutes.” Then continue. Never turn someone away here – a false alarm costs minutes, a missed SIM swap can cost savings.
3. Collect details that don’t depend on the stolen number
Verify the person by what they know, not by the phone number someone else now controls.
Add a Send message:
“You’re probably writing from another phone or a computer – that’s fine. I’ll ask for the affected number and your ID, and a number we can reach you on now.”
Add an Ask survey action. Action title: SIM swap details
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| The phone number that stopped working | affected_number |
Phone | Please enter the full number, including the country code |
| Your ID number | id_number |
Text | Please enter the ID number your SIM is registered with |
| Your full name, as registered | full_name |
Text | Please enter your full name |
| Your date of birth | date_of_birth |
Text | Please enter your date of birth, e.g. 14 March 1985 |
| A number we can reach you on now | contact_number |
Phone | Please enter a number that’s working right now |
| Your email address | email |
Please provide a valid email address |
Turn on Enable skip for the email field only.
On WhatsApp, the AI agent also sees the number the person is writing from in {_channel_profile.phone_number}. Don’t use it to verify anyone. If it matches affected_number, the chat could be from the person, still connected on Wi-Fi – or from the fraudster. Add a Branch that sets same_number = Yes in that case, so it’s flagged for the fraud team in Step 7, but treat the identity check in Step 4 as the only test either way.
4. Verify the person with the operator
Check the details against the SIM registration record before anything is changed on the line.
Add a Send API action:
- HTTP method: POST
- URL endpoint: your operator’s subscriber verification endpoint
- Headers: the authorisation key your system requires
- Body:
affected_number,id_number,full_nameanddate_of_birth - Resulting variable:
verify_response
On Success, add a Set variable action: verify_response = _.json_parse(verify_response). Then add a Branch:
| Condition | Next |
|---|---|
verify_response["match"] == true |
Continue to Step 5 |
| Else, first attempt | Send message: “Those details don’t match our records for {affected_number}. Please check your ID number and date of birth and try again.” Then a Jump back to Step 3 |
| Else, second attempt | Jump to Step 7 without freezing the line, with verification_failed set to Yes |
Count attempts with a Set variable action. Under Error and Timed out, skip the automated freeze and jump straight to Step 7 – a live agent can verify and freeze by hand. Unverified requests go to a person, not to an automated freeze: anyone can type a stranger’s number, and a freeze on the wrong line cuts off an innocent customer.
5. Check for a recent SIM change
Confirm what’s happened, so the fraud team knows how urgent the case is.
Add a Send API action with GET to your operator’s SIM history endpoint, passing affected_number. Store the result in sim_history and use a Set variable action to save last_sim_change and change_channel (e.g. store, agent, online).
Add a Branch:
- If the SIM was changed in the last 72 hours and the person didn’t ask for it, set
swap_confirmed = Yesand continue to Step 6. - If there’s no recent change, send: “I can’t see a SIM change on your number, so this may be a network fault. To be safe, I’ll still pass this to our team now.” Then jump to Step 7, without freezing the line.
6. Freeze the line and alert partner banks
Cut the fraudster off and warn the services they’re most likely to target.
Add a Send API action with POST to your operator’s line suspension endpoint, passing affected_number, verify_response["subscriber_id"] and the reason suspected SIM swap. Store the result as freeze_response, and use a Set variable action to set freeze_status to done on Success or failed under Error and Timed out.
Then add a second Send API action with POST to the endpoint your operator or anti-scam centre uses to share fraud alerts with partner banks and mobile money providers, passing affected_number and last_sim_change. Store the result as flag_response, and set flag_status the same way.
If the freeze fails, don’t stop – continue to Step 7 with freeze_status set to failed, so the ticket and the live agent both show that the line is still active.
When freeze_status is done, add a Send message:
“Your number {affected_number} has been suspended, so it can’t receive calls, messages or codes. We’ve alerted partner banks and mobile money providers to watch for activity on it.”
7. Open a priority ticket
Give the fraud team a complete case they can work from immediately.
Add a Create ticket action:
- Assignee: your fraud or SIM swap team
- Subject: SIM swap – {affected_number}
- Description: the signs reported, the verification result, last SIM change and how it was done, freeze and partner alert status, the contact number and, if set, the same number flag from Step 3
- Full name:
{full_name}; Email:{email}; Phone number:{contact_number}– never the affected number - Auto-apply tags: sim-swap, priority-urgent, and freeze-done, freeze-failed or verification-failed
- Custom fields: affected number, freeze status and verification result, so the team can filter for cases where the line is still active
- Email template: a confirmation to the person with the reference, when an email was given
Add a Set variable action to store {_new_ticket.short_id} as case_reference.
The teamspace’s overdue rule in Settings › Tickets › Overdue rules applies to every ticket and counts in whole days, so it’s a backstop rather than the SIM swap clock. Use Reassign ticket to live agent to move overdue tickets to the fraud team lead, so a SIM swap case that’s somehow been missed still reaches someone. For speed in the first hour, the fraud team should keep an Inbox view filtered on the priority-urgent tag open.
8. Tell the person what to do next
Give them the steps only they can take, before a live agent joins.
Add a Send message action:
“Your reference is {case_reference}. While you wait: 1) Use another device to change your mobile money and banking passwords. 2) Call your bank and ask them to check for transfers since the SIM changed. 3) Ignore any message that seems to come from your own number. 4) To get your number back, visit one of our stores with your original ID – we’ll issue a new SIM to you.”
If money has already left an account, add a quick reply, Money was taken, with a Jump to scam report intake, so the loss can move into track-and-trace to freeze funds. For an AI agent run by a bank, also offer a Jump to the lost or stolen card workflow.
9. Hand over to a live agent immediately
Put a person on the case while the trail is fresh.
Add a Send message: “I’m passing you to our fraud team now. They can see everything you’ve told me.” Then add a Live agent handoff action to the fraud team, with Live agent availability check on.
Under If there is no live agent online, add a Send message:
“Our fraud team is offline right now. Your case {case_reference} is marked urgent and they’ll call you on {contact_number} as soon as they’re back. If your line isn’t suspended yet, call our 24-hour fraud number from another phone.”
The live agent sees the whole chat in the Inbox, with the verification, freeze and partner alert results, and replies from there. If the freeze failed or wasn’t attempted, their first job is to verify the person and suspend the line by hand.
10. Test the flow
Validate every path before going live using the AI agent tester side panel.
- Report a SIM swap with matching test details and a recent SIM change – confirm the freeze, partner alert, ticket tags and handoff all run.
- Enter the wrong date of birth twice and confirm no freeze happens and the ticket is tagged verification-failed.
- Make the freeze API fail and confirm the person isn’t told their line is suspended, and the ticket is tagged freeze-failed.
- Test with no recent SIM change and with no live agent online, and check both messages.
- Build and test in an undeployed version – Duplicate the live version first – then click Deploy when every path passes.
Finalise the AI agent deployment by configuring your preferred channels and languages.
.png)