From relevance-ai
Manages Relevance AI workforces (multi-agent systems) - creating workflows, configuring nodes/edges, triggering execution, and debugging runs. Use when building multi-agent pipelines, connecting agents together, or debugging workforce execution.
How this skill is triggered — by the user, by Claude, or both
Slash command
/relevance-ai:managing-relevance-workforcesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Skill for creating, configuring, triggering, and debugging Relevance AI workforces (multi-agent systems).
Skill for creating, configuring, triggering, and debugging Relevance AI workforces (multi-agent systems).
📚 Full API Documentation: If MCP tools don't cover your use case, see
https://api-{region}.stack.tryrelevance.com/latest/documentation(replace{region}with your project's region) ✅ RECOMMENDED APPROACH: Workforces are the official way to build multi-agent systems. The legacy pattern of adding sub-agents to an agent'sactionsarray is DEPRECATED. Always use workforces for agent-to-agent orchestration.
| Tool | Description |
|---|---|
relevance_list_workforces | List all workforces |
relevance_get_workforce | Get full workforce config with nodes/edges |
relevance_create_workforce | Create new workforce with agents |
relevance_update_workforce | Update workforce graph/metadata |
relevance_delete_workforce | Delete a workforce |
relevance_trigger_workforce | Trigger workforce with a message |
relevance_get_workforce_task_messages | Get execution details and agent outputs |
// 1. Create workforce with agents in sequence
relevance_create_workforce({
name: 'Research Pipeline',
description: 'Research -> Summarize -> Report',
agents: [
{ agentId: 'researcher-agent-id' },
{ agentId: 'summarizer-agent-id' },
{ agentId: 'reporter-agent-id' },
],
// Default: creates linear chain with forced-handover edges
});
// 2. Trigger the workforce
const { workforce_task_id } = await relevance_trigger_workforce({
workforceId: 'workforce-id',
message: 'Research AI trends in 2024',
});
// 3. Get execution details (what each agent produced)
const execution = await relevance_get_workforce_task_messages({
workforceId: 'workforce-id',
taskId: workforce_task_id,
});
// execution.workforce_state = "completed" | "running" | etc.
// execution.results contains each agent's outputs
IMPORTANT: Before building any workforce, create a testing rubric and get user approval.
Testing Rubric for "[Workforce Name]":
□ End-to-End Flow
- [Trigger → Final output works with typical input]
- [All agents in chain execute successfully]
□ Agent Handovers
- [Data passes correctly between agents]
- [Each agent receives expected context]
□ Edge Cases
- [Handles agent failures gracefully]
- [Timeouts are handled appropriately]
□ Output Quality
- [Final output meets business requirements]
- [Intermediate outputs are logged/accessible]
relevance_trigger_workforcerelevance_get_workforce_task_messagesTesting Rubric for "Lead Research Pipeline":
□ End-to-End Flow
- Given a LinkedIn URL, produces enriched lead report
- All 3 agents (Researcher → Enricher → Reporter) complete
□ Agent Handovers
- Researcher output includes profile data
- Enricher receives profile and adds company context
- Reporter receives all data and formats final output
□ Edge Cases
- Invalid LinkedIn URL produces clear error (not silent failure)
- Private profiles handled with partial data message
□ Output Quality
- Final report is structured and actionable
- Sources/data provenance is clear
# Workforce edit page
https://app.relevanceai.com/workforces/{region}/{project}/{workforceId}
# Workforce task view
https://app.relevanceai.com/workforces/{region}/{project}/{workforceId}/tasks/{taskId}
npx claudepluginhub relevanceai/cc-plugin --plugin relevance-aiDeploys and operates multi-agent AgenticFlow workforces as DAGs of handoff agents (trigger → coordinator → workers → output) for pipelines like research-then-write, dev shops, or marketing agencies. Use for 'team', 'workforce', 'multi-agent' requests.
Validates, runs, and debugs multi-agent YAML workflows. Use when orchestrating AI agents, configuring routing, or setting up human-in-the-loop gates.
Designs collaborative AI agent teams in CrewAI: agent personas with roles/goals/backstories, task decomposition/dependencies, crew orchestration, sequential/hierarchical processes, memory, flows.