service-cloud-architecture

Use when designing a Service Cloud solution end-to-end: channel strategy (phone, email, chat, messaging, social), routing model (queue-based vs skills-based Omni-Channel), knowledge strategy, entitlement and SLA enforcement, Einstein Bot / Agentforce deflection, and integration points. Triggers: service cloud architecture, case routing design, omni-channel strategy, contact center design, channel strategy, knowledge deflection, service console architecture. NOT for individual feature configuration (use admin/case-management), NOT for Einstein Bot conversation design (use agentforce/einstein-bot-architecture), NOT for telephony CTI implementation details.

Best use case

service-cloud-architecture is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Use when designing a Service Cloud solution end-to-end: channel strategy (phone, email, chat, messaging, social), routing model (queue-based vs skills-based Omni-Channel), knowledge strategy, entitlement and SLA enforcement, Einstein Bot / Agentforce deflection, and integration points. Triggers: service cloud architecture, case routing design, omni-channel strategy, contact center design, channel strategy, knowledge deflection, service console architecture. NOT for individual feature configuration (use admin/case-management), NOT for Einstein Bot conversation design (use agentforce/einstein-bot-architecture), NOT for telephony CTI implementation details.

Teams using service-cloud-architecture should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/service-cloud-architecture/SKILL.md --create-dirs "https://raw.githubusercontent.com/PranavNagrecha/AwesomeSalesforceSkills/main/skills/architect/service-cloud-architecture/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/service-cloud-architecture/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How service-cloud-architecture Compares

Feature / Agentservice-cloud-architectureStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Use when designing a Service Cloud solution end-to-end: channel strategy (phone, email, chat, messaging, social), routing model (queue-based vs skills-based Omni-Channel), knowledge strategy, entitlement and SLA enforcement, Einstein Bot / Agentforce deflection, and integration points. Triggers: service cloud architecture, case routing design, omni-channel strategy, contact center design, channel strategy, knowledge deflection, service console architecture. NOT for individual feature configuration (use admin/case-management), NOT for Einstein Bot conversation design (use agentforce/einstein-bot-architecture), NOT for telephony CTI implementation details.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Service Cloud Architecture

Use this skill when designing an end-to-end Service Cloud solution. It activates when a practitioner needs to make architectural decisions about channel strategy, routing model, knowledge deflection, SLA enforcement, and integration points across a contact center or customer service operation. It produces a structured architecture covering the full case lifecycle from creation through routing, assignment, resolution, and closure.

---

## Before Starting

Gather this context before working on anything in this domain:

- **What channels does the business require today and in the next 12 months?** Phone, email, web-to-case, chat, messaging (in-app, web, WhatsApp, SMS), social, self-service portal. Each channel has distinct routing, licensing, and integration implications.
- **What is the most common wrong assumption?** That Omni-Channel is just a queue — it is a unified routing engine with two distinct models (queue-based and skills-based) that behave very differently at scale. Choosing the wrong model creates routing bottlenecks that are expensive to fix post-go-live.
- **What limits are in play?** Omni-Channel has a maximum of 200 routing configurations per org. Skills-based routing supports up to 100 skills per routing configuration. Service Console performance degrades with more than 10-12 open tabs. Messaging sessions have concurrency limits per agent tied to Omni-Channel capacity. Knowledge article search is bound by SOSL query limits (2,000 results per query).

---

## Core Concepts

### Omni-Channel Routing Engine

Omni-Channel is the unified routing engine for Service Cloud. It replaces legacy queue assignment rules for real-time work items (chat, messaging, phone) and can optionally route cases. Two routing models exist:

- **Queue-based routing:** Work items land in queues. Omni-Channel pushes items from queues to agents based on capacity and queue priority. Simple to configure. Best when agent skill overlap is high and work is relatively homogeneous.
- **Skills-based routing:** Work items carry required skill attributes. Omni-Channel matches items to agents whose skill profile satisfies the requirements. Supports skill weighting and minimum skill levels. Best when agent specialization matters — language, product line, certification level.

