/sf-agentforce:agentforce-bot-upgrade [--mode <online|offline>] [--org-alias <org-alias> --bots <bot1:v1,bot2:v2,...> | --offline-dir <offline-dir> [--bots <bot1,bot2,...>]] [--interactive <true|false>]from Salesforce — Agentforce & Data 360
Orchestrates end-to-end migration of Einstein Bots (BotDefinition/BotVersion) to Agentforce agents. Generates Agent Specs, runs agentforce-generate authoring, and applies post-conversion enhancements in a single multi-bot pass.
Ships in Salesforce — Agentforce & Data 360. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run a multi-bot upgrade-and-handoff cycle. Each bot is converted into its own Agentforce agent; bots are processed independently and never combined or restructured across one another:
--bots/agentforce-generate per Agent Spec (parallelizable)The skill run is complete only after Step 4 and Step 5 have both been executed for every bot that reached Step 3. Generating the Agent Spec (Step 2) or the .agent file (Step 3) is NOT a completed run.
A run is complete only when report.md has been written (Step 5). The only other way to end a run is a hard stop listed under Interactive Mode.
None of these end the run:
/agentforce-generate finishing or printing its own completion summary;/agentforce-generate;Record each outcome and continue to the next step.
Online mode: Step 4 always ends with a publish (commit) attempt, or a recorded reason why no attempt was made (for example, compile failed). Every attempt gets a publish-audit.jsonl record. Never activate.
If a step fails for a bot, record the failure and still run Step 5. report.md is written for partial runs too.
Do not end your turn while any step from 1 to 5 is still pending. If you send a progress update, send the next tool call in the same response.
Scope — this skill only converts Einstein Bots (BotDefinition/BotVersion chatbots) into new Agentforce agents. It does NOT migrate an existing Agentforce agent from a legacy GenAiPlannerBundle to an NGA aiAuthoringBundle — for that, use the agentforce-generate skill's "Migrate a Legacy Agent to Agent Script" flow.
Display this disclaimer to the user as the very first output of every invocation, in both online and offline mode, before Missing Input Handling, Step 1, or any tool call, file read, or org query. Rules:
BEGIN DISCLAIMER and END DISCLAIMER verbatim as rendered Markdown — not inside a code block, not summarized, reworded, or reordered. Keep every emoji marker; they are the color coding that draws the user's attention.--interactive=false, still display it.BEGIN DISCLAIMER
⚠️ IMPORTANT — Read Before You Upgrade
This upgrade uses generative AI to turn your Einstein Bot's dialogs, intents, and variables into an Agentforce agent with subagents and actions. The result is a committed agent version that has not been activated. Review and test it before you activate it.
🔵 How your bot's design is translated
- Menus become intent-based routing. The agent doesn't reproduce menus and option-driven navigation. It identifies what the customer wants and routes to the right subagent. Each menu option's outcome is kept, but the step-by-step menu flow is not.
🔴 Not converted
- Bot goals. Agents don't need them.
- Some action steps: steps that produce no output, exist only to move between dialogs, or write feedback logs.
- Actions other than Apex classes and flows, such as object search. You can add these to the agent as custom actions.
- Menus in welcome messages. Use pre-chat configuration to collect routing information up front.
- Option buttons for questions with more than 11 options. The options aren't shown as buttons.
- Rich content and messaging components. Use adaptive response formats to format the agent's responses.
- File attachments, sent or received.
- Steps that change the conversation language partway through a conversation.
🟡 Configure after the upgrade
- Agent user. Assign a user to the agent.
- Channels and Omni-Flows. Connect the agent to your customer channels.
🟢 Recommendations
- Configure intents along with their descriptions in your bot, to match the corresponding dialog functionality before upgrading. Results depend on how good the source bot is.
- Review and test the agent before you activate it.
- If your bot uses context variables, deploy the agent to an embedded messaging channel and test the main use cases there.
- 💲 Agentforce Service Agent is billed on consumption, by usage type.
END DISCLAIMER
Inputs:
--mode <online|offline> is optional; default is online when omitted.mode=online, required:
--org-alias <org-alias>--bots <bot1:v1,bot2:v2,...>mode=offline, required:
--offline-dir <offline-dir>--interactive <true|false> is optional; default is true when omitted.If required inputs are missing, handle per the Missing Input Handling and Interactive Mode rules below.
--interactive controls whether the skill pauses for user input during execution:
--interactive true (default): resolve ambiguities, open questions, and approval gates by asking the user, as described in this skill and its references.--interactive false: run autonomously. Do NOT prompt the user at any decision point. For every open question, ambiguity, or approval gate, apply the documented recommended default/solution and record the auto-applied decision in the run artifacts (Agent Spec, open questions, extraction summary). The only hard stops permitted without prompting are inputs that are missing or contradictory with no safe recommended default — a missing mandatory launch input (--org-alias/--bots for online, --offline-dir for offline), no bots discovered, or the same bot given multiple versions. In those cases, report the issue and halt without prompting.Propagate the effective --interactive value to the per-bot Generate Agent Spec workflow (Step 2) and the post-conversion enhancement pass (Step 4).
After displaying the Start-of-Run Disclaimer, resolve missing required launch inputs before Step 1:
--org-alias not provided. Resolve this before attempting to list bots (listing requires a target org).
--org-alias input (do not prompt or list).--bots) not available.
--org-alias as the target org, list every bot and its versions in the org, then ask the user to select the bot/version entries they want to convert to agents. Use the BotDefinition and BotVersion query patterns in SF CLI Bot Reference — omit the name/version filters to enumerate all bots and versions — present the results, and build the --bots workload from the user's selection.--bots input (do not prompt or list).--offline-dir not available.
--offline-dir path, then continue.--offline-dir input (do not prompt).Use these reference files during execution:
--botsExecute Step 1 in this order:
--mode omitted, use online.mode=online: read --bots and split by comma.mode=offline: scan <offline-dir> and collect immediate sub-directories as bot workload roots.mode=online: each --bots token must match <bot-name>:<version>.mode=offline: ensure at least one bot sub-directory exists; otherwise STOP (in interactive mode ask the user to clarify; in non-interactive mode halt with an explicit error per the Interactive Mode rule).mode=online: build {bot_name, bot_version} entries.mode=offline: build {offline_bot_dir} entries (Annotate inferred bot name and version when derivable from the sub-directory structure; if not derivable, leave the entry unnamed and continue).bot_name appears with multiple versions, STOP (in interactive mode ask the user to clarify; in non-interactive mode halt with an explicit error per the Interactive Mode rule).mode=offline and --bots is provided, use --bots only as a filter over discovered sub-directories; do not treat it as required offline input.Execute the agent spec generation workflow from Generate Agent Spec Reference per bot-version combination:
--mode <online|offline> (default online if omitted)--org-alias, --bot, --bot-version--offline-dir--interactive <true|false> (pass through the effective orchestrator value; default true)Parallelization rule:
mode=online, execute invocations in parallel because each bot-version pair is independent.mode=offline, execute the Generate Agent Spec Reference workflow in parallel over every bot sub-directory discovered in Step 1.
--mode offline and --offline-dir <bot-subdirectory-path> per invocation.
Ensure each invocation (online/offline) uses isolated working directories to avoid cross-run file collisions.Hard rules:
Collect results:
{bot_name, bot_version, run_project_dir, agent_spec_path, handoff_json_path, open_questions_path}.For each entry in the ready-for-authoring list from Step 2:
/agentforce-generate:
.agent, validating, deploying, and preview testing are allowed.run_project_dir from the ready-for-authoring entry.<run_project_dir>/agentforce-generate-invocation-prompt.md fully./agentforce-generate with this invocation context.<run_project_dir>/agentforce-generate-output-contract.md and capture outputs exactly as specified.Parallelization rule:
/agentforce-generate in parallel across Agent Specs because each run is independent.Output-contract capture rules:
partial, record missing paths, and continue processing other entries.Return-to-orchestrator rule:
/agentforce-generate is a sub-step of this run, not its end. Its completion summary, "generation complete" message, or any terminal or done state it reaches does NOT complete the orchestrator run./agentforce-generate invocation finishes, resume this skill in the same turn: capture its outputs (rules above), then continue to Step 4 and Step 5./agentforce-generate. The only final message of the run comes after Step 5./agentforce-generate's pre-publish approval checkpoint and release gates for this run only. Activation is never authorized.After Step 3 completes, for each generated .agent artifact:
.agent file path from captured /agentforce-generate outputs.agentscript_file=<generated-agent-file-path>mode=<online|offline> (the effective orchestrator run mode resolved in Step 1)org_alias=<org-alias> (required so the enhanced Agent Script can be redeployed).agent file location.sf agent publish authoring-bundle). Offline mode skips compile and commit.publish-audit.jsonl in the orchestrator working directory, as specified in the Post-Conversion Enhancements Reference.agent_id, agent_version, the publish audit records, and any partial failures.Parallelization rule:
.agent files because each file enhancement is independent.After Step 4 completes for every bot in the workload:
Write a single consolidated, human-readable run report as a non-empty Markdown file named report.md (unless the caller names a different path) in the orchestrator working directory. Per bot, the report must state: the effective run mode, the bot id, the bot version, the generated Agent Spec path and generated .agent path, the commit status, agent ID, and agent version (online mode; state that the version is committed but not activated), the publish audit outcome with its timestamp and the path to publish-audit.jsonl (online mode), and — when --interactive=false — the auto-applied decisions.
Treat the run report as the FINAL artifact: write it only after all other artifacts (Agent Spec(s), handoff JSON, open questions, and generated .agent file(s)) are already written.
The run concludes only after report.md is written. Emit the final summary message then, and not before.
Before emitting the final message, confirm for each bot:
publish-audit.jsonl holds a record for each attempt;report.md exists and is non-empty.If any of these is missing, go back and complete it first.
Return:
/agentforce-generate execution status/agentforce-generate outputs per output contract.agent file paths, compile status, commit status, agent ID, and agent version)publish-audit.jsonl (online mode)assets/_vendored/agent-spec-template.md (opens in a new tab)references/_vendored/agent-design-and-spec-creation.md (opens in a new tab)references/_vendored/agent-script-core-language.md (opens in a new tab)references/_vendored/agent-subagent-map-diagrams.md (opens in a new tab)references/_vendored/agent-user-setup.md (opens in a new tab)references/_vendored/agent-validation-and-debugging.md (opens in a new tab)references/_vendored/agentscript-toolchain.md (opens in a new tab)references/_vendored/architecture-patterns.md (opens in a new tab)references/_vendored/common-control-flow-pitfalls.md (opens in a new tab)references/_vendored/control-flow-actions-sequencing.md (opens in a new tab)references/_vendored/control-flow-lifecycle-side-effects.md (opens in a new tab)references/_vendored/data-library-reference.md (opens in a new tab)references/_vendored/instruction-resolution.md (opens in a new tab)references/_vendored/org-setup-for-adl.md (opens in a new tab)references/_vendored/patterns-by-requirement.md (opens in a new tab)references/_vendored/posture-and-determinism.md (opens in a new tab)references/extraction-blueprint.md (opens in a new tab)references/generate-agent-spec.md (opens in a new tab)references/handoff-output-format.md (opens in a new tab)references/input-contract.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
einstein-bot, agentforce, bot-migration, salesforce, agent-spec
3 plugins in 2 repositories ship this exact skill · first indexed Nov 14, 2026
16 skills in this plugin
/afcc-setup-coordinateOrchestrates end-to-end headless setup of Agentforce Contact Center (AFCC) on a Salesforce org. Scans the org first, presents a delta plan for approval, then sequentially provisions demo users, Omni-Channel base settings, a human queue with routing config and members, presence statuses, permission sets, a PSTN voice number, and an active PstnVoice MessagingChannel wired to the queue. Interactive at key decision points — never assumes country, number type, queue names, or user counts. TRIGGER: set up AFCC, configure Agentforce Contact Center, stand up voice contact center, AFCC migration setup, provision AFCC org headlessly./agentforce-d360-analyzeData Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace, inspect, summarize, or describe a specific Agentforce session by session id (Agent Session UUID `019d…` or MessagingSession id `0Mw…`). Also triggers on session discovery — find/list/search sessions by time, agent, channel, outcome, or conversation text — when the user has no session id yet. DO NOT TRIGGER for design-time architecture questions (use agentforce-architecture-analyze instead) or for runtime perf/latency/SLO questions that require platform telemetry beyond Data Cloud.npx claudepluginhub reej-consulting/reej-sf-skills --plugin sf-agentforceOther plugins' skills for the same job