Command Palette

Search for a command to run...

Назад к скиллам
скилл № 68268

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от 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 QueueSobject SobjectType
  • Branch A (Enhanced Chat / Enhanced Messaging): deploying sessionHandlerType=AgentforceServiceAgent + sessionHandlerQueue on an existing MessagingChannel, then binding SessionHandlerId via Data API PATCH
  • Branch B (Voice): assumes the phone number and PstnVoice MessagingChannel 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-generate or service-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 DeveloperName and 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_write is true only when IsSandbox=true, OR TrialExpirationDate is non-null (trial/CDO), OR OrganizationType is Developer Edition / Base Edition.
  • If safe_to_write is 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_write is 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

  1. 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 an ExternalCopilot). Binding an agent that is merely Active fails the Phase 2 deploy with Only active Agentforce Service Agents are supported for a Messaging Channel. Confirm bindability read-only before writing: if any MessagingChannel on the org already uses sessionHandlerType=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 report BLOCKED: provide an agent that is provisioned as an Agentforce Service Agent.

  2. Resolve the fallback queue and routing configuration — follow `ref

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash
  2. 02Read
  3. 03Write
  4. 04Edit
  5. 05Glob
  6. 06Grep
  7. 07AskUserQuestion

Вложенные файлы

  • 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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить service-agentforce-channel-configure с