service-omni-channel-inventory-analyze

v2026.09.24

Use to inventory configured Omni-Channel instances across Voice, Email, Chat, SMS, Facebook, WhatsApp, and In-App, including each channel's Queue, Flow, or Other routing target, without changing the org. TRIGGER when: list Omni channels, inventory Omni routing, inspect channel routing targets, analyze Omni-Channel setup, or find configured service channels. Do not use to create, update, activate, or delete channels or routing configuration.

GitHub
Install command
npx skhub add forcedotcom/service-omni-channel-inventory-analyze
Markdown
SKILL.md

service-omni-channel-inventory-analyze

Read the org's complete Omni-Channel setup-home inventory without making changes. The supported headless operation combines Voice, Email, Live Chat, and Messaging channel families and returns their derived routing type and routing target. Use this analyzer before changing an unfamiliar org or when a user asks what Omni channels and routing are already configured.

Inputs

bash scripts/analyze.sh <org-alias> [--type Voice|Email|Chat|SMS|Facebook|WhatsApp|InApp]
  • org-alias is required and must already be authenticated with Salesforce CLI.
  • --type is optional and case-insensitive. It filters the returned inventory without changing the source data.

Preconditions and safety

  • Target org authenticated through sf CLI.
  • API v66.0 or later.
  • The running user must have View Setup and Configuration and Customize Application.
  • This skill is read-only. The shared Headless dispatcher uses an HTTP POST envelope, but the invoked getChannelInstances controller action performs no org mutation.
  • Use sf api request rest; never extract or print an access token.

Run

Invoke scripts/analyze.sh with the target org and optional channel type. The script POSTs the approved OmniChannelInstancesController.getChannelInstances envelope to the shared Headless dispatcher, validates the inner response, optionally filters it, and returns a stable summary plus the matching channel instances.

The inventory includes these source fields when the platform supplies them:

FieldMeaning
id, labelChannel identity and display label
omniChannelInstanceTypeVoice, Email, Chat, SMS, Facebook, WhatsApp, or InApp
routingTypeQueue, Flow, or Other
routingRequirementId, routingRequirementLabelQueue, flow, or other routing target
channelUrl, routingRequirementUrlSetup navigation links synthesized by the platform
icon, messagesDisplay metadata and platform-provided notices

Output contract

The script emits one JSON object:

  • skill: service-omni-channel-inventory-analyze
  • status: analyzed or blocked
  • filter: canonical channel type or null
  • summary.total_configured: number of instances returned by the platform before filtering
  • summary.returned: number of instances in instances
  • summary.by_channel_type: counts for the returned inventory
  • summary.by_routing_type: Queue, Flow, and Other counts for the returned inventory
  • instances: normalized channel instance objects
  • blocking_issue: actionable failure reason or null

An empty instances array with status: analyzed is a valid inventory result. Authentication, authorization, endpoint, or malformed-response failures return status: blocked and exit non-zero; never reinterpret them as an empty org.

Boundaries

  • Do not replace this operation with independent SOQL queries. No single public object API reproduces the platform's cross-family aggregation, routing-type derivation, and setup URL generation.
  • Do not infer missing routing fields. Preserve null when the platform does not supply a value.
  • Do not use the returned setup URLs as mutation endpoints.
  • For configuration changes, hand off to the appropriate leaf skill only after presenting the inventory to the user.
Requested follow-upSkill
Coordinate a complete Omni setupservice-omni-channel-setup-coordinate
Create or reuse a Service Channelservice-omni-service-channel-configure
Create or update a queue routing configurationservice-omni-queue-routing-config-deploy
Deploy a QueueBased or SkillsBased routing flowservice-omni-routing-flow-deploy

References

FileWhen to read
references/api-notes.mdSupported endpoint, permission boundary, response fields, and why the headless operation is canonical
Discovery
Tags

No tags published for this skill.

Version
Latest version metadata

Version

v2026.09.24

Published

Sep 24, 2026

Category

Uncategorized

License

Apache-2.0

Source path

skills/service-omni-channel-inventory-analyze

Default branch

main

Latest commit

5c7ac82

Tree SHA

d2b5791