forcedotcom/sf-skills/sales-agentforce-pipeline-management-configure
Claude Code and agent skill by forcedotcom/sf-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Use to configure, set up, or repair the Sales Management agent and Agentforce Pipeline Management in a Salesforce org. Automates metadata creation for flows, prompt templates, permission sets, and data source configuration. TRIGGER when: user wants to enable Pipeline Management, configure Sales pipeline features, set up the Sales Management agent for opportunity field updates (including autonomous updates), connect enabled data sources like Einstein Conversation Insights or Einstein Activity Capture, customize opportunity stage descriptions, configure post-meeting suggestions, verify or audit configuration status, fix partially configured orgs, or troubleshoot Pipeline Management metadata issues. DO NOT TRIGGER when: user wants to build a custom agent (use agentforce-generate), configure general Agentforce tracing (use platform-tracing-agentforce-configure), work with non-Sales agents, or enable Einstein Conversation Insights or Einstein Activity Capture from scratch (provisioning is out of scope).
Install
npx vskill@latest install forcedotcom/sf-skills/sales-agentforce-pipeline-management-configureSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as forcedotcom/sf-skills/sales-agentforce-pipeline-management-configure.
Agentforce Pipeline Management Configuration
Configure Agentforce Pipeline Management end-to-end in a Salesforce org. This skill handles both greenfield orgs (zero configuration) and partially configured orgs that need repair or completion.
Scope
- In scope: Enabling Pipeline Management, configuring the Sales Management agent, activating/customizing flows (Process Field Update Suggestions, Get Opportunity Grounding Data, Get AI Recommendations from Call Transcripts), prompt template configuration, permission set assignment, data source setup, opportunity stage descriptions, autonomous field update configuration, and partial-org repair.
- Out of scope: Building custom agents from scratch (use
agentforce-generate). Einstein Conversation Insights or Einstein Activity Capture initial provisioning (those are separate products). Slack app installation. Custom Apex triggers on Opportunity Team Member.
Prerequisites
You must verify (scripts cannot check or change these)
- Edition: Enterprise, Performance, Unlimited, or Developer Edition with Agentforce for Sales add-on (or Agentforce 1 Sales Edition). Setup probes this up front (Step 0) — it fails fast with a license/edition message on an org that can't run Pipeline Management, before asking anything — but edition/license provisioning itself is still admin-owned.
- User permissions: The executing user needs
View SetupAND (Modify All DataORCustomize Application),Manage AI AgentsAND (Manage Agentforce Employee AgentsORCustomize Application), andAssign Permission Sets.
Enabled automatically by scripts/setup-all.sh
The following settings are toggled by setup automatically — do not enable them manually before running the script.
- Einstein Generative AI (
EinsteinGptSettings.enableEinsteinGptPlatform) — required; must be on before Agentforce Agent. - Agentforce Agent (
EinsteinCopilotSettings.enableEinsteinGptCopilot) — required; depends on Einstein Generative AI. - Agentforce Studio / Agent Platform (
AgentPlatformSettings.enableAgentPlatform) — required; depends on Agentforce Agent and gates the Deal Agent. Core rejectsSalesDealAgentSettings.enableDealAgentwhen this is off, surfacing as an opaque Deal Agent activation failure. - Enhanced Notes (
EnhancedNotesSettings.enableEnhancedNotes) — required; Pipeline Management uses ContentNote as a primary data source. - Opportunity Team (
OpportunitySettings.enableOpportunityTeam) — required; the suggestion flow uses OpportunityTeamMember and will fail deployment without it. - Pipeline Inspection (
OpportunitySettings.enablePipelineInspection) — required; provides the UI where reps view and accept/dismiss suggestions. Suggestions still generate without it, but users have nowhere to see them. - Enhanced Email (
EmailAdministrationSettings.enableEnhancedEmailEnabled) — optional but recommended; only needed for email-body indexing when Einstein Activity Capture is in use. - Pipeline Management (
SalesDealAgentSettings.enableDealAgent) — required; the feature itself.
Clarifying Questions
Run the license preflight FIRST — before asking any of these questions. Asyour very first action (right after resolving the org alias), runbash scripts/setup-all.sh <org-alias> --check-license. It runs only auth + thecapability gate, asks nothing, and changes nothing. If it exits non-zero,relay the printed license/edition blocker to the user and STOP — do not askany clarifying question and make no changes. Only when it exits 0 (org iscapable — greenfield or already provisioned) proceed to the questions below.
Once the preflight passes, determine:
- Greenfield or repair? Is this a new org that has never had Pipeline Management, or one with partial configuration?
- Data sources: Which data sources should inform the agent?
- Notes (enabled by default)
- Emails (requires Einstein Activity Capture)
- Voice/Video calls (requires Einstein Conversation Insights)
- Enhanced Email (for email body indexing — requires
EmailAdministrationSettings.enableEnhancedEmailEnabled)
- Autonomous updates: Should the agent update opportunity fields autonomously, or only suggest updates for user review?
- Which fields should the agent manage? (ask this FIRST, up front — setup is field-selection-driven).
setup-all.shbuilds the flow with only the fields you select, from the start — there is no deploy-both-then-strip step. Ask: "Which Opportunity fields should the agent suggest values for? The OOTB options are Next Step (`NextStep`) and Opportunity Stage (`StageName`); you can also add custom text fields (e.g. a Competitor Analysis field)."
- At least 1 field is REQUIRED — setup aborts (exit 1) if zero fields are selected. There is no default to
NextStep. - Hard cap: 5 fields total; OOTB fields count toward it. Selecting more aborts before any change.
- Pass the set with
--fields "NextStep,StageName,Risk__c"in non-interactive runs, or type it at the interactive prompt.
- Per-field prompt customization (all fields EXCEPT `StageName`). For each selected non-
StageNamefield, setup collects an optional goal ("You must think about…") and instruction (extraction guidance):
- `NextStep` ships with a curated OOTB managed prompt. Setup only overrides it when you supply a goal/instruction (interactive: it asks whether to customize; non-interactive: pass
--field-goal "NextStep:…"/--field-instruction "NextStep:…"). Skip customization to keep the OOTB prompt. - Custom fields always get a goal/instruction (your text, or the script's sensible defaults).
- `StageName` is NOT customizable — it is a managed picklist template with no override support; setup never prompts for it.
- Custom field eligibility: Only standard or custom text fields on Opportunity are supported — plain Text (
type=string) or Text Area ≤ 255 (type=textarea,htmlFormatted=false); length ≤ 255; not Long Text Area (length > 255), Rich Text Area (htmlFormatted=true), picklist, or formula. The suggestion is capped at the field's own length. Fields selected in question 4 are wired duringsetup-all.sh; additional fields added after setup usescripts/add-field-suggestion.sh <org-alias> <FieldApiName>(one per field; see Phase 4.3). Both paths enforce the 5-total cap —add-field-suggestion.shrefuses to wire a 6th field. - Opportunity stages: Opportunity stages are picklist values, and different Opportunity record types may expose different stage subsets. Are standard or custom opportunity stages in use? Do their descriptions need to be defined/updated? Note:
OpptStageDescriptionis global-per-stage — keyed only byOpportunityStageApiName, with no per-record-type column — so a description is written once per active stage and applies across every record type that exposes that stage. Setup works the same whether or not the org has Opportunity record types.
Admin Communication Guidelines
CRITICAL: This skill serves admin users, not developers. Follow these rules:
- Run all bash commands in background (
run_in_background: true) - this includes the main setup commands AND any log-tailing for progress monitoring - Monitor progress without showing commands - You can tail logs to provide progress updates, but run tail commands in background too. Parse the output and show only friendly updates like "✓ Opportunity Team: enabled". Never show the tail command itself or raw log lines.
- Investigate errors silently - When something fails, do your diagnosis (check data, run queries, fix environment issues) in background without narrating each step. Only surface the conclusion and action: "I need to create a test opportunity first. Let me do that..." NOT "The --json output is corrupted... let me check... ANSI color codes... let me fix..."
- Narrate in plain language: Say "Setting up the platform..." NOT "Running setup-all.sh Phase 1.5"
- Hide technical details: No SOAP responses, curl commands, jq parsing, phase numbers, or script paths unless user asks to debug
- Check exit codes: Always parse success/failure and translate technical errors to admin-friendly messages
- Set time expectations: "This takes ~3 minutes..." prevents "is it frozen?" questions
- Handle errors gracefully: Auto-retry transient failures; explain and offer choices for real blockers
See references/admin-communication.md for detailed error translation patterns, examples, and recovery strategies.
Workflow
IMPORTANT — Primary Entry Point: For end-to-end setup, drive scripts/setup-all.sh. It handles all prerequisites, enablement, flow deployment, permissions, and verification in the correct dependency order. Only use individual scripts when diagnosing or repairing specific components after setup-all.sh has run.
setup-all.sh is a 3-phase, field-selection-driven setup: (1) platform enablement + agent user + PSG assignment; (2) field selection → prompt template creation/activation → stage descriptions (only if StageName selected) → prompt verification; (3) flow build (selected fields only), flow activation, agent activation, PSG recalc. It is safe by default: suggestions-only mode, no stage-description creation unless asked, and the flow does not go live until the prompts are in place.
Canonical agent path — two calls with an interactive tune-loop between them
See references/canonical-agent-path.md for the full two-call pattern with code examples, agent rules, narration templates, and internal step map.
Summary: Split setup into Call 1 (--through-phase prompts) and Call 2 (--from-phase flow) with a tune-loop between them where you drive prompt approval per field. Call 2 is MANDATORY — without it no flow exists and no suggestions generate.
Unattended / CI path (single call, no tune-loop)
For fully unattended runs (cron/CI, or when the user explicitly declines prompt review):
In single-pass mode the verification step still prints each field's suggestion (informational). Relay them to the user.
Flags
See references/flags.md for complete flag documentation. Key flags:
--check-license— preflight only (exit 0 = capable, 1 = blocker). Run FIRST.--through-phase prompts/--from-phase flow— split-run endpoints (mutually exclusive)--fields "NextStep,StageName"— required field set (at least 1, max 5)--autonomous— enable auto-apply mode (off by default)--non-interactive/--yes— unattended mode (requires--fields)--users "a@x.com,b@x.com"— explicit user list for PSG assignment (email-validated)
The phases below explain the decision logic for manual/repair scenarios. See references/setup-order.md for step-by-step details.
Automation Summary
Every configuration step and whether it's CLI-automatable (and how) or UI-only lives in references/automation-matrix.md. In short: prerequisites, enablement, flow clone/activation, agent publish/activation, permissions, field suggestions, and stage descriptions are all CLI-automatable (setup-all.sh does them in dependency order); only Agent Analytics is UI-only.
Phase 0 — Authentication and Org Assessment
- Authenticate — See
references/auth-and-cli.md. Always use2>/dev/nullonsf --json | jq.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sales-agentforce-pipeline-management-configure/SKILL.md
Popularity
- Repository stars
- 808
- Repository forks
- 289
- 7-day trend score
- 33
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/forcedotcom/sf-skills/sales-agentforce-pipeline-management-configure)