agentforce-architectur…
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
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
Claude Code
$ npx -y skills add forcedotcom/sf-skills --skill afcc-setup-coordinate --agent claude-code
Codex
$ npx skills add forcedotcom/sf-skills --skill afcc-setup-coordinate -a codex -y
Cursor
$ npx skills add forcedotcom/sf-skills --skill afcc-setup-coordinate -a cursor -y
Gemini CLI
$ npx skills add forcedotcom/sf-skills --skill afcc-setup-coordinate -a gemini-cli -y
GitHub Copilot
$ npx skills add forcedotcom/sf-skills --skill afcc-setup-coordinate -a github-copilot -y
OpenCode
$ npx skills add forcedotcom/sf-skills --skill afcc-setup-coordinate -a opencode -y
Windsurf
$ npx skills add forcedotcom/sf-skills --skill afcc-setup-coordinate -a windsurf -y
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"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.
**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).
---
---
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.
---
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
This repository provides Salesforce agent skills, plugins, and sample apps for building applications.
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Use this skill to upgrade Einstein Bots into Agentforce agents end-to-end in a single pass, orchestrating per-bot Agent Spec…
Data Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace, inspect, summarize, or describe a specific…
Build, modify, audit, repair, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates,…
Analyze production Agentforce agent behavior using session traces and Data Cloud, and manage Agent Health Monitoring (AHM)…
Use to design an AI agent persona — identity, voice, tone, behavioral style, guardrails — and encode it into Agent Script (.agent…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.