Queue-based routing is configured declaratively. Skills-based routing requires the Skills-Based Routing managed package and additional setup for skill definitions, service resources, and routing configurations. Both models respect agent capacity, which is expressed as a numeric value per channel (e.g., 1 for phone, 3 for chat, 5 for messaging).

### Service Console as the Agent Workspace

The Service Console is a Lightning App optimized for high-throughput agent work. It uses a tabbed workspace with split views, utility bar components (Omni-Channel widget, History, Macros, Knowledge sidebar), and subtab navigation. Architectural decisions that affect Console performance:

- **Component count per page:** More than 10 components on a single Console page causes measurable load time increase. Lazy-load components that are not needed on initial render.
- **Synchronous Apex on page load:** Any Apex called synchronously during Console tab open blocks the UI thread. Use Lightning Data Service or wire services instead where possible.
- **Utility bar density:** Each utility bar component consumes memory for the lifetime of the Console session. Limit to 6-8 utilities.

### Knowledge as a Deflection Engine

Salesforce Knowledge serves two architectural purposes: agent-assist (suggesting articles during case work) and self-service deflection (exposing articles in Experience Cloud sites, Einstein Bots, and Agentforce). Architectural decisions:

- **Data categories** control article visibility by audience (internal agents, partners, customers) and topic taxonomy. Design the category hierarchy before authoring content — restructuring later requires re-classifying every article.
- **Article types** (record types on the Knowledge object) separate content by format: FAQ, troubleshooting guide, product documentation. Each type can have a distinct page layout.
- **Search optimization** matters: Knowledge search uses SOSL under the hood. Articles need keyword-rich titles, summaries, and structured content to surface correctly. Einstein Search Answers (AI-powered) requires Lightning Knowledge and a minimum article corpus.

### Entitlements and SLA Enforcement

Entitlements define what support a customer is entitled to (response time, resolution time, available channels). Milestones within entitlement processes enforce SLAs by tracking time-based deadlines and triggering escalation actions when milestones approach violation or are violated. Architectural considerations:

- Entitlement processes support business-hours-aware milestone tracking.
- Milestone actions fire at configurable percentage thresholds (e.g., warn at 50%, escalate at 75%, violate at 100%).
- Entitlements can be auto-applied via lookup to the Account, Asset, or Contact on case creation.

---

## Common Patterns

### Pattern: Tiered Omni-Channel Routing with Overflow

**When to use:** Contact centers with specialized teams (Tier 1 general, Tier 2 product-specific, Tier 3 engineering) where work should route to the best-fit agent but must overflow to a generalist pool if wait time exceeds a threshold.

**How it works:**
1. Enable skills-based routing. Define skills for product line, language, and tier level.
2. Create routing configurations with primary skill requirements (e.g., Product=Billing, Tier=2).
3. Set the routing configuration timeout (e.g., 120 seconds). On timeout, the work item re-routes with relaxed skill requirements — dropping the Tier skill so any available agent can accept.
4. Use Omni-Channel Flow to implement the timeout and re-routing logic.

**Why not the alternative:** Queue-based routing with multiple queues per tier creates a proliferation of queues (Products x Tiers x Languages). Agent membership becomes unmanageable at 50+ queues, and priority ordering across queues is fragile.

### Pattern: Messaging-First Channel Strategy

**When to use:** Organizations moving from synchronous chat (legacy Live Agent) to asynchronous messaging to improve agent utilization and customer experience.

**How it works:**
1. Deploy Messaging for In-App and Web (replaces legacy Live Agent for new implementations). This uses the Messaging channel type in Omni-Channel.
2. Configure Embedded Service deployment for web and mobile surfaces.
3. Set agent capacity: messaging is asynchronous, so agents can handle 4-6 concurrent sessions vs 2-3 for synchronous chat.
4. Implement Einstein Bot or Agentforce as the first responder — gather case category, check authentication, attempt knowledge deflection. Escalate to a human agent only when the bot cannot resolve.
5. Enable Messaging session persistence so customers can return to existing conversations without re-authenticating.

