Skip to content
Development
Skill

/afcc-setup-coordinate

Orchestrates 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

From plugin
sf-skills
1.2k200 skills6 agents15 commands4 MCP

Claude Code

$ npx -y skills add forcedotcom/sf-skills --skill afcc-setup-coordinate --agent claude-code

SKILL.md

afcc-setup-coordinate.SKILL.md
name: afcc-setup-coordinate
description: "Orchestrates 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."
allowed-tools: Bash(sf org display:*) Bash(sf data query:*) Bash(sf api request rest:*) Bash(sf project deploy start:*) Bash(sf project retrieve start:*) Bash(scripts/*) Bash(./scripts/*) Bash(bash scripts/*) Read Write AskUserQuestion
metadata:
  version: "1.0"
  minApiVersion: "67.0"
  domains: ["Service", "Agentforce"]
  cliTools:
    - tool: ["sf"]
      semver: ">=2.0.0"
    - tool: ["jq"]
      semver: ">=1.6"
  relatedSkills:
    - "service-agentforce-contact-center-coordinate"
    - "service-omni-agent-users-create"
    - "service-omni-base-settings-configure"
    - "service-omni-queue-deploy"
    - "service-omni-queue-routing-config-deploy"
    - "service-omni-queue-members-assign"
    - "service-omni-presence-status-deploy"
    - "service-omni-permission-set-assign"
    - "service-omni-sidebar-configure"

afcc-setup-coordinate: Agentforce Contact Center End-to-End Setup

Orchestrates full headless provisioning of an Agentforce Contact Center org. Scans existing org state before every write, presents a delta plan at the Approve gate, and delegates each configuration step to the appropriate sub-skill. Interactive at key decision points — never assumes country, number type, queue names, or user counts.

Scope

**In scope:** demo user provisioning (or reusing existing users), Omni-Channel base settings, human queue + routing config + members, presence statuses, permission set assignment (including the Contact Center Admin set the executing user needs), PSTN voice number procurement, PstnVoice MessagingChannel creation wired to the queue, and a Lightning console app that surfaces Omni so the setup can be tested end to end.

**Out of scope:** Agentforce agent setup, escalation flows, digital channels (WhatsApp/SMS/LINE/Apple/Facebook), Service AI features, supervisor configuration, and org authentication (the target org must already be authenticated before invoking this skill).

---

Prerequisites

  • **Authenticated org** — run `sf org login web --alias <name> --instance-url <url>` before invoking this skill. This skill never runs an interactive login.
  • **Salesforce CLI** (`sf`) ≥ 2.0.0 and `jq` ≥ 1.6 installed.
  • **AFCC-entitled org** — org must have Agentforce Contact Center and Service Cloud Voice licenses available. Creating agent users also needs a free Service Cloud User feature-license seat; without one, reuse existing users (Step 1).
  • **Contact Center Admin permission set** — the executing user needs `ContactCenterAdminNativeCCaaS` (label "Agentforce Contact Center Admin (Salesforce Voice)") before the number and voice channel can be created. Step 4 assigns it. The sibling sets are `ContactCenterAgentNativeCCaaS` (Rep) and `ContactCenterSupervisorNativeCCaaS`.
  • **Sub-skill assets** — the repo copies of `service-omni-presence-status-deploy` and `service-omni-permission-set-assign` do not bundle the DX assets their scripts need (they exit with "Assets DX project not found" / "Omni_Agent missing"). This skill does not modify them: it carries the missing files in `assets/sub-skill-assets/<sub-skill>/` and overlays them onto a temporary copy of the sub-skill at run time (Step 4).

---

Stage: INTAKE

Collect three required inputs before any org access. Gather all three in a single `AskUserQuestion` call:

1. **Org alias** — "What is your org alias?" 2. **Voice number type** — Toll Free or 10DLC 3. **Country** — US or CA

After collecting the alias, verify the org is reachable:

sf org display --target-org <alias> --json

Read `result.instanceUrl` to confirm success. If this command fails, stop immediately and tell the user to authenticate first — do not attempt an interactive login.

Store all three inputs. Every downstream stage reads them from context — do not re-ask.

---

Stage: AUDIT

Run the audit script to probe the org and write `org_profile.json`:

bash scripts/audit_org.sh <alias> org_profile.json

This queries (read-only — no writes):

| What | SOQL | |---|---| | Active users | `SELECT Id, Name, Username, Profile.Name FROM User WHERE IsActive=true ORDER BY Name` | | Service channels | `SELECT Id, DeveloperName, MasterLabel FROM ServiceChannel` | | Queues | `SELECT Id, Name, DeveloperName FROM Group WHERE Type='Queue'` | | Routing configs | `SELECT Id, DeveloperName, MasterLabel, RoutingModel FROM QueueRoutingConfig` | | Presence statuses | `SELECT Id, DeveloperName, MasterLabel FROM ServicePresenceStatus` | | Messaging channels | `SELECT Id, DeveloperName, MasterLabel, MessageType, IsActive FROM MessagingChannel` | | Channel lines | `SELECT Id, Code, CodeStatus FROM CommunicationChannelLine` (Tooling API) | | Permission sets | `SELECT Id, Name, Label FROM PermissionSet WHERE Name IN ('Omni_Agent','ContactCenterAdminNativeCCaaS','ContactCenterAgentNativeCCaaS','ContactCenterSupervisorNativeCCaaS')` plus the `PermissionSetAssignment` rows for the active users | | Console apps | `SELECT DurableId, DeveloperName, Label, NavType FROM AppDefinition WHERE NavType='Console'` |

All results are written to `org_profile.json`. Every downstream step reads from this file — do not re-query what the audit already resolved. The audit also checks the artifacts a freshly licensed AFCC org ships with — service channels `sfdc_livemessage` and `sfdc_phone`, the queue `Default_Queu

Read more
@forcedotcom
Ships withsf-skills

This repository provides Salesforce agent skills, plugins, and sample apps for building applications.

1.2k200 skills6 agents4 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.2k
Star history of forcedotcom/sf-skills on GitHub, a chart by star-history.com

Other skills on sf-skills.

agentforce-observe

agentforce-observe

Analyze production Agentforce agent behavior using session traces and Data Cloud, and manage Agent Health Monitoring (AHM)…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc3w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react10d252k
@facebook@facebookInstall Skill

Questions about afcc-setup-coordinate.

Which coding agents can use afcc-setup-coordinate?
afcc-setup-coordinate installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.