{"slug": "before-an-ai-agent-automates-a-salesforce-process-let-the-team-flag-what-breaks", "title": "Before an AI Agent Automates a Salesforce Process, Let the Team Flag What Breaks", "summary": "Juan Manuel Garrido, co-founder of Vantegrate and founder of EGA Futura, published a Salesforce-based method for capturing frontline process knowledge before AI agents automate workflows. The setup uses a custom Process_Issue__c object, a Screen Flow that passes the current record Id, and a SOQL query grouping reports by process and step to surface where workarounds occur. Garrido argues that the people who run a process know where it breaks, but that knowledge rarely reaches the place where the agent gets designed.", "body_md": "On LinkedIn I shared a story about a meeting with eight people. All eight knew the AI agent project on the table made no sense, and nobody said it. One of them had run that process for years, knew exactly where it broke, and had proposed a fix months earlier. Nobody listened, so this time he stayed quiet. A few months later the company had the same broken process, now automated with AI. I co-founded Vantegrate with Francisco Morales to build AI agents, and I run EGA Futura. The longer version, in Spanish, is on [EGA Futura Discover](https://discover.egafutura.com/obstaculos-humanos-transformacion-tecnologica-agente-de-ia/?utm_source=devto&utm_medium=referral&utm_campaign=amplify).\n\nThere is a technical side to this story. The people who run a process know where it breaks, but that knowledge rarely reaches the place where the agent gets designed. This post shows a small Salesforce setup that gives them a place to write it down in two minutes, from the record they are working on.\n\nCreate a custom object `Process_Issue__c` with these fields:\n\n`Process__c` (Picklist): the process name, for example Order Approval, Returns or Invoice Correction.`Step__c` (Text, 80): the step where it breaks.`What_Happens__c` (Long Text Area): what the person has to do to work around it.`Times_Per_Week__c` (Number): their own estimate.`Related_Record_Id__c` (Text, 18): the record they were on.`Status__c` (Picklist): New, Reviewed, Fixed, Won't Fix.\nSet the org-wide default to Public Read Only. People should see what others already reported, so they add to it instead of filing the same thing twice.\n\nBuild a Screen Flow with a text variable named `recordId`, marked Available for Input. When the flow runs from a quick action on a record page, Salesforce fills `recordId` with the current record Id.\n\n`Process_Issue__c`, with `{!recordId}` and Then create an action of type Flow on each object where the process lives (Case, Order, Opportunity) and add it to the Lightning page or the page layout. One flow can serve all of them, since `Related_Record_Id__c` stores the Id as text.\n\nBefore anyone presents an agent, run this:\n\n```\nSELECT Process__c, Step__c, COUNT(Id) reports, SUM(Times_Per_Week__c) weeklyHits\nFROM Process_Issue__c\nWHERE Status__c = 'New'\nGROUP BY Process__c, Step__c\nORDER BY SUM(Times_Per_Week__c) DESC\n```\n\nLong Text Area fields cannot be grouped, which is why the query groups by process and step and leaves `What_Happens__c` for reading. A summary report grouped by Process and Step gives the same view to a manager who does not write SOQL.\n\nIf you also want the process itself to live inside Salesforce, at EGA Futura we build a [native ERP for Salesforce](https://www.egafutura.com/erp/erp-para-salesforce), and at Vantegrate we build [turnkey AI agents for companies](https://vantegrate.com/).\n\nThe question I left on LinkedIn applies here too: how many times did your team agree with you simply because you were the boss?\n\nJuan Manuel Garrido, co-founder of Vantegrate and founder of EGA Futura", "url": "https://wpnews.pro/news/before-an-ai-agent-automates-a-salesforce-process-let-the-team-flag-what-breaks", "canonical_source": "https://dev.to/juanma_garrido_1974/before-an-ai-agent-automates-a-salesforce-process-let-the-team-flag-what-breaks-2h1n", "published_at": "2026-11-29 17:08:18+00:00", "updated_at": "2026-11-29 17:15:37.700641+00:00", "lang": "en", "topics": ["ai-agents", "ai-products"], "entities": ["Vantegrate", "EGA Futura", "Salesforce", "Juan Manuel Garrido", "Francisco Morales"], "also_reported_by": [], "takeaway": "Capture process-break reports in a custom Salesforce object via a record-page Screen Flow, then rank them with a SOQL query grouping by process and step and summing weekly frequency before designing an agent.", "recommendation": {"advice": "Before automating a process with an agent, add a two-minute record-page flow that logs where the process breaks, then rank issues by summed weekly frequency to scope the agent.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/before-an-ai-agent-automates-a-salesforce-process-let-the-team-flag-what-breaks", "markdown": "https://wpnews.pro/news/before-an-ai-agent-automates-a-salesforce-process-let-the-team-flag-what-breaks.md", "text": "https://wpnews.pro/news/before-an-ai-agent-automates-a-salesforce-process-let-the-team-flag-what-breaks.txt", "jsonld": "https://wpnews.pro/news/before-an-ai-agent-automates-a-salesforce-process-let-the-team-flag-what-breaks.jsonld"}}