**Why not the alternative:** Synchronous chat (legacy Live Agent) requires an agent to be continuously engaged. If the customer goes idle for 5 minutes, the session times out. Messaging allows hours or days between responses, which dramatically improves agent utilization for intermittent interactions.

### Pattern: Knowledge-Centered Service (KCS) Architecture

**When to use:** Organizations where knowledge creation should be embedded in the case resolution workflow, not treated as a separate authoring activity.

**How it works:**
1. Configure Knowledge in the Service Console with the Knowledge sidebar component.
2. Build a screen Flow or Quick Action that lets agents create or update articles directly from a case — pre-populating fields from case data.
3. Implement an article lifecycle: Draft (created during case work) -> Review (flagged for SME review) -> Published. Use approval processes or Flow orchestration.
4. Expose published articles through Experience Cloud, Einstein Bot, and Agentforce to drive self-service deflection.
5. Track deflection metrics: article views that did not result in a case creation (measured via custom event tracking in the Experience Cloud site).

---

## Decision Guidance

| Situation | Recommended Approach | Reason |
|---|---|---|
| Fewer than 50 agents, homogeneous skills | Queue-based Omni-Channel routing | Simpler to configure and maintain; skills-based overhead is unjustified |
| 50+ agents with distinct specializations | Skills-based Omni-Channel routing | Skill matching improves first-contact resolution and reduces transfers |
| New chat/messaging deployment | Messaging for In-App and Web | Replaces legacy Live Agent; supports asynchronous conversations and bot integration |
| Existing Live Agent deployment | Evaluate migration to Messaging | Salesforce is deprecating legacy Live Agent; plan migration before forced end-of-life |
| High case volume, immature knowledge base | Invest in KCS before adding channels | Adding more channels without deflection just increases volume; knowledge is the multiplier |
| Telephony integration needed | Amazon Connect (Service Cloud Voice) or Open CTI partner | Service Cloud Voice is the native option; Open CTI for existing PBX investments |
| SLA enforcement required | Entitlement processes with milestones | Only native mechanism for business-hours-aware, multi-stage SLA tracking |

---

## Recommended Workflow

Step-by-step instructions for an AI agent or practitioner designing a Service Cloud architecture:

1. **Gather requirements** — Document the required channels, expected case volume, agent count, SLA requirements, and existing systems. Confirm the Salesforce edition (Enterprise+ required for Omni-Channel; Service Cloud Voice requires additional licensing).
2. **Design the channel strategy** — Map each customer touchpoint to a Salesforce channel type (Email-to-Case, Web-to-Case, Messaging for In-App/Web, Service Cloud Voice, Social Customer Service). Document which channels are synchronous vs asynchronous and the expected volume split.
3. **Select the routing model** — Choose queue-based or skills-based Omni-Channel routing based on agent count and specialization requirements. Define capacity model (units per channel per agent). Design overflow and escalation paths.
4. **Design the case lifecycle** — Map the full case journey: creation (auto or manual), categorization, routing, assignment, work in progress, resolution, closure. Define case record types, page layouts per support tier, and automation (assignment rules, escalation rules, entitlement processes).
5. **Architect knowledge and deflection** — Define the knowledge taxonomy (data categories), article types, and authoring workflow. Plan bot/Agentforce deflection for the top case categories by volume.
6. **Design integrations** — Document telephony integration (Service Cloud Voice vs Open CTI), external system integrations (ERP for order lookup, billing systems), and data synchronization requirements. Use Named Credentials for all external callouts.
7. **Validate and document** — Review the architecture against the Review Checklist below. Produce the solution architecture document, channel strategy matrix, and capacity model. Walk through the architecture with stakeholders before build begins.

