Inbound website leads are a double-edged sword. On one hand, they’re a crucial part of your sales funnel. On the other, they can attract a flood of spam, bots, and low-quality submissions that eat up your sales team’s time.
At BigSolve, we recently tackled this exact challenge for a client—and came away with a robust, AI-powered solution that stops spam at the door, letting only legitimate leads flow to the sales team. Here’s how we did it (and how you can, too).
Anyone with a “Contact Us” or “Get a Quote” form knows the pain: not all website leads are created equal. It’s not uncommon for a significant percentage of inbound leads to be:
Every one of these clogs your pipeline and wastes valuable sales hours.
Our approach combines the flexibility of Salesforce Flow with the intelligence of Agentforce’s Large Language Models (LLMs).
"Spam"
or "Legitimate"
.
1. Prompt Template:
We designed a prompt for Agentforce with this specific task:
Prompt Template
🧑 Role: You are a spam detection assistant for {!$Organization.Name}, responsible for reviewing Leads and identifying spam submissions before they reach the sales team.
Lead Details:
• {!$RecordSnapshot:Lead.Snapshot}
---
📌 Instructions: Review the details above and determine if this Lead is likely spam or legitimate.
• Spam leads often have gibberish or obviously fake names, nonsense or advertising in the Message, missing or dummy data, or other patterns typical of bots or bad actors.
• If you are unsure, err on the side of “Legitimate” (do not be overly strict).
---
⚠️ Constraints & Formatting:
• Respond with only one word:
- “Spam” if the Lead is likely spam
- “Legitimate” if the Lead is likely legitimate
• Do not include any other words, commentary, or formatting.
• If there is not enough information to decide, respond with “Legitimate”.
2. Record-Triggered Flow:
"Spam"
, set Status = Unqualified
and Reason = Spam
"Legitimate"
, do nothing
What happened after launch?