skills/beam/beam-tools/beam-get-agent-analytics/SKILL.md
Get analytics for a Beam.ai agent including task counts, completion rates, evaluation scores, and performance trends. Load when user says "agent analytics", "beam analytics", "agent performance", "task stats for agent", "how is agent performing", or needs agent metrics.
npx skillsauth add beam-ai-team/beam-next-skills beam-get-agent-analyticsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Retrieve analytics and performance metrics for a Beam.ai agent.
This skill is read-only for Beam state. Before saving or sharing analytics output, show the workspace, agent ID, date range, destination path, and whether the output includes task/customer-sensitive fields. Require explicit user approval in the current turn before exporting reports outside the local workspace. Do not create, retry, approve, or update tasks from this skill.
.env file at project root:
# Beam.ai - BID instance (default)
BEAM_API_KEY=<bid-api-key>
BEAM_WORKSPACE_ID=<bid-workspace-id>
# Beam.ai - Production instance
BEAM_API_KEY_PROD=<prod-api-key>
BEAM_WORKSPACE_ID_PROD=<prod-workspace-id>
Dependencies: pip install requests python-dotenv
# Get analytics for last 7 days
python 03-skills/beam-get-agent-analytics/scripts/get_agent_analytics.py <agent_id>
# Get analytics for specific date range
python 03-skills/beam-get-agent-analytics/scripts/get_agent_analytics.py <agent_id> \
--start 2024-01-01 --end 2024-01-31
# Get analytics for last 30 days
python 03-skills/beam-get-agent-analytics/scripts/get_agent_analytics.py <agent_id> --days 30
# Use production workspace
python 03-skills/beam-get-agent-analytics/scripts/get_agent_analytics.py <agent_id> --workspace prod
# Output as JSON
python 03-skills/beam-get-agent-analytics/scripts/get_agent_analytics.py <agent_id> --json
| Workspace | API Endpoint | Default |
|-----------|--------------|---------|
| bid | api.bid.beamstudio.ai | Yes |
| prod | api.beamstudio.ai | No |
| Flag | Description | Default |
|------|-------------|---------|
| agent_id | Agent ID (required) | - |
| --start, -s | Start date (YYYY-MM-DD) | 7 days ago |
| --end, -e | End date (YYYY-MM-DD) | today |
| --days, -d | Look back N days (1,7,14,30,90) | 7 |
| --workspace, -w | Workspace: bid or prod | bid |
| --json | Output as JSON | false |
| --output, -o | Save to file | - |
| Field | Description |
|-------|-------------|
| totalTasks | Total tasks in period |
| completedTasks | Successfully completed tasks |
| failedTasks | Failed tasks |
| averageEvaluationScore | Average eval score (0-100) |
| averageRuntimeSeconds | Avg task runtime |
| totalRuntimeSeconds | Total runtime |
| positiveFeedbackCount | Tasks with positive feedback |
| negativeFeedbackCount | Tasks with negative feedback |
| consentRequiredCount | Tasks requiring user consent |
| Field | Description |
|-------|-------------|
| totalTasksDelta | Change in total tasks |
| completedTasksDelta | Change in completed tasks |
| failedTasksDelta | Change in failed tasks |
| averageEvaluationScoreDelta | Change in eval score |
| averageRuntimeSecondsDelta | Change in runtime |
Array of daily stats with:
date: Date (YYYY-MM-DD)completedCount: Completed tasks that dayfailedCount: Failed tasks that dayaverageEvaluationScore: Avg score that dayAgent Analytics: My Agent
Period: 2024-01-01 to 2024-01-31
Workspace: prod
=== CURRENT PERIOD ===
Total Tasks: 150
Completed: 135 (90.0%)
Failed: 15 (10.0%)
Avg Eval Score: 87.5
Avg Runtime: 45.7s
Total Runtime: 6,855s (1.9 hrs)
Feedback:
Positive: 120
Negative: 10
Consent Required: 25
=== VS PREVIOUS PERIOD ===
Total Tasks: +15.5%
Completed: +12.3%
Failed: -5.2%
Eval Score: +4.5%
Runtime: -8.7%
=== DAILY TREND (last 7 days) ===
Date | Completed | Failed | Eval Score
-----------+-----------+--------+-----------
2024-01-25 | 42 | 8 | 87.5
2024-01-26 | 38 | 5 | 89.2
2024-01-27 | 45 | 3 | 91.0
...
Uses Beam.ai analytics endpoint:
GET /agent-tasks/analyticsagentId, startDate, endDate| Error | Solution |
|-------|----------|
| BEAM_API_KEY not found | Add to .env file |
| 401 Unauthorized | Verify API key is valid |
| 404 Not Found | Agent ID doesn't exist |
| 400 Bad Request | Check date format (YYYY-MM-DD) |
beam-debug-issue-tasks - Debug failed tasksbeam-retry-tasks - Retry failed tasksbeam-get-task-details - Get details for a specific tasktools
Build a Palantir-shape, PDF-native use-case proposal document for a sophisticated enterprise account: research-grounded use cases (each with description, challenge, impact, value), an operating-graph ontology page, a recommended PoC with a week-by-week plan, and a closing page that asks for one decision. Load when a client asks us to 'propose high-impact use cases', requests a use-case presentation/catalog for a function (finance, HR, ops), or when a technical evaluation team will review candidates to pick a PoC. NOT for single-account cold outreach (use prospect-brief), full process diagnostics (use operating-diagnostic), or priced proposals (use proposal-creation).
development
Convert Beam Figma slide designs into high-fidelity, editable HTML presentation decks. Use when Codex is asked to audit Figma slides, extract slide templates, rebuild Beam slides as HTML decks, decide whether Figma imagery should be exported or rebuilt in HTML/CSS, create Beam/Prism-compatible deck templates, or improve fidelity of existing Beam HTML slide rebuilds.
development
Use the Beam AI reusable slide library: individual HTML slide templates extracted from Beam Figma rebuilds, kept separate from deck themes and full deck templates. Load when the user asks for a slide library, specific Beam slide patterns, reusable Figma-inspired slides, Prism slide-library items, or slide-level HTML templates.
development
Use Beam AI deck and report design packs, HTML templates, and curated examples to create sales decks, customer intro decks, RPO decks, and DIN A4 use-case proposal reports. Load when the user asks for Beam-branded presentation templates, Prism-compatible deck templates, Beam report templates, customer intro decks, commercial proposals, or reusable HTML deck/report examples.