---

## Review Checklist

Run through these before marking work in this area complete:

- [ ] Channel strategy covers all required customer touchpoints with documented rationale
- [ ] Routing model (queue-based or skills-based) is selected with capacity model showing agent concurrency per channel
- [ ] Case lifecycle is documented end-to-end: creation, routing, assignment, resolution, closure
- [ ] Entitlement processes with milestones are designed for all SLA requirements
- [ ] Knowledge taxonomy (data categories) and article types are defined
- [ ] Deflection strategy is documented with target deflection rate for top case categories
- [ ] Integration architecture covers telephony, external systems, and data flows
- [ ] Service Console layout is optimized: fewer than 10 components per page, utility bar limited to 6-8 items
- [ ] Security model reviewed: case sharing rules, Knowledge article visibility by audience, agent profile permissions
- [ ] Licensing confirmed: Service Cloud User, Omni-Channel, Messaging, Service Cloud Voice as needed

---

## Salesforce-Specific Gotchas

Non-obvious platform behaviors that cause real production problems:

1. **Omni-Channel capacity is per-presence-status, not global** — An agent's capacity is consumed only while they are in an Omni-Channel presence status. If an agent switches to "Offline" and back to "Available," any previously assigned work items no longer count toward their capacity. This can cause double-assignment if agents toggle status to game the system.
2. **Messaging sessions persist but consume capacity until closed** — Unlike chat, messaging sessions do not auto-expire on idle. An agent with 5 open messaging sessions that went quiet yesterday still has 5 capacity units consumed today. You must architect a session-close policy (auto-close after N hours of inactivity via Flow or scheduled job).
3. **Skills-based routing requires the managed package and is not reversible in-place** — Once you enable skills-based routing and agents have active sessions, you cannot switch back to queue-based without re-creating routing configurations. Test thoroughly in a sandbox before enabling in production.
4. **Knowledge article search returns max 2,000 results via SOSL** — If you have 10,000+ articles, poorly structured search queries will hit the SOSL ceiling and return incomplete results. This is invisible to the user — they just do not see the right article. Mitigate with data categories, keyword optimization, and promoted search terms.
5. **Email-to-Case threading breaks on modified subject lines** — Email-to-Case uses a thread ID token in the email subject to match replies to existing cases. If a customer or external system modifies the subject line, a new case is created instead of threading to the existing one. This causes duplicate cases that are hard to detect at scale.

---

## Output Artifacts

| Artifact | Description |
|---|---|
| Solution architecture document | End-to-end Service Cloud design covering channels, routing, case lifecycle, knowledge, integrations, and security |
| Channel strategy matrix | Table mapping each customer touchpoint to a Salesforce channel type with rationale, volume estimate, and licensing requirement |
| Routing and capacity model | Omni-Channel routing design (queue or skills-based) with agent capacity units per channel and overflow rules |
| Knowledge taxonomy | Data category hierarchy and article record type definitions |
| Integration architecture | Diagram and documentation of telephony, external system, and data integration points |

---

## Related Skills

- omni-channel-capacity-model — Use for detailed capacity modeling and Omni-Channel tuning after the high-level routing decision is made
- multi-channel-service-architecture — Use when the focus is specifically on cross-channel orchestration and channel switching
- einstein-bot-architecture — Use when designing the conversational bot/Agentforce deflection layer in detail
- knowledge-vs-external-cms — Use when deciding whether to use Salesforce Knowledge or an external CMS for article content
- security-architecture-review — Use to deep-dive on the security model (sharing, FLS, Shield) for the Service Cloud implementation
- integration-framework-design — Use when building the reusable integration layer for telephony and external system callouts

---

## Official Sources Used

