service-agentforce-channel-configure
Wires an existing, active Agentforce agent to a channel by resolving a fallback queue, setting up inbound routing (either PATCH SessionHandlerId on the…
от forcedotcom★ 1 200 звёзд на GitHub
Установить service-agentforce-channel-configure в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
service-agentforce-channel-configure: Wire an Agentforce agent to a channel
Adds inbound routing between an existing channel and an existing Agentforce agent. The agent receives work items from the channel; a fallback queue handles overflow when the agent is unavailable.
This skill is generic — it works for any Agentforce agent, not just the Help Agent template.
Scope
In scope:
- Resolving or creating a fallback queue with the correct
QueueSobjectSobjectType - Branch A (Enhanced Chat / Enhanced Messaging): deploying
sessionHandlerType=AgentforceServiceAgent+sessionHandlerQueueon an existing MessagingChannel, then bindingSessionHandlerIdvia Data API PATCH - Branch B (Voice): assumes the phone number and
PstnVoiceMessagingChannel already exist (provisioned by the caller, e.g.service-helpagent-coordinate), then creating an inbound RoutingFlow (routingType: Copilot) that routes to the agent with the queue as fallback - Branch C (Email-to-Case): inbound routing via direct case-owner assignment or an Omni-Channel RoutingFlow, plus deploying a
BotEmailDefinition(Email Configuration) that links the agent to Service Email and binding it to the routing address - Optional outbound escalation: delegating the verified agent-to-human handoff contract to
service-agentforce-human-escalation-configure
Out of scope:
- Creating the agent — use
agentforce-generateorservice-helpagent-coordinate - Creating the MessagingChannel — use
service-digital-engagement-channel-configure - Creating the Embedded Service Deployment — use
service-digital-engagement-deployment-configure - Creating the Voice or Email-to-Case channel infrastructure
Required inputs
- Agent
DeveloperNameand agent label (MasterLabel) — must be an existing, active agent - Channel type — one of: Enhanced Chat, Enhanced Messaging (3rd-party), Voice, Email-to-Case
- Channel identifier — MessagingChannel
DeveloperName(Branch A), or the channel name/context (Branches B/C) - Target org alias
Validate AGENT_DEVELOPER_NAME matches ^[A-Za-z][A-Za-z0-9_]{0,79}$, and every other input per references/input-validation.md, before the first command. On a mismatch, stop and ask; never escape and continue.
Workflow
Steps are sequential. Read references/channel-types.md first to confirm the routing branch before proceeding.
Phase 0 — Production write-guard (mandatory, before any write)
This skill performs metadata/data writes (MessagingChannel edits, RoutingFlow deploys, agent republish). Before any write, classify the target org and refuse real production:
sf data query --target-org $ORG --json \
--query "SELECT Id, IsSandbox, TrialExpirationDate, OrganizationType FROM Organization LIMIT 1"
safe_to_writeis true only whenIsSandbox=true, ORTrialExpirationDateis non-null (trial/CDO), OROrganizationTypeisDeveloper Edition/Base Edition.- If
safe_to_writeis false, stop — state plainly that this is a real production customer org and escalation/channel wiring will not be applied. Do not proceed to any write phase. - If
safe_to_writeis true, show the write plan (which MessagingChannel/RoutingFlow/agent will change) and get explicit user confirmation of the target org before continuing.
Never bypass this gate — a mistaken production write here reroutes live customer traffic.
Phase 1 — Verify agent and resolve queue
Confirm the agent exists and has an active version:
# Get the definition sf data query --target-org $ORG --json \ --query "SELECT Id, DeveloperName, MasterLabel FROM BotDefinition WHERE DeveloperName='{AGENT_DEVELOPER_NAME}'" # Check for an Active version sf data query --target-org $ORG --json \ --query "SELECT Id, Status FROM BotVersion WHERE BotDefinitionId='{BOT_DEFINITION_ID}' AND Status='Active' LIMIT 1"Stop with a clear message if the definition is not found or no version has
Status = Active.Branch A caveat — an Active BotVersion is necessary but NOT sufficient to bind as
sessionHandlerAsa. The platform only accepts an agent that is provisioned/connected as a deployable Agentforce Service Agent (typically anExternalCopilot). Binding an agent that is merely Active fails the Phase 2 deploy withOnly active Agentforce Service Agents are supported for a Messaging Channel. Confirm bindability read-only before writing: if any MessagingChannel on the org already usessessionHandlerType=AgentforceServiceAgent, retrieve it (sf project retrieve start --metadata "MessagingChannel:{EXISTING}" --target-org $ORG) and read its<sessionHandlerAsa>— that set is the org's provably-bindable ASAs. If the chosen agent is not a provisioned ASA and no bindable ASA exists, stop and reportBLOCKED: provide an agent that is provisioned as an Agentforce Service Agent.Resolve the fallback queue and routing configuration — follow `ref
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read - 03
Write - 04
Edit - 05
Glob - 06
Grep - 07
AskUserQuestion
Вложенные файлы
- assets/BotEmailDefinition.botEmailDefinition-meta.xml
- assets/email/unfiled$public/AgentforceForServiceEmailTemplate.email
- assets/email/unfiled$public/AgentforceForServiceEmailTemplate.email-meta.xml
- assets/mdapi-package.xml
- assets/settings-mdapi-package.xml
- references/agent-wiring.md
- references/botemaildefinition.md
- references/channel-branch-email.md
- references/channel-branch-voice.md
- references/channel-types.md
- references/input-validation.md
- references/live-traffic-gate.md
- references/queue-resolution.md
- references/routing-flow.md
- scripts/validate-botemaildefinition.py
- scripts/validate-emailtemplate.py
FAQ
Что делает скилл service-agentforce-channel-configure?
Wires an existing, active Agentforce agent to a channel by resolving a fallback queue, setting up inbound routing (either PATCH SessionHandlerId on the MessagingChannel, or an inbound RoutingFlow for Voice/Email), and optionally configuring outbound escalation. Use when the user wants to add a channel to an existing agent, connect an agent to a messaging or voice channel, route Voice or Email-to-Case to an Agentforce agent, or set up a fallback queue for an agent channel. Also applies to an existing Help Agent. The channel infrastructure must already exist — this skill adds routing. DO NOT TRIGGER when the agent does not yet exist or still needs Help Agent setup (use agentforce-generate or service-helpagent-coordinate), when setting up Email-to-Case with an agent end-to-end (use service-email-to-case-configure), when creating the MessagingChannel itself (use service-digital-engagement-channel-configure), or when creating an Embedded Service Deployment (use service-digital-engagement-deployment-configure).
Как установить скилл service-agentforce-channel-configure?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл service-agentforce-channel-configure запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…