Skip to content

How it works

Follow a real agent from Agentforce to Copilot Studio.

This is the actual Helpdesk sample agent going through Forceporter: a router, two subagents, an Apex action, a Flow and a prompt template. Every snippet below is real output.

Step 1

Import the Agent Script

The importer parses the .agent file with Salesforce's open-source Agent Script parser and compiler. It reads exactly what Agentforce accepts and prints the same diagnostics.

Agents built in Agent Builder, with no Agent Script, are read from their Salesforce metadata instead. Either way the result is the same neutral spec.

Here, create_ticket is only available once the issue summary is captured, takes its subject from a variable, and lets the model fill in details and priority.

Helpdesk_Agent.agentAgent Script
subagent new_ticket:
    label: "New Ticket"
    reasoning:
        actions:
            create_ticket: @actions.create_ticket
                description: "Log a support ticket for the problem"
                available when @variables.issue_summary != ""
                with subject = @variables.issue_summary
                with details = ...
                with priority = ...
                set @variables.ticket_number = @outputs.case_number

Step 2

Write the neutral spec

The neutral spec keeps what the agent means: where every input comes from, which variables outputs land in, and which conditions gate each tool.

Anything a target platform may not support goes into the portability list. For the Helpdesk agent, the importer flagged 8 items up front, including the confirmation step that Copilot Studio tool topics lack.

Helpdesk_Agent.apk.jsonNeutral spec
{
  "name": "create_ticket",
  "kind": "action",
  "available_when": "@variables.issue_summary != \"\"",
  "inputs": {
    "subject":  { "from": "variable", "variable": "issue_summary" },
    "details":  { "from": "llm" },
    "priority": { "from": "llm" }
  },
  "outputs_to_variables": [
    { "variable": "ticket_number", "output": "case_number" }
  ]
}
Portability findingReport
{
  "level": "info",
  "where": "actions.create_ticket",
  "message": "Requires user confirmation (Agentforce asks
    for a yes or no before running it). The target
    must ask too."
}

Step 3

Export to Copilot Studio

The exporter writes the Copilot Studio agent: instructions, one topic per tool, inputs bound to global variables, and the Agent Script gate translated to a Power Fx condition.

The workspace (13 topics for this agent) packs into a Power Platform solution. Where Agentforce asks the user to confirm an action, the converted topic asks a yes/no question first, and a required input is only filled with a value the user gave.

One command, apk deploy, takes it live: the bridge allowlist, the connector policy check, the import, the connection links and the publish. Sign-in is required, and the deploy reads it back before the publish, when published and after.

topics/CreateTicket.mcs.ymlCopilot Studio YAML
kind: AdaptiveDialog
modelDescription: Log a support ticket for the problem
inputs:
  - kind: AutomaticTaskInput
    propertyName: subject
    defaultValue: =Global.IssueSummary
beginDialog:
  kind: OnRecognizedIntent
  condition: =Global.IssueSummary <> ""
  actions:
    - kind: InvokeConnectorAction
      operationId: HttpRequest
      errorHandling:
        kind: ContinueOnErrorBehavior

Step 4

Bridge the actions that can't move

Apex, Flows and prompt templates only run on Salesforce, so Forceporter doesn't rewrite them. A small bridge package in your org runs the original action, called through Microsoft's Salesforce connector, so both agents share one implementation. It refuses any action that isn't on the agent's allowlist.

Every bridged call continues on error and returns an explicit error output. The agent is told the call failed, so it never claims a ticket was created when it wasn't.

Copilot Studio tool topic

Create Ticket (converted)

Salesforce connector

HTTP request, continues on error

Forceporter bridge (Apex REST)

Runs only allowlisted actions

Helpdesk_Create_Ticket Flow

The same Flow the Agentforce agent calls

Both agents create cases through one implementation, so the records match.

Step 5

Prove parity

The live runner sends the same conversation to the original Agentforce agent and to the converted one, as a signed-in user, and checks every reply. In the latest run all six turns match: the same ticket, tips from the same template, a confirmation that respects a "no", and a real case from each agent through the same Flow.

The agent's own Agentforce tests run too. Its five Testing Center cases ran against the converted agent, and the expected actions ran in all five. The first run of those tests caught a difference no conversation had shown, the agent choosing a ticket priority itself, and the export was fixed.

See every turn in the live demo

Run 8, November 14, 2026, signed in
  • "what's the status of ticket 1026?" Ticket 00001026, status New, from the same recordMatch
  • "my laptop won't connect to the office wifi" Three tips from the same prompt templateMatch
  • "Please open a ticket, medium priority." Both ask to confirm firstMatch
  • "no" Both create nothing and say soMatch
  • "Actually, yes, please go ahead" Both ask to confirm againMatch
  • "yes" Cases 00001052 and 00001053, through the same FlowMatch

Convert one real agent with us.

Design partners get a free pilot: one Agentforce agent converted to Copilot Studio in their own sandbox, with a full portability report and a parity run.