- Salesforce Service Cloud Overview — https://help.salesforce.com/s/articleView?id=sf.support_agents_intro.htm
- Salesforce Well-Architected Overview — https://architect.salesforce.com/well-architected/overview
- Omni-Channel Routing — https://help.salesforce.com/s/articleView?id=sf.omnichannel_intro.htm
- Messaging for In-App and Web — https://help.salesforce.com/s/articleView?id=sf.miaw_intro.htm
- Service Cloud Voice — https://help.salesforce.com/s/articleView?id=sf.voice_about.htm
- Salesforce Knowledge — https://help.salesforce.com/s/articleView?id=sf.knowledge_whatis.htm
- Entitlements and Milestones — https://help.salesforce.com/s/articleView?id=sf.entitlements_overview.htm

Related Skills

service-account-credential-rotation

8
from PranavNagrecha/AwesomeSalesforceSkills

Use when designing credential rotation for integration users, connected apps, named credentials, and OAuth client secrets in Salesforce. Covers rotation cadence, zero-downtime handover, secret storage, and detection of stale credentials. Triggers: 'rotate integration user password', 'connected app secret rotation', 'named credential rotation', 'stale service account', 'zero downtime secret rotation'. NOT for end-user password policies.

experience-cloud-security

8
from PranavNagrecha/AwesomeSalesforceSkills

Use when configuring access controls, sharing, or site security for authenticated or guest Experience Cloud (community) users: external OWD, Sharing Sets, Share Groups, CSP, clickjack protection, guest user record access. NOT for internal sharing model configuration (use sharing-and-visibility).

wire-service-patterns

8
from PranavNagrecha/AwesomeSalesforceSkills

Use when designing or reviewing Lightning Web Components that use `@wire`, Lightning Data Service, UI API, or the GraphQL wire adapter, especially for reactive parameters, cache behavior, and refresh strategy. Triggers: 'wire service', 'refreshApex', 'reactive parameter', 'getRecord', 'wire vs imperative Apex'. NOT for component communication or generic lifecycle issues when data provisioning is not the main concern.

headless-experience-cloud

8
from PranavNagrecha/AwesomeSalesforceSkills

Use when building custom frontends (React, Vue, mobile, static sites) that consume Salesforce CMS content via the Connect REST API headless delivery endpoint. Triggers: 'headless Salesforce CMS', 'deliver CMS content to external frontend', 'React app Salesforce content API', 'custom frontend Experience Cloud data', 'CMS delivery channel API'. NOT for standard Experience Builder site development. NOT for CMS Connect (3rd-party CMS federation into Experience Builder). NOT for Experience Cloud LWC components rendered inside a site.

experience-cloud-search-customization

8
from PranavNagrecha/AwesomeSalesforceSkills

Use this skill when configuring or extending search on an Experience Cloud site — covering Search Manager scope configuration, LWR vs Aura search component selection, federated search setup, guest user search access, and custom search result components. NOT for SOSL/SOQL query development. NOT for internal Salesforce global search or Einstein Search for agents.

experience-cloud-multi-idp-sso

8
from PranavNagrecha/AwesomeSalesforceSkills

Use this skill when configuring multiple identity providers (OIDC and/or SAML) on a single Experience Cloud site or across tenant-specific portals in the same org — covering auth provider registration, Start SSO URL routing, Federation ID mapping, RegistrationHandler implementation, and simultaneous SP+IdP topology. Trigger keywords: multiple identity providers Experience Cloud, multi-tenant SSO community portal, vendor and citizen portal same site, OIDC SAML both on login page, tenant-specific login routing community. NOT for internal Salesforce employee SSO configuration. NOT for single auth provider setups — see experience-cloud-authentication for basic SSO.

experience-cloud-lwc-components

8
from PranavNagrecha/AwesomeSalesforceSkills

