# System Landscape Diagram Template
Flowchart template for visualizing high-level Salesforce system architecture using the sf-skills standard styling.
## When to Use
- Architecture overview presentations
- Integration landscape documentation
- System inventory
- Stakeholder communication
## Mermaid Template - Sales Cloud Integration Landscape
```mermaid
%%{init: {"flowchart": {"nodeSpacing": 80, "rankSpacing": 70}} }%%
flowchart TB
subgraph users["π₯ USERS"]
direction LR
U1["π± Sales Reps
Mobile App"]
U2["π» Managers
Desktop"]
U3["π Partners
Portal"]
end
subgraph salesforce["βοΈ SALESFORCE PLATFORM"]
direction TB
subgraph core["CORE CRM"]
SF1["πΌ Sales Cloud
Leads, Opps"]
SF2["π§ Service Cloud
Cases, Knowledge"]
SF3["π Experience Cloud
Portals"]
end
subgraph automation["β‘ AUTOMATION"]
FL["π Flows
Process Builder"]
AP["β‘ Apex
Triggers, Services"]
PE["π’ Platform Events
CDC, Streaming"]
end
subgraph ai["π€ AI & ANALYTICS"]
EIN["π§ Einstein
Predictions"]
TB["π Tableau
Dashboards"]
CRM["π CRM Analytics
Reports"]
end
end
subgraph integration["π INTEGRATION LAYER"]
direction LR
MW["π MuleSoft
Anypoint Platform"]
API["π API Gateway
Named Credentials"]
end
subgraph external["π’ EXTERNAL SYSTEMS"]
direction TB
subgraph erp["ERP SYSTEMS"]
SAP["π SAP S/4HANA
Finance, Inventory"]
NET["π¦ NetSuite
Orders"]
end
subgraph marketing["MARKETING"]
MC["π§ Marketing Cloud
Campaigns"]
PAR["π― Account Engagement
Pardot"]
end
subgraph data["DATA & STORAGE"]
DW["βοΈ Snowflake
Data Warehouse"]
S3["βοΈ AWS S3
Files"]
end
end
%% User connections
U1 -->|"Salesforce Mobile"| SF1
U2 -->|"Lightning"| SF1
U2 -->|"Lightning"| SF2
U3 -->|"Portal"| SF3
%% Internal SF connections
SF1 <--> FL
SF2 <--> FL
FL <--> AP
AP <--> PE
SF1 --> EIN
SF1 --> TB
SF2 --> CRM
%% Integration connections
PE --> MW
AP <--> API
MW <--> API
%% External connections
API <-->|"REST/SOAP"| SAP
API <-->|"REST"| NET
MW <-->|"CDC"| MC
MW --> PAR
MW -->|"ETL"| DW
API -->|"Files"| S3
%% Node Styling - Users (violet-200)
style U1 fill:#ddd6fe,stroke:#6d28d9,color:#1f2937
style U2 fill:#ddd6fe,stroke:#6d28d9,color:#1f2937
style U3 fill:#ddd6fe,stroke:#6d28d9,color:#1f2937
%% Node Styling - Salesforce Core (cyan-200)
style SF1 fill:#a5f3fc,stroke:#0e7490,color:#1f2937
style SF2 fill:#a5f3fc,stroke:#0e7490,color:#1f2937
style SF3 fill:#a5f3fc,stroke:#0e7490,color:#1f2937
%% Node Styling - Automation (indigo-200/violet-200/teal-200)
style FL fill:#c7d2fe,stroke:#4338ca,color:#1f2937
style AP fill:#ddd6fe,stroke:#6d28d9,color:#1f2937
style PE fill:#99f6e4,stroke:#0f766e,color:#1f2937
%% Node Styling - AI (pink-200)
style EIN fill:#fbcfe8,stroke:#be185d,color:#1f2937
style TB fill:#fbcfe8,stroke:#be185d,color:#1f2937
style CRM fill:#fbcfe8,stroke:#be185d,color:#1f2937
%% Node Styling - Integration (orange-200)
style MW fill:#fed7aa,stroke:#c2410c,color:#1f2937
style API fill:#fed7aa,stroke:#c2410c,color:#1f2937
%% Node Styling - External (emerald-200/amber-200)
style SAP fill:#a7f3d0,stroke:#047857,color:#1f2937
style NET fill:#a7f3d0,stroke:#047857,color:#1f2937
style MC fill:#a7f3d0,stroke:#047857,color:#1f2937
style PAR fill:#a7f3d0,stroke:#047857,color:#1f2937
style DW fill:#fde68a,stroke:#b45309,color:#1f2937
style S3 fill:#fde68a,stroke:#b45309,color:#1f2937
%% Subgraph Styling - 50-level fills with dark dashed borders
style users fill:#f5f3ff,stroke:#6d28d9,stroke-dasharray:5
style salesforce fill:#ecfeff,stroke:#0e7490,stroke-dasharray:5
style core fill:#ecfeff,stroke:#0e7490,stroke-dasharray:5
style automation fill:#eef2ff,stroke:#4338ca,stroke-dasharray:5
style ai fill:#fdf2f8,stroke:#be185d,stroke-dasharray:5
style integration fill:#fff7ed,stroke:#c2410c,stroke-dasharray:5
style external fill:#ecfdf5,stroke:#047857,stroke-dasharray:5
style erp fill:#ecfdf5,stroke:#047857,stroke-dasharray:5
style marketing fill:#ecfdf5,stroke:#047857,stroke-dasharray:5
style data fill:#fffbeb,stroke:#b45309,stroke-dasharray:5
```
## Mermaid Template - Agentforce Architecture
```mermaid
%%{init: {"flowchart": {"nodeSpacing": 80, "rankSpacing": 70}} }%%
flowchart TB
subgraph channels["π± CHANNELS"]
WEB["π Web Chat
Embedded"]
SMS["π¬ SMS
Twilio"]
WHATS["π± WhatsApp
Business"]
SLACK["πΌ Slack
Enterprise"]
end
subgraph agentforce["π€ AGENTFORCE"]
direction TB
subgraph agents["AI AGENTS"]
SA["π§ Service Agent
Customer Support"]
SDA["π SDR Agent
Lead Qualification"]
COACH["π― Sales Coach
Guidance"]
end
subgraph topics["TOPICS & ACTIONS"]
T1["π¦ Order Status
Track, Update"]
T2["π Return Request
RMA, Refund"]
T3["β
Lead Qualify
Score, Route"]
A1["β‘ Apex Actions
Custom Logic"]
A2["π Flow Actions
Automation"]
end
subgraph foundation["FOUNDATION"]
DM["βοΈ Data Cloud
Unified Profile"]
TRUST["π Trust Layer
Guardrails"]
PROMPT["π Prompt Builder
Templates"]
end
end
subgraph backend["βοΈ BACKEND"]
APEX["β‘ Apex Services
Business Logic"]
FLOW["π Flow Orchestration
Processes"]
INT["π Integrations
Named Creds"]
end
subgraph datasources["πΎ DATA SOURCES"]
CRM[("πΌ CRM Data
Accounts, Cases")]
EXT[("π External Data
ERP, APIs")]
KB[("π Knowledge Base
Articles")]
end
%% Channel to Agent
WEB --> SA
SMS --> SA
WHATS --> SA
SLACK --> SDA
SLACK --> COACH
%% Agent to Topics
SA --> T1
SA --> T2
SDA --> T3
%% Topics to Actions
T1 --> A1
T2 --> A2
T3 --> A1
%% Foundation connections
agents --> DM
agents --> TRUST
topics --> PROMPT
%% Backend connections
A1 --> APEX
A2 --> FLOW
APEX --> INT
%% Data connections
DM --> CRM
DM --> EXT
TRUST --> KB
%% Node Styling - Channels (slate-200)
style WEB fill:#e2e8f0,stroke:#334155,color:#1f2937
style SMS fill:#e2e8f0,stroke:#334155,color:#1f2937
style WHATS fill:#e2e8f0,stroke:#334155,color:#1f2937
style SLACK fill:#e2e8f0,stroke:#334155,color:#1f2937
%% Node Styling - Agents (pink-200)
style SA fill:#fbcfe8,stroke:#be185d,color:#1f2937
style SDA fill:#fbcfe8,stroke:#be185d,color:#1f2937
style COACH fill:#fbcfe8,stroke:#be185d,color:#1f2937
%% Node Styling - Topics (violet-200)
style T1 fill:#ddd6fe,stroke:#6d28d9,color:#1f2937
style T2 fill:#ddd6fe,stroke:#6d28d9,color:#1f2937
style T3 fill:#ddd6fe,stroke:#6d28d9,color:#1f2937
%% Node Styling - Actions (indigo-200)
style A1 fill:#c7d2fe,stroke:#4338ca,color:#1f2937
style A2 fill:#c7d2fe,stroke:#4338ca,color:#1f2937
%% Node Styling - Foundation (teal-200)
style DM fill:#99f6e4,stroke:#0f766e,color:#1f2937
style TRUST fill:#99f6e4,stroke:#0f766e,color:#1f2937
style PROMPT fill:#99f6e4,stroke:#0f766e,color:#1f2937
%% Node Styling - Backend (cyan-200/orange-200)
style APEX fill:#a5f3fc,stroke:#0e7490,color:#1f2937
style FLOW fill:#a5f3fc,stroke:#0e7490,color:#1f2937
style INT fill:#fed7aa,stroke:#c2410c,color:#1f2937
%% Node Styling - Data (amber-200)
style CRM fill:#fde68a,stroke:#b45309,color:#1f2937
style EXT fill:#fde68a,stroke:#b45309,color:#1f2937
style KB fill:#fde68a,stroke:#b45309,color:#1f2937
%% Subgraph Styling - 50-level fills with dark dashed borders
style channels fill:#f8fafc,stroke:#334155,stroke-dasharray:5
style agentforce fill:#fdf2f8,stroke:#be185d,stroke-dasharray:5
style agents fill:#fdf2f8,stroke:#be185d,stroke-dasharray:5
style topics fill:#f5f3ff,stroke:#6d28d9,stroke-dasharray:5
style foundation fill:#f0fdfa,stroke:#0f766e,stroke-dasharray:5
style backend fill:#ecfeff,stroke:#0e7490,stroke-dasharray:5
style datasources fill:#fffbeb,stroke:#b45309,stroke-dasharray:5
```
## ASCII Fallback Template
```text
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SYSTEM LANDSCAPE β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π₯ USERS β
β βββββββββββββββββ βββββββββββββββββ βββββββββββββββββ β
β β Sales Reps β β Managers β β Partners β β
β β (Mobile) β β (Desktop) β β (Portal) β β
β βββββββββ¬ββββββββ βββββββββ¬ββββββββ βββββββββ¬ββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β βοΈ SALESFORCE PLATFORM β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β CORE CRM β β
β β βββββββββββββββ βββββββββββββββ βββββββββββββββ β β
β β β Sales Cloud β βService Cloudβ β Experience β β β
β β β β β β β Cloud β β β
β β ββββββββ¬βββββββ ββββββββ¬βββββββ βββββββββββββββ β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β β
β βββββββββββΌβββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββ β
β β AUTOMATION β β
β β βββββββββββββββ βββββββββββββββ βββββββββββββββ β β
β β β Flows ββββ Apex ββββ Platform β β β
β β β β β β β Events β β β
β β βββββββββββββββ ββββββββ¬βββββββ ββββββββ¬βββββββ β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
βΌ βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π INTEGRATION LAYER β
β βββββββββββββββββββββββββββ βββββββββββββββββββββββββββ β
β β MuleSoft β β API Gateway β β
β β Anypoint ββββ β β
β βββββββββββββ¬ββββββββββββββ βββββββββββββ¬ββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
βΌ βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π’ EXTERNAL SYSTEMS β
β βββββββββββββββββββββββ βββββββββββββββββββββββ βββββββββββββββββββββββ β
β β ERP β β Marketing β β Data Storage β β
β β βββββββββ¬ββββββββ β β βββββββββ¬ββββββββ β β βββββββββ¬ββββββββ β β
β β β SAP βNetSuitβ β β β MC βPardot β β β βSnowflkβ S3 β β β
β β βββββββββ΄ββββββββ β β βββββββββ΄ββββββββ β β βββββββββ΄ββββββββ β β
β βββββββββββββββββββββββ βββββββββββββββββββββββ βββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
## Component Types (Tailwind 200-level)
| Category | Examples | Icon | Fill (200) | Stroke (700+) |
|----------|----------|------|------------|---------------|
| Users | Sales, Service, Partners | π₯ | `#ddd6fe` | `#6d28d9` |
| Salesforce Clouds | Sales, Service, Marketing | βοΈ | `#a5f3fc` | `#0e7490` |
| Automation | Flow, Apex, Events | β‘ | `#c7d2fe` | `#4338ca` |
| AI/Analytics | Einstein, Tableau, CRM Analytics | π€ | `#fbcfe8` | `#be185d` |
| Integration | MuleSoft, API Gateway | π | `#fed7aa` | `#c2410c` |
| External Systems | ERP, Marketing, Data | π’ | `#a7f3d0` | `#047857` |
| Storage | Database, Data Lake, Files | πΎ | `#fde68a` | `#b45309` |
## Connection Types
| Pattern | Description | Arrow |
|---------|-------------|-------|
| Sync Request/Response | REST API call | `<-->` |
| Async (Event-based) | Platform Events, CDC | `-->` |
| Batch/ETL | Scheduled data load | `-->` (dashed) |
| Real-time streaming | CometD, Pub/Sub | `==>` |
## Customization Points
- Replace example systems with actual integrations
- Add or remove clouds based on implementation
- Include specific API names and versions
- Show data flow direction and volumes