Anti-Scam Utilities

Warn people about current scams through AI chat

Workflow purpose

This guide demonstrates how to use Proto's AI agent to run a scam awareness service – answering "What scams are going around?" with the warnings your fraud team has published this week, not last year's advice.

The answers come from a knowledge base the fraud team updates every week. People choose a topic – mobile money, jobs, investment, romance or impersonation of officials – and get a short, current warning they can forward to family. A three-question quiz helps older people and those new to mobile money practise spotting a scam, and voice notes make the service usable for people who don't read easily. Visitors to your website's scam pages are greeted with a proactive message on Webchat.

Awareness is the step before checking and reporting, so every answer ends with a way to check a suspicious number or link or report a scam.

Who can benefit from this guide:

  • National anti-scam centres and central banks running public awareness campaigns
  • Banks and mobile money providers warning customers about current fraud
  • Telecoms operators tackling scam calls and messages on their network
  • Consumer protection and police agencies publishing scam alerts
  • Any organisation whose customers are targeted by impersonation scams

Warn people about current scams

This workflow answers questions about current scams from a weekly-updated knowledge base, with a quiz and a report path. See how to build a scam awareness 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 person asks what scams to look out for.

  • 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. “Scam Awareness”) and add a short description (e.g. “Triggers if user asks which scams are going around, wants to learn how to recognise scams, or asks for safety tips. Not for checking a specific number or reporting a scam.”).
  • Add training phrases (e.g. “What scams are going around”, “Any new scams”, “How do I avoid fraud”, “Tips to stay safe from scammers”, “Warn me about scams”).

The last sentence of the description keeps this workflow apart from scam checks and reports, which need a different flow.

2. Build a knowledge base the fraud team owns

Keep the content in one place that people outside the AI agent’s builders can update every week.

Open the AI agent’s Knowledge tab and go to Knowledge base:

  • Paste snippet – one snippet per current scam, written by the fraud team. Use the same headings each time: Scam name, Topic, Date added, How it works, Warning signs, What to do. A snippet per scam makes it easy to retire one when it dies out.
  • Add URL – your public scam alerts page, so published warnings and the AI agent always match. Use Excluded pages to leave out archived alerts.

Turn on Large language model under Personalization on the Agent tab, so the AI agent can answer from this content.

Agree a weekly routine: the fraud team adds new scams, updates the Date added, and deletes snippets for scams that are no longer active. Old warnings left in place crowd out the ones that matter.

3. Let people choose a topic

Point people at the scams most likely to reach them, rather than everything at once.

Add a Send message action with quick replies:

“Here are the scams we’re seeing most right now. Which would you like to know about?”

Quick replies: Mobile money | Job offers | Investment | Romance | Someone pretending to be an official | What’s new this week

Add a Set variable action: scam_topic = {_user_input}. People who type a question instead – “is the lottery message real?” – still reach the next step, because the topic is whatever they wrote.

4. Answer from the knowledge base

Give a short, current answer in plain words.

Add an LLM Processing action:

  • Input: Topic: {scam_topic}
  • Use Knowledge info to provide more context: on
  • System prompt: “You warn the public about scams. Answer only from the knowledge base. For the chosen topic, describe up to two current scams: how each one works and the warning signs, in short sentences. Mention when each was added. If the knowledge base has nothing on the topic, say so and give the three general rules: never share a PIN or code, don’t pay to receive money, and check before you trust. Never invent scams, phone numbers or amounts. Keep the reply under 120 words.”
  • Resulting variable: scam_warning

Add a Send message: {scam_warning}

5. Make the advice easy to share

Most scam awareness spreads person to person – give people something they can forward.

Add a Send message with quick replies: Share this | Another topic | Take the quiz | Check a number.

Under a Message received sub-trigger for Share this, add a second LLM Processing action with input {scam_warning} and a system prompt that rewrites it as a forwardable message of no more than 50 words, starting “Scam warning from [your organisation]:” and ending with your official website or helpline. Send it on its own in a Send message, followed by:

“Copy the message above and forward it to family and friends – especially anyone who’s new to mobile money.”

6. Offer a short quiz

Help older people and those new to mobile money practise before a real scam reaches them.

Under the Take the quiz sub-trigger, add a Set variable action: quiz_score = 0. Then add three questions, each a Send message with quick replies, for example:

Question Quick replies Right answer
“A caller says he’s from your bank and asks for the code we just sent you. What do you do?” Give the code · Hang up Hang up
“You’ve won a prize you didn’t enter. To collect it, you must pay a small fee. Is this real?” Real · Scam Scam
“Someone sends money ‘by mistake’ and asks you to send it back to a different number. What do you do?” Send it back · Contact my provider Contact my provider

After each answer, add a Branch: if correct, a Set variable action adds 1 to quiz_score and a Send message says why it’s right; if not, a Send message explains the warning sign gently – “Not quite. Your bank will never ask for a code.” End with a Branch on quiz_score: 3 gets a congratulation and the Share this option; below 3 gets a link to your scam alerts page and an offer to try again.

Draw the questions from scams in the knowledge base, and change them when the fraud team retires a scam.

7. Support voice notes for low-literacy audiences

Let people ask by voice, and keep replies easy to listen to.

On the AI agent’s Voice tab, turn on speech-to-text and choose the languages your audience speaks. Voice messages on WhatsApp and Webchat are transcribed and handled as if they had been typed, so the triggers and LLM Processing steps above work without changes.

With text-to-speech on, the AI agent replies to a voice message with a voice note – in Kinyarwanda and Oshiwambo with Proto’s own voice models, in other languages with a general-purpose voice. Replies are still read from text, so keep the system prompts in Steps 4 and 5 asking for short sentences and no lists – they read more easily for people with low literacy too. Use a Switch language action when a person chooses a different language from a quick reply.

8. Greet visitors on your website’s scam pages

Reach people at the moment they’re reading about scams.

Proactive messages are set on the Webchat channel, not in the workflow. Open the Webchat channel’s Proactive messages tab and click Create proactive message:

  • Enable proactive message: on
  • Triggers – under Webpage, add a URL rule for each of your scam pages (e.g. your scam alerts page and your fraud advice page), and set a Time delay in seconds, e.g. 10, so it appears once the visitor has started reading
  • Messages – up to five, e.g. “Not sure if a message you got is a scam? Ask me about the latest scams or check a number.”
  • Buttons – up to five, each with up to 40 characters: a Jump to trigger button for What’s going around? that opens this workflow, and another for Check a number that opens the scam check workflow

Proactive messages work only on Webchat. WhatsApp broadcasts and outbound campaigns aren’t part of the AI agent, so this workflow can’t push weekly alerts to people on WhatsApp – it answers when they ask.

9. Give every answer a way to act

Move people from learning to doing when they recognise a scam.

Under the Check a number quick reply from Step 5, add a Jump to your scam check workflow. Add one more quick reply, I think I’ve been scammed, with a Jump to scam report intake.

Live agents can tag these chats in the Inbox (e.g. awareness-to-report) to see how often an awareness question turns out to be a live scam.

10. Test the flow

Validate every path before going live using the AI agent tester side panel.

  • Ask about each topic and confirm the answer comes only from the knowledge base and mentions when the scam was added.
  • Delete a test snippet, ask again, and confirm the retired scam no longer appears.
  • Take the quiz with all right answers, then with one wrong, and check the score and explanations.
  • Send a voice message and confirm the transcript reaches the right topic.
  • Build and test in an undeployed version – Duplicate the live version first – then click Deploy when every path passes. Check the proactive message separately on a test page of your website.

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