From relevance-ai
Manages Relevance AI agents - creating, configuring tools, writing system prompts, setting up triggers, and running conversations. Use when building agents, attaching tools, debugging execution, or viewing agent results.
How this skill is triggered — by the user, by Claude, or both
Slash command
/relevance-ai:managing-relevance-agentsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Skill for creating, configuring, running, and debugging Relevance AI agents.
Skill for creating, configuring, running, and debugging Relevance AI agents.
📚 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)
| Tool | Description |
|---|---|
relevance_list_agents | List all agents (supports search) |
relevance_get_agent | Get full agent config |
relevance_upsert_agent | Create basic agent |
relevance_save_agent_draft | Save full agent config as draft |
relevance_publish_agent | Publish agent draft to live |
relevance_trigger_agent | Send message to agent (async, fire-and-forget) |
relevance_trigger_agent_sync | Send message and wait for completion |
relevance_poll_agent_result | Poll for agent run status and response |
relevance_get_agent_tools | Get agent's tools with action_ids |
relevance_attach_tools_to_agent | Attach tools to an agent |
relevance_get_task_view | Get conversation details |
relevance_list_conversations | List agent conversations |
relevance_list_agent_triggers | List agent triggers |
relevance_create_trigger | Create trigger |
relevance_delete_trigger | Delete trigger |
relevance_list_oauth_accounts | List OAuth accounts for triggers |
⚠️ Do NOT add agents to another agent's
actionsarray. This pattern is deprecated.Use Workforces instead for multi-agent orchestration. See Workforce Documentation.
relevance_save_agent_draft does NOT support partial updates. Any field you omit will be WIPED.
// WRONG - wipes system_prompt, actions, etc!
relevance_save_agent_draft({
agentId: 'xxx',
agentConfig: { emoji: 'new-emoji' },
});
// CORRECT - get first, merge, save everything
const { agent } = await relevance_get_agent({ agentId: 'xxx' });
relevance_save_agent_draft({
agentId: 'xxx',
agentConfig: { ...agent, emoji: 'new-emoji' },
});
relevance_publish_agent({ agentId: 'xxx' });
Every action MUST include project and region fields:
{
chain_id: "tool-id",
project: config.project, // Your project ID
region: "f1db6c", // Tool's region - MAY DIFFER FROM PROJECT!
title: "My Tool",
action_behaviour: "never-ask"
}
CRITICAL: The region must be where the tool exists, not your project's region!
{
autonomy_limit: 50, // Max tool calls
autonomy_limit_behaviour: "terminate-conversation" // Valid: "ask-for-approval" | "terminate-conversation"
}
Note: "stop" is NOT valid for autonomy_limit_behaviour - use "terminate-conversation".
Missing project/region causes cloning failures and tool execution errors.
If your system prompt references tools via {{_actions.ACTION_ID}}, you need TWO publish cycles:
Pass 1: Create agent + attach tools + placeholder prompt → Publish
Pass 2: Fetch real action IDs → Update prompt with IDs → Publish again
Why? Action IDs are backend-generated hex strings that only exist AFTER first publish. You can't write the final system prompt until tools are attached and published.
// After first publish, get real action IDs:
const { actionIdMap } = await relevance_get_agent_tools({ agentId });
// actionIdMap: { "my-tool-studio-id": "3261d8205a334a99" }
// Then update system prompt with real IDs and publish again
Skip the second pass if your prompt doesn't use {{_actions.*}} references.
See creating.md - Action IDs for full workflow with code examples.
Create basic agent:
relevance_upsert_agent({
name: "Research Assistant",
description: "Helps research topics",
system_prompt: "You are a research assistant.\nWhen asked about a topic:\n1. Search for information\n2. Summarize findings"
})
Get the agent to see the generated ID:
relevance_get_agent({ agentId: "..." })
Add tools — get the full agent config first, then save with actions:
relevance_save_agent_draft({
agentId: "...",
agentConfig: {
...existingAgent,
actions: [{
chain_id: "google-search",
project: "your-project-id",
region: "tool-region",
title: "Search Google",
action_behaviour: "never-ask"
}]
}
})
Publish: relevance_publish_agent({ agentId: "..." })
Test: relevance_trigger_agent({ agentId: "...", message: "Research AI trends" })
# Agent edit page
https://app.relevanceai.com/agents/{region}/{project}/{agentId}/edit/instructions
# Conversation view
https://app.relevanceai.com/agents/{region}/{project}/{agentId}/{taskId}
# Clone link
https://app.relevanceai.com/form/{region}/{project}/clone/agent/{agentId}
npx claudepluginhub relevanceai/cc-plugin --plugin relevance-aiBuilds, modifies, debugs, and deploys Agentforce agents using Agent Script. Covers .agent files, actions, subagents, flow control, and CLI commands.
Design AI agents with capabilities, knowledge, and context. Guides agent architecture decisions from simple loops to subagents and planning.
Designs and builds AI agents for business, research, operations, and creative domains. Covers architecture, capabilities, knowledge, context, planning, and subagents.