generating-flow

Generate Salesforce Flow metadata XML from natural language automation requests.

803|289|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/forcedotcom/sf-skills --skill generating-flow-forcedotcom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-flow
Source: https://github.com/forcedotcom/sf-skills/tree/main/skills/generating-flow
Command: npx skills add https://github.com/forcedotcom/sf-skills --skill generating-flow-forcedotcom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It streamlines creating Salesforce Flow metadata by turning a natural-language flow request into deployable Flow XML without manual, error-prone XML editing.

Core Features & Use Cases

  • Flow Generation Pipeline: Produces Flow XML using a strict 3-step MCP workflow (fetch grounded metadata → select elements → generate elements until complete).
  • Broad Flow Type Coverage: Handles Screen, Autolaunched, Record-Triggered (before/after-save), and Scheduled flows.
  • Flow-Like Request Support: Works when users describe automation needs in plain language (e.g., “automate,” “workflow,” or “send an email when”).

Quick Start

Use the generating-flow skill to create a Screen Flow that captures inputs, runs logic, and returns the generated Flow XML.

Frequently Asked Questions about generating-flow

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

FAQPage Schema
How do I generate Salesforce Flow XML from a natural language description?

Salesforce Flow XML is generated by converting natural language automation requests into deployable metadata using a strict fetch grounded metadata, select elements, and generate elements pipeline. This process outputs unmodified Flow XML ready for deployment.

Can I create a record-triggered or scheduled flow without manually writing XML?

Record-triggered and scheduled flows can be created without manual XML by supplying a plain text automation request. The generation pipeline handles before-save, after-save, and scheduled scenarios to produce the required Flow metadata.

What types of Salesforce automations can I build using natural language flow generation?

Salesforce automations including Screen, Autolaunched, Record-Triggered, and Scheduled flows can be built from natural language. Describing needs like sending an email or automating a workflow triggers the metadata generation pipeline to output the corresponding XML.

Does generating Flow XML require predefined metadata components?

Generating Flow XML requires fetching grounded object metadata as the initial pipeline step. This ensures the selected flow elements align with existing Salesforce schema before the generation loop produces the final XML output.

What is the best way to automate Salesforce workflows when I only have a plain text description?

Automating Salesforce workflows from plain text is best handled by a generation pipeline that iteratively selects and generates flow elements. It translates flow-like requests into structured metadata XML until the automation logic is fully complete.