generating-flow

Generate Salesforce Flow metadata XML through a mandatory three-step MCP pipeline.

1|Updated May 7, 2026
One-click install
npx skills add https://github.com/amanpraaj/sf-skill-hub --skill generating-flow-amanpraaj
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: generating-flow
Source: https://github.com/amanpraaj/sf-skill-hub/tree/main/skills/salesforce/generating-flow
Command: npx skills add https://github.com/amanpraaj/sf-skill-hub --skill generating-flow-amanpraaj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Creating Salesforce Flows by hand-writing metadata XML is error-prone and slow. This Skill generates valid Flow metadata for Screen, Autolaunched, Record-Triggered, and Scheduled Flows by orchestrating a strict three-step MCP pipeline, eliminating manual XML authoring. ## Core Features & Use Cases - Guided Flow Generation: Runs the required fetchGroundedObjectMetadata → flowElementSelection → flowElementGeneration pipeline via the execute_metadata_action MCP tool and returns flow XML. - Custom Object Grounding: Scans the local sfdx project and passes relevant custom objects and fields as structured inflightMetadata so generated flows reference real schema. - Multi-Flow Handling: Splits multi-flow requests into separate sequential pipelines, one focused userPrompt per flow. - Use Case: Ask for a Record-Triggered Flow that updates a custom object's status when assigned, and receive deployment-ready flow XML generated element by element until completion. ## Quick Start Ask the agent to create a Salesforce Flow, for example: generate a Record-Triggered Flow that sends an email when a Case is closed.

Frequently Asked Questions about generating-flow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Salesforce Flow with AI?▼

Describe the flow in natural language and the Skill runs a three-step MCP pipeline: fetchGroundedObjectMetadata, flowElementSelection, then flowElementGeneration. The final call loop returns the flow metadata XML once isComplete is true.

What types of Salesforce Flows can be generated?▼

The pipeline supports Screen Flows, Autolaunched Flows, Record-Triggered Flows (before and after save), and Scheduled Flows. Each flow type is produced through the same three-step generation pipeline.

Can I generate multiple Salesforce Flows in one request?▼

Yes, but the request is split into separate single-flow prompts. Each flow gets its own complete three-step pipeline executed sequentially, never in parallel, until every requested flow is generated.

Does flow generation use custom objects from my sfdx project?▼

Yes. The Skill scans the local sfdx project and passes relevant custom objects and fields as a structured inflightMetadata array, including field types, picklist values, and lookup targets. An empty array is used when none are relevant.

Can I manually edit the generated flow XML?▼

Manual edits are only permitted when the user explicitly requests fixes for validation or deployment errors. Otherwise the XML returned by the pipeline must be used exactly as generated, with no added or removed nodes.