BigSolve home
    • AI AI agents that do the work, not the demo.
    • Analytics Reporting that runs on live data, not a weekly export.
    • Custom Development Custom builds for the workflow no product sold you.
    • Implementation Rollouts that survive contact with users.
    • Integration Integrations that move real money.
    • Case Studies We’d rather show you what changed.
  • Case Studies
  • About
  • Blog
Book a call (opens in a new tab)

Services

    • Case Studies
    • About
    • Careers
    • Blog
    • Contact
    Book a call (opens in a new tab)

    Blog

    Detecting Spam with Agentforce

    Learn how BigSolve uses Agentforce and Flow to automatically detect and filter out spam website leads, so your sales team only sees real prospects.

    Detecting spam website leads in Salesforce with Agentforce

    Automatically Filtering Spam Website Leads with Agentforce

    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).

    ‍

    The Problem: Website Spam in the Sales Funnel

    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:

    • Bots filling out forms with gibberish names and fake companies
    • Competitors fishing for information
    • Automated SEO spam
    • Vendors pitching unrelated services
    • Even just the “test” submissions that sneak in from internal or partner teams

    Every one of these clogs your pipeline and wastes valuable sales hours.

    ‍

    The Solution: Agentforce + Flow = AI-Powered Spam Filtering

    Our approach combines the flexibility of Salesforce Flow with the intelligence of Agentforce’s Large Language Models (LLMs).

    ‍

    Here’s the high-level architecture:

    1. When a Lead is created with “Website” as the Lead Source, a Flow is triggered.
    2. Agentforce LLM analyzes the Lead’s details (name, company, title, phone, description) and returns a simple verdict: "Spam" or "Legitimate".
    3. If “Spam” is detected, the Flow automatically updates the Lead Status to “Unqualified” and logs the reason as “Spam.”
    4. Legitimate leads pass through untouched. No human review required.

    ‍

    Why This Works

    • No more wasted sales hours: your reps only see leads worth pursuing.
    • No manual review queues: the system acts in real time, 24/7.
    • Tunable & explainable: you control the Flow logic, and can review “Spam” leads if needed.
    • Easily extensible: expand the logic to handle new spam patterns, or apply it to other objects (Cases, Contacts, etc.).

    ‍

    How We Built It (Technical Deep-Dive)

    1. Prompt Template:
    We designed a prompt for Agentforce with this specific task:

    ‍

    🧑 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”.

    ‍

    The Detect Spam prompt template in Salesforce Prompt Builder, showing the role, lead details, and one-word output instructions
    Prompt Template

    ‍

    2. Record-Triggered Flow:

    • Trigger: When a new Website Lead is created
    • Agentforce Action: Pass the Lead to the “Detect Spam” prompt
    • Decision Element:
      • If the response is "Spam", set Status = Unqualified and Reason = Spam
      • If "Legitimate", do nothing‍
    • Update Lead: Automatically update the Lead’s Status and Unqualified Reason if it’s spam. No manual work needed.
    The Spam Detector record-triggered Flow in Salesforce, showing the Agentforce prompt action feeding a decision element that sets Lead Status to Unqualified
    Record-Triggered Flow

    ‍

    Results & Business Value

    What happened after launch?

    • Spam submissions dropped out of the sales team’s view instantly
    • The team’s “first call response time” to real prospects improved noticeably
    • No more wasted cycles chasing obviously fake or junk leads

    Keep reading.

    More from the engineers who do this for a living.

    BigSolve, Agentforce: Common Agentforce Implementation Mistakes
    Nov 19, 2026

    Common Agentforce Implementation Mistakes and How to Avoid Them

    BigSolve, Strategy: Why Salesforce Projects Fail
    Nov 16, 2026

    Why Salesforce Projects Fail: The Decisions Made Too Late

    BigSolve, Agentforce: 10 Agentforce Use Cases
    Nov 12, 2026

    10 Agentforce Use Cases and How to Choose Your First

    Let’s talk

    Bring us the mess.

    You’ll get a straight answer from someone who builds these systems, not a sales call.

    Book a call (opens in a new tab) Tell us what’s not working

    info@bigsolve.com(860) 245-1071

    BigSolve home

    The last Salesforce partner you’ll ever need.

    Salesforce Partner since 2022 (opens in a new tab)

    Services

    • AI
    • Analytics
    • Custom Development
    • Implementation
    • Integration

    Company

    • About
    • Case Studies
    • Careers
    • Blog
    • Contact

    Get in touch

    • info@bigsolve.com
    • (860) 245-1071
    • Book a call (opens in a new tab)

    LinkedIn (opens in a new tab) Reviews on Clutch (opens in a new tab)

    Keep Up With The Latest
    Join our subscriber list to get the latest news and special offers.
    Thank you! Your submission has been received!
    Oops! Something went wrong while submitting the form.
    bigsolve

    © 2026 BigSolve LLC. All rights reserved.

    Privacy Terms