Explain this flow to me

Inherited a flow nobody documented? Ask what it does and get when it starts, what it changes, and what goes wrong if it fails, in plain words, without opening Flow Builder.

For admins and developers

Short answer

Ask your AI assistant “what does the Project On Approve flow do?”. sf-intelligence reads the flow’s metadata and explains when it starts, its entry conditions, the records it creates or updates, and risks such as a missing fault path. It reads the flow; it never runs it.

A real answer from the demo org

One flow on Verdant, the demo org, explained on its own, then shown in the full sequence of what runs when a Project is saved.

Question

“What does the Project On Approve flow do?”

After save runs on Project when Status is Approved.

Next: Ask “what breaks if I deactivate Project On Approve?” before you change it.

Starts when
  • Record-triggered flowProject On ApproveFlow:Project_On_Approve

    A Project is saved with Status equal to Approved. It runs after the record is saved.

What it does
  • ObjectPermitCustomObject:Permit__c

    Creates a Permit record and sets its Project and Status fields.

Watch out for
  • Flow · fault handlingNo fault path

    One element has no fault path. If it fails, Salesforce rolls back the whole Project save, not just the flow.

The flow has no decisions, so there is only one path. Conditions are read from the flow’s metadata; the tool does not run the flow.

For developers: the tool call

Your assistant made this call to the sf-intelligence MCP server. sfi.explain_flow isn’t in the short default tool list, so it runs through sfi.run_analysis:

{
  "name": "sfi.run_analysis",
  "arguments": {
    "name": "sfi.explain_flow",
    "args": {
      "flowId": "Flow:Project_On_Approve"
    }
  }
}
Question

“What runs when a Project is saved?”

6 steps in the order Salesforce runs them.

Next: The flow creates a Permit record, so ask the same question about Permit to see what that sets off.

In order
  1. Before triggerProjectTriggerApexTrigger:ProjectTrigger

    Calls ProjectTriggerHandler, which sets Risk Score.

  2. Validation ruleComplete Requires PermitValidationRule:Project__c.Complete_Requires_Permit

    Blocks Status = Complete until Permit Approved is checked.

  3. SaveRecord is saved
  4. After triggerProjectTriggerApexTrigger:ProjectTrigger

    Calls ProjectTriggerHandler again.

  5. FlowProject On ApproveFlow:Project_On_Approve

    When Status is Approved, creates a Permit record, so Permit’s own automation runs too.

  6. Approval processDiscount ApprovalApprovalProcess:Project__c.Discount_Approval

    Applies when Contract Value is over 50,000.

No step writes back to Project, so there is no save loop here. When one does, the answer names it.

Conditions are listed, not evaluated against a specific record.

For developers: the tool call

Your assistant made this call to the sf-intelligence MCP server:

{
  "name": "sfi.what_happens_on_save",
  "arguments": {
    "objectApiName": "Project__c",
    "event": "update"
  }
}

Recorded with sf-intelligence 0.8.0 on the built-in demo org. The wording is ours; the facts are the tool’s. More real answers.

One flow rarely explains the problem

If you’re debugging rather than documenting, the reason a field has the wrong value is usually the order things run in, not the flow’s logic. That’s why the second answer above shows the whole save: the before trigger, the validation rule, the save itself, the after trigger, this flow, and the approval process, in the order Salesforce runs them.

The flow explanation also flags things you’d only find by reading every element. Project On Approve has an element with no fault path, so if it fails, the user’s Project save fails too, not just the flow.

Ask it like this

Use your own object and field names. If a name matches more than one thing, it asks which one you mean.

  • What does the Project On Approve flow do?
  • Explain the Case Escalation flow step by step.
  • What happens if this flow fails?
  • What runs when an Opportunity is saved?

What it checks, and what it can’t see

Checks

  • When it starts: the object, before or after save, and the entry conditions
  • What it changes: records it creates, updates or deletes, and the fields it sets
  • What it shows: the fields and components on each screen
  • What it calls: subflows, Apex actions, email alerts, quick actions and external services
  • Fault handling: elements with no fault path, and what that rolls back
  • Every element in order, when you ask for the step-by-step walkthrough

Can’t see

  • Which path a specific record takes. That depends on the record’s values
  • Flows started from code by name, buttons or quick actions you didn’t pull
  • Changes made since your last refresh
For developers: the tools behind this

Your assistant picks these from the plain-language question. You never have to name them.

Questions

Does it run the flow or read record data?

No. It reads the flow’s metadata from your snapshot. It never runs the flow and never reads records, so it can tell you the conditions a flow checks but not which way a particular record will go.

Can it explain a flow step by step?

Yes. Ask for a walkthrough and it lists every element in the order it runs, with each element’s own description, the fields on its screens and the inputs to its actions.

Why does my flow run twice?

Usually because something later in the same save updates the record again, which sets the flow off a second time. Ask “what runs when a Project is saved?” and the answer names any step that writes back to the record. On the demo org nothing does, and the answer says so.