AgentExchange

Help & Support

Elevate Your Agents with AgentExchange Solutions
Easily enhance Agentforce with pre-built AI solutions from AgentExchange. Browse, install, and deploy agents, actions, and apps directly into your environment. Tell Me More

Have Questions?

Service Omni Channel Inventory Analyze

Beta
undefinedFiles
  • 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:

Field Meaning
id, label Channel identity and display label
omniChannelInstanceType Voice, Email, Chat, SMS, Facebook, WhatsApp, or InApp
routingType Queue, Flow, or Other
routingRequirementId, routingRequirementLabel Queue, flow, or other routing target
channelUrl, routingRequirementUrl Setup navigation links synthesized by the platform
icon, messages Display 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-up Skill
Coordinate a complete Omni setup service-omni-channel-setup-coordinate
Create or reuse a Service Channel service-omni-service-channel-configure
Create or update a queue routing configuration service-omni-queue-routing-config-deploy
Deploy a QueueBased or SkillsBased routing flow service-omni-routing-flow-deploy

References

File When to read
references/api-notes.md Supported endpoint, permission boundary, response fields, and why the headless operation is canonical

Related Skills

  • SkillSkill
    Salesforce
    Service Omni Channel Setup Coordinate

    Salesforce, Inc.

    Use to stand up Omni-Channel headlessly: base settings, users, service channels, routing configs, queues and members, presence statuses, permissions, supervisor configuration, and Case or VoiceCall routing flows. Reuses existing records and creates missin

  • SkillSkill
    Salesforce
    Service Omni Queue Routing Config Deploy

    Salesforce, Inc.

    Use to create or update a QueueRoutingConfig record on a Salesforce org via the Data API (idempotent SOQL detect + REST upsert). Naming is target-derived: Case→Case_Routing_Config, VoiceCall→Voice_Routing_Config, Incident→Incident_Routing_Config, Messagin

  • SkillSkill
    Salesforce
    Service Omni Routing Flow Deploy

    Salesforce, Inc.

    Use to deploy an Omni-Channel routing Flow for Case or VoiceCall and verify it routes work items to a queue or by skill. Supports the Case and VoiceCall steel thread with an autolaunched dryRun-gated variant and record-triggered QueueBased and SkillsBased

  • SkillSkill
    Salesforce
    Service Omni Service Channel Configure

    Salesforce, Inc.

    Use to ensure exactly one ServiceChannel exists on a Salesforce org for a routable sObject (Case | Incident | MessagingSession | VoiceCall), reusing any standard or custom channel already bound to that sObject and only deploying a canonical template when