AI agents: machine-readable docs and automated org setup at /llms.txt

Upgrade Agent

Upgrade Agent

The Upgrade Agent tool converts an Einstein Bot into an Agentforce Service Agent. It reads your bot's dialogs, action steps, and intents, and generates the equivalent agent subagents and actions from them. Your original bot stays active during the move, so you can cut over at your own pace.

Want to run it now? Open Upgrade Agent → allows you to select an org, bot and bot version and then starts conversion.

How the Upgrade Agent works

Subagents from dialogs. The tool looks at your bot's dialogs and groups the ones with intents and utterances. Similar dialogs get grouped together, and each group becomes a subagent with a generated classification description, scope, and subagent instructions. Custom conditional logic in a dialog carries into that subagent's instructions.Learn more about subagents.

Actions from action steps. For every dialog it converts, the tool turns the dialog's action steps into agent actions, each with a generated description and input/output parameters. Learn more about actions.

For example, a bot with Service Request, Get Service Status, Reschedule Service, Customer Details, and Vehicle Details dialogs — each backed by a flow-based action step — converts into a single Service Appointment Management subagent with Manage Service Appointment, Get Service Request, and Get Car Models actions.

Upgrade Einstein bots to Agentforce Service Agents

The upgrade tool works directly in labs.agentforce.com/upgrade-agent or through your Claude Code.

Run the tool from Labs directly, or from local Claude Code.

From the Labs UI

Connect to an org, then pick the bot to convert.

  1. Click Connect another org.

    Bot Upgrade prompt with the org picker open, "Connect another org" highlighted at the bottom of the list

  2. In Your Orgs, click Add an org.

    Your Orgs dialog listing connected orgs, with "Add an org" highlighted

  3. Click Manually connect.

    Add-an-org menu with "Manually connect" highlighted alongside "Connect existing org" and "Get a fresh org"

  4. Choose Connect Production Org or Connect Sandbox Org — expand Use custom domain and enter a login domain — then click Connect.

    Manually connect screen with Connect Production Org, Connect Sandbox Org, and a custom login domain field

    To connect an internal orgfarm sandbox org, click Add an org → Connect existing org instead — this lists every orgfarm org you own. Not all orgfarm sandbox orgs can be connected to the tool; this is a known limitation.

    Your Orgs dialog with the Add an org menu open on "Connect existing org", showing available orgfarm orgs

  5. Once the org is connected, click Pick a bot. This lists every bot and bot version in that org.

    Pick-a-bot dropdown listing bots in the connected org with their last-modified timestamps

  6. Click Coding agent in browser then select Coding agent in browser.

    Upgrade prompt with the coding-agent picker open, Coding agent in browser selected among Claude Code, Codex, Cursor, Antigravity, and Windsurf

  7. Click the arrow button to start conversion.

    Upgrade prompt with a bot selected and "Convert with Labs Agent" tooltip showing on the submit arrow

  8. Press Enter to accept the default prompt in the coding session that opens.

    In-browser coding session with the /agentforce-bot-upgrade command pre-filled and ready to run

Alternatively, click + icon and select the bot package zip as input. However, org should be selected before you begin conversion as the converted agent file is deployed in the org directly. Attach menu with "Attach bot metadata zip" highlighted alongside past-conversation and context-file options

From Claude Code

Run the conversion through the agentforce-bot-upgrade skill if you're already working in Claude Code, or want the upgrade scriptable and running on your own machine.

Prerequisites

  • sf-cli installed, version 2.0.0 or later
  • Claude Code installed and set up

Check or install sf-cli:

1
sf --version

If it's missing or outdated, install or update it from the Salesforce CLI setup guide.

Install the skill:

  1. If you have any ADLC skills or plugins (developing-agentforce, testing-agentforce, observe-agentforce) installed in ~/.claude, delete them first — the bot-upgrade skill installs its own versions.

  2. Create and cd into a new, empty folder. This is the root the skill runs from and where converted bots land.

  3. Install the skills package:

    1
    npx skills add forcedotcom/sf-skills
    

    Terminal running npx skills add forcedotcom/sf-skills, showing the install prompt and a searchable list of 102 available skills

  4. Select agentforce-bot-upgrade, agentforce-generate, agentforce-observe, and agentforce-test, then confirm.

    Skill selection list with agentforce-bot-upgrade, agentforce-generate, agentforce-observe, and agentforce-test checked

  5. Select Claude Code as the agent to install to.

    Agent picker listing Claude Code selected among universal and additional coding agents

  6. Select Project as the installation scope — this keeps skills scoped to the current folder and available during the conversion.

    Installation scope prompt with Project selected over Global

    Choosing Global scope can leave the skill's symlinks missing, so the skill won't be available in a Claude Code session.

  7. Run claude in the terminal and invoke the skill. It supports both interactive and non-interactive modes.

Create Org Alias

If you haven't aliased the org yet, then create an alias as mentioned below.

1
sf org login web --instance-url <org_url> --alias <org-alias>

Invoke the skill:

1
/agentforce-bot-upgrade --mode online --org-alias <alias> --bots bot1:v1,bot2:v2,bot3:v3 --interactive true/false

Considerations

These bot elements aren’t moved or converted by the Upgrade Agent.

  • Goals
  • Knowledge feedback
  • Action steps with no output, or that exist only for dialog navigation
  • Action steps that create feedback logs
  • Logic that routes to a specific queue on escalation
  • Welcome messages with menu options (routing from menu options isn't supported; use prechat config instead)
  • Option buttons where the option count exceeds 11
  • File attachments (inbound or outbound)

These bot elements aren’t moved by the Create Agent from Bot tool, but you can add similar functionality to your agent after creating it.

  • The bot user isn’t moved. After creating an agent, you can assign a user to it from the agent Details page.
  • The bot’s connected channels and Omni-Flows aren’t moved. See Connect Your AI Agent to Customer Channels.
  • System dialogs, such as the Welcome dialog, aren’t moved. You can add a static welcome and transfer message from the agent Details page.
  • Dialogs that use data from your knowledge base, including those related to Article Answers and Generative Knowledge Answers, aren’t moved. To use knowledge articles with your agent, see Manage Data Sources.
  • Dialogs that transfer the conversation aren’t moved. To transfer conversations, add the Escalation subagent to your agent.
  • Rich content and messaging components aren’t moved. To format agent responses based on messaging components, set up adaptive response formats.
  • Action steps that use an Apex class or flow are moved, but other action steps, such as those that use object search, aren’t moved. After creating the agent, you can add custom actions. See Create a Custom Agent Action.
  • The bot’s primary language is moved to your agent, but additional languages aren’t. Currently, you can create AI agents from a bot with English as a primary language only. To add additional languages to your agent, see [Use Additional Languages in Enhanced Chat Conversations}(https://help.salesforce.com/s/articleView?id=ai.service_agent_languages.htm&type=5).

General Considerations

Next steps

  1. Preview the converted agent in preview mode in Agent Builder.
    • Context variables don't work in preview mode.
    • Deploy the agent to a messaging embedded channel to test with context variables.
  2. The Upgrade Agent tool doesn't generate or evaluate test cases against the converted agent. Test it end-to-end in the Agentforce Testing Center before you activate it.
  3. Connect Your AI Agent to Channels
  4. Transfer Conversations from an Enhanced Bot to an Agentforce Service Agent