Salesforce AI Agentforce Observability
by @dsouza-anush
Agentforce session tracing extraction and analysis. TRIGGER when: user extracts STDM data from Data Cloud, analyzes agent session traces, debugs agent conver...
clawhub install sf-ai-agentforce-observabilityπ About This Skill
name: sf-ai-agentforce-observability description: > Agentforce session tracing extraction and analysis. TRIGGER when: user extracts STDM data from Data Cloud, analyzes agent session traces, debugs agent conversations via telemetry, or works with .parquet files from Agentforce. DO NOT TRIGGER when: testing agents (use sf-ai-agentforce-testing), Apex debug logs (use sf-debug), or building agents (use sf-ai-agentforce). license: MIT compatibility: "Requires Data 360 enabled org with Agentforce Session Tracing" metadata: version: "1.0.0" author: "Jag Valaiyapathy" data_model: "Session Tracing Data Model (STDM)" storage_format: "Parquet (via PyArrow)" analysis_library: "Polars"
sf-ai-agentforce-observability: Agentforce Session Tracing Extraction & Analysis
Use this skill when the user needs trace-based observability, not just testing: extract Session Tracing Data Model (STDM) records, work with Parquet datasets, reconstruct session timelines, analyze topic/action latency, or debug agent behavior from Data 360 telemetry.
When This Skill Owns the Task
Use sf-ai-agentforce-observability when the work involves:
.parquet files from Agentforce telemetryDelegate elsewhere when the user is:
Prerequisites That Must Exist
Before extraction, verify:
If auth is missing, hand off to:
Deep setup guide:
What This Skill Works With
Core storage / analysis model
Core STDM entities
At minimum, expect work around:GenAI Trust Layer / audit records may also be relevant for content-quality and generation debugging.
Full schema:
Required Context to Gather First
Ask for or infer:
Recommended Workflow
1. Verify setup and auth
Confirm Data 360 tracing exists and JWT/ECA auth is working.2. Choose the extraction mode
| Need | Default approach | |---|---| | recent telemetry snapshot | extract last N days | | focused investigation | filtered extraction by date and agent | | one broken conversation | extract or debug a single session tree | | ongoing usage analytics | incremental extraction |3. Extract to Parquet
Use the provided scripts underscripts/ rather than reimplementing extraction logic.4. Analyze with Polars
Common analysis goals:5. Convert findings into next actions
Typical outcomes:High-Signal Operational Rules
Common pitfalls:
Output Format
When finishing, report in this order: 1. What data was extracted or analyzed 2. Scope (org, dates, agent filter, session IDs) 3. Key findings 4. Likely root causes 5. Recommended next skill / next action
Suggested shape:
Observability task:
Scope:
Artifacts:
Findings:
Root cause:
Next step:
Cross-Skill Integration
| Need | Delegate to | Reason | |---|---|---| | auth / JWT setup | sf-connected-apps | Data 360 access | | fix agent routing / behavior | sf-ai-agentscript | authoring corrections | | formal regression / coverage tests | sf-ai-agentforce-testing | reproducible test loops | | Flow-backed action debugging | sf-flow | declarative repair | | Apex-backed action debugging | sf-debug or sf-apex | code / log investigation |
Reference Map
Start here
Data model / querying
Analysis / debugging
Auth / troubleshooting
Score Guide
| Score | Meaning | |---|---| | 90+ | strong telemetry-backed diagnosis | | 75β89 | useful analysis with minor gaps | | 60β74 | partial visibility only | | < 60 | insufficient evidence; gather more telemetry |