Use when building custom LWC components for Experience Cloud (Experience Builder sites, LWR portals, Aura-based communities). Covers community context imports, guest user Apex access patterns, navigation API differences between LWR and Aura, and JS-meta.xml target configuration for Experience Builder exposure. NOT for internal LWC components deployed to Lightning App Builder or standard record pages (see lwc/lwc-development). NOT for Aura community components. Trigger keywords: build LWC for Experience Cloud, custom component community portal LWC, guest user LWC component, community context import salesforce, lightningCommunity target, @salesforce/community, guest Apex.

experience-cloud-authentication

8
from PranavNagrecha/AwesomeSalesforceSkills

Use when building custom login pages, social SSO flows, self-registration flows, or passwordless OTP login for Experience Cloud (community) sites. Trigger keywords: custom login page Experience Cloud, social SSO community portal, passwordless login Experience Cloud, self-registration custom flow, headless authentication community, auth provider OIDC SAML site. NOT for internal SSO configuration (use identity/sso skills). NOT for standard username/password authentication with no customization.

experience-cloud-api-access

8
from PranavNagrecha/AwesomeSalesforceSkills

Use this skill when configuring or troubleshooting API access for Experience Cloud external users and guest users: guest user Apex data access, Customer Community Plus or Partner Community REST/SOAP API access, external user OAuth scopes, and sharing enforcement on API responses. Trigger keywords: Experience Cloud API access external user, community user REST API, guest user API limits, Customer Community API permissions, external user OAuth. NOT for internal Salesforce API authentication, non-community OAuth flows, or internal user API security.

net-zero-cloud-setup

8
from PranavNagrecha/AwesomeSalesforceSkills

Use this skill when configuring Salesforce Net Zero Cloud — including Scope 1/2/3 emission source modeling via the StnryAssetCrbnFtprnt / VehicleAssetCrbnFtprnt / Scope3CrbnFtprnt object families, emission factor library setup (EmssnFctr / EmssnFctrSet), DPE-driven carbon calculation jobs, supplier engagement scoring, and CSRD / ESRS / TCFD disclosure pack mapping. Triggers on: Net Zero Cloud setup, Sustainability Cloud carbon accounting, Scope 1 2 3 emissions Salesforce, emission factor library, supplier engagement Net Zero, ESG disclosure pack mapping. NOT for ESG content scoring (use Marketing Cloud), NOT for general financial reporting (use Accounting Subledger), NOT for energy-only utility billing (use Energy & Utilities Cloud).

manufacturing-cloud-setup

8
from PranavNagrecha/AwesomeSalesforceSkills

Use this skill when configuring Salesforce Manufacturing Cloud — including Sales Agreement setup, Account-Based Forecasting (ABF) recalc jobs, run-rate management, Rebate Management programs, channel inventory tracking via Channel Revenue Management, and Group Membership / OrderItem-to-SalesAgreement reconciliation. Triggers on: Manufacturing Cloud setup, Sales Agreement Salesforce, account-based forecast recalculation, run rate manufacturing, rebate program setup, channel revenue management. NOT for general Sales Cloud opportunity-to-order flow (use standard Opportunity / Order), NOT for Field Service install-base management (use FSL skills), NOT for Automotive Cloud dealer modeling (use automotive-cloud-setup).

data-cloud-zero-copy-federation

8
from PranavNagrecha/AwesomeSalesforceSkills

Use this skill when configuring or troubleshooting Data Cloud Zero Copy / Lakehouse Federation against Snowflake, Databricks, BigQuery, or Redshift — including external Data Lake Object setup, query semantics through federation, refresh and cache behavior, and choosing federation versus physical ingestion. Triggers on: Data Cloud federated DLO setup, query latency against external warehouse, Snowflake/Databricks/BigQuery integration with Data Cloud, federation vs ingestion decision. NOT for physical Ingestion API streaming/bulk patterns (use data-cloud-integration-strategy), not for CRM Analytics external connectors (use analytics-external-data), not for outbound Data Cloud activation to external systems (use data-cloud-activation-development).