The independent daily for Salesforce admins, developers and architects

Curated by Abhinav (opens in a new tab)

Use a Custom Object and Screen Flow to find breaks before automating with AI (opens in a new tab)

You will learn how to build a Process_Issue__c object and Quick Action that let front-line staff log process breakdowns, and how to read the results before designing an AI agent.

Why read this

The approach is practical, though the core ideas are fairly simple.

  1. Staff log breaks in Process_Issue__c
  2. Group open reports by process and step
  3. Remove workarounds a rule or flow can fix
  4. Build an agent for what remains
  5. Update status and tell reporters
Order of work before an agent project, as the author describes it

The author argues that an AI agent built on a broken process will automate the breakage, and that the people who run a process hold the knowledge needed to find the breaks. He proposes a small Salesforce setup that lets them record problems from the record they are working on. The setup is a Custom Object, Process_Issue__c, with fields for the process, the step where it breaks, the workaround, a weekly frequency estimate, the related record Id and a status. It is set to Public Read Only so people can see and add to existing reports rather than filing duplicates.

The reporting side uses a Screen Flow with a recordId input variable, which Salesforce fills when the flow runs from a Quick Action on a record page. The flow shows one screen for process, step, workaround and times per week, creates a New issue record, and confirms who reviews reports and when. The Quick Action is added to Case, Order and Opportunity, and one flow can serve all three because the related record Id is stored as text.

Before any agent project, the author suggests grouping open reports by process and step and sorting by estimated weekly hits, with a summary report as an alternative for managers who do not write SOQL. Where a manual workaround can be removed with a Validation Rule, required field or Record-Triggered Flow, that fix should come first. Only the remaining work that needs reading, interpreting or customer conversation is a strong candidate for an agent. Instructions should be drawn from the logged workaround wording, and statuses should be updated so reporters hear back, which keeps them reporting.

Read the original at dev.to (opens in a new tab)

Worth reading?