Image showing a cartoonish image about using Agentforce to search for lead data

Searching for Leads in Salesforce

Using Salesforce Agentforce to Search for Leads Building on my lead enrichment automation, I wanted to create a more intuitive way for sellers to interact with their data. Instead of scrolling through list views, I built a custom Agentforce Agent that allows sellers to find high-value prospects simply by asking. The Three Ingredients of the Automation 1. Custom Fields & Logic To make the search meaningful, I added custom industry-specific fields like Estimated Monthly Orders, Average Order Value, and Cuisine. I then built a Lead Score Flow that calculates a priority score using this formula: ...

April 7, 2026 · Tarek Mustafa
Image showing a cartoonish image about using a Salesforce for Lead Data Enhancement

Basic lead enrichment in Salesforce

Using Automation for basic Lead enrichment in Salesforce To gain more hands-on experience with Salesforce, I used a Developer Edition org to build an AI-driven automation that triggers whenever a new Lead is created. Using Agentforce, the system automatically finds and populates the phone number, email, and website for that lead. The Three Ingredients of the Automation 1. The Instructions (Flex Prompt Template) To guide the AI, I created a Flex Prompt Template. It takes the company name and location as inputs and instructs the AI to return the corresponding phone number, email, and website in a clean JSON format. ...

December 26, 2025 · Tarek Mustafa