/elevenlabs:agent-simplificationfrom ElevenLabs
Simplifies complex ElevenLabs voice agents (workflow agents) into leaner architectures with fewer nodes, deduplicated prompts, and procedures, while generating a test suite to prove behavioral equivalence.
Ships in ElevenLabs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a complex agent (usually a many-node workflow) into a simpler one that is provably at least as good. The core loop: understand everything the complex agent does → encode it as a test suite (ground truth) → build the simpler agent → iterate until it matches or beats the original on every test → A/B on branches → hand over with an honest report.
The output is never just a simpler agent. It is a simpler agent plus the test suite that proves equivalence, attached natively in the platform so the client can re-run it.
agent_id / branch_id check in the
script). Make every write script refuse to run against anything else.Pull the agent JSON (GET /v1/convai/agents/{id}) and map every layer:
conversation_config.agent.prompt.prompt).additional_prompt, not just prompt.prompt. This is the #1 trap:
an override_agent node's real instructions live in additional_prompt (the studio
"Conversation goal" box, APPENDED to the base prompt). conversation_config.agent.prompt.prompt
on a node is only set when the "Override prompt" toggle is ON. A node whose prompt.prompt is
empty is NOT an empty node. Extract every node's additional_prompt to a file — in a real case
16 "empty-looking" nodes carried ~100k chars of specialized business logic.forward_condition.label), in/out degrees. The only dead
nodes are orphans (no incoming edge = unreachable) and fully disconnected nodes (no edges at
all). Anything with edges is a live decision point — every node has an LLM choosing among its
outgoing edges, even a tool node with an empty tool list — so it cannot be considered for
removal unless genuine logic duplication is proven.additional_knowledge_base / additional_tool_ids. Check whether the
base agent already exposes the same KB (folders in RAG auto mode = every doc) and tools; if so
the scoping is redundant, not behaviour.phone_number node destinations against the base
transfer_to_number system tool (destination SIP/number + its condition text). Often
identical → the workflow transfer scaffolding is redundant. Check real usage: count tool fires
across recent conversations (which transfer path actually runs in prod?).transfer_to_number system tool already does) — check real-call tool-fire counts before
deciding.built_in_tools), language config — note language_presets lives
at the TOP level of conversation_config, not under .agent.GET /v1/convai/conversations?agent_id=&page_size=100,
paginate; detail per call). Categorize (use the agent's own call_category data-collection if
present), count tool fires, and note failure modes. This tells you which paths matter and at what
frequency.If you find duplicated logic anywhere (repeated boilerplate across nodes, per-node scoping the base already has, scaffolding duplicating a system tool), simply remove it in the simplified build — after confirming it is a true duplicate, not a variant.
Derive test scenarios from both sources:
additional_prompts, the base
prompt's flows (e.g. an operator-transfer escalation sequence), each qualifying-transfer case,
say-node wording, dispatch-tool paths, procedure flows, tool-consent rules, deprecated services,
coverage/country rules, language policy.conv_ id in the scenario for traceability).Two complementary instruments — pick per behaviour:
simulation tests (multi-turn) | llm tests (single-turn) | |
|---|---|---|
| What | Simulated user persona converses N turns; whole conversation judged against success_conditions | Fixed chat_history; judge the agent's NEXT reply against success_condition |
| Use for | Procedure-driven and multi-step flows (diagnostics, escalation sequences, retention) | Sharp single decision points (don't transfer on first demand; reply language; refusal) |
| Avoid for | — | Any flow whose first agent turn is a tool call (start_procedure, language_detection): the judge sees no text → unknown. Use a simulation test instead. |
Criteria-writing rules (learned the hard way):
end_call. Test harnesses don't simulate call termination reliably, and the caller
hangs up anyway. Testing that the agent does NOT hang up prematurely is fine.Mechanics:
POST /v1/convai/agent-testing/create) and attach to both the
original (reference) agent and the simplified copy via
platform_settings.testing.attached_tests — dashboard-visible, re-runnable by the client, and
the same test objects score both sides of the A/B.tool_mock_overrides (per-test inline mock bodies keyed
by tool id: {tool_id: [{"mock_result": "<json string>"}]} with
tool_mock_config: {mocking_strategy: "all", ...}). Nothing hits real endpoints and no global
tool object is edited.dynamic_variables from a real call (scrubbed), and include system__call_sid,
system__caller_id, system__conversation_id, system__called_number — simulations error with
missing_dynamic_variables otherwise if any tool references them.Baseline the original agent on the suite first. Its failures are improvement opportunities, not excuses ("equivalently bad" is not the goal).
Default target: single-agent (1-node workflow) + base prompt + focused rules + procedures + KB. Keep the workflow only where determinism is genuinely required and prompt enforcement proves unreliable in tests.
PATCH with a start-node-only workflow). Check what the main/hub node's
additional_prompt actually adds beyond the base prompt — if it adds nothing (or duplicates it),
there is nothing to port from that node.#-titled sections, one behaviour each; orPATCH rejects a body containing both resolved tools
and tool_ids — pop tools, keep tool_ids. Read-modify-write the full conversation_config
so nothing is wiped.Run the suite on the copy; then, for every non-passing test (on the copy or the original):
llm test →
convert to a simulation test or retire the duplicate).The cleanest comparison is two branches of the SAME agent:
POST /v1/convai/agents/{id}/branches with {parent_version_id, name, description, conversation_config, platform_settings, workflow} → a branch (e.g. "Pete") carrying the
simplified config; Main stays untouched. parent_version_id = the agent's current version_id.GET /v1/convai/agents/{id}?branch_id=... to verify each branch's config.POST /v1/convai/agents/{id}/run-tests with
{"tests":[{"test_id":...}], "branch_id": ...}; poll
GET /v1/convai/test-invocations/{invocation_id} until all runs are terminal; result is
condition_result.result (success / failure / unknown; rationale may be a dict with
summary).Procedures (draft → commit lifecycle — everything is branch-scoped):
POST /v1/convai/agents/{id}/branches/{br}/procedures {name, content, type: "free_form", trigger?} → returns procedure_id, but creates the procedure as a draft and adds its ref to
your user's agent draft. It will NOT appear in the committed agent/branch procedure lists yet —
do not conclude the API "didn't attach" (checking the committed view after create is the classic
mistake).GET .../procedures/status → the draft refs; GET agent?include_draft=true → draft config.POST .../procedures/compile → preview only: validates and returns the compiled workflow +
errors. It commits nothing.PATCH /v1/convai/agents/{id}?branch_id={br} (an empty JSON body works): it
resolves procedure refs from your draft into the new committed version, then deletes the drafts.
After this, the procedure appears in GET agent .procedures, the branch list, and direct GET.PATCH .../procedures/{pid}/draft (full body: name, content, type, trigger) →
commit PATCH. Delete: DELETE .../procedures/{pid} (removes from draft set) → commit PATCH.content = markdown with --- frontmatter (name, trigger) + steps. Reference KB
docs as [kb id="..." name="..."], tools as [tool id="..." name="..."], system tools as
[system_tool id="transfer_to_number" name="..."].Testing:
PUT (full replace — a partial body silently wipes omitted fields), not
PATCH (405).simulate-conversation (ad-hoc, no saved artifact) runs the LIVE agent config — to A/B a
candidate config you must actually PATCH it (or use branches + run-tests).unknown — instrument mismatch, not failure.Agent config:
language_detection; but if a {{language}}
dynamic variable anchors the default, add an explicit "the spoken language wins" prompt rule.What SKILL.md sets; muted values are Claude Code's defaults
44 skills in this plugin
/agentsBuild voice AI agents with ElevenLabs. Use when creating voice assistants, customer service bots, interactive voice characters, or any real-time voice conversation experience, and when configuring an agent's tools, workflows, or procedures, including creating, editing, and publishing free-form and structured procedure drafts on an agent branch over the SDKs or REST API./agents-platformManage ElevenLabs voice agents through the connected ElevenLabs MCP server. Use when the user asks to create, configure, test, deploy, or inspect agents, knowledge bases, agent tools, tests, or conversations directly on their ElevenLabs account — rather than writing application code. Requires the ElevenLabs MCP server bundled with this plugin./architect-agent-memorynpx claudepluginhub elevenlabs/plugin --plugin elevenlabsOther plugins' skills for the same job