[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-elevenlabs-agents":3,"mdc--v8gruc-key":39,"related-repo-elevenlabs-agents":7789,"related-org-elevenlabs-agents":7875},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":34,"sourceUrl":37,"mdContent":38},"agents","build ElevenLabs voice agents","Build voice AI agents with ElevenLabs. Use when creating voice assistants, customer service bots, interactive voice characters, or any real-time voice conversation experience.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"elevenlabs","ElevenLabs","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Felevenlabs.png",[12,15,18,19],{"name":13,"slug":4,"type":14},"Agents","tag",{"name":16,"slug":17,"type":14},"Audio","audio",{"name":9,"slug":8,"type":14},{"name":20,"slug":21,"type":14},"Speech","speech",374,"https:\u002F\u002Fgithub.com\u002Felevenlabs\u002Fskills","2026-07-24T05:40:07.822247","MIT",48,[28,8,29,30,31,32,33],"ai-agents","music","sfx","skills","stt","tts",{"repoUrl":23,"stars":22,"forks":26,"topics":35,"description":36},[28,8,29,30,31,32,33],"Collections of skills for building with ElevenLabs","https:\u002F\u002Fgithub.com\u002Felevenlabs\u002Fskills\u002Ftree\u002FHEAD\u002Fagents","---\nname: agents\ndescription: Build voice AI agents with ElevenLabs. Use when creating voice assistants, customer service bots, interactive voice characters, or any real-time voice conversation experience.\nlicense: MIT\ncompatibility: Requires internet access and an ElevenLabs API key (ELEVENLABS_API_KEY).\nmetadata: {\"openclaw\": {\"requires\": {\"env\": [\"ELEVENLABS_API_KEY\"]}, \"primaryEnv\": \"ELEVENLABS_API_KEY\"}}\n---\n\n# ElevenLabs Agents Platform\n\nBuild voice AI agents with natural conversations, multiple LLM providers, custom tools, and easy web embedding.\n\n> **Setup:** See [Installation Guide](references\u002Finstallation.md) for CLI and SDK setup.\n\n## Quick Start with CLI\n\nThe ElevenLabs CLI is the recommended way to create and manage agents:\n\n```bash\n# Install CLI and authenticate\nnpm install -g @elevenlabs\u002Fcli\nelevenlabs auth login\n\n# Initialize project and create an agent\nelevenlabs agents init\nelevenlabs agents add \"My Assistant\" --template complete\n\n# Push to ElevenLabs platform\nelevenlabs agents push\n```\n\n**Available templates:** `complete`, `minimal`, `voice-only`, `text-only`, `customer-service`, `assistant`\n\n### Python\n\n```python\nfrom elevenlabs import ElevenLabs\n\nclient = ElevenLabs()\n\nagent = client.conversational_ai.agents.create(\n    name=\"My Assistant\",\n    conversation_config={\n        \"agent\": {\n            \"first_message\": \"Hello! How can I help?\",\n            \"language\": \"en\",\n            \"prompt\": {\n                \"prompt\": \"You are a helpful assistant. Be concise and friendly.\",\n                \"llm\": \"gemini-2.0-flash\",\n                \"temperature\": 0.7\n            }\n        },\n        \"tts\": {\"voice_id\": \"JBFqnCBsd6RMkjVDRZzb\"}\n    }\n)\n```\n\n### JavaScript\n\n```javascript\nimport { ElevenLabsClient } from \"@elevenlabs\u002Felevenlabs-js\";\nconst client = new ElevenLabsClient();\n\nconst agent = await client.conversationalAi.agents.create({\n  name: \"My Assistant\",\n  conversationConfig: {\n    agent: {\n      firstMessage: \"Hello! How can I help?\",\n      language: \"en\",\n      prompt: {\n        prompt: \"You are a helpful assistant.\",\n        llm: \"gemini-2.0-flash\",\n        temperature: 0.7\n      }\n    },\n    tts: { voiceId: \"JBFqnCBsd6RMkjVDRZzb\" }\n  }\n});\n```\n\n### cURL\n\n```bash\ncurl -X POST \"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fconvai\u002Fagents\u002Fcreate\" \\\n  -H \"xi-api-key: $ELEVENLABS_API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\": \"My Assistant\", \"conversation_config\": {\"agent\": {\"first_message\": \"Hello!\", \"language\": \"en\", \"prompt\": {\"prompt\": \"You are helpful.\", \"llm\": \"gemini-2.0-flash\"}}, \"tts\": {\"voice_id\": \"JBFqnCBsd6RMkjVDRZzb\"}}}'\n```\n\n## Starting Conversations\n\n### Temporary LiveKit WebSocket Pin\n\nUntil the ElevenLabs LiveKit server supports `\u002Frtc\u002Fv1`, browser clients using WebRTC can fail or stall during the underlying LiveKit WebSocket handshake with `livekit-client` versions newer than `2.16.1`. For React, Next.js, Electron, or other `@elevenlabs\u002Fclient` \u002F `@elevenlabs\u002Freact` integrations that use `connectionType: \"webrtc\"` or hit `wss:\u002F\u002Flivekit.rtc.elevenlabs.io\u002Frtc\u002Fv1`, add this temporary pin to `package.json`:\n\n```json\n{\n  \"overrides\": {\n    \"livekit-client\": \"2.16.1\"\n  }\n}\n```\n\nUse the pin when the app logs `\u002Frtc\u002Fv1` 404s, `v1 RTC path not found`, or `could not establish pc connection` during session startup. This is a LiveKit server compatibility workaround for WebRTC sessions, not the ElevenLabs `connectionType: \"websocket\"` transport. Remove it after the upstream LiveKit server or SDK issue is fixed.\n\n**Server-side (Python):** Get signed URL for client connection:\n```python\nsigned_url = client.conversational_ai.conversations.get_signed_url(\n    agent_id=\"your-agent-id\",\n    environment=\"staging\",\n)\n```\n\n**Client-side (JavaScript):**\n```javascript\nimport { Conversation } from \"@elevenlabs\u002Fclient\";\n\nconst conversation = await Conversation.startSession({\n  agentId: \"your-agent-id\",\n  environment: \"staging\",\n  overrides: { asr: { keywords: [\"ElevenLabs\", \"TechCorp\"] } },\n  onMessage: (msg) => console.log(\"Agent:\", msg.message),\n  onUserTranscript: (t) => console.log(\"User:\", t.message),\n  onPing: (event) => console.log(\"Estimated latency:\", event.ping_ms),\n  onError: (e) => console.error(e)\n});\n```\n\n**React Hook:** Wrap hook consumers in `ConversationProvider`. Prefer granular hooks such as\n`useConversationControls` and `useConversationStatus` for session controls and UI state;\n`useConversation` remains available as the convenience all-in-one hook. Pass provider-level\ncallbacks such as `onError` when you want React to handle conversation errors in one place.\n```typescript\nimport {\n  ConversationProvider,\n  useConversationControls,\n  useConversationStatus,\n} from \"@elevenlabs\u002Freact\";\n\nfunction Agent({ signedUrl }: { signedUrl: string }) {\n  const { startSession, endSession } = useConversationControls();\n  const { status } = useConversationStatus();\n\n  if (status === \"connected\") {\n    return \u003Cbutton onClick={endSession}>End conversation\u003C\u002Fbutton>;\n  }\n\n  return (\n    \u003Cbutton onClick={() => startSession({ signedUrl })}>\n      Start conversation\n    \u003C\u002Fbutton>\n  );\n}\n\nfunction App({ signedUrl }: { signedUrl: string }) {\n  return (\n    \u003CConversationProvider\n      onError={(error) => console.error(\"Conversation error:\", error)}\n      onPing={(event) => console.log(\"Estimated latency:\", event.ping_ms)}\n    >\n      \u003CAgent signedUrl={signedUrl} \u002F>\n    \u003C\u002FConversationProvider>\n  );\n}\n```\n\n## Configuration\n\n| Provider | Models |\n|----------|--------|\n| OpenAI | `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, `gpt-5.5`, `gpt-5.5-2026-04-23`, `gpt-5.4`, `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-5.4-2026-03-05`, `gpt-5.4-mini-2026-03-17`, `gpt-5.4-nano-2026-03-17`, `gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `gpt-4.1`, `gpt-4.1-mini`, `gpt-4.1-nano`, `gpt-4o`, `gpt-4o-mini`, `gpt-4-turbo` |\n| Anthropic | `claude-opus-4-7`, `claude-sonnet-4-6`, `claude-sonnet-4-5`, `claude-sonnet-4`, `claude-haiku-4-5`, `claude-3-7-sonnet`, `claude-3-5-sonnet`, `claude-3-haiku` |\n| Google | `gemini-3.1-flash-lite-preview`, `gemini-3.1-pro-preview`, `gemini-3-pro-preview`, `gemini-3-flash-preview`, `gemini-2.5-flash`, `gemini-2.5-flash-lite`, `gemini-2.0-flash`, `gemini-2.0-flash-lite` |\n| ElevenLabs | `glm-45-air-fp8`, `qwen3-30b-a3b`, `qwen36-35b-a3b`, `qwen35-35b-a3b`, `qwen35-397b-a17b`, `gpt-oss-120b` |\n| Custom | `custom-llm` (bring your own endpoint) |\n\nUse `GET \u002Fv1\u002Fconvai\u002Fllm\u002Flist` to inspect the current model catalog, including deprecation state, token\u002Fcontext limits, capability flags such as image-input support, and model-specific reasoning effort support.\n\n**Popular voices:** `JBFqnCBsd6RMkjVDRZzb` (George), `EXAVITQu4vr4xnSDxMaL` (Sarah), `onwK4e9ZLuTAKqWW03F9` (Daniel), `XB0fDUnXU5powFXDhCwa` (Charlotte)\n\n**Turn eagerness:** `patient` (waits longer for user to finish), `normal`, or `eager` (responds quickly)\n\nSee [Agent Configuration](references\u002Fagent-configuration.md) for all options.\n\n## System Prompt Structure\n\nSection the prompt with markdown headings — the model prioritizes and interprets instructions more reliably ([prompting guide](https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Feleven-agents\u002Fbest-practices\u002Fprompting-guide)):\n\n```\n# Personality   – named character, 2-3 traits\n# Environment   – where they work, who they talk to\n# Tone          – vocal style as 4-5 bullets\n# Goal          – what success looks like (numbered for multi-step flows)\n```\n\nKeep instructions short and action-based. Mark critical steps with \"This step is important.\" For critical refusal\u002Fsafety rules, include concise instructions in the prompt and also configure independent custom Guardrails via `platform_settings.guardrails` (see [Guardrails](#guardrails)).\n\n## Tools\n\nExtend agents with webhook, client, or built-in system tools. Tools are defined inside `conversation_config.agent.prompt`:\n\nWorkspace environment variables can resolve per-environment server tool URLs, headers, and auth connections, and runtime system variables such as `{{system__conversation_history}}` can pass full conversation context into tool calls when needed.\n\n```python\n\"prompt\": {\n    \"prompt\": \"You are a helpful assistant that can check the weather.\",\n    \"llm\": \"gemini-2.0-flash\",\n    \"tools\": [\n        # Webhook: server-side API call\n        {\"type\": \"webhook\", \"name\": \"get_weather\", \"description\": \"Get weather\",\n         \"api_schema\": {\"url\": \"https:\u002F\u002Fapi.example.com\u002Fweather\", \"method\": \"POST\",\n             \"request_body_schema\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\"}}, \"required\": [\"location\"]}}},\n        # Client: runs in the browser\n        {\"type\": \"client\", \"name\": \"show_product\", \"description\": \"Display a product\",\n         \"parameters\": {\"type\": \"object\", \"properties\": {\"productId\": {\"type\": \"string\"}}, \"required\": [\"productId\"]}}\n    ],\n    \"built_in_tools\": {\n        \"end_call\": {},\n        \"transfer_to_number\": {\"transfers\": [{\"transfer_destination\": {\"type\": \"phone\", \"phone_number\": \"+1234567890\"}, \"condition\": \"User asks for human support\"}]},\n        \"start_procedure\": {}\n    }\n}\n```\n\n**Client tools** run in browser:\n```javascript\nclientTools: {\n  show_product: async ({ productId }) => {\n    document.getElementById(\"product\").src = `\u002Fproducts\u002F${productId}`;\n    return { success: true };\n  }\n}\n```\n\nSee [Client Tools Reference](references\u002Fclient-tools.md) for complete documentation.\n\n### Built-in System Tools\n\nSet under `conversation_config.agent.prompt.built_in_tools`. `{}` enables defaults; provide `description` to customize; omit to disable.\n\n| Tool | Enable for |\n|------|------------|\n| `end_call` | All agents |\n| `language_detection` | Multilingual agents |\n| `transfer_to_number` | Phone-based human escalation |\n| `transfer_to_agent` | Multi-agent workflows |\n| `start_procedure` | Procedure-guided conversations |\n| `end_procedure` | Completing active procedures |\n| `skip_turn` | Tutoring \u002F coaching (silent listening) |\n| `voicemail_detection` | Outbound calling |\n| `play_keypad_touch_tone` | IVR navigation |\n\n`run_subagent` is a system tool for delegating a task to another configured agent. Add it to\n`conversation_config.agent.prompt.tools` with `params.system_tool_type: \"run_subagent\"` and an\n`agents` array. Each entry requires `agent_id` and `description`; `branch_id` and a JSON-schema\n`parameters` object are optional.\n\n### Integration Tools\n\nPre-built connectors managed by the platform. Create a connection with credentials, then attach via `tool_ids`:\n\n| Integration | Use case |\n|-------------|----------|\n| `calcom` | Scheduling appointments |\n| `salesforce` | CRM lookups, case creation |\n| `hubspot` | CRM, marketing, contacts |\n| `zendesk` | Support ticketing |\n\nThree-step flow: `POST \u002Fv1\u002Fconvai\u002Fapi-integrations\u002F{id}\u002Fconnections` → `GET \u002Fv1\u002Fconvai\u002Fapi-integrations\u002F{id}\u002Ftools` → `POST \u002Fv1\u002Fconvai\u002Ftools` with `api_integration_id` and `api_integration_connection_id`. Attach to the agent with `\"prompt\": {\"tool_ids\": [\"tool_xxxx\"]}`. Inline `tools` and `tool_ids` can coexist — prefer an integration over a duplicate custom webhook.\n\n### Public-API Webhook Examples\n\nNo-auth APIs useful for prototypes (URLs must be HTTPS):\n\n| Tool | URL | Purpose |\n|------|-----|---------|\n| `get_weather` | `https:\u002F\u002Fwttr.in\u002F{location}?format=j1` | Current weather |\n| `search_wikipedia` | `https:\u002F\u002Fen.wikipedia.org\u002Fapi\u002Frest_v1\u002Fpage\u002Fsummary\u002F{topic}` | Topic summary |\n| `get_exchange_rate` | `https:\u002F\u002Fopen.er-api.com\u002Fv6\u002Flatest\u002F{base_currency}` | FX rates |\n\n## Workflows\n\nRoute conversations through discrete steps with branching logic. Define under the agent's top-level `workflow` field. Reference: [Agent Workflows](https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Feleven-agents\u002Fcustomization\u002Fagent-workflows).\n\n**Node types:** `start` (ID must be `\"start_node\"`), `end`, `override_agent` (subagent step with `label` + `additional_prompt`), `dispatch_tool` (executes a tool with success\u002Ffailure routing), `agent_transfer`, `transfer_to_number`.\n\n**Edge types:** `unconditional`, `llm` (natural-language condition), `expression` (deterministic data check). Tool nodes have separate success\u002Ffailure edges.\n\n**Scope tools per step** with `additional_tool_ids` on a node — prevents the wrong tool firing at the wrong step. Set `additional_tool_ids: []` on conversational routing nodes such as greeting and `classify_intent` so they only converse:\n\n```json\n{\n  \"type\": \"override_agent\",\n  \"label\": \"Book Appointment\",\n  \"additional_prompt\": \"Discuss preferred dates and doctors. Show the booking form once agreed.\",\n  \"entry_behavior\": \"wait_for_user\",\n  \"additional_tool_ids\": [\"show_booking_form\", \"display_appointment_card\"],\n  \"position\": {\"x\": 0, \"y\": 400}\n}\n```\n\nInclude `position` (`{x, y}`) on every node so the editor renders cleanly. Start at `y=0`, put `end` at the bottom, and space branches horizontally at `x=-150` and `x=150`; suggested spacing is 200px vertical between levels and 300px horizontal between branches. Keep workflows to 4-7 nodes and always have a path to `end`.\n\nUse `entry_behavior` on `override_agent` nodes to choose whether a sub-agent speaks immediately (`generate_immediately`), waits for user input (`wait_for_user`), or lets the platform decide (`auto`).\n\nFor nested agent transfers, set `enable_nesting` on a `standalone_agent` node and\n`return_when_nested` on an `end` node that should return control to the parent workflow.\n\n## Guardrails\n\nLayered safety enforcement that runs independently of the LLM — configured under `platform_settings.guardrails`, not in the system prompt. Reference: [Guardrails](https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Feleven-agents\u002Fbest-practices\u002Fguardrails).\n\n```json\n\"platform_settings\": {\n  \"guardrails\": {\n    \"version\": \"1\",\n    \"focus\": {\"is_enabled\": true},\n    \"prompt_injection\": {\"is_enabled\": true},\n    \"content\": {\"config\": {\"harassment\": {\"is_enabled\": true, \"threshold\": 0.5}}},\n    \"custom\": {\n      \"config\": {\n        \"configs\": [{\n          \"is_enabled\": true,\n          \"name\": \"No medical diagnoses\",\n          \"prompt\": \"Block the agent from providing medical diagnoses or treatment advice.\",\n          \"execution_mode\": \"blocking\",\n          \"model\": \"gemini-2.5-flash-lite\",\n          \"history_message_count\": 1,\n          \"trigger_action\": {\"type\": \"retry\", \"feedback\": \"Reason: {{trigger_reason}}\"}\n        }]\n      }\n    }\n  }\n}\n```\n\n**Types:** `focus` (on-topic), `prompt_injection` (manipulation defense), `content` (category filters), `custom` (LLM-evaluated domain rules). Content categories include `harassment`, `profanity`, `sexual`, `violence`, `self_harm`, and `medical_and_legal_information` — threshold range `0.0`–`1.0` (default `0.3`). Custom rules use `execution_mode: \"blocking\"` with a `model`, `history_message_count`, and `trigger_action` (e.g., `retry` with feedback). Custom guardrails evaluate in parallel and fail-open.\n\n**Per vertical:** healthcare\u002Ffinance\u002Flegal → enable `medical_and_legal_information`; education\u002Fyouth → `sexual`\u002F`violence`\u002F`self_harm`\u002F`profanity`; support\u002Fsales → `harassment`\u002F`profanity`. All agents benefit from `focus` + `prompt_injection` + 2-4 custom rules.\n\n## Testing Agents\n\nThree test types via `POST \u002Fv1\u002Fconvai\u002Fagent-testing\u002Fcreate`, then attached with PATCH on the agent. Reference: [Agent Testing](https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Feleven-agents\u002Fcustomization\u002Fagent-testing).\n\n| Type | Purpose |\n|------|---------|\n| `llm` | Scenario test — does the agent respond appropriately to a message? |\n| `tool` | Tool-call test — right tool, right parameters? |\n| `simulation` | Multi-turn flow with a simulated user persona |\n\n```json\n\u002F\u002F Tool-call test (snake_case throughout; chat_history role is \"user\" or \"agent\")\n{\n  \"name\": \"Books with correct doctor and date\",\n  \"type\": \"tool\",\n  \"chat_history\": [\n    {\"role\": \"user\", \"message\": \"Dr. Smith on March 5 at 2pm\", \"time_in_call_secs\": 10}\n  ],\n  \"tool_call_parameters\": {\n    \"referenced_tool\": {\"id\": \"show_booking_form\", \"type\": \"client\"},\n    \"parameters\": [\n      {\"path\": \"doctor_name\", \"eval\": {\"type\": \"llm\", \"description\": \"Should reference Dr. Smith\"}},\n      {\"path\": \"date\", \"eval\": {\"type\": \"regex\", \"pattern\": \"2025-03-05|March 5\"}}\n    ]\n  }\n}\n```\n\nEval strategies: `exact`, `regex`, `llm`. Prompt evaluation criteria can use binary scoring or\nnumeric scoring with `scoring_mode: \"numeric_uniform\"`, `max_score`, and `score_instructions`;\nnumeric scores are normalized into the aggregate conversation success percentage. Attach via PATCH:\n\n```bash\ncurl -s -X PATCH \"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fconvai\u002Fagents\u002F{agent_id}\" \\\n  -H \"xi-api-key: $ELEVENLABS_API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"platform_settings\": {\"testing\": {\"attached_tests\": [{\"test_id\": \"test_xxxx\"}]}}}'\n```\n\nRun selected tests with `POST \u002Fv1\u002Fconvai\u002Fagents\u002F{agent_id}\u002Frun-tests`. The request\nbody requires `tests` and accepts `repeat_count` from `1` to `50` for repeated runs.\nSimulation tests can define up to 30 `success_conditions` prompts; all criteria are\nevaluated and merged into the final result.\nFor completed conversations, rerun one evaluation criterion with `POST \u002Fv1\u002Fconvai\u002Fconversations\u002F{conversation_id}\u002Fanalysis\u002Fevaluations\u002Frun` and a request body containing `evaluation_id`.\n\n## Widget Embedding\n\n```html\n\u003Celevenlabs-convai agent-id=\"your-agent-id\">\u003C\u002Felevenlabs-convai>\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@elevenlabs\u002Fconvai-widget-embed\" async type=\"text\u002Fjavascript\">\u003C\u002Fscript>\n```\n\nCustomize with attributes: `avatar-image-url`, `action-text`, `start-call-text`, `end-call-text`.\n\nSee [Widget Embedding Reference](references\u002Fwidget-embedding.md) for all options.\n\n## Outbound Calls\n\nMake outbound phone calls using your agent via Twilio or Exotel integration:\n\nThe examples below use Twilio. See the reference for Exotel REST usage.\n\n### Python\n\n```python\nresponse = client.conversational_ai.twilio.outbound_call(\n    agent_id=\"your-agent-id\",\n    agent_phone_number_id=\"your-phone-number-id\",\n    to_number=\"+1234567890\",\n    call_recording_enabled=True\n)\nprint(f\"Call initiated: {response.conversation_id}\")\n```\n\n### JavaScript\n\n```javascript\nconst response = await client.conversationalAi.twilio.outboundCall({\n  agentId: \"your-agent-id\",\n  agentPhoneNumberId: \"your-phone-number-id\",\n  toNumber: \"+1234567890\",\n  callRecordingEnabled: true,\n});\n```\n\n### cURL\n\n```bash\ncurl -X POST \"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fconvai\u002Ftwilio\u002Foutbound-call\" \\\n  -H \"xi-api-key: $ELEVENLABS_API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"agent_id\": \"your-agent-id\", \"agent_phone_number_id\": \"your-phone-number-id\", \"to_number\": \"+1234567890\", \"call_recording_enabled\": true}'\n```\n\nSee [Outbound Calls Reference](references\u002Foutbound-calls.md) for provider-specific endpoints, configuration overrides, and dynamic variables.\n\n## Managing Agents\n\n### Using CLI (Recommended)\n\n```bash\n# List agents and check status\nelevenlabs agents list\nelevenlabs agents status\n\n# Import agents from platform to local config\nelevenlabs agents pull                      # Import all agents\nelevenlabs agents pull --agent \u003Cagent-id>   # Import specific agent\n\n# Push local changes to platform\nelevenlabs agents push              # Upload configurations\nelevenlabs agents push --dry-run    # Preview changes first\n\n# Add tools\nelevenlabs tools add-webhook \"Weather API\"\nelevenlabs tools add-client \"UI Tool\"\n```\n\n### Project Structure\n\nThe CLI creates a project structure for managing agents:\n\n```\nyour_project\u002F\n├── agents.json       # Agent definitions\n├── tools.json        # Tool configurations\n├── tests.json        # Test configurations\n├── agent_configs\u002F    # Individual agent configs\n├── tool_configs\u002F     # Individual tool configs\n└── test_configs\u002F     # Individual test configs\n```\n\n### SDK Examples\n\n```python\n# List\nagents = client.conversational_ai.agents.list()\n\n# Get\nagent = client.conversational_ai.agents.get(agent_id=\"your-agent-id\")\n\n# Update (partial - only include fields to change)\nclient.conversational_ai.agents.update(agent_id=\"your-agent-id\", name=\"New Name\")\nclient.conversational_ai.agents.update(agent_id=\"your-agent-id\",\n    conversation_config={\n        \"agent\": {\"prompt\": {\"prompt\": \"New instructions\", \"llm\": \"claude-sonnet-4\"}}\n    })\n\n# Delete\nclient.conversational_ai.agents.delete(agent_id=\"your-agent-id\")\n```\n\nSee [Agent Configuration](references\u002Fagent-configuration.md) for all configuration options and SDK examples.\n\n## Error Handling\n\n```python\ntry:\n    agent = client.conversational_ai.agents.create(...)\nexcept Exception as e:\n    print(f\"API error: {e}\")\n```\n\nCommon errors: **401** (invalid key), **404** (not found), **422** (invalid config), **429** (rate limit)\n\n## References\n\n- [Installation Guide](references\u002Finstallation.md) - SDK setup and migration\n- [Agent Configuration](references\u002Fagent-configuration.md) - All config options and CRUD examples\n- [Client Tools](references\u002Fclient-tools.md) - Webhook, client, and system tools\n- [Widget Embedding](references\u002Fwidget-embedding.md) - Website integration\n- [Outbound Calls](references\u002Foutbound-calls.md) - Phone call integrations\n",{"data":40,"body":47},{"name":4,"description":6,"license":25,"compatibility":41,"metadata":42},"Requires internet access and an ElevenLabs API key (ELEVENLABS_API_KEY).",{"openclaw":43},{"requires":44,"primaryEnv":46},{"env":45},[46],"ELEVENLABS_API_KEY",{"type":48,"children":49},"root",[50,59,65,89,96,101,283,335,342,509,515,977,983,1096,1102,1108,1176,1265,1301,1311,1349,1357,1903,1953,2669,2675,3054,3067,3107,3139,3152,3158,3173,3183,3204,3210,3222,3235,3384,3394,3581,3593,3599,3628,3803,3867,3873,3885,3975,4038,4044,4049,4153,4159,4180,4256,4288,4321,4621,4676,4716,4752,4757,4776,5475,5613,5682,5688,5709,5780,6425,6472,6580,6647,6653,6781,6814,6825,6831,6836,6841,6846,6907,6912,7097,7102,7204,7216,7222,7228,7489,7495,7500,7509,7515,7638,7648,7654,7693,7726,7732,7783],{"type":51,"tag":52,"props":53,"children":55},"element","h1",{"id":54},"elevenlabs-agents-platform",[56],{"type":57,"value":58},"text","ElevenLabs Agents Platform",{"type":51,"tag":60,"props":61,"children":62},"p",{},[63],{"type":57,"value":64},"Build voice AI agents with natural conversations, multiple LLM providers, custom tools, and easy web embedding.",{"type":51,"tag":66,"props":67,"children":68},"blockquote",{},[69],{"type":51,"tag":60,"props":70,"children":71},{},[72,78,80,87],{"type":51,"tag":73,"props":74,"children":75},"strong",{},[76],{"type":57,"value":77},"Setup:",{"type":57,"value":79}," See ",{"type":51,"tag":81,"props":82,"children":84},"a",{"href":83},"references\u002Finstallation.md",[85],{"type":57,"value":86},"Installation Guide",{"type":57,"value":88}," for CLI and SDK setup.",{"type":51,"tag":90,"props":91,"children":93},"h2",{"id":92},"quick-start-with-cli",[94],{"type":57,"value":95},"Quick Start with CLI",{"type":51,"tag":60,"props":97,"children":98},{},[99],{"type":57,"value":100},"The ElevenLabs CLI is the recommended way to create and manage agents:",{"type":51,"tag":102,"props":103,"children":108},"pre",{"className":104,"code":105,"language":106,"meta":107,"style":107},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Install CLI and authenticate\nnpm install -g @elevenlabs\u002Fcli\nelevenlabs auth login\n\n# Initialize project and create an agent\nelevenlabs agents init\nelevenlabs agents add \"My Assistant\" --template complete\n\n# Push to ElevenLabs platform\nelevenlabs agents push\n","bash","",[109],{"type":51,"tag":110,"props":111,"children":112},"code",{"__ignoreMap":107},[113,125,151,169,179,188,206,249,257,266],{"type":51,"tag":114,"props":115,"children":118},"span",{"class":116,"line":117},"line",1,[119],{"type":51,"tag":114,"props":120,"children":122},{"style":121},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[123],{"type":57,"value":124},"# Install CLI and authenticate\n",{"type":51,"tag":114,"props":126,"children":128},{"class":116,"line":127},2,[129,135,141,146],{"type":51,"tag":114,"props":130,"children":132},{"style":131},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[133],{"type":57,"value":134},"npm",{"type":51,"tag":114,"props":136,"children":138},{"style":137},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[139],{"type":57,"value":140}," install",{"type":51,"tag":114,"props":142,"children":143},{"style":137},[144],{"type":57,"value":145}," -g",{"type":51,"tag":114,"props":147,"children":148},{"style":137},[149],{"type":57,"value":150}," @elevenlabs\u002Fcli\n",{"type":51,"tag":114,"props":152,"children":154},{"class":116,"line":153},3,[155,159,164],{"type":51,"tag":114,"props":156,"children":157},{"style":131},[158],{"type":57,"value":8},{"type":51,"tag":114,"props":160,"children":161},{"style":137},[162],{"type":57,"value":163}," auth",{"type":51,"tag":114,"props":165,"children":166},{"style":137},[167],{"type":57,"value":168}," login\n",{"type":51,"tag":114,"props":170,"children":172},{"class":116,"line":171},4,[173],{"type":51,"tag":114,"props":174,"children":176},{"emptyLinePlaceholder":175},true,[177],{"type":57,"value":178},"\n",{"type":51,"tag":114,"props":180,"children":182},{"class":116,"line":181},5,[183],{"type":51,"tag":114,"props":184,"children":185},{"style":121},[186],{"type":57,"value":187},"# Initialize project and create an agent\n",{"type":51,"tag":114,"props":189,"children":191},{"class":116,"line":190},6,[192,196,201],{"type":51,"tag":114,"props":193,"children":194},{"style":131},[195],{"type":57,"value":8},{"type":51,"tag":114,"props":197,"children":198},{"style":137},[199],{"type":57,"value":200}," agents",{"type":51,"tag":114,"props":202,"children":203},{"style":137},[204],{"type":57,"value":205}," init\n",{"type":51,"tag":114,"props":207,"children":209},{"class":116,"line":208},7,[210,214,218,223,229,234,239,244],{"type":51,"tag":114,"props":211,"children":212},{"style":131},[213],{"type":57,"value":8},{"type":51,"tag":114,"props":215,"children":216},{"style":137},[217],{"type":57,"value":200},{"type":51,"tag":114,"props":219,"children":220},{"style":137},[221],{"type":57,"value":222}," add",{"type":51,"tag":114,"props":224,"children":226},{"style":225},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[227],{"type":57,"value":228}," \"",{"type":51,"tag":114,"props":230,"children":231},{"style":137},[232],{"type":57,"value":233},"My Assistant",{"type":51,"tag":114,"props":235,"children":236},{"style":225},[237],{"type":57,"value":238},"\"",{"type":51,"tag":114,"props":240,"children":241},{"style":137},[242],{"type":57,"value":243}," --template",{"type":51,"tag":114,"props":245,"children":246},{"style":137},[247],{"type":57,"value":248}," complete\n",{"type":51,"tag":114,"props":250,"children":252},{"class":116,"line":251},8,[253],{"type":51,"tag":114,"props":254,"children":255},{"emptyLinePlaceholder":175},[256],{"type":57,"value":178},{"type":51,"tag":114,"props":258,"children":260},{"class":116,"line":259},9,[261],{"type":51,"tag":114,"props":262,"children":263},{"style":121},[264],{"type":57,"value":265},"# Push to ElevenLabs platform\n",{"type":51,"tag":114,"props":267,"children":269},{"class":116,"line":268},10,[270,274,278],{"type":51,"tag":114,"props":271,"children":272},{"style":131},[273],{"type":57,"value":8},{"type":51,"tag":114,"props":275,"children":276},{"style":137},[277],{"type":57,"value":200},{"type":51,"tag":114,"props":279,"children":280},{"style":137},[281],{"type":57,"value":282}," push\n",{"type":51,"tag":60,"props":284,"children":285},{},[286,291,293,299,301,307,308,314,315,321,322,328,329],{"type":51,"tag":73,"props":287,"children":288},{},[289],{"type":57,"value":290},"Available templates:",{"type":57,"value":292}," ",{"type":51,"tag":110,"props":294,"children":296},{"className":295},[],[297],{"type":57,"value":298},"complete",{"type":57,"value":300},", ",{"type":51,"tag":110,"props":302,"children":304},{"className":303},[],[305],{"type":57,"value":306},"minimal",{"type":57,"value":300},{"type":51,"tag":110,"props":309,"children":311},{"className":310},[],[312],{"type":57,"value":313},"voice-only",{"type":57,"value":300},{"type":51,"tag":110,"props":316,"children":318},{"className":317},[],[319],{"type":57,"value":320},"text-only",{"type":57,"value":300},{"type":51,"tag":110,"props":323,"children":325},{"className":324},[],[326],{"type":57,"value":327},"customer-service",{"type":57,"value":300},{"type":51,"tag":110,"props":330,"children":332},{"className":331},[],[333],{"type":57,"value":334},"assistant",{"type":51,"tag":336,"props":337,"children":339},"h3",{"id":338},"python",[340],{"type":57,"value":341},"Python",{"type":51,"tag":102,"props":343,"children":346},{"className":344,"code":345,"language":338,"meta":107,"style":107},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from elevenlabs import ElevenLabs\n\nclient = ElevenLabs()\n\nagent = client.conversational_ai.agents.create(\n    name=\"My Assistant\",\n    conversation_config={\n        \"agent\": {\n            \"first_message\": \"Hello! How can I help?\",\n            \"language\": \"en\",\n            \"prompt\": {\n                \"prompt\": \"You are a helpful assistant. Be concise and friendly.\",\n                \"llm\": \"gemini-2.0-flash\",\n                \"temperature\": 0.7\n            }\n        },\n        \"tts\": {\"voice_id\": \"JBFqnCBsd6RMkjVDRZzb\"}\n    }\n)\n",[347],{"type":51,"tag":110,"props":348,"children":349},{"__ignoreMap":107},[350,358,365,373,380,388,396,404,412,420,428,437,446,455,464,473,482,491,500],{"type":51,"tag":114,"props":351,"children":352},{"class":116,"line":117},[353],{"type":51,"tag":114,"props":354,"children":355},{},[356],{"type":57,"value":357},"from elevenlabs import ElevenLabs\n",{"type":51,"tag":114,"props":359,"children":360},{"class":116,"line":127},[361],{"type":51,"tag":114,"props":362,"children":363},{"emptyLinePlaceholder":175},[364],{"type":57,"value":178},{"type":51,"tag":114,"props":366,"children":367},{"class":116,"line":153},[368],{"type":51,"tag":114,"props":369,"children":370},{},[371],{"type":57,"value":372},"client = ElevenLabs()\n",{"type":51,"tag":114,"props":374,"children":375},{"class":116,"line":171},[376],{"type":51,"tag":114,"props":377,"children":378},{"emptyLinePlaceholder":175},[379],{"type":57,"value":178},{"type":51,"tag":114,"props":381,"children":382},{"class":116,"line":181},[383],{"type":51,"tag":114,"props":384,"children":385},{},[386],{"type":57,"value":387},"agent = client.conversational_ai.agents.create(\n",{"type":51,"tag":114,"props":389,"children":390},{"class":116,"line":190},[391],{"type":51,"tag":114,"props":392,"children":393},{},[394],{"type":57,"value":395},"    name=\"My Assistant\",\n",{"type":51,"tag":114,"props":397,"children":398},{"class":116,"line":208},[399],{"type":51,"tag":114,"props":400,"children":401},{},[402],{"type":57,"value":403},"    conversation_config={\n",{"type":51,"tag":114,"props":405,"children":406},{"class":116,"line":251},[407],{"type":51,"tag":114,"props":408,"children":409},{},[410],{"type":57,"value":411},"        \"agent\": {\n",{"type":51,"tag":114,"props":413,"children":414},{"class":116,"line":259},[415],{"type":51,"tag":114,"props":416,"children":417},{},[418],{"type":57,"value":419},"            \"first_message\": \"Hello! How can I help?\",\n",{"type":51,"tag":114,"props":421,"children":422},{"class":116,"line":268},[423],{"type":51,"tag":114,"props":424,"children":425},{},[426],{"type":57,"value":427},"            \"language\": \"en\",\n",{"type":51,"tag":114,"props":429,"children":431},{"class":116,"line":430},11,[432],{"type":51,"tag":114,"props":433,"children":434},{},[435],{"type":57,"value":436},"            \"prompt\": {\n",{"type":51,"tag":114,"props":438,"children":440},{"class":116,"line":439},12,[441],{"type":51,"tag":114,"props":442,"children":443},{},[444],{"type":57,"value":445},"                \"prompt\": \"You are a helpful assistant. Be concise and friendly.\",\n",{"type":51,"tag":114,"props":447,"children":449},{"class":116,"line":448},13,[450],{"type":51,"tag":114,"props":451,"children":452},{},[453],{"type":57,"value":454},"                \"llm\": \"gemini-2.0-flash\",\n",{"type":51,"tag":114,"props":456,"children":458},{"class":116,"line":457},14,[459],{"type":51,"tag":114,"props":460,"children":461},{},[462],{"type":57,"value":463},"                \"temperature\": 0.7\n",{"type":51,"tag":114,"props":465,"children":467},{"class":116,"line":466},15,[468],{"type":51,"tag":114,"props":469,"children":470},{},[471],{"type":57,"value":472},"            }\n",{"type":51,"tag":114,"props":474,"children":476},{"class":116,"line":475},16,[477],{"type":51,"tag":114,"props":478,"children":479},{},[480],{"type":57,"value":481},"        },\n",{"type":51,"tag":114,"props":483,"children":485},{"class":116,"line":484},17,[486],{"type":51,"tag":114,"props":487,"children":488},{},[489],{"type":57,"value":490},"        \"tts\": {\"voice_id\": \"JBFqnCBsd6RMkjVDRZzb\"}\n",{"type":51,"tag":114,"props":492,"children":494},{"class":116,"line":493},18,[495],{"type":51,"tag":114,"props":496,"children":497},{},[498],{"type":57,"value":499},"    }\n",{"type":51,"tag":114,"props":501,"children":503},{"class":116,"line":502},19,[504],{"type":51,"tag":114,"props":505,"children":506},{},[507],{"type":57,"value":508},")\n",{"type":51,"tag":336,"props":510,"children":512},{"id":511},"javascript",[513],{"type":57,"value":514},"JavaScript",{"type":51,"tag":102,"props":516,"children":519},{"className":517,"code":518,"language":511,"meta":107,"style":107},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { ElevenLabsClient } from \"@elevenlabs\u002Felevenlabs-js\";\nconst client = new ElevenLabsClient();\n\nconst agent = await client.conversationalAi.agents.create({\n  name: \"My Assistant\",\n  conversationConfig: {\n    agent: {\n      firstMessage: \"Hello! How can I help?\",\n      language: \"en\",\n      prompt: {\n        prompt: \"You are a helpful assistant.\",\n        llm: \"gemini-2.0-flash\",\n        temperature: 0.7\n      }\n    },\n    tts: { voiceId: \"JBFqnCBsd6RMkjVDRZzb\" }\n  }\n});\n",[520],{"type":51,"tag":110,"props":521,"children":522},{"__ignoreMap":107},[523,571,609,616,679,710,727,743,772,801,817,846,875,893,901,909,952,960],{"type":51,"tag":114,"props":524,"children":525},{"class":116,"line":117},[526,532,537,543,548,553,557,562,566],{"type":51,"tag":114,"props":527,"children":529},{"style":528},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[530],{"type":57,"value":531},"import",{"type":51,"tag":114,"props":533,"children":534},{"style":225},[535],{"type":57,"value":536}," {",{"type":51,"tag":114,"props":538,"children":540},{"style":539},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[541],{"type":57,"value":542}," ElevenLabsClient",{"type":51,"tag":114,"props":544,"children":545},{"style":225},[546],{"type":57,"value":547}," }",{"type":51,"tag":114,"props":549,"children":550},{"style":528},[551],{"type":57,"value":552}," from",{"type":51,"tag":114,"props":554,"children":555},{"style":225},[556],{"type":57,"value":228},{"type":51,"tag":114,"props":558,"children":559},{"style":137},[560],{"type":57,"value":561},"@elevenlabs\u002Felevenlabs-js",{"type":51,"tag":114,"props":563,"children":564},{"style":225},[565],{"type":57,"value":238},{"type":51,"tag":114,"props":567,"children":568},{"style":225},[569],{"type":57,"value":570},";\n",{"type":51,"tag":114,"props":572,"children":573},{"class":116,"line":127},[574,580,585,590,595,600,605],{"type":51,"tag":114,"props":575,"children":577},{"style":576},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[578],{"type":57,"value":579},"const",{"type":51,"tag":114,"props":581,"children":582},{"style":539},[583],{"type":57,"value":584}," client ",{"type":51,"tag":114,"props":586,"children":587},{"style":225},[588],{"type":57,"value":589},"=",{"type":51,"tag":114,"props":591,"children":592},{"style":225},[593],{"type":57,"value":594}," new",{"type":51,"tag":114,"props":596,"children":598},{"style":597},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[599],{"type":57,"value":542},{"type":51,"tag":114,"props":601,"children":602},{"style":539},[603],{"type":57,"value":604},"()",{"type":51,"tag":114,"props":606,"children":607},{"style":225},[608],{"type":57,"value":570},{"type":51,"tag":114,"props":610,"children":611},{"class":116,"line":153},[612],{"type":51,"tag":114,"props":613,"children":614},{"emptyLinePlaceholder":175},[615],{"type":57,"value":178},{"type":51,"tag":114,"props":617,"children":618},{"class":116,"line":171},[619,623,628,632,637,642,647,652,656,660,664,669,674],{"type":51,"tag":114,"props":620,"children":621},{"style":576},[622],{"type":57,"value":579},{"type":51,"tag":114,"props":624,"children":625},{"style":539},[626],{"type":57,"value":627}," agent ",{"type":51,"tag":114,"props":629,"children":630},{"style":225},[631],{"type":57,"value":589},{"type":51,"tag":114,"props":633,"children":634},{"style":528},[635],{"type":57,"value":636}," await",{"type":51,"tag":114,"props":638,"children":639},{"style":539},[640],{"type":57,"value":641}," client",{"type":51,"tag":114,"props":643,"children":644},{"style":225},[645],{"type":57,"value":646},".",{"type":51,"tag":114,"props":648,"children":649},{"style":539},[650],{"type":57,"value":651},"conversationalAi",{"type":51,"tag":114,"props":653,"children":654},{"style":225},[655],{"type":57,"value":646},{"type":51,"tag":114,"props":657,"children":658},{"style":539},[659],{"type":57,"value":4},{"type":51,"tag":114,"props":661,"children":662},{"style":225},[663],{"type":57,"value":646},{"type":51,"tag":114,"props":665,"children":666},{"style":597},[667],{"type":57,"value":668},"create",{"type":51,"tag":114,"props":670,"children":671},{"style":539},[672],{"type":57,"value":673},"(",{"type":51,"tag":114,"props":675,"children":676},{"style":225},[677],{"type":57,"value":678},"{\n",{"type":51,"tag":114,"props":680,"children":681},{"class":116,"line":181},[682,688,693,697,701,705],{"type":51,"tag":114,"props":683,"children":685},{"style":684},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[686],{"type":57,"value":687},"  name",{"type":51,"tag":114,"props":689,"children":690},{"style":225},[691],{"type":57,"value":692},":",{"type":51,"tag":114,"props":694,"children":695},{"style":225},[696],{"type":57,"value":228},{"type":51,"tag":114,"props":698,"children":699},{"style":137},[700],{"type":57,"value":233},{"type":51,"tag":114,"props":702,"children":703},{"style":225},[704],{"type":57,"value":238},{"type":51,"tag":114,"props":706,"children":707},{"style":225},[708],{"type":57,"value":709},",\n",{"type":51,"tag":114,"props":711,"children":712},{"class":116,"line":190},[713,718,722],{"type":51,"tag":114,"props":714,"children":715},{"style":684},[716],{"type":57,"value":717},"  conversationConfig",{"type":51,"tag":114,"props":719,"children":720},{"style":225},[721],{"type":57,"value":692},{"type":51,"tag":114,"props":723,"children":724},{"style":225},[725],{"type":57,"value":726}," {\n",{"type":51,"tag":114,"props":728,"children":729},{"class":116,"line":208},[730,735,739],{"type":51,"tag":114,"props":731,"children":732},{"style":684},[733],{"type":57,"value":734},"    agent",{"type":51,"tag":114,"props":736,"children":737},{"style":225},[738],{"type":57,"value":692},{"type":51,"tag":114,"props":740,"children":741},{"style":225},[742],{"type":57,"value":726},{"type":51,"tag":114,"props":744,"children":745},{"class":116,"line":251},[746,751,755,759,764,768],{"type":51,"tag":114,"props":747,"children":748},{"style":684},[749],{"type":57,"value":750},"      firstMessage",{"type":51,"tag":114,"props":752,"children":753},{"style":225},[754],{"type":57,"value":692},{"type":51,"tag":114,"props":756,"children":757},{"style":225},[758],{"type":57,"value":228},{"type":51,"tag":114,"props":760,"children":761},{"style":137},[762],{"type":57,"value":763},"Hello! How can I help?",{"type":51,"tag":114,"props":765,"children":766},{"style":225},[767],{"type":57,"value":238},{"type":51,"tag":114,"props":769,"children":770},{"style":225},[771],{"type":57,"value":709},{"type":51,"tag":114,"props":773,"children":774},{"class":116,"line":259},[775,780,784,788,793,797],{"type":51,"tag":114,"props":776,"children":777},{"style":684},[778],{"type":57,"value":779},"      language",{"type":51,"tag":114,"props":781,"children":782},{"style":225},[783],{"type":57,"value":692},{"type":51,"tag":114,"props":785,"children":786},{"style":225},[787],{"type":57,"value":228},{"type":51,"tag":114,"props":789,"children":790},{"style":137},[791],{"type":57,"value":792},"en",{"type":51,"tag":114,"props":794,"children":795},{"style":225},[796],{"type":57,"value":238},{"type":51,"tag":114,"props":798,"children":799},{"style":225},[800],{"type":57,"value":709},{"type":51,"tag":114,"props":802,"children":803},{"class":116,"line":268},[804,809,813],{"type":51,"tag":114,"props":805,"children":806},{"style":684},[807],{"type":57,"value":808},"      prompt",{"type":51,"tag":114,"props":810,"children":811},{"style":225},[812],{"type":57,"value":692},{"type":51,"tag":114,"props":814,"children":815},{"style":225},[816],{"type":57,"value":726},{"type":51,"tag":114,"props":818,"children":819},{"class":116,"line":430},[820,825,829,833,838,842],{"type":51,"tag":114,"props":821,"children":822},{"style":684},[823],{"type":57,"value":824},"        prompt",{"type":51,"tag":114,"props":826,"children":827},{"style":225},[828],{"type":57,"value":692},{"type":51,"tag":114,"props":830,"children":831},{"style":225},[832],{"type":57,"value":228},{"type":51,"tag":114,"props":834,"children":835},{"style":137},[836],{"type":57,"value":837},"You are a helpful assistant.",{"type":51,"tag":114,"props":839,"children":840},{"style":225},[841],{"type":57,"value":238},{"type":51,"tag":114,"props":843,"children":844},{"style":225},[845],{"type":57,"value":709},{"type":51,"tag":114,"props":847,"children":848},{"class":116,"line":439},[849,854,858,862,867,871],{"type":51,"tag":114,"props":850,"children":851},{"style":684},[852],{"type":57,"value":853},"        llm",{"type":51,"tag":114,"props":855,"children":856},{"style":225},[857],{"type":57,"value":692},{"type":51,"tag":114,"props":859,"children":860},{"style":225},[861],{"type":57,"value":228},{"type":51,"tag":114,"props":863,"children":864},{"style":137},[865],{"type":57,"value":866},"gemini-2.0-flash",{"type":51,"tag":114,"props":868,"children":869},{"style":225},[870],{"type":57,"value":238},{"type":51,"tag":114,"props":872,"children":873},{"style":225},[874],{"type":57,"value":709},{"type":51,"tag":114,"props":876,"children":877},{"class":116,"line":448},[878,883,887],{"type":51,"tag":114,"props":879,"children":880},{"style":684},[881],{"type":57,"value":882},"        temperature",{"type":51,"tag":114,"props":884,"children":885},{"style":225},[886],{"type":57,"value":692},{"type":51,"tag":114,"props":888,"children":890},{"style":889},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[891],{"type":57,"value":892}," 0.7\n",{"type":51,"tag":114,"props":894,"children":895},{"class":116,"line":457},[896],{"type":51,"tag":114,"props":897,"children":898},{"style":225},[899],{"type":57,"value":900},"      }\n",{"type":51,"tag":114,"props":902,"children":903},{"class":116,"line":466},[904],{"type":51,"tag":114,"props":905,"children":906},{"style":225},[907],{"type":57,"value":908},"    },\n",{"type":51,"tag":114,"props":910,"children":911},{"class":116,"line":475},[912,917,921,925,930,934,938,943,947],{"type":51,"tag":114,"props":913,"children":914},{"style":684},[915],{"type":57,"value":916},"    tts",{"type":51,"tag":114,"props":918,"children":919},{"style":225},[920],{"type":57,"value":692},{"type":51,"tag":114,"props":922,"children":923},{"style":225},[924],{"type":57,"value":536},{"type":51,"tag":114,"props":926,"children":927},{"style":684},[928],{"type":57,"value":929}," voiceId",{"type":51,"tag":114,"props":931,"children":932},{"style":225},[933],{"type":57,"value":692},{"type":51,"tag":114,"props":935,"children":936},{"style":225},[937],{"type":57,"value":228},{"type":51,"tag":114,"props":939,"children":940},{"style":137},[941],{"type":57,"value":942},"JBFqnCBsd6RMkjVDRZzb",{"type":51,"tag":114,"props":944,"children":945},{"style":225},[946],{"type":57,"value":238},{"type":51,"tag":114,"props":948,"children":949},{"style":225},[950],{"type":57,"value":951}," }\n",{"type":51,"tag":114,"props":953,"children":954},{"class":116,"line":484},[955],{"type":51,"tag":114,"props":956,"children":957},{"style":225},[958],{"type":57,"value":959},"  }\n",{"type":51,"tag":114,"props":961,"children":962},{"class":116,"line":493},[963,968,973],{"type":51,"tag":114,"props":964,"children":965},{"style":225},[966],{"type":57,"value":967},"}",{"type":51,"tag":114,"props":969,"children":970},{"style":539},[971],{"type":57,"value":972},")",{"type":51,"tag":114,"props":974,"children":975},{"style":225},[976],{"type":57,"value":570},{"type":51,"tag":336,"props":978,"children":980},{"id":979},"curl",[981],{"type":57,"value":982},"cURL",{"type":51,"tag":102,"props":984,"children":986},{"className":104,"code":985,"language":106,"meta":107,"style":107},"curl -X POST \"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fconvai\u002Fagents\u002Fcreate\" \\\n  -H \"xi-api-key: $ELEVENLABS_API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\": \"My Assistant\", \"conversation_config\": {\"agent\": {\"first_message\": \"Hello!\", \"language\": \"en\", \"prompt\": {\"prompt\": \"You are helpful.\", \"llm\": \"gemini-2.0-flash\"}}, \"tts\": {\"voice_id\": \"JBFqnCBsd6RMkjVDRZzb\"}}}'\n",[987],{"type":51,"tag":110,"props":988,"children":989},{"__ignoreMap":107},[990,1025,1073],{"type":51,"tag":114,"props":991,"children":992},{"class":116,"line":117},[993,997,1002,1007,1011,1016,1020],{"type":51,"tag":114,"props":994,"children":995},{"style":131},[996],{"type":57,"value":979},{"type":51,"tag":114,"props":998,"children":999},{"style":137},[1000],{"type":57,"value":1001}," -X",{"type":51,"tag":114,"props":1003,"children":1004},{"style":137},[1005],{"type":57,"value":1006}," POST",{"type":51,"tag":114,"props":1008,"children":1009},{"style":225},[1010],{"type":57,"value":228},{"type":51,"tag":114,"props":1012,"children":1013},{"style":137},[1014],{"type":57,"value":1015},"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fconvai\u002Fagents\u002Fcreate",{"type":51,"tag":114,"props":1017,"children":1018},{"style":225},[1019],{"type":57,"value":238},{"type":51,"tag":114,"props":1021,"children":1022},{"style":539},[1023],{"type":57,"value":1024}," \\\n",{"type":51,"tag":114,"props":1026,"children":1027},{"class":116,"line":127},[1028,1033,1037,1042,1047,1051,1056,1060,1065,1069],{"type":51,"tag":114,"props":1029,"children":1030},{"style":137},[1031],{"type":57,"value":1032},"  -H",{"type":51,"tag":114,"props":1034,"children":1035},{"style":225},[1036],{"type":57,"value":228},{"type":51,"tag":114,"props":1038,"children":1039},{"style":137},[1040],{"type":57,"value":1041},"xi-api-key: ",{"type":51,"tag":114,"props":1043,"children":1044},{"style":539},[1045],{"type":57,"value":1046},"$ELEVENLABS_API_KEY",{"type":51,"tag":114,"props":1048,"children":1049},{"style":225},[1050],{"type":57,"value":238},{"type":51,"tag":114,"props":1052,"children":1053},{"style":137},[1054],{"type":57,"value":1055}," -H",{"type":51,"tag":114,"props":1057,"children":1058},{"style":225},[1059],{"type":57,"value":228},{"type":51,"tag":114,"props":1061,"children":1062},{"style":137},[1063],{"type":57,"value":1064},"Content-Type: application\u002Fjson",{"type":51,"tag":114,"props":1066,"children":1067},{"style":225},[1068],{"type":57,"value":238},{"type":51,"tag":114,"props":1070,"children":1071},{"style":539},[1072],{"type":57,"value":1024},{"type":51,"tag":114,"props":1074,"children":1075},{"class":116,"line":153},[1076,1081,1086,1091],{"type":51,"tag":114,"props":1077,"children":1078},{"style":137},[1079],{"type":57,"value":1080},"  -d",{"type":51,"tag":114,"props":1082,"children":1083},{"style":225},[1084],{"type":57,"value":1085}," '",{"type":51,"tag":114,"props":1087,"children":1088},{"style":137},[1089],{"type":57,"value":1090},"{\"name\": \"My Assistant\", \"conversation_config\": {\"agent\": {\"first_message\": \"Hello!\", \"language\": \"en\", \"prompt\": {\"prompt\": \"You are helpful.\", \"llm\": \"gemini-2.0-flash\"}}, \"tts\": {\"voice_id\": \"JBFqnCBsd6RMkjVDRZzb\"}}}",{"type":51,"tag":114,"props":1092,"children":1093},{"style":225},[1094],{"type":57,"value":1095},"'\n",{"type":51,"tag":90,"props":1097,"children":1099},{"id":1098},"starting-conversations",[1100],{"type":57,"value":1101},"Starting Conversations",{"type":51,"tag":336,"props":1103,"children":1105},{"id":1104},"temporary-livekit-websocket-pin",[1106],{"type":57,"value":1107},"Temporary LiveKit WebSocket Pin",{"type":51,"tag":60,"props":1109,"children":1110},{},[1111,1113,1119,1121,1127,1129,1135,1137,1143,1145,1151,1153,1159,1161,1167,1169,1175],{"type":57,"value":1112},"Until the ElevenLabs LiveKit server supports ",{"type":51,"tag":110,"props":1114,"children":1116},{"className":1115},[],[1117],{"type":57,"value":1118},"\u002Frtc\u002Fv1",{"type":57,"value":1120},", browser clients using WebRTC can fail or stall during the underlying LiveKit WebSocket handshake with ",{"type":51,"tag":110,"props":1122,"children":1124},{"className":1123},[],[1125],{"type":57,"value":1126},"livekit-client",{"type":57,"value":1128}," versions newer than ",{"type":51,"tag":110,"props":1130,"children":1132},{"className":1131},[],[1133],{"type":57,"value":1134},"2.16.1",{"type":57,"value":1136},". For React, Next.js, Electron, or other ",{"type":51,"tag":110,"props":1138,"children":1140},{"className":1139},[],[1141],{"type":57,"value":1142},"@elevenlabs\u002Fclient",{"type":57,"value":1144}," \u002F ",{"type":51,"tag":110,"props":1146,"children":1148},{"className":1147},[],[1149],{"type":57,"value":1150},"@elevenlabs\u002Freact",{"type":57,"value":1152}," integrations that use ",{"type":51,"tag":110,"props":1154,"children":1156},{"className":1155},[],[1157],{"type":57,"value":1158},"connectionType: \"webrtc\"",{"type":57,"value":1160}," or hit ",{"type":51,"tag":110,"props":1162,"children":1164},{"className":1163},[],[1165],{"type":57,"value":1166},"wss:\u002F\u002Flivekit.rtc.elevenlabs.io\u002Frtc\u002Fv1",{"type":57,"value":1168},", add this temporary pin to ",{"type":51,"tag":110,"props":1170,"children":1172},{"className":1171},[],[1173],{"type":57,"value":1174},"package.json",{"type":57,"value":692},{"type":51,"tag":102,"props":1177,"children":1181},{"className":1178,"code":1179,"language":1180,"meta":107,"style":107},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"overrides\": {\n    \"livekit-client\": \"2.16.1\"\n  }\n}\n","json",[1182],{"type":51,"tag":110,"props":1183,"children":1184},{"__ignoreMap":107},[1185,1192,1217,1250,1257],{"type":51,"tag":114,"props":1186,"children":1187},{"class":116,"line":117},[1188],{"type":51,"tag":114,"props":1189,"children":1190},{"style":225},[1191],{"type":57,"value":678},{"type":51,"tag":114,"props":1193,"children":1194},{"class":116,"line":127},[1195,1200,1205,1209,1213],{"type":51,"tag":114,"props":1196,"children":1197},{"style":225},[1198],{"type":57,"value":1199},"  \"",{"type":51,"tag":114,"props":1201,"children":1202},{"style":576},[1203],{"type":57,"value":1204},"overrides",{"type":51,"tag":114,"props":1206,"children":1207},{"style":225},[1208],{"type":57,"value":238},{"type":51,"tag":114,"props":1210,"children":1211},{"style":225},[1212],{"type":57,"value":692},{"type":51,"tag":114,"props":1214,"children":1215},{"style":225},[1216],{"type":57,"value":726},{"type":51,"tag":114,"props":1218,"children":1219},{"class":116,"line":153},[1220,1225,1229,1233,1237,1241,1245],{"type":51,"tag":114,"props":1221,"children":1222},{"style":225},[1223],{"type":57,"value":1224},"    \"",{"type":51,"tag":114,"props":1226,"children":1227},{"style":131},[1228],{"type":57,"value":1126},{"type":51,"tag":114,"props":1230,"children":1231},{"style":225},[1232],{"type":57,"value":238},{"type":51,"tag":114,"props":1234,"children":1235},{"style":225},[1236],{"type":57,"value":692},{"type":51,"tag":114,"props":1238,"children":1239},{"style":225},[1240],{"type":57,"value":228},{"type":51,"tag":114,"props":1242,"children":1243},{"style":137},[1244],{"type":57,"value":1134},{"type":51,"tag":114,"props":1246,"children":1247},{"style":225},[1248],{"type":57,"value":1249},"\"\n",{"type":51,"tag":114,"props":1251,"children":1252},{"class":116,"line":171},[1253],{"type":51,"tag":114,"props":1254,"children":1255},{"style":225},[1256],{"type":57,"value":959},{"type":51,"tag":114,"props":1258,"children":1259},{"class":116,"line":181},[1260],{"type":51,"tag":114,"props":1261,"children":1262},{"style":225},[1263],{"type":57,"value":1264},"}\n",{"type":51,"tag":60,"props":1266,"children":1267},{},[1268,1270,1275,1277,1283,1285,1291,1293,1299],{"type":57,"value":1269},"Use the pin when the app logs ",{"type":51,"tag":110,"props":1271,"children":1273},{"className":1272},[],[1274],{"type":57,"value":1118},{"type":57,"value":1276}," 404s, ",{"type":51,"tag":110,"props":1278,"children":1280},{"className":1279},[],[1281],{"type":57,"value":1282},"v1 RTC path not found",{"type":57,"value":1284},", or ",{"type":51,"tag":110,"props":1286,"children":1288},{"className":1287},[],[1289],{"type":57,"value":1290},"could not establish pc connection",{"type":57,"value":1292}," during session startup. This is a LiveKit server compatibility workaround for WebRTC sessions, not the ElevenLabs ",{"type":51,"tag":110,"props":1294,"children":1296},{"className":1295},[],[1297],{"type":57,"value":1298},"connectionType: \"websocket\"",{"type":57,"value":1300}," transport. Remove it after the upstream LiveKit server or SDK issue is fixed.",{"type":51,"tag":60,"props":1302,"children":1303},{},[1304,1309],{"type":51,"tag":73,"props":1305,"children":1306},{},[1307],{"type":57,"value":1308},"Server-side (Python):",{"type":57,"value":1310}," Get signed URL for client connection:",{"type":51,"tag":102,"props":1312,"children":1314},{"className":344,"code":1313,"language":338,"meta":107,"style":107},"signed_url = client.conversational_ai.conversations.get_signed_url(\n    agent_id=\"your-agent-id\",\n    environment=\"staging\",\n)\n",[1315],{"type":51,"tag":110,"props":1316,"children":1317},{"__ignoreMap":107},[1318,1326,1334,1342],{"type":51,"tag":114,"props":1319,"children":1320},{"class":116,"line":117},[1321],{"type":51,"tag":114,"props":1322,"children":1323},{},[1324],{"type":57,"value":1325},"signed_url = client.conversational_ai.conversations.get_signed_url(\n",{"type":51,"tag":114,"props":1327,"children":1328},{"class":116,"line":127},[1329],{"type":51,"tag":114,"props":1330,"children":1331},{},[1332],{"type":57,"value":1333},"    agent_id=\"your-agent-id\",\n",{"type":51,"tag":114,"props":1335,"children":1336},{"class":116,"line":153},[1337],{"type":51,"tag":114,"props":1338,"children":1339},{},[1340],{"type":57,"value":1341},"    environment=\"staging\",\n",{"type":51,"tag":114,"props":1343,"children":1344},{"class":116,"line":171},[1345],{"type":51,"tag":114,"props":1346,"children":1347},{},[1348],{"type":57,"value":508},{"type":51,"tag":60,"props":1350,"children":1351},{},[1352],{"type":51,"tag":73,"props":1353,"children":1354},{},[1355],{"type":57,"value":1356},"Client-side (JavaScript):",{"type":51,"tag":102,"props":1358,"children":1360},{"className":517,"code":1359,"language":511,"meta":107,"style":107},"import { Conversation } from \"@elevenlabs\u002Fclient\";\n\nconst conversation = await Conversation.startSession({\n  agentId: \"your-agent-id\",\n  environment: \"staging\",\n  overrides: { asr: { keywords: [\"ElevenLabs\", \"TechCorp\"] } },\n  onMessage: (msg) => console.log(\"Agent:\", msg.message),\n  onUserTranscript: (t) => console.log(\"User:\", t.message),\n  onPing: (event) => console.log(\"Estimated latency:\", event.ping_ms),\n  onError: (e) => console.error(e)\n});\n",[1361],{"type":51,"tag":110,"props":1362,"children":1363},{"__ignoreMap":107},[1364,1404,1411,1452,1481,1510,1597,1682,1761,1841,1888],{"type":51,"tag":114,"props":1365,"children":1366},{"class":116,"line":117},[1367,1371,1375,1380,1384,1388,1392,1396,1400],{"type":51,"tag":114,"props":1368,"children":1369},{"style":528},[1370],{"type":57,"value":531},{"type":51,"tag":114,"props":1372,"children":1373},{"style":225},[1374],{"type":57,"value":536},{"type":51,"tag":114,"props":1376,"children":1377},{"style":539},[1378],{"type":57,"value":1379}," Conversation",{"type":51,"tag":114,"props":1381,"children":1382},{"style":225},[1383],{"type":57,"value":547},{"type":51,"tag":114,"props":1385,"children":1386},{"style":528},[1387],{"type":57,"value":552},{"type":51,"tag":114,"props":1389,"children":1390},{"style":225},[1391],{"type":57,"value":228},{"type":51,"tag":114,"props":1393,"children":1394},{"style":137},[1395],{"type":57,"value":1142},{"type":51,"tag":114,"props":1397,"children":1398},{"style":225},[1399],{"type":57,"value":238},{"type":51,"tag":114,"props":1401,"children":1402},{"style":225},[1403],{"type":57,"value":570},{"type":51,"tag":114,"props":1405,"children":1406},{"class":116,"line":127},[1407],{"type":51,"tag":114,"props":1408,"children":1409},{"emptyLinePlaceholder":175},[1410],{"type":57,"value":178},{"type":51,"tag":114,"props":1412,"children":1413},{"class":116,"line":153},[1414,1418,1423,1427,1431,1435,1439,1444,1448],{"type":51,"tag":114,"props":1415,"children":1416},{"style":576},[1417],{"type":57,"value":579},{"type":51,"tag":114,"props":1419,"children":1420},{"style":539},[1421],{"type":57,"value":1422}," conversation ",{"type":51,"tag":114,"props":1424,"children":1425},{"style":225},[1426],{"type":57,"value":589},{"type":51,"tag":114,"props":1428,"children":1429},{"style":528},[1430],{"type":57,"value":636},{"type":51,"tag":114,"props":1432,"children":1433},{"style":539},[1434],{"type":57,"value":1379},{"type":51,"tag":114,"props":1436,"children":1437},{"style":225},[1438],{"type":57,"value":646},{"type":51,"tag":114,"props":1440,"children":1441},{"style":597},[1442],{"type":57,"value":1443},"startSession",{"type":51,"tag":114,"props":1445,"children":1446},{"style":539},[1447],{"type":57,"value":673},{"type":51,"tag":114,"props":1449,"children":1450},{"style":225},[1451],{"type":57,"value":678},{"type":51,"tag":114,"props":1453,"children":1454},{"class":116,"line":171},[1455,1460,1464,1468,1473,1477],{"type":51,"tag":114,"props":1456,"children":1457},{"style":684},[1458],{"type":57,"value":1459},"  agentId",{"type":51,"tag":114,"props":1461,"children":1462},{"style":225},[1463],{"type":57,"value":692},{"type":51,"tag":114,"props":1465,"children":1466},{"style":225},[1467],{"type":57,"value":228},{"type":51,"tag":114,"props":1469,"children":1470},{"style":137},[1471],{"type":57,"value":1472},"your-agent-id",{"type":51,"tag":114,"props":1474,"children":1475},{"style":225},[1476],{"type":57,"value":238},{"type":51,"tag":114,"props":1478,"children":1479},{"style":225},[1480],{"type":57,"value":709},{"type":51,"tag":114,"props":1482,"children":1483},{"class":116,"line":181},[1484,1489,1493,1497,1502,1506],{"type":51,"tag":114,"props":1485,"children":1486},{"style":684},[1487],{"type":57,"value":1488},"  environment",{"type":51,"tag":114,"props":1490,"children":1491},{"style":225},[1492],{"type":57,"value":692},{"type":51,"tag":114,"props":1494,"children":1495},{"style":225},[1496],{"type":57,"value":228},{"type":51,"tag":114,"props":1498,"children":1499},{"style":137},[1500],{"type":57,"value":1501},"staging",{"type":51,"tag":114,"props":1503,"children":1504},{"style":225},[1505],{"type":57,"value":238},{"type":51,"tag":114,"props":1507,"children":1508},{"style":225},[1509],{"type":57,"value":709},{"type":51,"tag":114,"props":1511,"children":1512},{"class":116,"line":190},[1513,1518,1522,1526,1531,1535,1539,1544,1548,1553,1557,1561,1565,1570,1574,1579,1583,1588,1592],{"type":51,"tag":114,"props":1514,"children":1515},{"style":684},[1516],{"type":57,"value":1517},"  overrides",{"type":51,"tag":114,"props":1519,"children":1520},{"style":225},[1521],{"type":57,"value":692},{"type":51,"tag":114,"props":1523,"children":1524},{"style":225},[1525],{"type":57,"value":536},{"type":51,"tag":114,"props":1527,"children":1528},{"style":684},[1529],{"type":57,"value":1530}," asr",{"type":51,"tag":114,"props":1532,"children":1533},{"style":225},[1534],{"type":57,"value":692},{"type":51,"tag":114,"props":1536,"children":1537},{"style":225},[1538],{"type":57,"value":536},{"type":51,"tag":114,"props":1540,"children":1541},{"style":684},[1542],{"type":57,"value":1543}," keywords",{"type":51,"tag":114,"props":1545,"children":1546},{"style":225},[1547],{"type":57,"value":692},{"type":51,"tag":114,"props":1549,"children":1550},{"style":539},[1551],{"type":57,"value":1552}," [",{"type":51,"tag":114,"props":1554,"children":1555},{"style":225},[1556],{"type":57,"value":238},{"type":51,"tag":114,"props":1558,"children":1559},{"style":137},[1560],{"type":57,"value":9},{"type":51,"tag":114,"props":1562,"children":1563},{"style":225},[1564],{"type":57,"value":238},{"type":51,"tag":114,"props":1566,"children":1567},{"style":225},[1568],{"type":57,"value":1569},",",{"type":51,"tag":114,"props":1571,"children":1572},{"style":225},[1573],{"type":57,"value":228},{"type":51,"tag":114,"props":1575,"children":1576},{"style":137},[1577],{"type":57,"value":1578},"TechCorp",{"type":51,"tag":114,"props":1580,"children":1581},{"style":225},[1582],{"type":57,"value":238},{"type":51,"tag":114,"props":1584,"children":1585},{"style":539},[1586],{"type":57,"value":1587},"] ",{"type":51,"tag":114,"props":1589,"children":1590},{"style":225},[1591],{"type":57,"value":967},{"type":51,"tag":114,"props":1593,"children":1594},{"style":225},[1595],{"type":57,"value":1596}," },\n",{"type":51,"tag":114,"props":1598,"children":1599},{"class":116,"line":208},[1600,1605,1609,1614,1620,1624,1629,1634,1638,1643,1647,1651,1656,1660,1664,1669,1673,1678],{"type":51,"tag":114,"props":1601,"children":1602},{"style":597},[1603],{"type":57,"value":1604},"  onMessage",{"type":51,"tag":114,"props":1606,"children":1607},{"style":225},[1608],{"type":57,"value":692},{"type":51,"tag":114,"props":1610,"children":1611},{"style":225},[1612],{"type":57,"value":1613}," (",{"type":51,"tag":114,"props":1615,"children":1617},{"style":1616},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1618],{"type":57,"value":1619},"msg",{"type":51,"tag":114,"props":1621,"children":1622},{"style":225},[1623],{"type":57,"value":972},{"type":51,"tag":114,"props":1625,"children":1626},{"style":576},[1627],{"type":57,"value":1628}," =>",{"type":51,"tag":114,"props":1630,"children":1631},{"style":539},[1632],{"type":57,"value":1633}," console",{"type":51,"tag":114,"props":1635,"children":1636},{"style":225},[1637],{"type":57,"value":646},{"type":51,"tag":114,"props":1639,"children":1640},{"style":597},[1641],{"type":57,"value":1642},"log",{"type":51,"tag":114,"props":1644,"children":1645},{"style":539},[1646],{"type":57,"value":673},{"type":51,"tag":114,"props":1648,"children":1649},{"style":225},[1650],{"type":57,"value":238},{"type":51,"tag":114,"props":1652,"children":1653},{"style":137},[1654],{"type":57,"value":1655},"Agent:",{"type":51,"tag":114,"props":1657,"children":1658},{"style":225},[1659],{"type":57,"value":238},{"type":51,"tag":114,"props":1661,"children":1662},{"style":225},[1663],{"type":57,"value":1569},{"type":51,"tag":114,"props":1665,"children":1666},{"style":539},[1667],{"type":57,"value":1668}," msg",{"type":51,"tag":114,"props":1670,"children":1671},{"style":225},[1672],{"type":57,"value":646},{"type":51,"tag":114,"props":1674,"children":1675},{"style":539},[1676],{"type":57,"value":1677},"message)",{"type":51,"tag":114,"props":1679,"children":1680},{"style":225},[1681],{"type":57,"value":709},{"type":51,"tag":114,"props":1683,"children":1684},{"class":116,"line":251},[1685,1690,1694,1698,1703,1707,1711,1715,1719,1723,1727,1731,1736,1740,1744,1749,1753,1757],{"type":51,"tag":114,"props":1686,"children":1687},{"style":597},[1688],{"type":57,"value":1689},"  onUserTranscript",{"type":51,"tag":114,"props":1691,"children":1692},{"style":225},[1693],{"type":57,"value":692},{"type":51,"tag":114,"props":1695,"children":1696},{"style":225},[1697],{"type":57,"value":1613},{"type":51,"tag":114,"props":1699,"children":1700},{"style":1616},[1701],{"type":57,"value":1702},"t",{"type":51,"tag":114,"props":1704,"children":1705},{"style":225},[1706],{"type":57,"value":972},{"type":51,"tag":114,"props":1708,"children":1709},{"style":576},[1710],{"type":57,"value":1628},{"type":51,"tag":114,"props":1712,"children":1713},{"style":539},[1714],{"type":57,"value":1633},{"type":51,"tag":114,"props":1716,"children":1717},{"style":225},[1718],{"type":57,"value":646},{"type":51,"tag":114,"props":1720,"children":1721},{"style":597},[1722],{"type":57,"value":1642},{"type":51,"tag":114,"props":1724,"children":1725},{"style":539},[1726],{"type":57,"value":673},{"type":51,"tag":114,"props":1728,"children":1729},{"style":225},[1730],{"type":57,"value":238},{"type":51,"tag":114,"props":1732,"children":1733},{"style":137},[1734],{"type":57,"value":1735},"User:",{"type":51,"tag":114,"props":1737,"children":1738},{"style":225},[1739],{"type":57,"value":238},{"type":51,"tag":114,"props":1741,"children":1742},{"style":225},[1743],{"type":57,"value":1569},{"type":51,"tag":114,"props":1745,"children":1746},{"style":539},[1747],{"type":57,"value":1748}," t",{"type":51,"tag":114,"props":1750,"children":1751},{"style":225},[1752],{"type":57,"value":646},{"type":51,"tag":114,"props":1754,"children":1755},{"style":539},[1756],{"type":57,"value":1677},{"type":51,"tag":114,"props":1758,"children":1759},{"style":225},[1760],{"type":57,"value":709},{"type":51,"tag":114,"props":1762,"children":1763},{"class":116,"line":259},[1764,1769,1773,1777,1782,1786,1790,1794,1798,1802,1806,1810,1815,1819,1823,1828,1832,1837],{"type":51,"tag":114,"props":1765,"children":1766},{"style":597},[1767],{"type":57,"value":1768},"  onPing",{"type":51,"tag":114,"props":1770,"children":1771},{"style":225},[1772],{"type":57,"value":692},{"type":51,"tag":114,"props":1774,"children":1775},{"style":225},[1776],{"type":57,"value":1613},{"type":51,"tag":114,"props":1778,"children":1779},{"style":1616},[1780],{"type":57,"value":1781},"event",{"type":51,"tag":114,"props":1783,"children":1784},{"style":225},[1785],{"type":57,"value":972},{"type":51,"tag":114,"props":1787,"children":1788},{"style":576},[1789],{"type":57,"value":1628},{"type":51,"tag":114,"props":1791,"children":1792},{"style":539},[1793],{"type":57,"value":1633},{"type":51,"tag":114,"props":1795,"children":1796},{"style":225},[1797],{"type":57,"value":646},{"type":51,"tag":114,"props":1799,"children":1800},{"style":597},[1801],{"type":57,"value":1642},{"type":51,"tag":114,"props":1803,"children":1804},{"style":539},[1805],{"type":57,"value":673},{"type":51,"tag":114,"props":1807,"children":1808},{"style":225},[1809],{"type":57,"value":238},{"type":51,"tag":114,"props":1811,"children":1812},{"style":137},[1813],{"type":57,"value":1814},"Estimated latency:",{"type":51,"tag":114,"props":1816,"children":1817},{"style":225},[1818],{"type":57,"value":238},{"type":51,"tag":114,"props":1820,"children":1821},{"style":225},[1822],{"type":57,"value":1569},{"type":51,"tag":114,"props":1824,"children":1825},{"style":539},[1826],{"type":57,"value":1827}," event",{"type":51,"tag":114,"props":1829,"children":1830},{"style":225},[1831],{"type":57,"value":646},{"type":51,"tag":114,"props":1833,"children":1834},{"style":539},[1835],{"type":57,"value":1836},"ping_ms)",{"type":51,"tag":114,"props":1838,"children":1839},{"style":225},[1840],{"type":57,"value":709},{"type":51,"tag":114,"props":1842,"children":1843},{"class":116,"line":268},[1844,1849,1853,1857,1862,1866,1870,1874,1878,1883],{"type":51,"tag":114,"props":1845,"children":1846},{"style":597},[1847],{"type":57,"value":1848},"  onError",{"type":51,"tag":114,"props":1850,"children":1851},{"style":225},[1852],{"type":57,"value":692},{"type":51,"tag":114,"props":1854,"children":1855},{"style":225},[1856],{"type":57,"value":1613},{"type":51,"tag":114,"props":1858,"children":1859},{"style":1616},[1860],{"type":57,"value":1861},"e",{"type":51,"tag":114,"props":1863,"children":1864},{"style":225},[1865],{"type":57,"value":972},{"type":51,"tag":114,"props":1867,"children":1868},{"style":576},[1869],{"type":57,"value":1628},{"type":51,"tag":114,"props":1871,"children":1872},{"style":539},[1873],{"type":57,"value":1633},{"type":51,"tag":114,"props":1875,"children":1876},{"style":225},[1877],{"type":57,"value":646},{"type":51,"tag":114,"props":1879,"children":1880},{"style":597},[1881],{"type":57,"value":1882},"error",{"type":51,"tag":114,"props":1884,"children":1885},{"style":539},[1886],{"type":57,"value":1887},"(e)\n",{"type":51,"tag":114,"props":1889,"children":1890},{"class":116,"line":430},[1891,1895,1899],{"type":51,"tag":114,"props":1892,"children":1893},{"style":225},[1894],{"type":57,"value":967},{"type":51,"tag":114,"props":1896,"children":1897},{"style":539},[1898],{"type":57,"value":972},{"type":51,"tag":114,"props":1900,"children":1901},{"style":225},[1902],{"type":57,"value":570},{"type":51,"tag":60,"props":1904,"children":1905},{},[1906,1911,1913,1919,1921,1927,1929,1935,1937,1943,1945,1951],{"type":51,"tag":73,"props":1907,"children":1908},{},[1909],{"type":57,"value":1910},"React Hook:",{"type":57,"value":1912}," Wrap hook consumers in ",{"type":51,"tag":110,"props":1914,"children":1916},{"className":1915},[],[1917],{"type":57,"value":1918},"ConversationProvider",{"type":57,"value":1920},". Prefer granular hooks such as\n",{"type":51,"tag":110,"props":1922,"children":1924},{"className":1923},[],[1925],{"type":57,"value":1926},"useConversationControls",{"type":57,"value":1928}," and ",{"type":51,"tag":110,"props":1930,"children":1932},{"className":1931},[],[1933],{"type":57,"value":1934},"useConversationStatus",{"type":57,"value":1936}," for session controls and UI state;\n",{"type":51,"tag":110,"props":1938,"children":1940},{"className":1939},[],[1941],{"type":57,"value":1942},"useConversation",{"type":57,"value":1944}," remains available as the convenience all-in-one hook. Pass provider-level\ncallbacks such as ",{"type":51,"tag":110,"props":1946,"children":1948},{"className":1947},[],[1949],{"type":57,"value":1950},"onError",{"type":57,"value":1952}," when you want React to handle conversation errors in one place.",{"type":51,"tag":102,"props":1954,"children":1958},{"className":1955,"code":1956,"language":1957,"meta":107,"style":107},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import {\n  ConversationProvider,\n  useConversationControls,\n  useConversationStatus,\n} from \"@elevenlabs\u002Freact\";\n\nfunction Agent({ signedUrl }: { signedUrl: string }) {\n  const { startSession, endSession } = useConversationControls();\n  const { status } = useConversationStatus();\n\n  if (status === \"connected\") {\n    return \u003Cbutton onClick={endSession}>End conversation\u003C\u002Fbutton>;\n  }\n\n  return (\n    \u003Cbutton onClick={() => startSession({ signedUrl })}>\n      Start conversation\n    \u003C\u002Fbutton>\n  );\n}\n\nfunction App({ signedUrl }: { signedUrl: string }) {\n  return (\n    \u003CConversationProvider\n      onError={(error) => console.error(\"Conversation error:\", error)}\n      onPing={(event) => console.log(\"Estimated latency:\", event.ping_ms)}\n    >\n      \u003CAgent signedUrl={signedUrl} \u002F>\n    \u003C\u002FConversationProvider>\n  );\n}\n","typescript",[1959],{"type":51,"tag":110,"props":1960,"children":1961},{"__ignoreMap":107},[1962,1973,1985,1997,2009,2036,2043,2097,2145,2182,2189,2233,2303,2310,2317,2330,2369,2382,2399,2411,2419,2427,2476,2488,2501,2545,2588,2597,2633,2649,2661],{"type":51,"tag":114,"props":1963,"children":1964},{"class":116,"line":117},[1965,1969],{"type":51,"tag":114,"props":1966,"children":1967},{"style":528},[1968],{"type":57,"value":531},{"type":51,"tag":114,"props":1970,"children":1971},{"style":225},[1972],{"type":57,"value":726},{"type":51,"tag":114,"props":1974,"children":1975},{"class":116,"line":127},[1976,1981],{"type":51,"tag":114,"props":1977,"children":1978},{"style":539},[1979],{"type":57,"value":1980},"  ConversationProvider",{"type":51,"tag":114,"props":1982,"children":1983},{"style":225},[1984],{"type":57,"value":709},{"type":51,"tag":114,"props":1986,"children":1987},{"class":116,"line":153},[1988,1993],{"type":51,"tag":114,"props":1989,"children":1990},{"style":539},[1991],{"type":57,"value":1992},"  useConversationControls",{"type":51,"tag":114,"props":1994,"children":1995},{"style":225},[1996],{"type":57,"value":709},{"type":51,"tag":114,"props":1998,"children":1999},{"class":116,"line":171},[2000,2005],{"type":51,"tag":114,"props":2001,"children":2002},{"style":539},[2003],{"type":57,"value":2004},"  useConversationStatus",{"type":51,"tag":114,"props":2006,"children":2007},{"style":225},[2008],{"type":57,"value":709},{"type":51,"tag":114,"props":2010,"children":2011},{"class":116,"line":181},[2012,2016,2020,2024,2028,2032],{"type":51,"tag":114,"props":2013,"children":2014},{"style":225},[2015],{"type":57,"value":967},{"type":51,"tag":114,"props":2017,"children":2018},{"style":528},[2019],{"type":57,"value":552},{"type":51,"tag":114,"props":2021,"children":2022},{"style":225},[2023],{"type":57,"value":228},{"type":51,"tag":114,"props":2025,"children":2026},{"style":137},[2027],{"type":57,"value":1150},{"type":51,"tag":114,"props":2029,"children":2030},{"style":225},[2031],{"type":57,"value":238},{"type":51,"tag":114,"props":2033,"children":2034},{"style":225},[2035],{"type":57,"value":570},{"type":51,"tag":114,"props":2037,"children":2038},{"class":116,"line":190},[2039],{"type":51,"tag":114,"props":2040,"children":2041},{"emptyLinePlaceholder":175},[2042],{"type":57,"value":178},{"type":51,"tag":114,"props":2044,"children":2045},{"class":116,"line":208},[2046,2051,2056,2061,2066,2071,2075,2079,2083,2088,2093],{"type":51,"tag":114,"props":2047,"children":2048},{"style":576},[2049],{"type":57,"value":2050},"function",{"type":51,"tag":114,"props":2052,"children":2053},{"style":597},[2054],{"type":57,"value":2055}," Agent",{"type":51,"tag":114,"props":2057,"children":2058},{"style":225},[2059],{"type":57,"value":2060},"({",{"type":51,"tag":114,"props":2062,"children":2063},{"style":1616},[2064],{"type":57,"value":2065}," signedUrl",{"type":51,"tag":114,"props":2067,"children":2068},{"style":225},[2069],{"type":57,"value":2070}," }:",{"type":51,"tag":114,"props":2072,"children":2073},{"style":225},[2074],{"type":57,"value":536},{"type":51,"tag":114,"props":2076,"children":2077},{"style":684},[2078],{"type":57,"value":2065},{"type":51,"tag":114,"props":2080,"children":2081},{"style":225},[2082],{"type":57,"value":692},{"type":51,"tag":114,"props":2084,"children":2085},{"style":131},[2086],{"type":57,"value":2087}," string",{"type":51,"tag":114,"props":2089,"children":2090},{"style":225},[2091],{"type":57,"value":2092}," })",{"type":51,"tag":114,"props":2094,"children":2095},{"style":225},[2096],{"type":57,"value":726},{"type":51,"tag":114,"props":2098,"children":2099},{"class":116,"line":251},[2100,2105,2109,2114,2118,2123,2127,2132,2137,2141],{"type":51,"tag":114,"props":2101,"children":2102},{"style":576},[2103],{"type":57,"value":2104},"  const",{"type":51,"tag":114,"props":2106,"children":2107},{"style":225},[2108],{"type":57,"value":536},{"type":51,"tag":114,"props":2110,"children":2111},{"style":539},[2112],{"type":57,"value":2113}," startSession",{"type":51,"tag":114,"props":2115,"children":2116},{"style":225},[2117],{"type":57,"value":1569},{"type":51,"tag":114,"props":2119,"children":2120},{"style":539},[2121],{"type":57,"value":2122}," endSession",{"type":51,"tag":114,"props":2124,"children":2125},{"style":225},[2126],{"type":57,"value":547},{"type":51,"tag":114,"props":2128,"children":2129},{"style":225},[2130],{"type":57,"value":2131}," =",{"type":51,"tag":114,"props":2133,"children":2134},{"style":597},[2135],{"type":57,"value":2136}," useConversationControls",{"type":51,"tag":114,"props":2138,"children":2139},{"style":684},[2140],{"type":57,"value":604},{"type":51,"tag":114,"props":2142,"children":2143},{"style":225},[2144],{"type":57,"value":570},{"type":51,"tag":114,"props":2146,"children":2147},{"class":116,"line":259},[2148,2152,2156,2161,2165,2169,2174,2178],{"type":51,"tag":114,"props":2149,"children":2150},{"style":576},[2151],{"type":57,"value":2104},{"type":51,"tag":114,"props":2153,"children":2154},{"style":225},[2155],{"type":57,"value":536},{"type":51,"tag":114,"props":2157,"children":2158},{"style":539},[2159],{"type":57,"value":2160}," status",{"type":51,"tag":114,"props":2162,"children":2163},{"style":225},[2164],{"type":57,"value":547},{"type":51,"tag":114,"props":2166,"children":2167},{"style":225},[2168],{"type":57,"value":2131},{"type":51,"tag":114,"props":2170,"children":2171},{"style":597},[2172],{"type":57,"value":2173}," useConversationStatus",{"type":51,"tag":114,"props":2175,"children":2176},{"style":684},[2177],{"type":57,"value":604},{"type":51,"tag":114,"props":2179,"children":2180},{"style":225},[2181],{"type":57,"value":570},{"type":51,"tag":114,"props":2183,"children":2184},{"class":116,"line":268},[2185],{"type":51,"tag":114,"props":2186,"children":2187},{"emptyLinePlaceholder":175},[2188],{"type":57,"value":178},{"type":51,"tag":114,"props":2190,"children":2191},{"class":116,"line":430},[2192,2197,2201,2206,2211,2215,2220,2224,2229],{"type":51,"tag":114,"props":2193,"children":2194},{"style":528},[2195],{"type":57,"value":2196},"  if",{"type":51,"tag":114,"props":2198,"children":2199},{"style":684},[2200],{"type":57,"value":1613},{"type":51,"tag":114,"props":2202,"children":2203},{"style":539},[2204],{"type":57,"value":2205},"status",{"type":51,"tag":114,"props":2207,"children":2208},{"style":225},[2209],{"type":57,"value":2210}," ===",{"type":51,"tag":114,"props":2212,"children":2213},{"style":225},[2214],{"type":57,"value":228},{"type":51,"tag":114,"props":2216,"children":2217},{"style":137},[2218],{"type":57,"value":2219},"connected",{"type":51,"tag":114,"props":2221,"children":2222},{"style":225},[2223],{"type":57,"value":238},{"type":51,"tag":114,"props":2225,"children":2226},{"style":684},[2227],{"type":57,"value":2228},") ",{"type":51,"tag":114,"props":2230,"children":2231},{"style":225},[2232],{"type":57,"value":678},{"type":51,"tag":114,"props":2234,"children":2235},{"class":116,"line":439},[2236,2241,2246,2251,2256,2260,2265,2270,2274,2279,2284,2289,2294,2298],{"type":51,"tag":114,"props":2237,"children":2238},{"style":528},[2239],{"type":57,"value":2240},"    return",{"type":51,"tag":114,"props":2242,"children":2243},{"style":684},[2244],{"type":57,"value":2245}," \u003C",{"type":51,"tag":114,"props":2247,"children":2248},{"style":131},[2249],{"type":57,"value":2250},"button",{"type":51,"tag":114,"props":2252,"children":2253},{"style":131},[2254],{"type":57,"value":2255}," onClick",{"type":51,"tag":114,"props":2257,"children":2258},{"style":684},[2259],{"type":57,"value":589},{"type":51,"tag":114,"props":2261,"children":2262},{"style":225},[2263],{"type":57,"value":2264},"{",{"type":51,"tag":114,"props":2266,"children":2267},{"style":684},[2268],{"type":57,"value":2269},"endSession",{"type":51,"tag":114,"props":2271,"children":2272},{"style":225},[2273],{"type":57,"value":967},{"type":51,"tag":114,"props":2275,"children":2276},{"style":684},[2277],{"type":57,"value":2278},">",{"type":51,"tag":114,"props":2280,"children":2281},{"style":539},[2282],{"type":57,"value":2283},"End",{"type":51,"tag":114,"props":2285,"children":2286},{"style":539},[2287],{"type":57,"value":2288}," conversation",{"type":51,"tag":114,"props":2290,"children":2291},{"style":225},[2292],{"type":57,"value":2293},"\u003C\u002F",{"type":51,"tag":114,"props":2295,"children":2296},{"style":539},[2297],{"type":57,"value":2250},{"type":51,"tag":114,"props":2299,"children":2300},{"style":225},[2301],{"type":57,"value":2302},">;\n",{"type":51,"tag":114,"props":2304,"children":2305},{"class":116,"line":448},[2306],{"type":51,"tag":114,"props":2307,"children":2308},{"style":225},[2309],{"type":57,"value":959},{"type":51,"tag":114,"props":2311,"children":2312},{"class":116,"line":457},[2313],{"type":51,"tag":114,"props":2314,"children":2315},{"emptyLinePlaceholder":175},[2316],{"type":57,"value":178},{"type":51,"tag":114,"props":2318,"children":2319},{"class":116,"line":466},[2320,2325],{"type":51,"tag":114,"props":2321,"children":2322},{"style":528},[2323],{"type":57,"value":2324},"  return",{"type":51,"tag":114,"props":2326,"children":2327},{"style":684},[2328],{"type":57,"value":2329}," (\n",{"type":51,"tag":114,"props":2331,"children":2332},{"class":116,"line":475},[2333,2338,2342,2346,2351,2356,2360,2364],{"type":51,"tag":114,"props":2334,"children":2335},{"style":225},[2336],{"type":57,"value":2337},"    \u003C",{"type":51,"tag":114,"props":2339,"children":2340},{"style":539},[2341],{"type":57,"value":2250},{"type":51,"tag":114,"props":2343,"children":2344},{"style":539},[2345],{"type":57,"value":2255},{"type":51,"tag":114,"props":2347,"children":2348},{"style":225},[2349],{"type":57,"value":2350},"={",{"type":51,"tag":114,"props":2352,"children":2353},{"style":684},[2354],{"type":57,"value":2355},"() => startSession",{"type":51,"tag":114,"props":2357,"children":2358},{"style":225},[2359],{"type":57,"value":2060},{"type":51,"tag":114,"props":2361,"children":2362},{"style":1616},[2363],{"type":57,"value":2065},{"type":51,"tag":114,"props":2365,"children":2366},{"style":225},[2367],{"type":57,"value":2368}," })}>\n",{"type":51,"tag":114,"props":2370,"children":2371},{"class":116,"line":484},[2372,2377],{"type":51,"tag":114,"props":2373,"children":2374},{"style":539},[2375],{"type":57,"value":2376},"      Start",{"type":51,"tag":114,"props":2378,"children":2379},{"style":1616},[2380],{"type":57,"value":2381}," conversation\n",{"type":51,"tag":114,"props":2383,"children":2384},{"class":116,"line":493},[2385,2390,2394],{"type":51,"tag":114,"props":2386,"children":2387},{"style":225},[2388],{"type":57,"value":2389},"    \u003C\u002F",{"type":51,"tag":114,"props":2391,"children":2392},{"style":539},[2393],{"type":57,"value":2250},{"type":51,"tag":114,"props":2395,"children":2396},{"style":225},[2397],{"type":57,"value":2398},">\n",{"type":51,"tag":114,"props":2400,"children":2401},{"class":116,"line":502},[2402,2407],{"type":51,"tag":114,"props":2403,"children":2404},{"style":684},[2405],{"type":57,"value":2406},"  )",{"type":51,"tag":114,"props":2408,"children":2409},{"style":225},[2410],{"type":57,"value":570},{"type":51,"tag":114,"props":2412,"children":2414},{"class":116,"line":2413},20,[2415],{"type":51,"tag":114,"props":2416,"children":2417},{"style":225},[2418],{"type":57,"value":1264},{"type":51,"tag":114,"props":2420,"children":2422},{"class":116,"line":2421},21,[2423],{"type":51,"tag":114,"props":2424,"children":2425},{"emptyLinePlaceholder":175},[2426],{"type":57,"value":178},{"type":51,"tag":114,"props":2428,"children":2430},{"class":116,"line":2429},22,[2431,2435,2440,2444,2448,2452,2456,2460,2464,2468,2472],{"type":51,"tag":114,"props":2432,"children":2433},{"style":576},[2434],{"type":57,"value":2050},{"type":51,"tag":114,"props":2436,"children":2437},{"style":597},[2438],{"type":57,"value":2439}," App",{"type":51,"tag":114,"props":2441,"children":2442},{"style":225},[2443],{"type":57,"value":2060},{"type":51,"tag":114,"props":2445,"children":2446},{"style":1616},[2447],{"type":57,"value":2065},{"type":51,"tag":114,"props":2449,"children":2450},{"style":225},[2451],{"type":57,"value":2070},{"type":51,"tag":114,"props":2453,"children":2454},{"style":225},[2455],{"type":57,"value":536},{"type":51,"tag":114,"props":2457,"children":2458},{"style":684},[2459],{"type":57,"value":2065},{"type":51,"tag":114,"props":2461,"children":2462},{"style":225},[2463],{"type":57,"value":692},{"type":51,"tag":114,"props":2465,"children":2466},{"style":131},[2467],{"type":57,"value":2087},{"type":51,"tag":114,"props":2469,"children":2470},{"style":225},[2471],{"type":57,"value":2092},{"type":51,"tag":114,"props":2473,"children":2474},{"style":225},[2475],{"type":57,"value":726},{"type":51,"tag":114,"props":2477,"children":2479},{"class":116,"line":2478},23,[2480,2484],{"type":51,"tag":114,"props":2481,"children":2482},{"style":528},[2483],{"type":57,"value":2324},{"type":51,"tag":114,"props":2485,"children":2486},{"style":684},[2487],{"type":57,"value":2329},{"type":51,"tag":114,"props":2489,"children":2491},{"class":116,"line":2490},24,[2492,2496],{"type":51,"tag":114,"props":2493,"children":2494},{"style":225},[2495],{"type":57,"value":2337},{"type":51,"tag":114,"props":2497,"children":2498},{"style":1616},[2499],{"type":57,"value":2500},"ConversationProvider\n",{"type":51,"tag":114,"props":2502,"children":2504},{"class":116,"line":2503},25,[2505,2510,2514,2519,2523,2528,2532,2536,2541],{"type":51,"tag":114,"props":2506,"children":2507},{"style":539},[2508],{"type":57,"value":2509},"      onError",{"type":51,"tag":114,"props":2511,"children":2512},{"style":225},[2513],{"type":57,"value":2350},{"type":51,"tag":114,"props":2515,"children":2516},{"style":684},[2517],{"type":57,"value":2518},"(error) => console.error(",{"type":51,"tag":114,"props":2520,"children":2521},{"style":225},[2522],{"type":57,"value":238},{"type":51,"tag":114,"props":2524,"children":2525},{"style":684},[2526],{"type":57,"value":2527},"Conversation error:",{"type":51,"tag":114,"props":2529,"children":2530},{"style":225},[2531],{"type":57,"value":238},{"type":51,"tag":114,"props":2533,"children":2534},{"style":225},[2535],{"type":57,"value":1569},{"type":51,"tag":114,"props":2537,"children":2538},{"style":684},[2539],{"type":57,"value":2540}," error)",{"type":51,"tag":114,"props":2542,"children":2543},{"style":225},[2544],{"type":57,"value":1264},{"type":51,"tag":114,"props":2546,"children":2548},{"class":116,"line":2547},26,[2549,2554,2558,2563,2567,2571,2575,2579,2584],{"type":51,"tag":114,"props":2550,"children":2551},{"style":539},[2552],{"type":57,"value":2553},"      onPing",{"type":51,"tag":114,"props":2555,"children":2556},{"style":225},[2557],{"type":57,"value":2350},{"type":51,"tag":114,"props":2559,"children":2560},{"style":684},[2561],{"type":57,"value":2562},"(event) => console.log(",{"type":51,"tag":114,"props":2564,"children":2565},{"style":225},[2566],{"type":57,"value":238},{"type":51,"tag":114,"props":2568,"children":2569},{"style":684},[2570],{"type":57,"value":1814},{"type":51,"tag":114,"props":2572,"children":2573},{"style":225},[2574],{"type":57,"value":238},{"type":51,"tag":114,"props":2576,"children":2577},{"style":225},[2578],{"type":57,"value":1569},{"type":51,"tag":114,"props":2580,"children":2581},{"style":684},[2582],{"type":57,"value":2583}," event.ping_ms)",{"type":51,"tag":114,"props":2585,"children":2586},{"style":225},[2587],{"type":57,"value":1264},{"type":51,"tag":114,"props":2589,"children":2591},{"class":116,"line":2590},27,[2592],{"type":51,"tag":114,"props":2593,"children":2594},{"style":225},[2595],{"type":57,"value":2596},"    >\n",{"type":51,"tag":114,"props":2598,"children":2600},{"class":116,"line":2599},28,[2601,2606,2611,2615,2619,2624,2628],{"type":51,"tag":114,"props":2602,"children":2603},{"style":225},[2604],{"type":57,"value":2605},"      \u003C",{"type":51,"tag":114,"props":2607,"children":2608},{"style":539},[2609],{"type":57,"value":2610},"Agent",{"type":51,"tag":114,"props":2612,"children":2613},{"style":539},[2614],{"type":57,"value":2065},{"type":51,"tag":114,"props":2616,"children":2617},{"style":225},[2618],{"type":57,"value":2350},{"type":51,"tag":114,"props":2620,"children":2621},{"style":539},[2622],{"type":57,"value":2623},"signedUrl",{"type":51,"tag":114,"props":2625,"children":2626},{"style":225},[2627],{"type":57,"value":967},{"type":51,"tag":114,"props":2629,"children":2630},{"style":225},[2631],{"type":57,"value":2632}," \u002F>\n",{"type":51,"tag":114,"props":2634,"children":2636},{"class":116,"line":2635},29,[2637,2641,2645],{"type":51,"tag":114,"props":2638,"children":2639},{"style":225},[2640],{"type":57,"value":2389},{"type":51,"tag":114,"props":2642,"children":2643},{"style":539},[2644],{"type":57,"value":1918},{"type":51,"tag":114,"props":2646,"children":2647},{"style":225},[2648],{"type":57,"value":2398},{"type":51,"tag":114,"props":2650,"children":2652},{"class":116,"line":2651},30,[2653,2657],{"type":51,"tag":114,"props":2654,"children":2655},{"style":684},[2656],{"type":57,"value":2406},{"type":51,"tag":114,"props":2658,"children":2659},{"style":225},[2660],{"type":57,"value":570},{"type":51,"tag":114,"props":2662,"children":2664},{"class":116,"line":2663},31,[2665],{"type":51,"tag":114,"props":2666,"children":2667},{"style":225},[2668],{"type":57,"value":1264},{"type":51,"tag":90,"props":2670,"children":2672},{"id":2671},"configuration",[2673],{"type":57,"value":2674},"Configuration",{"type":51,"tag":2676,"props":2677,"children":2678},"table",{},[2679,2698],{"type":51,"tag":2680,"props":2681,"children":2682},"thead",{},[2683],{"type":51,"tag":2684,"props":2685,"children":2686},"tr",{},[2687,2693],{"type":51,"tag":2688,"props":2689,"children":2690},"th",{},[2691],{"type":57,"value":2692},"Provider",{"type":51,"tag":2688,"props":2694,"children":2695},{},[2696],{"type":57,"value":2697},"Models",{"type":51,"tag":2699,"props":2700,"children":2701},"tbody",{},[2702,2853,2919,2984,3035],{"type":51,"tag":2684,"props":2703,"children":2704},{},[2705,2711],{"type":51,"tag":2706,"props":2707,"children":2708},"td",{},[2709],{"type":57,"value":2710},"OpenAI",{"type":51,"tag":2706,"props":2712,"children":2713},{},[2714,2720,2721,2727,2728,2734,2735,2741,2742,2748,2749,2755,2756,2762,2763,2769,2770,2776,2777,2783,2784,2790,2791,2797,2798,2804,2805,2811,2812,2818,2819,2825,2826,2832,2833,2839,2840,2846,2847],{"type":51,"tag":110,"props":2715,"children":2717},{"className":2716},[],[2718],{"type":57,"value":2719},"gpt-5.6-sol",{"type":57,"value":300},{"type":51,"tag":110,"props":2722,"children":2724},{"className":2723},[],[2725],{"type":57,"value":2726},"gpt-5.6-terra",{"type":57,"value":300},{"type":51,"tag":110,"props":2729,"children":2731},{"className":2730},[],[2732],{"type":57,"value":2733},"gpt-5.6-luna",{"type":57,"value":300},{"type":51,"tag":110,"props":2736,"children":2738},{"className":2737},[],[2739],{"type":57,"value":2740},"gpt-5.5",{"type":57,"value":300},{"type":51,"tag":110,"props":2743,"children":2745},{"className":2744},[],[2746],{"type":57,"value":2747},"gpt-5.5-2026-04-23",{"type":57,"value":300},{"type":51,"tag":110,"props":2750,"children":2752},{"className":2751},[],[2753],{"type":57,"value":2754},"gpt-5.4",{"type":57,"value":300},{"type":51,"tag":110,"props":2757,"children":2759},{"className":2758},[],[2760],{"type":57,"value":2761},"gpt-5.4-mini",{"type":57,"value":300},{"type":51,"tag":110,"props":2764,"children":2766},{"className":2765},[],[2767],{"type":57,"value":2768},"gpt-5.4-nano",{"type":57,"value":300},{"type":51,"tag":110,"props":2771,"children":2773},{"className":2772},[],[2774],{"type":57,"value":2775},"gpt-5.4-2026-03-05",{"type":57,"value":300},{"type":51,"tag":110,"props":2778,"children":2780},{"className":2779},[],[2781],{"type":57,"value":2782},"gpt-5.4-mini-2026-03-17",{"type":57,"value":300},{"type":51,"tag":110,"props":2785,"children":2787},{"className":2786},[],[2788],{"type":57,"value":2789},"gpt-5.4-nano-2026-03-17",{"type":57,"value":300},{"type":51,"tag":110,"props":2792,"children":2794},{"className":2793},[],[2795],{"type":57,"value":2796},"gpt-5",{"type":57,"value":300},{"type":51,"tag":110,"props":2799,"children":2801},{"className":2800},[],[2802],{"type":57,"value":2803},"gpt-5-mini",{"type":57,"value":300},{"type":51,"tag":110,"props":2806,"children":2808},{"className":2807},[],[2809],{"type":57,"value":2810},"gpt-5-nano",{"type":57,"value":300},{"type":51,"tag":110,"props":2813,"children":2815},{"className":2814},[],[2816],{"type":57,"value":2817},"gpt-4.1",{"type":57,"value":300},{"type":51,"tag":110,"props":2820,"children":2822},{"className":2821},[],[2823],{"type":57,"value":2824},"gpt-4.1-mini",{"type":57,"value":300},{"type":51,"tag":110,"props":2827,"children":2829},{"className":2828},[],[2830],{"type":57,"value":2831},"gpt-4.1-nano",{"type":57,"value":300},{"type":51,"tag":110,"props":2834,"children":2836},{"className":2835},[],[2837],{"type":57,"value":2838},"gpt-4o",{"type":57,"value":300},{"type":51,"tag":110,"props":2841,"children":2843},{"className":2842},[],[2844],{"type":57,"value":2845},"gpt-4o-mini",{"type":57,"value":300},{"type":51,"tag":110,"props":2848,"children":2850},{"className":2849},[],[2851],{"type":57,"value":2852},"gpt-4-turbo",{"type":51,"tag":2684,"props":2854,"children":2855},{},[2856,2861],{"type":51,"tag":2706,"props":2857,"children":2858},{},[2859],{"type":57,"value":2860},"Anthropic",{"type":51,"tag":2706,"props":2862,"children":2863},{},[2864,2870,2871,2877,2878,2884,2885,2891,2892,2898,2899,2905,2906,2912,2913],{"type":51,"tag":110,"props":2865,"children":2867},{"className":2866},[],[2868],{"type":57,"value":2869},"claude-opus-4-7",{"type":57,"value":300},{"type":51,"tag":110,"props":2872,"children":2874},{"className":2873},[],[2875],{"type":57,"value":2876},"claude-sonnet-4-6",{"type":57,"value":300},{"type":51,"tag":110,"props":2879,"children":2881},{"className":2880},[],[2882],{"type":57,"value":2883},"claude-sonnet-4-5",{"type":57,"value":300},{"type":51,"tag":110,"props":2886,"children":2888},{"className":2887},[],[2889],{"type":57,"value":2890},"claude-sonnet-4",{"type":57,"value":300},{"type":51,"tag":110,"props":2893,"children":2895},{"className":2894},[],[2896],{"type":57,"value":2897},"claude-haiku-4-5",{"type":57,"value":300},{"type":51,"tag":110,"props":2900,"children":2902},{"className":2901},[],[2903],{"type":57,"value":2904},"claude-3-7-sonnet",{"type":57,"value":300},{"type":51,"tag":110,"props":2907,"children":2909},{"className":2908},[],[2910],{"type":57,"value":2911},"claude-3-5-sonnet",{"type":57,"value":300},{"type":51,"tag":110,"props":2914,"children":2916},{"className":2915},[],[2917],{"type":57,"value":2918},"claude-3-haiku",{"type":51,"tag":2684,"props":2920,"children":2921},{},[2922,2927],{"type":51,"tag":2706,"props":2923,"children":2924},{},[2925],{"type":57,"value":2926},"Google",{"type":51,"tag":2706,"props":2928,"children":2929},{},[2930,2936,2937,2943,2944,2950,2951,2957,2958,2964,2965,2971,2972,2977,2978],{"type":51,"tag":110,"props":2931,"children":2933},{"className":2932},[],[2934],{"type":57,"value":2935},"gemini-3.1-flash-lite-preview",{"type":57,"value":300},{"type":51,"tag":110,"props":2938,"children":2940},{"className":2939},[],[2941],{"type":57,"value":2942},"gemini-3.1-pro-preview",{"type":57,"value":300},{"type":51,"tag":110,"props":2945,"children":2947},{"className":2946},[],[2948],{"type":57,"value":2949},"gemini-3-pro-preview",{"type":57,"value":300},{"type":51,"tag":110,"props":2952,"children":2954},{"className":2953},[],[2955],{"type":57,"value":2956},"gemini-3-flash-preview",{"type":57,"value":300},{"type":51,"tag":110,"props":2959,"children":2961},{"className":2960},[],[2962],{"type":57,"value":2963},"gemini-2.5-flash",{"type":57,"value":300},{"type":51,"tag":110,"props":2966,"children":2968},{"className":2967},[],[2969],{"type":57,"value":2970},"gemini-2.5-flash-lite",{"type":57,"value":300},{"type":51,"tag":110,"props":2973,"children":2975},{"className":2974},[],[2976],{"type":57,"value":866},{"type":57,"value":300},{"type":51,"tag":110,"props":2979,"children":2981},{"className":2980},[],[2982],{"type":57,"value":2983},"gemini-2.0-flash-lite",{"type":51,"tag":2684,"props":2985,"children":2986},{},[2987,2991],{"type":51,"tag":2706,"props":2988,"children":2989},{},[2990],{"type":57,"value":9},{"type":51,"tag":2706,"props":2992,"children":2993},{},[2994,3000,3001,3007,3008,3014,3015,3021,3022,3028,3029],{"type":51,"tag":110,"props":2995,"children":2997},{"className":2996},[],[2998],{"type":57,"value":2999},"glm-45-air-fp8",{"type":57,"value":300},{"type":51,"tag":110,"props":3002,"children":3004},{"className":3003},[],[3005],{"type":57,"value":3006},"qwen3-30b-a3b",{"type":57,"value":300},{"type":51,"tag":110,"props":3009,"children":3011},{"className":3010},[],[3012],{"type":57,"value":3013},"qwen36-35b-a3b",{"type":57,"value":300},{"type":51,"tag":110,"props":3016,"children":3018},{"className":3017},[],[3019],{"type":57,"value":3020},"qwen35-35b-a3b",{"type":57,"value":300},{"type":51,"tag":110,"props":3023,"children":3025},{"className":3024},[],[3026],{"type":57,"value":3027},"qwen35-397b-a17b",{"type":57,"value":300},{"type":51,"tag":110,"props":3030,"children":3032},{"className":3031},[],[3033],{"type":57,"value":3034},"gpt-oss-120b",{"type":51,"tag":2684,"props":3036,"children":3037},{},[3038,3043],{"type":51,"tag":2706,"props":3039,"children":3040},{},[3041],{"type":57,"value":3042},"Custom",{"type":51,"tag":2706,"props":3044,"children":3045},{},[3046,3052],{"type":51,"tag":110,"props":3047,"children":3049},{"className":3048},[],[3050],{"type":57,"value":3051},"custom-llm",{"type":57,"value":3053}," (bring your own endpoint)",{"type":51,"tag":60,"props":3055,"children":3056},{},[3057,3059,3065],{"type":57,"value":3058},"Use ",{"type":51,"tag":110,"props":3060,"children":3062},{"className":3061},[],[3063],{"type":57,"value":3064},"GET \u002Fv1\u002Fconvai\u002Fllm\u002Flist",{"type":57,"value":3066}," to inspect the current model catalog, including deprecation state, token\u002Fcontext limits, capability flags such as image-input support, and model-specific reasoning effort support.",{"type":51,"tag":60,"props":3068,"children":3069},{},[3070,3075,3076,3081,3083,3089,3091,3097,3099,3105],{"type":51,"tag":73,"props":3071,"children":3072},{},[3073],{"type":57,"value":3074},"Popular voices:",{"type":57,"value":292},{"type":51,"tag":110,"props":3077,"children":3079},{"className":3078},[],[3080],{"type":57,"value":942},{"type":57,"value":3082}," (George), ",{"type":51,"tag":110,"props":3084,"children":3086},{"className":3085},[],[3087],{"type":57,"value":3088},"EXAVITQu4vr4xnSDxMaL",{"type":57,"value":3090}," (Sarah), ",{"type":51,"tag":110,"props":3092,"children":3094},{"className":3093},[],[3095],{"type":57,"value":3096},"onwK4e9ZLuTAKqWW03F9",{"type":57,"value":3098}," (Daniel), ",{"type":51,"tag":110,"props":3100,"children":3102},{"className":3101},[],[3103],{"type":57,"value":3104},"XB0fDUnXU5powFXDhCwa",{"type":57,"value":3106}," (Charlotte)",{"type":51,"tag":60,"props":3108,"children":3109},{},[3110,3115,3116,3122,3124,3130,3131,3137],{"type":51,"tag":73,"props":3111,"children":3112},{},[3113],{"type":57,"value":3114},"Turn eagerness:",{"type":57,"value":292},{"type":51,"tag":110,"props":3117,"children":3119},{"className":3118},[],[3120],{"type":57,"value":3121},"patient",{"type":57,"value":3123}," (waits longer for user to finish), ",{"type":51,"tag":110,"props":3125,"children":3127},{"className":3126},[],[3128],{"type":57,"value":3129},"normal",{"type":57,"value":1284},{"type":51,"tag":110,"props":3132,"children":3134},{"className":3133},[],[3135],{"type":57,"value":3136},"eager",{"type":57,"value":3138}," (responds quickly)",{"type":51,"tag":60,"props":3140,"children":3141},{},[3142,3144,3150],{"type":57,"value":3143},"See ",{"type":51,"tag":81,"props":3145,"children":3147},{"href":3146},"references\u002Fagent-configuration.md",[3148],{"type":57,"value":3149},"Agent Configuration",{"type":57,"value":3151}," for all options.",{"type":51,"tag":90,"props":3153,"children":3155},{"id":3154},"system-prompt-structure",[3156],{"type":57,"value":3157},"System Prompt Structure",{"type":51,"tag":60,"props":3159,"children":3160},{},[3161,3163,3171],{"type":57,"value":3162},"Section the prompt with markdown headings — the model prioritizes and interprets instructions more reliably (",{"type":51,"tag":81,"props":3164,"children":3168},{"href":3165,"rel":3166},"https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Feleven-agents\u002Fbest-practices\u002Fprompting-guide",[3167],"nofollow",[3169],{"type":57,"value":3170},"prompting guide",{"type":57,"value":3172},"):",{"type":51,"tag":102,"props":3174,"children":3178},{"className":3175,"code":3177,"language":57},[3176],"language-text","# Personality   – named character, 2-3 traits\n# Environment   – where they work, who they talk to\n# Tone          – vocal style as 4-5 bullets\n# Goal          – what success looks like (numbered for multi-step flows)\n",[3179],{"type":51,"tag":110,"props":3180,"children":3181},{"__ignoreMap":107},[3182],{"type":57,"value":3177},{"type":51,"tag":60,"props":3184,"children":3185},{},[3186,3188,3194,3196,3202],{"type":57,"value":3187},"Keep instructions short and action-based. Mark critical steps with \"This step is important.\" For critical refusal\u002Fsafety rules, include concise instructions in the prompt and also configure independent custom Guardrails via ",{"type":51,"tag":110,"props":3189,"children":3191},{"className":3190},[],[3192],{"type":57,"value":3193},"platform_settings.guardrails",{"type":57,"value":3195}," (see ",{"type":51,"tag":81,"props":3197,"children":3199},{"href":3198},"#guardrails",[3200],{"type":57,"value":3201},"Guardrails",{"type":57,"value":3203},").",{"type":51,"tag":90,"props":3205,"children":3207},{"id":3206},"tools",[3208],{"type":57,"value":3209},"Tools",{"type":51,"tag":60,"props":3211,"children":3212},{},[3213,3215,3221],{"type":57,"value":3214},"Extend agents with webhook, client, or built-in system tools. Tools are defined inside ",{"type":51,"tag":110,"props":3216,"children":3218},{"className":3217},[],[3219],{"type":57,"value":3220},"conversation_config.agent.prompt",{"type":57,"value":692},{"type":51,"tag":60,"props":3223,"children":3224},{},[3225,3227,3233],{"type":57,"value":3226},"Workspace environment variables can resolve per-environment server tool URLs, headers, and auth connections, and runtime system variables such as ",{"type":51,"tag":110,"props":3228,"children":3230},{"className":3229},[],[3231],{"type":57,"value":3232},"{{system__conversation_history}}",{"type":57,"value":3234}," can pass full conversation context into tool calls when needed.",{"type":51,"tag":102,"props":3236,"children":3238},{"className":344,"code":3237,"language":338,"meta":107,"style":107},"\"prompt\": {\n    \"prompt\": \"You are a helpful assistant that can check the weather.\",\n    \"llm\": \"gemini-2.0-flash\",\n    \"tools\": [\n        # Webhook: server-side API call\n        {\"type\": \"webhook\", \"name\": \"get_weather\", \"description\": \"Get weather\",\n         \"api_schema\": {\"url\": \"https:\u002F\u002Fapi.example.com\u002Fweather\", \"method\": \"POST\",\n             \"request_body_schema\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\"}}, \"required\": [\"location\"]}}},\n        # Client: runs in the browser\n        {\"type\": \"client\", \"name\": \"show_product\", \"description\": \"Display a product\",\n         \"parameters\": {\"type\": \"object\", \"properties\": {\"productId\": {\"type\": \"string\"}}, \"required\": [\"productId\"]}}\n    ],\n    \"built_in_tools\": {\n        \"end_call\": {},\n        \"transfer_to_number\": {\"transfers\": [{\"transfer_destination\": {\"type\": \"phone\", \"phone_number\": \"+1234567890\"}, \"condition\": \"User asks for human support\"}]},\n        \"start_procedure\": {}\n    }\n}\n",[3239],{"type":51,"tag":110,"props":3240,"children":3241},{"__ignoreMap":107},[3242,3250,3258,3266,3274,3282,3290,3298,3306,3314,3322,3330,3338,3346,3354,3362,3370,3377],{"type":51,"tag":114,"props":3243,"children":3244},{"class":116,"line":117},[3245],{"type":51,"tag":114,"props":3246,"children":3247},{},[3248],{"type":57,"value":3249},"\"prompt\": {\n",{"type":51,"tag":114,"props":3251,"children":3252},{"class":116,"line":127},[3253],{"type":51,"tag":114,"props":3254,"children":3255},{},[3256],{"type":57,"value":3257},"    \"prompt\": \"You are a helpful assistant that can check the weather.\",\n",{"type":51,"tag":114,"props":3259,"children":3260},{"class":116,"line":153},[3261],{"type":51,"tag":114,"props":3262,"children":3263},{},[3264],{"type":57,"value":3265},"    \"llm\": \"gemini-2.0-flash\",\n",{"type":51,"tag":114,"props":3267,"children":3268},{"class":116,"line":171},[3269],{"type":51,"tag":114,"props":3270,"children":3271},{},[3272],{"type":57,"value":3273},"    \"tools\": [\n",{"type":51,"tag":114,"props":3275,"children":3276},{"class":116,"line":181},[3277],{"type":51,"tag":114,"props":3278,"children":3279},{},[3280],{"type":57,"value":3281},"        # Webhook: server-side API call\n",{"type":51,"tag":114,"props":3283,"children":3284},{"class":116,"line":190},[3285],{"type":51,"tag":114,"props":3286,"children":3287},{},[3288],{"type":57,"value":3289},"        {\"type\": \"webhook\", \"name\": \"get_weather\", \"description\": \"Get weather\",\n",{"type":51,"tag":114,"props":3291,"children":3292},{"class":116,"line":208},[3293],{"type":51,"tag":114,"props":3294,"children":3295},{},[3296],{"type":57,"value":3297},"         \"api_schema\": {\"url\": \"https:\u002F\u002Fapi.example.com\u002Fweather\", \"method\": \"POST\",\n",{"type":51,"tag":114,"props":3299,"children":3300},{"class":116,"line":251},[3301],{"type":51,"tag":114,"props":3302,"children":3303},{},[3304],{"type":57,"value":3305},"             \"request_body_schema\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\"}}, \"required\": [\"location\"]}}},\n",{"type":51,"tag":114,"props":3307,"children":3308},{"class":116,"line":259},[3309],{"type":51,"tag":114,"props":3310,"children":3311},{},[3312],{"type":57,"value":3313},"        # Client: runs in the browser\n",{"type":51,"tag":114,"props":3315,"children":3316},{"class":116,"line":268},[3317],{"type":51,"tag":114,"props":3318,"children":3319},{},[3320],{"type":57,"value":3321},"        {\"type\": \"client\", \"name\": \"show_product\", \"description\": \"Display a product\",\n",{"type":51,"tag":114,"props":3323,"children":3324},{"class":116,"line":430},[3325],{"type":51,"tag":114,"props":3326,"children":3327},{},[3328],{"type":57,"value":3329},"         \"parameters\": {\"type\": \"object\", \"properties\": {\"productId\": {\"type\": \"string\"}}, \"required\": [\"productId\"]}}\n",{"type":51,"tag":114,"props":3331,"children":3332},{"class":116,"line":439},[3333],{"type":51,"tag":114,"props":3334,"children":3335},{},[3336],{"type":57,"value":3337},"    ],\n",{"type":51,"tag":114,"props":3339,"children":3340},{"class":116,"line":448},[3341],{"type":51,"tag":114,"props":3342,"children":3343},{},[3344],{"type":57,"value":3345},"    \"built_in_tools\": {\n",{"type":51,"tag":114,"props":3347,"children":3348},{"class":116,"line":457},[3349],{"type":51,"tag":114,"props":3350,"children":3351},{},[3352],{"type":57,"value":3353},"        \"end_call\": {},\n",{"type":51,"tag":114,"props":3355,"children":3356},{"class":116,"line":466},[3357],{"type":51,"tag":114,"props":3358,"children":3359},{},[3360],{"type":57,"value":3361},"        \"transfer_to_number\": {\"transfers\": [{\"transfer_destination\": {\"type\": \"phone\", \"phone_number\": \"+1234567890\"}, \"condition\": \"User asks for human support\"}]},\n",{"type":51,"tag":114,"props":3363,"children":3364},{"class":116,"line":475},[3365],{"type":51,"tag":114,"props":3366,"children":3367},{},[3368],{"type":57,"value":3369},"        \"start_procedure\": {}\n",{"type":51,"tag":114,"props":3371,"children":3372},{"class":116,"line":484},[3373],{"type":51,"tag":114,"props":3374,"children":3375},{},[3376],{"type":57,"value":499},{"type":51,"tag":114,"props":3378,"children":3379},{"class":116,"line":493},[3380],{"type":51,"tag":114,"props":3381,"children":3382},{},[3383],{"type":57,"value":1264},{"type":51,"tag":60,"props":3385,"children":3386},{},[3387,3392],{"type":51,"tag":73,"props":3388,"children":3389},{},[3390],{"type":57,"value":3391},"Client tools",{"type":57,"value":3393}," run in browser:",{"type":51,"tag":102,"props":3395,"children":3397},{"className":517,"code":3396,"language":511,"meta":107,"style":107},"clientTools: {\n  show_product: async ({ productId }) => {\n    document.getElementById(\"product\").src = `\u002Fproducts\u002F${productId}`;\n    return { success: true };\n  }\n}\n",[3398],{"type":51,"tag":110,"props":3399,"children":3400},{"__ignoreMap":107},[3401,3417,3456,3536,3567,3574],{"type":51,"tag":114,"props":3402,"children":3403},{"class":116,"line":117},[3404,3409,3413],{"type":51,"tag":114,"props":3405,"children":3406},{"style":131},[3407],{"type":57,"value":3408},"clientTools",{"type":51,"tag":114,"props":3410,"children":3411},{"style":225},[3412],{"type":57,"value":692},{"type":51,"tag":114,"props":3414,"children":3415},{"style":225},[3416],{"type":57,"value":726},{"type":51,"tag":114,"props":3418,"children":3419},{"class":116,"line":127},[3420,3425,3429,3434,3439,3444,3448,3452],{"type":51,"tag":114,"props":3421,"children":3422},{"style":131},[3423],{"type":57,"value":3424},"  show_product",{"type":51,"tag":114,"props":3426,"children":3427},{"style":225},[3428],{"type":57,"value":692},{"type":51,"tag":114,"props":3430,"children":3431},{"style":576},[3432],{"type":57,"value":3433}," async",{"type":51,"tag":114,"props":3435,"children":3436},{"style":225},[3437],{"type":57,"value":3438}," ({",{"type":51,"tag":114,"props":3440,"children":3441},{"style":1616},[3442],{"type":57,"value":3443}," productId",{"type":51,"tag":114,"props":3445,"children":3446},{"style":225},[3447],{"type":57,"value":2092},{"type":51,"tag":114,"props":3449,"children":3450},{"style":576},[3451],{"type":57,"value":1628},{"type":51,"tag":114,"props":3453,"children":3454},{"style":225},[3455],{"type":57,"value":726},{"type":51,"tag":114,"props":3457,"children":3458},{"class":116,"line":153},[3459,3464,3468,3473,3477,3481,3486,3490,3494,3498,3503,3507,3512,3517,3522,3527,3532],{"type":51,"tag":114,"props":3460,"children":3461},{"style":539},[3462],{"type":57,"value":3463},"    document",{"type":51,"tag":114,"props":3465,"children":3466},{"style":225},[3467],{"type":57,"value":646},{"type":51,"tag":114,"props":3469,"children":3470},{"style":597},[3471],{"type":57,"value":3472},"getElementById",{"type":51,"tag":114,"props":3474,"children":3475},{"style":684},[3476],{"type":57,"value":673},{"type":51,"tag":114,"props":3478,"children":3479},{"style":225},[3480],{"type":57,"value":238},{"type":51,"tag":114,"props":3482,"children":3483},{"style":137},[3484],{"type":57,"value":3485},"product",{"type":51,"tag":114,"props":3487,"children":3488},{"style":225},[3489],{"type":57,"value":238},{"type":51,"tag":114,"props":3491,"children":3492},{"style":684},[3493],{"type":57,"value":972},{"type":51,"tag":114,"props":3495,"children":3496},{"style":225},[3497],{"type":57,"value":646},{"type":51,"tag":114,"props":3499,"children":3500},{"style":539},[3501],{"type":57,"value":3502},"src",{"type":51,"tag":114,"props":3504,"children":3505},{"style":225},[3506],{"type":57,"value":2131},{"type":51,"tag":114,"props":3508,"children":3509},{"style":225},[3510],{"type":57,"value":3511}," `",{"type":51,"tag":114,"props":3513,"children":3514},{"style":137},[3515],{"type":57,"value":3516},"\u002Fproducts\u002F",{"type":51,"tag":114,"props":3518,"children":3519},{"style":225},[3520],{"type":57,"value":3521},"${",{"type":51,"tag":114,"props":3523,"children":3524},{"style":539},[3525],{"type":57,"value":3526},"productId",{"type":51,"tag":114,"props":3528,"children":3529},{"style":225},[3530],{"type":57,"value":3531},"}`",{"type":51,"tag":114,"props":3533,"children":3534},{"style":225},[3535],{"type":57,"value":570},{"type":51,"tag":114,"props":3537,"children":3538},{"class":116,"line":171},[3539,3543,3547,3552,3556,3562],{"type":51,"tag":114,"props":3540,"children":3541},{"style":528},[3542],{"type":57,"value":2240},{"type":51,"tag":114,"props":3544,"children":3545},{"style":225},[3546],{"type":57,"value":536},{"type":51,"tag":114,"props":3548,"children":3549},{"style":684},[3550],{"type":57,"value":3551}," success",{"type":51,"tag":114,"props":3553,"children":3554},{"style":225},[3555],{"type":57,"value":692},{"type":51,"tag":114,"props":3557,"children":3559},{"style":3558},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[3560],{"type":57,"value":3561}," true",{"type":51,"tag":114,"props":3563,"children":3564},{"style":225},[3565],{"type":57,"value":3566}," };\n",{"type":51,"tag":114,"props":3568,"children":3569},{"class":116,"line":181},[3570],{"type":51,"tag":114,"props":3571,"children":3572},{"style":225},[3573],{"type":57,"value":959},{"type":51,"tag":114,"props":3575,"children":3576},{"class":116,"line":190},[3577],{"type":51,"tag":114,"props":3578,"children":3579},{"style":225},[3580],{"type":57,"value":1264},{"type":51,"tag":60,"props":3582,"children":3583},{},[3584,3585,3591],{"type":57,"value":3143},{"type":51,"tag":81,"props":3586,"children":3588},{"href":3587},"references\u002Fclient-tools.md",[3589],{"type":57,"value":3590},"Client Tools Reference",{"type":57,"value":3592}," for complete documentation.",{"type":51,"tag":336,"props":3594,"children":3596},{"id":3595},"built-in-system-tools",[3597],{"type":57,"value":3598},"Built-in System Tools",{"type":51,"tag":60,"props":3600,"children":3601},{},[3602,3604,3610,3612,3618,3620,3626],{"type":57,"value":3603},"Set under ",{"type":51,"tag":110,"props":3605,"children":3607},{"className":3606},[],[3608],{"type":57,"value":3609},"conversation_config.agent.prompt.built_in_tools",{"type":57,"value":3611},". ",{"type":51,"tag":110,"props":3613,"children":3615},{"className":3614},[],[3616],{"type":57,"value":3617},"{}",{"type":57,"value":3619}," enables defaults; provide ",{"type":51,"tag":110,"props":3621,"children":3623},{"className":3622},[],[3624],{"type":57,"value":3625},"description",{"type":57,"value":3627}," to customize; omit to disable.",{"type":51,"tag":2676,"props":3629,"children":3630},{},[3631,3647],{"type":51,"tag":2680,"props":3632,"children":3633},{},[3634],{"type":51,"tag":2684,"props":3635,"children":3636},{},[3637,3642],{"type":51,"tag":2688,"props":3638,"children":3639},{},[3640],{"type":57,"value":3641},"Tool",{"type":51,"tag":2688,"props":3643,"children":3644},{},[3645],{"type":57,"value":3646},"Enable for",{"type":51,"tag":2699,"props":3648,"children":3649},{},[3650,3667,3684,3701,3718,3735,3752,3769,3786],{"type":51,"tag":2684,"props":3651,"children":3652},{},[3653,3662],{"type":51,"tag":2706,"props":3654,"children":3655},{},[3656],{"type":51,"tag":110,"props":3657,"children":3659},{"className":3658},[],[3660],{"type":57,"value":3661},"end_call",{"type":51,"tag":2706,"props":3663,"children":3664},{},[3665],{"type":57,"value":3666},"All agents",{"type":51,"tag":2684,"props":3668,"children":3669},{},[3670,3679],{"type":51,"tag":2706,"props":3671,"children":3672},{},[3673],{"type":51,"tag":110,"props":3674,"children":3676},{"className":3675},[],[3677],{"type":57,"value":3678},"language_detection",{"type":51,"tag":2706,"props":3680,"children":3681},{},[3682],{"type":57,"value":3683},"Multilingual agents",{"type":51,"tag":2684,"props":3685,"children":3686},{},[3687,3696],{"type":51,"tag":2706,"props":3688,"children":3689},{},[3690],{"type":51,"tag":110,"props":3691,"children":3693},{"className":3692},[],[3694],{"type":57,"value":3695},"transfer_to_number",{"type":51,"tag":2706,"props":3697,"children":3698},{},[3699],{"type":57,"value":3700},"Phone-based human escalation",{"type":51,"tag":2684,"props":3702,"children":3703},{},[3704,3713],{"type":51,"tag":2706,"props":3705,"children":3706},{},[3707],{"type":51,"tag":110,"props":3708,"children":3710},{"className":3709},[],[3711],{"type":57,"value":3712},"transfer_to_agent",{"type":51,"tag":2706,"props":3714,"children":3715},{},[3716],{"type":57,"value":3717},"Multi-agent workflows",{"type":51,"tag":2684,"props":3719,"children":3720},{},[3721,3730],{"type":51,"tag":2706,"props":3722,"children":3723},{},[3724],{"type":51,"tag":110,"props":3725,"children":3727},{"className":3726},[],[3728],{"type":57,"value":3729},"start_procedure",{"type":51,"tag":2706,"props":3731,"children":3732},{},[3733],{"type":57,"value":3734},"Procedure-guided conversations",{"type":51,"tag":2684,"props":3736,"children":3737},{},[3738,3747],{"type":51,"tag":2706,"props":3739,"children":3740},{},[3741],{"type":51,"tag":110,"props":3742,"children":3744},{"className":3743},[],[3745],{"type":57,"value":3746},"end_procedure",{"type":51,"tag":2706,"props":3748,"children":3749},{},[3750],{"type":57,"value":3751},"Completing active procedures",{"type":51,"tag":2684,"props":3753,"children":3754},{},[3755,3764],{"type":51,"tag":2706,"props":3756,"children":3757},{},[3758],{"type":51,"tag":110,"props":3759,"children":3761},{"className":3760},[],[3762],{"type":57,"value":3763},"skip_turn",{"type":51,"tag":2706,"props":3765,"children":3766},{},[3767],{"type":57,"value":3768},"Tutoring \u002F coaching (silent listening)",{"type":51,"tag":2684,"props":3770,"children":3771},{},[3772,3781],{"type":51,"tag":2706,"props":3773,"children":3774},{},[3775],{"type":51,"tag":110,"props":3776,"children":3778},{"className":3777},[],[3779],{"type":57,"value":3780},"voicemail_detection",{"type":51,"tag":2706,"props":3782,"children":3783},{},[3784],{"type":57,"value":3785},"Outbound calling",{"type":51,"tag":2684,"props":3787,"children":3788},{},[3789,3798],{"type":51,"tag":2706,"props":3790,"children":3791},{},[3792],{"type":51,"tag":110,"props":3793,"children":3795},{"className":3794},[],[3796],{"type":57,"value":3797},"play_keypad_touch_tone",{"type":51,"tag":2706,"props":3799,"children":3800},{},[3801],{"type":57,"value":3802},"IVR navigation",{"type":51,"tag":60,"props":3804,"children":3805},{},[3806,3812,3814,3820,3822,3828,3830,3835,3837,3843,3844,3849,3851,3857,3859,3865],{"type":51,"tag":110,"props":3807,"children":3809},{"className":3808},[],[3810],{"type":57,"value":3811},"run_subagent",{"type":57,"value":3813}," is a system tool for delegating a task to another configured agent. Add it to\n",{"type":51,"tag":110,"props":3815,"children":3817},{"className":3816},[],[3818],{"type":57,"value":3819},"conversation_config.agent.prompt.tools",{"type":57,"value":3821}," with ",{"type":51,"tag":110,"props":3823,"children":3825},{"className":3824},[],[3826],{"type":57,"value":3827},"params.system_tool_type: \"run_subagent\"",{"type":57,"value":3829}," and an\n",{"type":51,"tag":110,"props":3831,"children":3833},{"className":3832},[],[3834],{"type":57,"value":4},{"type":57,"value":3836}," array. Each entry requires ",{"type":51,"tag":110,"props":3838,"children":3840},{"className":3839},[],[3841],{"type":57,"value":3842},"agent_id",{"type":57,"value":1928},{"type":51,"tag":110,"props":3845,"children":3847},{"className":3846},[],[3848],{"type":57,"value":3625},{"type":57,"value":3850},"; ",{"type":51,"tag":110,"props":3852,"children":3854},{"className":3853},[],[3855],{"type":57,"value":3856},"branch_id",{"type":57,"value":3858}," and a JSON-schema\n",{"type":51,"tag":110,"props":3860,"children":3862},{"className":3861},[],[3863],{"type":57,"value":3864},"parameters",{"type":57,"value":3866}," object are optional.",{"type":51,"tag":336,"props":3868,"children":3870},{"id":3869},"integration-tools",[3871],{"type":57,"value":3872},"Integration Tools",{"type":51,"tag":60,"props":3874,"children":3875},{},[3876,3878,3884],{"type":57,"value":3877},"Pre-built connectors managed by the platform. Create a connection with credentials, then attach via ",{"type":51,"tag":110,"props":3879,"children":3881},{"className":3880},[],[3882],{"type":57,"value":3883},"tool_ids",{"type":57,"value":692},{"type":51,"tag":2676,"props":3886,"children":3887},{},[3888,3904],{"type":51,"tag":2680,"props":3889,"children":3890},{},[3891],{"type":51,"tag":2684,"props":3892,"children":3893},{},[3894,3899],{"type":51,"tag":2688,"props":3895,"children":3896},{},[3897],{"type":57,"value":3898},"Integration",{"type":51,"tag":2688,"props":3900,"children":3901},{},[3902],{"type":57,"value":3903},"Use case",{"type":51,"tag":2699,"props":3905,"children":3906},{},[3907,3924,3941,3958],{"type":51,"tag":2684,"props":3908,"children":3909},{},[3910,3919],{"type":51,"tag":2706,"props":3911,"children":3912},{},[3913],{"type":51,"tag":110,"props":3914,"children":3916},{"className":3915},[],[3917],{"type":57,"value":3918},"calcom",{"type":51,"tag":2706,"props":3920,"children":3921},{},[3922],{"type":57,"value":3923},"Scheduling appointments",{"type":51,"tag":2684,"props":3925,"children":3926},{},[3927,3936],{"type":51,"tag":2706,"props":3928,"children":3929},{},[3930],{"type":51,"tag":110,"props":3931,"children":3933},{"className":3932},[],[3934],{"type":57,"value":3935},"salesforce",{"type":51,"tag":2706,"props":3937,"children":3938},{},[3939],{"type":57,"value":3940},"CRM lookups, case creation",{"type":51,"tag":2684,"props":3942,"children":3943},{},[3944,3953],{"type":51,"tag":2706,"props":3945,"children":3946},{},[3947],{"type":51,"tag":110,"props":3948,"children":3950},{"className":3949},[],[3951],{"type":57,"value":3952},"hubspot",{"type":51,"tag":2706,"props":3954,"children":3955},{},[3956],{"type":57,"value":3957},"CRM, marketing, contacts",{"type":51,"tag":2684,"props":3959,"children":3960},{},[3961,3970],{"type":51,"tag":2706,"props":3962,"children":3963},{},[3964],{"type":51,"tag":110,"props":3965,"children":3967},{"className":3966},[],[3968],{"type":57,"value":3969},"zendesk",{"type":51,"tag":2706,"props":3971,"children":3972},{},[3973],{"type":57,"value":3974},"Support ticketing",{"type":51,"tag":60,"props":3976,"children":3977},{},[3978,3980,3986,3988,3994,3995,4001,4002,4008,4009,4015,4017,4023,4025,4030,4031,4036],{"type":57,"value":3979},"Three-step flow: ",{"type":51,"tag":110,"props":3981,"children":3983},{"className":3982},[],[3984],{"type":57,"value":3985},"POST \u002Fv1\u002Fconvai\u002Fapi-integrations\u002F{id}\u002Fconnections",{"type":57,"value":3987}," → ",{"type":51,"tag":110,"props":3989,"children":3991},{"className":3990},[],[3992],{"type":57,"value":3993},"GET \u002Fv1\u002Fconvai\u002Fapi-integrations\u002F{id}\u002Ftools",{"type":57,"value":3987},{"type":51,"tag":110,"props":3996,"children":3998},{"className":3997},[],[3999],{"type":57,"value":4000},"POST \u002Fv1\u002Fconvai\u002Ftools",{"type":57,"value":3821},{"type":51,"tag":110,"props":4003,"children":4005},{"className":4004},[],[4006],{"type":57,"value":4007},"api_integration_id",{"type":57,"value":1928},{"type":51,"tag":110,"props":4010,"children":4012},{"className":4011},[],[4013],{"type":57,"value":4014},"api_integration_connection_id",{"type":57,"value":4016},". Attach to the agent with ",{"type":51,"tag":110,"props":4018,"children":4020},{"className":4019},[],[4021],{"type":57,"value":4022},"\"prompt\": {\"tool_ids\": [\"tool_xxxx\"]}",{"type":57,"value":4024},". Inline ",{"type":51,"tag":110,"props":4026,"children":4028},{"className":4027},[],[4029],{"type":57,"value":3206},{"type":57,"value":1928},{"type":51,"tag":110,"props":4032,"children":4034},{"className":4033},[],[4035],{"type":57,"value":3883},{"type":57,"value":4037}," can coexist — prefer an integration over a duplicate custom webhook.",{"type":51,"tag":336,"props":4039,"children":4041},{"id":4040},"public-api-webhook-examples",[4042],{"type":57,"value":4043},"Public-API Webhook Examples",{"type":51,"tag":60,"props":4045,"children":4046},{},[4047],{"type":57,"value":4048},"No-auth APIs useful for prototypes (URLs must be HTTPS):",{"type":51,"tag":2676,"props":4050,"children":4051},{},[4052,4072],{"type":51,"tag":2680,"props":4053,"children":4054},{},[4055],{"type":51,"tag":2684,"props":4056,"children":4057},{},[4058,4062,4067],{"type":51,"tag":2688,"props":4059,"children":4060},{},[4061],{"type":57,"value":3641},{"type":51,"tag":2688,"props":4063,"children":4064},{},[4065],{"type":57,"value":4066},"URL",{"type":51,"tag":2688,"props":4068,"children":4069},{},[4070],{"type":57,"value":4071},"Purpose",{"type":51,"tag":2699,"props":4073,"children":4074},{},[4075,4101,4127],{"type":51,"tag":2684,"props":4076,"children":4077},{},[4078,4087,4096],{"type":51,"tag":2706,"props":4079,"children":4080},{},[4081],{"type":51,"tag":110,"props":4082,"children":4084},{"className":4083},[],[4085],{"type":57,"value":4086},"get_weather",{"type":51,"tag":2706,"props":4088,"children":4089},{},[4090],{"type":51,"tag":110,"props":4091,"children":4093},{"className":4092},[],[4094],{"type":57,"value":4095},"https:\u002F\u002Fwttr.in\u002F{location}?format=j1",{"type":51,"tag":2706,"props":4097,"children":4098},{},[4099],{"type":57,"value":4100},"Current weather",{"type":51,"tag":2684,"props":4102,"children":4103},{},[4104,4113,4122],{"type":51,"tag":2706,"props":4105,"children":4106},{},[4107],{"type":51,"tag":110,"props":4108,"children":4110},{"className":4109},[],[4111],{"type":57,"value":4112},"search_wikipedia",{"type":51,"tag":2706,"props":4114,"children":4115},{},[4116],{"type":51,"tag":110,"props":4117,"children":4119},{"className":4118},[],[4120],{"type":57,"value":4121},"https:\u002F\u002Fen.wikipedia.org\u002Fapi\u002Frest_v1\u002Fpage\u002Fsummary\u002F{topic}",{"type":51,"tag":2706,"props":4123,"children":4124},{},[4125],{"type":57,"value":4126},"Topic summary",{"type":51,"tag":2684,"props":4128,"children":4129},{},[4130,4139,4148],{"type":51,"tag":2706,"props":4131,"children":4132},{},[4133],{"type":51,"tag":110,"props":4134,"children":4136},{"className":4135},[],[4137],{"type":57,"value":4138},"get_exchange_rate",{"type":51,"tag":2706,"props":4140,"children":4141},{},[4142],{"type":51,"tag":110,"props":4143,"children":4145},{"className":4144},[],[4146],{"type":57,"value":4147},"https:\u002F\u002Fopen.er-api.com\u002Fv6\u002Flatest\u002F{base_currency}",{"type":51,"tag":2706,"props":4149,"children":4150},{},[4151],{"type":57,"value":4152},"FX rates",{"type":51,"tag":90,"props":4154,"children":4156},{"id":4155},"workflows",[4157],{"type":57,"value":4158},"Workflows",{"type":51,"tag":60,"props":4160,"children":4161},{},[4162,4164,4170,4172,4179],{"type":57,"value":4163},"Route conversations through discrete steps with branching logic. Define under the agent's top-level ",{"type":51,"tag":110,"props":4165,"children":4167},{"className":4166},[],[4168],{"type":57,"value":4169},"workflow",{"type":57,"value":4171}," field. Reference: ",{"type":51,"tag":81,"props":4173,"children":4176},{"href":4174,"rel":4175},"https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Feleven-agents\u002Fcustomization\u002Fagent-workflows",[3167],[4177],{"type":57,"value":4178},"Agent Workflows",{"type":57,"value":646},{"type":51,"tag":60,"props":4181,"children":4182},{},[4183,4188,4189,4195,4197,4203,4205,4211,4212,4218,4220,4226,4228,4234,4235,4241,4243,4249,4250,4255],{"type":51,"tag":73,"props":4184,"children":4185},{},[4186],{"type":57,"value":4187},"Node types:",{"type":57,"value":292},{"type":51,"tag":110,"props":4190,"children":4192},{"className":4191},[],[4193],{"type":57,"value":4194},"start",{"type":57,"value":4196}," (ID must be ",{"type":51,"tag":110,"props":4198,"children":4200},{"className":4199},[],[4201],{"type":57,"value":4202},"\"start_node\"",{"type":57,"value":4204},"), ",{"type":51,"tag":110,"props":4206,"children":4208},{"className":4207},[],[4209],{"type":57,"value":4210},"end",{"type":57,"value":300},{"type":51,"tag":110,"props":4213,"children":4215},{"className":4214},[],[4216],{"type":57,"value":4217},"override_agent",{"type":57,"value":4219}," (subagent step with ",{"type":51,"tag":110,"props":4221,"children":4223},{"className":4222},[],[4224],{"type":57,"value":4225},"label",{"type":57,"value":4227}," + ",{"type":51,"tag":110,"props":4229,"children":4231},{"className":4230},[],[4232],{"type":57,"value":4233},"additional_prompt",{"type":57,"value":4204},{"type":51,"tag":110,"props":4236,"children":4238},{"className":4237},[],[4239],{"type":57,"value":4240},"dispatch_tool",{"type":57,"value":4242}," (executes a tool with success\u002Ffailure routing), ",{"type":51,"tag":110,"props":4244,"children":4246},{"className":4245},[],[4247],{"type":57,"value":4248},"agent_transfer",{"type":57,"value":300},{"type":51,"tag":110,"props":4251,"children":4253},{"className":4252},[],[4254],{"type":57,"value":3695},{"type":57,"value":646},{"type":51,"tag":60,"props":4257,"children":4258},{},[4259,4264,4265,4271,4272,4278,4280,4286],{"type":51,"tag":73,"props":4260,"children":4261},{},[4262],{"type":57,"value":4263},"Edge types:",{"type":57,"value":292},{"type":51,"tag":110,"props":4266,"children":4268},{"className":4267},[],[4269],{"type":57,"value":4270},"unconditional",{"type":57,"value":300},{"type":51,"tag":110,"props":4273,"children":4275},{"className":4274},[],[4276],{"type":57,"value":4277},"llm",{"type":57,"value":4279}," (natural-language condition), ",{"type":51,"tag":110,"props":4281,"children":4283},{"className":4282},[],[4284],{"type":57,"value":4285},"expression",{"type":57,"value":4287}," (deterministic data check). Tool nodes have separate success\u002Ffailure edges.",{"type":51,"tag":60,"props":4289,"children":4290},{},[4291,4296,4297,4303,4305,4311,4313,4319],{"type":51,"tag":73,"props":4292,"children":4293},{},[4294],{"type":57,"value":4295},"Scope tools per step",{"type":57,"value":3821},{"type":51,"tag":110,"props":4298,"children":4300},{"className":4299},[],[4301],{"type":57,"value":4302},"additional_tool_ids",{"type":57,"value":4304}," on a node — prevents the wrong tool firing at the wrong step. Set ",{"type":51,"tag":110,"props":4306,"children":4308},{"className":4307},[],[4309],{"type":57,"value":4310},"additional_tool_ids: []",{"type":57,"value":4312}," on conversational routing nodes such as greeting and ",{"type":51,"tag":110,"props":4314,"children":4316},{"className":4315},[],[4317],{"type":57,"value":4318},"classify_intent",{"type":57,"value":4320}," so they only converse:",{"type":51,"tag":102,"props":4322,"children":4324},{"className":1178,"code":4323,"language":1180,"meta":107,"style":107},"{\n  \"type\": \"override_agent\",\n  \"label\": \"Book Appointment\",\n  \"additional_prompt\": \"Discuss preferred dates and doctors. Show the booking form once agreed.\",\n  \"entry_behavior\": \"wait_for_user\",\n  \"additional_tool_ids\": [\"show_booking_form\", \"display_appointment_card\"],\n  \"position\": {\"x\": 0, \"y\": 400}\n}\n",[4325],{"type":51,"tag":110,"props":4326,"children":4327},{"__ignoreMap":107},[4328,4335,4371,4407,4443,4480,4538,4614],{"type":51,"tag":114,"props":4329,"children":4330},{"class":116,"line":117},[4331],{"type":51,"tag":114,"props":4332,"children":4333},{"style":225},[4334],{"type":57,"value":678},{"type":51,"tag":114,"props":4336,"children":4337},{"class":116,"line":127},[4338,4342,4347,4351,4355,4359,4363,4367],{"type":51,"tag":114,"props":4339,"children":4340},{"style":225},[4341],{"type":57,"value":1199},{"type":51,"tag":114,"props":4343,"children":4344},{"style":576},[4345],{"type":57,"value":4346},"type",{"type":51,"tag":114,"props":4348,"children":4349},{"style":225},[4350],{"type":57,"value":238},{"type":51,"tag":114,"props":4352,"children":4353},{"style":225},[4354],{"type":57,"value":692},{"type":51,"tag":114,"props":4356,"children":4357},{"style":225},[4358],{"type":57,"value":228},{"type":51,"tag":114,"props":4360,"children":4361},{"style":137},[4362],{"type":57,"value":4217},{"type":51,"tag":114,"props":4364,"children":4365},{"style":225},[4366],{"type":57,"value":238},{"type":51,"tag":114,"props":4368,"children":4369},{"style":225},[4370],{"type":57,"value":709},{"type":51,"tag":114,"props":4372,"children":4373},{"class":116,"line":153},[4374,4378,4382,4386,4390,4394,4399,4403],{"type":51,"tag":114,"props":4375,"children":4376},{"style":225},[4377],{"type":57,"value":1199},{"type":51,"tag":114,"props":4379,"children":4380},{"style":576},[4381],{"type":57,"value":4225},{"type":51,"tag":114,"props":4383,"children":4384},{"style":225},[4385],{"type":57,"value":238},{"type":51,"tag":114,"props":4387,"children":4388},{"style":225},[4389],{"type":57,"value":692},{"type":51,"tag":114,"props":4391,"children":4392},{"style":225},[4393],{"type":57,"value":228},{"type":51,"tag":114,"props":4395,"children":4396},{"style":137},[4397],{"type":57,"value":4398},"Book Appointment",{"type":51,"tag":114,"props":4400,"children":4401},{"style":225},[4402],{"type":57,"value":238},{"type":51,"tag":114,"props":4404,"children":4405},{"style":225},[4406],{"type":57,"value":709},{"type":51,"tag":114,"props":4408,"children":4409},{"class":116,"line":171},[4410,4414,4418,4422,4426,4430,4435,4439],{"type":51,"tag":114,"props":4411,"children":4412},{"style":225},[4413],{"type":57,"value":1199},{"type":51,"tag":114,"props":4415,"children":4416},{"style":576},[4417],{"type":57,"value":4233},{"type":51,"tag":114,"props":4419,"children":4420},{"style":225},[4421],{"type":57,"value":238},{"type":51,"tag":114,"props":4423,"children":4424},{"style":225},[4425],{"type":57,"value":692},{"type":51,"tag":114,"props":4427,"children":4428},{"style":225},[4429],{"type":57,"value":228},{"type":51,"tag":114,"props":4431,"children":4432},{"style":137},[4433],{"type":57,"value":4434},"Discuss preferred dates and doctors. Show the booking form once agreed.",{"type":51,"tag":114,"props":4436,"children":4437},{"style":225},[4438],{"type":57,"value":238},{"type":51,"tag":114,"props":4440,"children":4441},{"style":225},[4442],{"type":57,"value":709},{"type":51,"tag":114,"props":4444,"children":4445},{"class":116,"line":181},[4446,4450,4455,4459,4463,4467,4472,4476],{"type":51,"tag":114,"props":4447,"children":4448},{"style":225},[4449],{"type":57,"value":1199},{"type":51,"tag":114,"props":4451,"children":4452},{"style":576},[4453],{"type":57,"value":4454},"entry_behavior",{"type":51,"tag":114,"props":4456,"children":4457},{"style":225},[4458],{"type":57,"value":238},{"type":51,"tag":114,"props":4460,"children":4461},{"style":225},[4462],{"type":57,"value":692},{"type":51,"tag":114,"props":4464,"children":4465},{"style":225},[4466],{"type":57,"value":228},{"type":51,"tag":114,"props":4468,"children":4469},{"style":137},[4470],{"type":57,"value":4471},"wait_for_user",{"type":51,"tag":114,"props":4473,"children":4474},{"style":225},[4475],{"type":57,"value":238},{"type":51,"tag":114,"props":4477,"children":4478},{"style":225},[4479],{"type":57,"value":709},{"type":51,"tag":114,"props":4481,"children":4482},{"class":116,"line":190},[4483,4487,4491,4495,4499,4503,4507,4512,4516,4520,4524,4529,4533],{"type":51,"tag":114,"props":4484,"children":4485},{"style":225},[4486],{"type":57,"value":1199},{"type":51,"tag":114,"props":4488,"children":4489},{"style":576},[4490],{"type":57,"value":4302},{"type":51,"tag":114,"props":4492,"children":4493},{"style":225},[4494],{"type":57,"value":238},{"type":51,"tag":114,"props":4496,"children":4497},{"style":225},[4498],{"type":57,"value":692},{"type":51,"tag":114,"props":4500,"children":4501},{"style":225},[4502],{"type":57,"value":1552},{"type":51,"tag":114,"props":4504,"children":4505},{"style":225},[4506],{"type":57,"value":238},{"type":51,"tag":114,"props":4508,"children":4509},{"style":137},[4510],{"type":57,"value":4511},"show_booking_form",{"type":51,"tag":114,"props":4513,"children":4514},{"style":225},[4515],{"type":57,"value":238},{"type":51,"tag":114,"props":4517,"children":4518},{"style":225},[4519],{"type":57,"value":1569},{"type":51,"tag":114,"props":4521,"children":4522},{"style":225},[4523],{"type":57,"value":228},{"type":51,"tag":114,"props":4525,"children":4526},{"style":137},[4527],{"type":57,"value":4528},"display_appointment_card",{"type":51,"tag":114,"props":4530,"children":4531},{"style":225},[4532],{"type":57,"value":238},{"type":51,"tag":114,"props":4534,"children":4535},{"style":225},[4536],{"type":57,"value":4537},"],\n",{"type":51,"tag":114,"props":4539,"children":4540},{"class":116,"line":208},[4541,4545,4550,4554,4558,4562,4566,4571,4575,4579,4584,4588,4592,4597,4601,4605,4610],{"type":51,"tag":114,"props":4542,"children":4543},{"style":225},[4544],{"type":57,"value":1199},{"type":51,"tag":114,"props":4546,"children":4547},{"style":576},[4548],{"type":57,"value":4549},"position",{"type":51,"tag":114,"props":4551,"children":4552},{"style":225},[4553],{"type":57,"value":238},{"type":51,"tag":114,"props":4555,"children":4556},{"style":225},[4557],{"type":57,"value":692},{"type":51,"tag":114,"props":4559,"children":4560},{"style":225},[4561],{"type":57,"value":536},{"type":51,"tag":114,"props":4563,"children":4564},{"style":225},[4565],{"type":57,"value":238},{"type":51,"tag":114,"props":4567,"children":4568},{"style":131},[4569],{"type":57,"value":4570},"x",{"type":51,"tag":114,"props":4572,"children":4573},{"style":225},[4574],{"type":57,"value":238},{"type":51,"tag":114,"props":4576,"children":4577},{"style":225},[4578],{"type":57,"value":692},{"type":51,"tag":114,"props":4580,"children":4581},{"style":889},[4582],{"type":57,"value":4583}," 0",{"type":51,"tag":114,"props":4585,"children":4586},{"style":225},[4587],{"type":57,"value":1569},{"type":51,"tag":114,"props":4589,"children":4590},{"style":225},[4591],{"type":57,"value":228},{"type":51,"tag":114,"props":4593,"children":4594},{"style":131},[4595],{"type":57,"value":4596},"y",{"type":51,"tag":114,"props":4598,"children":4599},{"style":225},[4600],{"type":57,"value":238},{"type":51,"tag":114,"props":4602,"children":4603},{"style":225},[4604],{"type":57,"value":692},{"type":51,"tag":114,"props":4606,"children":4607},{"style":889},[4608],{"type":57,"value":4609}," 400",{"type":51,"tag":114,"props":4611,"children":4612},{"style":225},[4613],{"type":57,"value":1264},{"type":51,"tag":114,"props":4615,"children":4616},{"class":116,"line":251},[4617],{"type":51,"tag":114,"props":4618,"children":4619},{"style":225},[4620],{"type":57,"value":1264},{"type":51,"tag":60,"props":4622,"children":4623},{},[4624,4626,4631,4632,4638,4640,4646,4648,4653,4655,4661,4662,4668,4670,4675],{"type":57,"value":4625},"Include ",{"type":51,"tag":110,"props":4627,"children":4629},{"className":4628},[],[4630],{"type":57,"value":4549},{"type":57,"value":1613},{"type":51,"tag":110,"props":4633,"children":4635},{"className":4634},[],[4636],{"type":57,"value":4637},"{x, y}",{"type":57,"value":4639},") on every node so the editor renders cleanly. Start at ",{"type":51,"tag":110,"props":4641,"children":4643},{"className":4642},[],[4644],{"type":57,"value":4645},"y=0",{"type":57,"value":4647},", put ",{"type":51,"tag":110,"props":4649,"children":4651},{"className":4650},[],[4652],{"type":57,"value":4210},{"type":57,"value":4654}," at the bottom, and space branches horizontally at ",{"type":51,"tag":110,"props":4656,"children":4658},{"className":4657},[],[4659],{"type":57,"value":4660},"x=-150",{"type":57,"value":1928},{"type":51,"tag":110,"props":4663,"children":4665},{"className":4664},[],[4666],{"type":57,"value":4667},"x=150",{"type":57,"value":4669},"; suggested spacing is 200px vertical between levels and 300px horizontal between branches. Keep workflows to 4-7 nodes and always have a path to ",{"type":51,"tag":110,"props":4671,"children":4673},{"className":4672},[],[4674],{"type":57,"value":4210},{"type":57,"value":646},{"type":51,"tag":60,"props":4677,"children":4678},{},[4679,4680,4685,4687,4692,4694,4700,4702,4707,4709,4715],{"type":57,"value":3058},{"type":51,"tag":110,"props":4681,"children":4683},{"className":4682},[],[4684],{"type":57,"value":4454},{"type":57,"value":4686}," on ",{"type":51,"tag":110,"props":4688,"children":4690},{"className":4689},[],[4691],{"type":57,"value":4217},{"type":57,"value":4693}," nodes to choose whether a sub-agent speaks immediately (",{"type":51,"tag":110,"props":4695,"children":4697},{"className":4696},[],[4698],{"type":57,"value":4699},"generate_immediately",{"type":57,"value":4701},"), waits for user input (",{"type":51,"tag":110,"props":4703,"children":4705},{"className":4704},[],[4706],{"type":57,"value":4471},{"type":57,"value":4708},"), or lets the platform decide (",{"type":51,"tag":110,"props":4710,"children":4712},{"className":4711},[],[4713],{"type":57,"value":4714},"auto",{"type":57,"value":3203},{"type":51,"tag":60,"props":4717,"children":4718},{},[4719,4721,4727,4729,4735,4737,4743,4745,4750],{"type":57,"value":4720},"For nested agent transfers, set ",{"type":51,"tag":110,"props":4722,"children":4724},{"className":4723},[],[4725],{"type":57,"value":4726},"enable_nesting",{"type":57,"value":4728}," on a ",{"type":51,"tag":110,"props":4730,"children":4732},{"className":4731},[],[4733],{"type":57,"value":4734},"standalone_agent",{"type":57,"value":4736}," node and\n",{"type":51,"tag":110,"props":4738,"children":4740},{"className":4739},[],[4741],{"type":57,"value":4742},"return_when_nested",{"type":57,"value":4744}," on an ",{"type":51,"tag":110,"props":4746,"children":4748},{"className":4747},[],[4749],{"type":57,"value":4210},{"type":57,"value":4751}," node that should return control to the parent workflow.",{"type":51,"tag":90,"props":4753,"children":4755},{"id":4754},"guardrails",[4756],{"type":57,"value":3201},{"type":51,"tag":60,"props":4758,"children":4759},{},[4760,4762,4767,4769,4775],{"type":57,"value":4761},"Layered safety enforcement that runs independently of the LLM — configured under ",{"type":51,"tag":110,"props":4763,"children":4765},{"className":4764},[],[4766],{"type":57,"value":3193},{"type":57,"value":4768},", not in the system prompt. Reference: ",{"type":51,"tag":81,"props":4770,"children":4773},{"href":4771,"rel":4772},"https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Feleven-agents\u002Fbest-practices\u002Fguardrails",[3167],[4774],{"type":57,"value":3201},{"type":57,"value":646},{"type":51,"tag":102,"props":4777,"children":4779},{"className":1178,"code":4778,"language":1180,"meta":107,"style":107},"\"platform_settings\": {\n  \"guardrails\": {\n    \"version\": \"1\",\n    \"focus\": {\"is_enabled\": true},\n    \"prompt_injection\": {\"is_enabled\": true},\n    \"content\": {\"config\": {\"harassment\": {\"is_enabled\": true, \"threshold\": 0.5}}},\n    \"custom\": {\n      \"config\": {\n        \"configs\": [{\n          \"is_enabled\": true,\n          \"name\": \"No medical diagnoses\",\n          \"prompt\": \"Block the agent from providing medical diagnoses or treatment advice.\",\n          \"execution_mode\": \"blocking\",\n          \"model\": \"gemini-2.5-flash-lite\",\n          \"history_message_count\": 1,\n          \"trigger_action\": {\"type\": \"retry\", \"feedback\": \"Reason: {{trigger_reason}}\"}\n        }]\n      }\n    }\n  }\n}\n",[4780],{"type":51,"tag":110,"props":4781,"children":4782},{"__ignoreMap":107},[4783,4808,4831,4868,4914,4958,5073,5097,5121,5147,5172,5209,5246,5283,5319,5348,5439,5447,5454,5461,5468],{"type":51,"tag":114,"props":4784,"children":4785},{"class":116,"line":117},[4786,4790,4795,4799,4804],{"type":51,"tag":114,"props":4787,"children":4788},{"style":225},[4789],{"type":57,"value":238},{"type":51,"tag":114,"props":4791,"children":4792},{"style":137},[4793],{"type":57,"value":4794},"platform_settings",{"type":51,"tag":114,"props":4796,"children":4797},{"style":225},[4798],{"type":57,"value":238},{"type":51,"tag":114,"props":4800,"children":4801},{"style":539},[4802],{"type":57,"value":4803},": ",{"type":51,"tag":114,"props":4805,"children":4806},{"style":225},[4807],{"type":57,"value":678},{"type":51,"tag":114,"props":4809,"children":4810},{"class":116,"line":127},[4811,4815,4819,4823,4827],{"type":51,"tag":114,"props":4812,"children":4813},{"style":225},[4814],{"type":57,"value":1199},{"type":51,"tag":114,"props":4816,"children":4817},{"style":576},[4818],{"type":57,"value":4754},{"type":51,"tag":114,"props":4820,"children":4821},{"style":225},[4822],{"type":57,"value":238},{"type":51,"tag":114,"props":4824,"children":4825},{"style":225},[4826],{"type":57,"value":692},{"type":51,"tag":114,"props":4828,"children":4829},{"style":225},[4830],{"type":57,"value":726},{"type":51,"tag":114,"props":4832,"children":4833},{"class":116,"line":153},[4834,4838,4843,4847,4851,4855,4860,4864],{"type":51,"tag":114,"props":4835,"children":4836},{"style":225},[4837],{"type":57,"value":1224},{"type":51,"tag":114,"props":4839,"children":4840},{"style":131},[4841],{"type":57,"value":4842},"version",{"type":51,"tag":114,"props":4844,"children":4845},{"style":225},[4846],{"type":57,"value":238},{"type":51,"tag":114,"props":4848,"children":4849},{"style":225},[4850],{"type":57,"value":692},{"type":51,"tag":114,"props":4852,"children":4853},{"style":225},[4854],{"type":57,"value":228},{"type":51,"tag":114,"props":4856,"children":4857},{"style":137},[4858],{"type":57,"value":4859},"1",{"type":51,"tag":114,"props":4861,"children":4862},{"style":225},[4863],{"type":57,"value":238},{"type":51,"tag":114,"props":4865,"children":4866},{"style":225},[4867],{"type":57,"value":709},{"type":51,"tag":114,"props":4869,"children":4870},{"class":116,"line":171},[4871,4875,4880,4884,4888,4892,4896,4901,4905,4909],{"type":51,"tag":114,"props":4872,"children":4873},{"style":225},[4874],{"type":57,"value":1224},{"type":51,"tag":114,"props":4876,"children":4877},{"style":131},[4878],{"type":57,"value":4879},"focus",{"type":51,"tag":114,"props":4881,"children":4882},{"style":225},[4883],{"type":57,"value":238},{"type":51,"tag":114,"props":4885,"children":4886},{"style":225},[4887],{"type":57,"value":692},{"type":51,"tag":114,"props":4889,"children":4890},{"style":225},[4891],{"type":57,"value":536},{"type":51,"tag":114,"props":4893,"children":4894},{"style":225},[4895],{"type":57,"value":238},{"type":51,"tag":114,"props":4897,"children":4898},{"style":889},[4899],{"type":57,"value":4900},"is_enabled",{"type":51,"tag":114,"props":4902,"children":4903},{"style":225},[4904],{"type":57,"value":238},{"type":51,"tag":114,"props":4906,"children":4907},{"style":225},[4908],{"type":57,"value":692},{"type":51,"tag":114,"props":4910,"children":4911},{"style":225},[4912],{"type":57,"value":4913}," true},\n",{"type":51,"tag":114,"props":4915,"children":4916},{"class":116,"line":181},[4917,4921,4926,4930,4934,4938,4942,4946,4950,4954],{"type":51,"tag":114,"props":4918,"children":4919},{"style":225},[4920],{"type":57,"value":1224},{"type":51,"tag":114,"props":4922,"children":4923},{"style":131},[4924],{"type":57,"value":4925},"prompt_injection",{"type":51,"tag":114,"props":4927,"children":4928},{"style":225},[4929],{"type":57,"value":238},{"type":51,"tag":114,"props":4931,"children":4932},{"style":225},[4933],{"type":57,"value":692},{"type":51,"tag":114,"props":4935,"children":4936},{"style":225},[4937],{"type":57,"value":536},{"type":51,"tag":114,"props":4939,"children":4940},{"style":225},[4941],{"type":57,"value":238},{"type":51,"tag":114,"props":4943,"children":4944},{"style":889},[4945],{"type":57,"value":4900},{"type":51,"tag":114,"props":4947,"children":4948},{"style":225},[4949],{"type":57,"value":238},{"type":51,"tag":114,"props":4951,"children":4952},{"style":225},[4953],{"type":57,"value":692},{"type":51,"tag":114,"props":4955,"children":4956},{"style":225},[4957],{"type":57,"value":4913},{"type":51,"tag":114,"props":4959,"children":4960},{"class":116,"line":190},[4961,4965,4970,4974,4978,4982,4986,4991,4995,4999,5003,5007,5012,5016,5020,5024,5028,5033,5037,5041,5046,5050,5055,5059,5063,5068],{"type":51,"tag":114,"props":4962,"children":4963},{"style":225},[4964],{"type":57,"value":1224},{"type":51,"tag":114,"props":4966,"children":4967},{"style":131},[4968],{"type":57,"value":4969},"content",{"type":51,"tag":114,"props":4971,"children":4972},{"style":225},[4973],{"type":57,"value":238},{"type":51,"tag":114,"props":4975,"children":4976},{"style":225},[4977],{"type":57,"value":692},{"type":51,"tag":114,"props":4979,"children":4980},{"style":225},[4981],{"type":57,"value":536},{"type":51,"tag":114,"props":4983,"children":4984},{"style":225},[4985],{"type":57,"value":238},{"type":51,"tag":114,"props":4987,"children":4988},{"style":889},[4989],{"type":57,"value":4990},"config",{"type":51,"tag":114,"props":4992,"children":4993},{"style":225},[4994],{"type":57,"value":238},{"type":51,"tag":114,"props":4996,"children":4997},{"style":225},[4998],{"type":57,"value":692},{"type":51,"tag":114,"props":5000,"children":5001},{"style":225},[5002],{"type":57,"value":536},{"type":51,"tag":114,"props":5004,"children":5005},{"style":225},[5006],{"type":57,"value":238},{"type":51,"tag":114,"props":5008,"children":5009},{"style":684},[5010],{"type":57,"value":5011},"harassment",{"type":51,"tag":114,"props":5013,"children":5014},{"style":225},[5015],{"type":57,"value":238},{"type":51,"tag":114,"props":5017,"children":5018},{"style":225},[5019],{"type":57,"value":692},{"type":51,"tag":114,"props":5021,"children":5022},{"style":225},[5023],{"type":57,"value":536},{"type":51,"tag":114,"props":5025,"children":5026},{"style":225},[5027],{"type":57,"value":238},{"type":51,"tag":114,"props":5029,"children":5031},{"style":5030},"--shiki-light:#916B53;--shiki-default:#916B53;--shiki-dark:#916B53",[5032],{"type":57,"value":4900},{"type":51,"tag":114,"props":5034,"children":5035},{"style":225},[5036],{"type":57,"value":238},{"type":51,"tag":114,"props":5038,"children":5039},{"style":225},[5040],{"type":57,"value":692},{"type":51,"tag":114,"props":5042,"children":5043},{"style":225},[5044],{"type":57,"value":5045}," true,",{"type":51,"tag":114,"props":5047,"children":5048},{"style":225},[5049],{"type":57,"value":228},{"type":51,"tag":114,"props":5051,"children":5052},{"style":5030},[5053],{"type":57,"value":5054},"threshold",{"type":51,"tag":114,"props":5056,"children":5057},{"style":225},[5058],{"type":57,"value":238},{"type":51,"tag":114,"props":5060,"children":5061},{"style":225},[5062],{"type":57,"value":692},{"type":51,"tag":114,"props":5064,"children":5065},{"style":889},[5066],{"type":57,"value":5067}," 0.5",{"type":51,"tag":114,"props":5069,"children":5070},{"style":225},[5071],{"type":57,"value":5072},"}}},\n",{"type":51,"tag":114,"props":5074,"children":5075},{"class":116,"line":208},[5076,5080,5085,5089,5093],{"type":51,"tag":114,"props":5077,"children":5078},{"style":225},[5079],{"type":57,"value":1224},{"type":51,"tag":114,"props":5081,"children":5082},{"style":131},[5083],{"type":57,"value":5084},"custom",{"type":51,"tag":114,"props":5086,"children":5087},{"style":225},[5088],{"type":57,"value":238},{"type":51,"tag":114,"props":5090,"children":5091},{"style":225},[5092],{"type":57,"value":692},{"type":51,"tag":114,"props":5094,"children":5095},{"style":225},[5096],{"type":57,"value":726},{"type":51,"tag":114,"props":5098,"children":5099},{"class":116,"line":251},[5100,5105,5109,5113,5117],{"type":51,"tag":114,"props":5101,"children":5102},{"style":225},[5103],{"type":57,"value":5104},"      \"",{"type":51,"tag":114,"props":5106,"children":5107},{"style":889},[5108],{"type":57,"value":4990},{"type":51,"tag":114,"props":5110,"children":5111},{"style":225},[5112],{"type":57,"value":238},{"type":51,"tag":114,"props":5114,"children":5115},{"style":225},[5116],{"type":57,"value":692},{"type":51,"tag":114,"props":5118,"children":5119},{"style":225},[5120],{"type":57,"value":726},{"type":51,"tag":114,"props":5122,"children":5123},{"class":116,"line":259},[5124,5129,5134,5138,5142],{"type":51,"tag":114,"props":5125,"children":5126},{"style":225},[5127],{"type":57,"value":5128},"        \"",{"type":51,"tag":114,"props":5130,"children":5131},{"style":684},[5132],{"type":57,"value":5133},"configs",{"type":51,"tag":114,"props":5135,"children":5136},{"style":225},[5137],{"type":57,"value":238},{"type":51,"tag":114,"props":5139,"children":5140},{"style":225},[5141],{"type":57,"value":692},{"type":51,"tag":114,"props":5143,"children":5144},{"style":225},[5145],{"type":57,"value":5146}," [{\n",{"type":51,"tag":114,"props":5148,"children":5149},{"class":116,"line":268},[5150,5155,5159,5163,5167],{"type":51,"tag":114,"props":5151,"children":5152},{"style":225},[5153],{"type":57,"value":5154},"          \"",{"type":51,"tag":114,"props":5156,"children":5157},{"style":5030},[5158],{"type":57,"value":4900},{"type":51,"tag":114,"props":5160,"children":5161},{"style":225},[5162],{"type":57,"value":238},{"type":51,"tag":114,"props":5164,"children":5165},{"style":225},[5166],{"type":57,"value":692},{"type":51,"tag":114,"props":5168,"children":5169},{"style":225},[5170],{"type":57,"value":5171}," true,\n",{"type":51,"tag":114,"props":5173,"children":5174},{"class":116,"line":430},[5175,5179,5184,5188,5192,5196,5201,5205],{"type":51,"tag":114,"props":5176,"children":5177},{"style":225},[5178],{"type":57,"value":5154},{"type":51,"tag":114,"props":5180,"children":5181},{"style":5030},[5182],{"type":57,"value":5183},"name",{"type":51,"tag":114,"props":5185,"children":5186},{"style":225},[5187],{"type":57,"value":238},{"type":51,"tag":114,"props":5189,"children":5190},{"style":225},[5191],{"type":57,"value":692},{"type":51,"tag":114,"props":5193,"children":5194},{"style":225},[5195],{"type":57,"value":228},{"type":51,"tag":114,"props":5197,"children":5198},{"style":137},[5199],{"type":57,"value":5200},"No medical diagnoses",{"type":51,"tag":114,"props":5202,"children":5203},{"style":225},[5204],{"type":57,"value":238},{"type":51,"tag":114,"props":5206,"children":5207},{"style":225},[5208],{"type":57,"value":709},{"type":51,"tag":114,"props":5210,"children":5211},{"class":116,"line":439},[5212,5216,5221,5225,5229,5233,5238,5242],{"type":51,"tag":114,"props":5213,"children":5214},{"style":225},[5215],{"type":57,"value":5154},{"type":51,"tag":114,"props":5217,"children":5218},{"style":5030},[5219],{"type":57,"value":5220},"prompt",{"type":51,"tag":114,"props":5222,"children":5223},{"style":225},[5224],{"type":57,"value":238},{"type":51,"tag":114,"props":5226,"children":5227},{"style":225},[5228],{"type":57,"value":692},{"type":51,"tag":114,"props":5230,"children":5231},{"style":225},[5232],{"type":57,"value":228},{"type":51,"tag":114,"props":5234,"children":5235},{"style":137},[5236],{"type":57,"value":5237},"Block the agent from providing medical diagnoses or treatment advice.",{"type":51,"tag":114,"props":5239,"children":5240},{"style":225},[5241],{"type":57,"value":238},{"type":51,"tag":114,"props":5243,"children":5244},{"style":225},[5245],{"type":57,"value":709},{"type":51,"tag":114,"props":5247,"children":5248},{"class":116,"line":448},[5249,5253,5258,5262,5266,5270,5275,5279],{"type":51,"tag":114,"props":5250,"children":5251},{"style":225},[5252],{"type":57,"value":5154},{"type":51,"tag":114,"props":5254,"children":5255},{"style":5030},[5256],{"type":57,"value":5257},"execution_mode",{"type":51,"tag":114,"props":5259,"children":5260},{"style":225},[5261],{"type":57,"value":238},{"type":51,"tag":114,"props":5263,"children":5264},{"style":225},[5265],{"type":57,"value":692},{"type":51,"tag":114,"props":5267,"children":5268},{"style":225},[5269],{"type":57,"value":228},{"type":51,"tag":114,"props":5271,"children":5272},{"style":137},[5273],{"type":57,"value":5274},"blocking",{"type":51,"tag":114,"props":5276,"children":5277},{"style":225},[5278],{"type":57,"value":238},{"type":51,"tag":114,"props":5280,"children":5281},{"style":225},[5282],{"type":57,"value":709},{"type":51,"tag":114,"props":5284,"children":5285},{"class":116,"line":457},[5286,5290,5295,5299,5303,5307,5311,5315],{"type":51,"tag":114,"props":5287,"children":5288},{"style":225},[5289],{"type":57,"value":5154},{"type":51,"tag":114,"props":5291,"children":5292},{"style":5030},[5293],{"type":57,"value":5294},"model",{"type":51,"tag":114,"props":5296,"children":5297},{"style":225},[5298],{"type":57,"value":238},{"type":51,"tag":114,"props":5300,"children":5301},{"style":225},[5302],{"type":57,"value":692},{"type":51,"tag":114,"props":5304,"children":5305},{"style":225},[5306],{"type":57,"value":228},{"type":51,"tag":114,"props":5308,"children":5309},{"style":137},[5310],{"type":57,"value":2970},{"type":51,"tag":114,"props":5312,"children":5313},{"style":225},[5314],{"type":57,"value":238},{"type":51,"tag":114,"props":5316,"children":5317},{"style":225},[5318],{"type":57,"value":709},{"type":51,"tag":114,"props":5320,"children":5321},{"class":116,"line":466},[5322,5326,5331,5335,5339,5344],{"type":51,"tag":114,"props":5323,"children":5324},{"style":225},[5325],{"type":57,"value":5154},{"type":51,"tag":114,"props":5327,"children":5328},{"style":5030},[5329],{"type":57,"value":5330},"history_message_count",{"type":51,"tag":114,"props":5332,"children":5333},{"style":225},[5334],{"type":57,"value":238},{"type":51,"tag":114,"props":5336,"children":5337},{"style":225},[5338],{"type":57,"value":692},{"type":51,"tag":114,"props":5340,"children":5341},{"style":889},[5342],{"type":57,"value":5343}," 1",{"type":51,"tag":114,"props":5345,"children":5346},{"style":225},[5347],{"type":57,"value":709},{"type":51,"tag":114,"props":5349,"children":5350},{"class":116,"line":475},[5351,5355,5360,5364,5368,5372,5376,5380,5384,5388,5392,5397,5401,5405,5409,5414,5418,5422,5426,5431,5435],{"type":51,"tag":114,"props":5352,"children":5353},{"style":225},[5354],{"type":57,"value":5154},{"type":51,"tag":114,"props":5356,"children":5357},{"style":5030},[5358],{"type":57,"value":5359},"trigger_action",{"type":51,"tag":114,"props":5361,"children":5362},{"style":225},[5363],{"type":57,"value":238},{"type":51,"tag":114,"props":5365,"children":5366},{"style":225},[5367],{"type":57,"value":692},{"type":51,"tag":114,"props":5369,"children":5370},{"style":225},[5371],{"type":57,"value":536},{"type":51,"tag":114,"props":5373,"children":5374},{"style":225},[5375],{"type":57,"value":238},{"type":51,"tag":114,"props":5377,"children":5378},{"style":597},[5379],{"type":57,"value":4346},{"type":51,"tag":114,"props":5381,"children":5382},{"style":225},[5383],{"type":57,"value":238},{"type":51,"tag":114,"props":5385,"children":5386},{"style":225},[5387],{"type":57,"value":692},{"type":51,"tag":114,"props":5389,"children":5390},{"style":225},[5391],{"type":57,"value":228},{"type":51,"tag":114,"props":5393,"children":5394},{"style":137},[5395],{"type":57,"value":5396},"retry",{"type":51,"tag":114,"props":5398,"children":5399},{"style":225},[5400],{"type":57,"value":238},{"type":51,"tag":114,"props":5402,"children":5403},{"style":225},[5404],{"type":57,"value":1569},{"type":51,"tag":114,"props":5406,"children":5407},{"style":225},[5408],{"type":57,"value":228},{"type":51,"tag":114,"props":5410,"children":5411},{"style":597},[5412],{"type":57,"value":5413},"feedback",{"type":51,"tag":114,"props":5415,"children":5416},{"style":225},[5417],{"type":57,"value":238},{"type":51,"tag":114,"props":5419,"children":5420},{"style":225},[5421],{"type":57,"value":692},{"type":51,"tag":114,"props":5423,"children":5424},{"style":225},[5425],{"type":57,"value":228},{"type":51,"tag":114,"props":5427,"children":5428},{"style":137},[5429],{"type":57,"value":5430},"Reason: {{trigger_reason}}",{"type":51,"tag":114,"props":5432,"children":5433},{"style":225},[5434],{"type":57,"value":238},{"type":51,"tag":114,"props":5436,"children":5437},{"style":225},[5438],{"type":57,"value":1264},{"type":51,"tag":114,"props":5440,"children":5441},{"class":116,"line":484},[5442],{"type":51,"tag":114,"props":5443,"children":5444},{"style":225},[5445],{"type":57,"value":5446},"        }]\n",{"type":51,"tag":114,"props":5448,"children":5449},{"class":116,"line":493},[5450],{"type":51,"tag":114,"props":5451,"children":5452},{"style":225},[5453],{"type":57,"value":900},{"type":51,"tag":114,"props":5455,"children":5456},{"class":116,"line":502},[5457],{"type":51,"tag":114,"props":5458,"children":5459},{"style":225},[5460],{"type":57,"value":499},{"type":51,"tag":114,"props":5462,"children":5463},{"class":116,"line":2413},[5464],{"type":51,"tag":114,"props":5465,"children":5466},{"style":225},[5467],{"type":57,"value":959},{"type":51,"tag":114,"props":5469,"children":5470},{"class":116,"line":2421},[5471],{"type":51,"tag":114,"props":5472,"children":5473},{"style":225},[5474],{"type":57,"value":1264},{"type":51,"tag":60,"props":5476,"children":5477},{},[5478,5483,5484,5489,5491,5496,5498,5503,5505,5510,5512,5517,5518,5524,5525,5531,5532,5538,5539,5545,5547,5553,5555,5561,5563,5569,5571,5577,5579,5585,5587,5592,5593,5598,5599,5604,5606,5611],{"type":51,"tag":73,"props":5479,"children":5480},{},[5481],{"type":57,"value":5482},"Types:",{"type":57,"value":292},{"type":51,"tag":110,"props":5485,"children":5487},{"className":5486},[],[5488],{"type":57,"value":4879},{"type":57,"value":5490}," (on-topic), ",{"type":51,"tag":110,"props":5492,"children":5494},{"className":5493},[],[5495],{"type":57,"value":4925},{"type":57,"value":5497}," (manipulation defense), ",{"type":51,"tag":110,"props":5499,"children":5501},{"className":5500},[],[5502],{"type":57,"value":4969},{"type":57,"value":5504}," (category filters), ",{"type":51,"tag":110,"props":5506,"children":5508},{"className":5507},[],[5509],{"type":57,"value":5084},{"type":57,"value":5511}," (LLM-evaluated domain rules). Content categories include ",{"type":51,"tag":110,"props":5513,"children":5515},{"className":5514},[],[5516],{"type":57,"value":5011},{"type":57,"value":300},{"type":51,"tag":110,"props":5519,"children":5521},{"className":5520},[],[5522],{"type":57,"value":5523},"profanity",{"type":57,"value":300},{"type":51,"tag":110,"props":5526,"children":5528},{"className":5527},[],[5529],{"type":57,"value":5530},"sexual",{"type":57,"value":300},{"type":51,"tag":110,"props":5533,"children":5535},{"className":5534},[],[5536],{"type":57,"value":5537},"violence",{"type":57,"value":300},{"type":51,"tag":110,"props":5540,"children":5542},{"className":5541},[],[5543],{"type":57,"value":5544},"self_harm",{"type":57,"value":5546},", and ",{"type":51,"tag":110,"props":5548,"children":5550},{"className":5549},[],[5551],{"type":57,"value":5552},"medical_and_legal_information",{"type":57,"value":5554}," — threshold range ",{"type":51,"tag":110,"props":5556,"children":5558},{"className":5557},[],[5559],{"type":57,"value":5560},"0.0",{"type":57,"value":5562},"–",{"type":51,"tag":110,"props":5564,"children":5566},{"className":5565},[],[5567],{"type":57,"value":5568},"1.0",{"type":57,"value":5570}," (default ",{"type":51,"tag":110,"props":5572,"children":5574},{"className":5573},[],[5575],{"type":57,"value":5576},"0.3",{"type":57,"value":5578},"). Custom rules use ",{"type":51,"tag":110,"props":5580,"children":5582},{"className":5581},[],[5583],{"type":57,"value":5584},"execution_mode: \"blocking\"",{"type":57,"value":5586}," with a ",{"type":51,"tag":110,"props":5588,"children":5590},{"className":5589},[],[5591],{"type":57,"value":5294},{"type":57,"value":300},{"type":51,"tag":110,"props":5594,"children":5596},{"className":5595},[],[5597],{"type":57,"value":5330},{"type":57,"value":5546},{"type":51,"tag":110,"props":5600,"children":5602},{"className":5601},[],[5603],{"type":57,"value":5359},{"type":57,"value":5605}," (e.g., ",{"type":51,"tag":110,"props":5607,"children":5609},{"className":5608},[],[5610],{"type":57,"value":5396},{"type":57,"value":5612}," with feedback). Custom guardrails evaluate in parallel and fail-open.",{"type":51,"tag":60,"props":5614,"children":5615},{},[5616,5621,5623,5628,5630,5635,5637,5642,5643,5648,5649,5654,5656,5661,5662,5667,5669,5674,5675,5680],{"type":51,"tag":73,"props":5617,"children":5618},{},[5619],{"type":57,"value":5620},"Per vertical:",{"type":57,"value":5622}," healthcare\u002Ffinance\u002Flegal → enable ",{"type":51,"tag":110,"props":5624,"children":5626},{"className":5625},[],[5627],{"type":57,"value":5552},{"type":57,"value":5629},"; education\u002Fyouth → ",{"type":51,"tag":110,"props":5631,"children":5633},{"className":5632},[],[5634],{"type":57,"value":5530},{"type":57,"value":5636},"\u002F",{"type":51,"tag":110,"props":5638,"children":5640},{"className":5639},[],[5641],{"type":57,"value":5537},{"type":57,"value":5636},{"type":51,"tag":110,"props":5644,"children":5646},{"className":5645},[],[5647],{"type":57,"value":5544},{"type":57,"value":5636},{"type":51,"tag":110,"props":5650,"children":5652},{"className":5651},[],[5653],{"type":57,"value":5523},{"type":57,"value":5655},"; support\u002Fsales → ",{"type":51,"tag":110,"props":5657,"children":5659},{"className":5658},[],[5660],{"type":57,"value":5011},{"type":57,"value":5636},{"type":51,"tag":110,"props":5663,"children":5665},{"className":5664},[],[5666],{"type":57,"value":5523},{"type":57,"value":5668},". All agents benefit from ",{"type":51,"tag":110,"props":5670,"children":5672},{"className":5671},[],[5673],{"type":57,"value":4879},{"type":57,"value":4227},{"type":51,"tag":110,"props":5676,"children":5678},{"className":5677},[],[5679],{"type":57,"value":4925},{"type":57,"value":5681}," + 2-4 custom rules.",{"type":51,"tag":90,"props":5683,"children":5685},{"id":5684},"testing-agents",[5686],{"type":57,"value":5687},"Testing Agents",{"type":51,"tag":60,"props":5689,"children":5690},{},[5691,5693,5699,5701,5708],{"type":57,"value":5692},"Three test types via ",{"type":51,"tag":110,"props":5694,"children":5696},{"className":5695},[],[5697],{"type":57,"value":5698},"POST \u002Fv1\u002Fconvai\u002Fagent-testing\u002Fcreate",{"type":57,"value":5700},", then attached with PATCH on the agent. Reference: ",{"type":51,"tag":81,"props":5702,"children":5705},{"href":5703,"rel":5704},"https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Feleven-agents\u002Fcustomization\u002Fagent-testing",[3167],[5706],{"type":57,"value":5707},"Agent Testing",{"type":57,"value":646},{"type":51,"tag":2676,"props":5710,"children":5711},{},[5712,5727],{"type":51,"tag":2680,"props":5713,"children":5714},{},[5715],{"type":51,"tag":2684,"props":5716,"children":5717},{},[5718,5723],{"type":51,"tag":2688,"props":5719,"children":5720},{},[5721],{"type":57,"value":5722},"Type",{"type":51,"tag":2688,"props":5724,"children":5725},{},[5726],{"type":57,"value":4071},{"type":51,"tag":2699,"props":5728,"children":5729},{},[5730,5746,5763],{"type":51,"tag":2684,"props":5731,"children":5732},{},[5733,5741],{"type":51,"tag":2706,"props":5734,"children":5735},{},[5736],{"type":51,"tag":110,"props":5737,"children":5739},{"className":5738},[],[5740],{"type":57,"value":4277},{"type":51,"tag":2706,"props":5742,"children":5743},{},[5744],{"type":57,"value":5745},"Scenario test — does the agent respond appropriately to a message?",{"type":51,"tag":2684,"props":5747,"children":5748},{},[5749,5758],{"type":51,"tag":2706,"props":5750,"children":5751},{},[5752],{"type":51,"tag":110,"props":5753,"children":5755},{"className":5754},[],[5756],{"type":57,"value":5757},"tool",{"type":51,"tag":2706,"props":5759,"children":5760},{},[5761],{"type":57,"value":5762},"Tool-call test — right tool, right parameters?",{"type":51,"tag":2684,"props":5764,"children":5765},{},[5766,5775],{"type":51,"tag":2706,"props":5767,"children":5768},{},[5769],{"type":51,"tag":110,"props":5770,"children":5772},{"className":5771},[],[5773],{"type":57,"value":5774},"simulation",{"type":51,"tag":2706,"props":5776,"children":5777},{},[5778],{"type":57,"value":5779},"Multi-turn flow with a simulated user persona",{"type":51,"tag":102,"props":5781,"children":5783},{"className":1178,"code":5782,"language":1180,"meta":107,"style":107},"\u002F\u002F Tool-call test (snake_case throughout; chat_history role is \"user\" or \"agent\")\n{\n  \"name\": \"Books with correct doctor and date\",\n  \"type\": \"tool\",\n  \"chat_history\": [\n    {\"role\": \"user\", \"message\": \"Dr. Smith on March 5 at 2pm\", \"time_in_call_secs\": 10}\n  ],\n  \"tool_call_parameters\": {\n    \"referenced_tool\": {\"id\": \"show_booking_form\", \"type\": \"client\"},\n    \"parameters\": [\n      {\"path\": \"doctor_name\", \"eval\": {\"type\": \"llm\", \"description\": \"Should reference Dr. Smith\"}},\n      {\"path\": \"date\", \"eval\": {\"type\": \"regex\", \"pattern\": \"2025-03-05|March 5\"}}\n    ]\n  }\n}\n",[5784],{"type":51,"tag":110,"props":5785,"children":5786},{"__ignoreMap":107},[5787,5795,5802,5838,5873,5898,6000,6008,6032,6123,6146,6275,6403,6411,6418],{"type":51,"tag":114,"props":5788,"children":5789},{"class":116,"line":117},[5790],{"type":51,"tag":114,"props":5791,"children":5792},{"style":121},[5793],{"type":57,"value":5794},"\u002F\u002F Tool-call test (snake_case throughout; chat_history role is \"user\" or \"agent\")\n",{"type":51,"tag":114,"props":5796,"children":5797},{"class":116,"line":127},[5798],{"type":51,"tag":114,"props":5799,"children":5800},{"style":225},[5801],{"type":57,"value":678},{"type":51,"tag":114,"props":5803,"children":5804},{"class":116,"line":153},[5805,5809,5813,5817,5821,5825,5830,5834],{"type":51,"tag":114,"props":5806,"children":5807},{"style":225},[5808],{"type":57,"value":1199},{"type":51,"tag":114,"props":5810,"children":5811},{"style":576},[5812],{"type":57,"value":5183},{"type":51,"tag":114,"props":5814,"children":5815},{"style":225},[5816],{"type":57,"value":238},{"type":51,"tag":114,"props":5818,"children":5819},{"style":225},[5820],{"type":57,"value":692},{"type":51,"tag":114,"props":5822,"children":5823},{"style":225},[5824],{"type":57,"value":228},{"type":51,"tag":114,"props":5826,"children":5827},{"style":137},[5828],{"type":57,"value":5829},"Books with correct doctor and date",{"type":51,"tag":114,"props":5831,"children":5832},{"style":225},[5833],{"type":57,"value":238},{"type":51,"tag":114,"props":5835,"children":5836},{"style":225},[5837],{"type":57,"value":709},{"type":51,"tag":114,"props":5839,"children":5840},{"class":116,"line":171},[5841,5845,5849,5853,5857,5861,5865,5869],{"type":51,"tag":114,"props":5842,"children":5843},{"style":225},[5844],{"type":57,"value":1199},{"type":51,"tag":114,"props":5846,"children":5847},{"style":576},[5848],{"type":57,"value":4346},{"type":51,"tag":114,"props":5850,"children":5851},{"style":225},[5852],{"type":57,"value":238},{"type":51,"tag":114,"props":5854,"children":5855},{"style":225},[5856],{"type":57,"value":692},{"type":51,"tag":114,"props":5858,"children":5859},{"style":225},[5860],{"type":57,"value":228},{"type":51,"tag":114,"props":5862,"children":5863},{"style":137},[5864],{"type":57,"value":5757},{"type":51,"tag":114,"props":5866,"children":5867},{"style":225},[5868],{"type":57,"value":238},{"type":51,"tag":114,"props":5870,"children":5871},{"style":225},[5872],{"type":57,"value":709},{"type":51,"tag":114,"props":5874,"children":5875},{"class":116,"line":181},[5876,5880,5885,5889,5893],{"type":51,"tag":114,"props":5877,"children":5878},{"style":225},[5879],{"type":57,"value":1199},{"type":51,"tag":114,"props":5881,"children":5882},{"style":576},[5883],{"type":57,"value":5884},"chat_history",{"type":51,"tag":114,"props":5886,"children":5887},{"style":225},[5888],{"type":57,"value":238},{"type":51,"tag":114,"props":5890,"children":5891},{"style":225},[5892],{"type":57,"value":692},{"type":51,"tag":114,"props":5894,"children":5895},{"style":225},[5896],{"type":57,"value":5897}," [\n",{"type":51,"tag":114,"props":5899,"children":5900},{"class":116,"line":190},[5901,5906,5910,5915,5919,5923,5927,5932,5936,5940,5944,5949,5953,5957,5961,5966,5970,5974,5978,5983,5987,5991,5996],{"type":51,"tag":114,"props":5902,"children":5903},{"style":225},[5904],{"type":57,"value":5905},"    {",{"type":51,"tag":114,"props":5907,"children":5908},{"style":225},[5909],{"type":57,"value":238},{"type":51,"tag":114,"props":5911,"children":5912},{"style":131},[5913],{"type":57,"value":5914},"role",{"type":51,"tag":114,"props":5916,"children":5917},{"style":225},[5918],{"type":57,"value":238},{"type":51,"tag":114,"props":5920,"children":5921},{"style":225},[5922],{"type":57,"value":692},{"type":51,"tag":114,"props":5924,"children":5925},{"style":225},[5926],{"type":57,"value":228},{"type":51,"tag":114,"props":5928,"children":5929},{"style":137},[5930],{"type":57,"value":5931},"user",{"type":51,"tag":114,"props":5933,"children":5934},{"style":225},[5935],{"type":57,"value":238},{"type":51,"tag":114,"props":5937,"children":5938},{"style":225},[5939],{"type":57,"value":1569},{"type":51,"tag":114,"props":5941,"children":5942},{"style":225},[5943],{"type":57,"value":228},{"type":51,"tag":114,"props":5945,"children":5946},{"style":131},[5947],{"type":57,"value":5948},"message",{"type":51,"tag":114,"props":5950,"children":5951},{"style":225},[5952],{"type":57,"value":238},{"type":51,"tag":114,"props":5954,"children":5955},{"style":225},[5956],{"type":57,"value":692},{"type":51,"tag":114,"props":5958,"children":5959},{"style":225},[5960],{"type":57,"value":228},{"type":51,"tag":114,"props":5962,"children":5963},{"style":137},[5964],{"type":57,"value":5965},"Dr. Smith on March 5 at 2pm",{"type":51,"tag":114,"props":5967,"children":5968},{"style":225},[5969],{"type":57,"value":238},{"type":51,"tag":114,"props":5971,"children":5972},{"style":225},[5973],{"type":57,"value":1569},{"type":51,"tag":114,"props":5975,"children":5976},{"style":225},[5977],{"type":57,"value":228},{"type":51,"tag":114,"props":5979,"children":5980},{"style":131},[5981],{"type":57,"value":5982},"time_in_call_secs",{"type":51,"tag":114,"props":5984,"children":5985},{"style":225},[5986],{"type":57,"value":238},{"type":51,"tag":114,"props":5988,"children":5989},{"style":225},[5990],{"type":57,"value":692},{"type":51,"tag":114,"props":5992,"children":5993},{"style":889},[5994],{"type":57,"value":5995}," 10",{"type":51,"tag":114,"props":5997,"children":5998},{"style":225},[5999],{"type":57,"value":1264},{"type":51,"tag":114,"props":6001,"children":6002},{"class":116,"line":208},[6003],{"type":51,"tag":114,"props":6004,"children":6005},{"style":225},[6006],{"type":57,"value":6007},"  ],\n",{"type":51,"tag":114,"props":6009,"children":6010},{"class":116,"line":251},[6011,6015,6020,6024,6028],{"type":51,"tag":114,"props":6012,"children":6013},{"style":225},[6014],{"type":57,"value":1199},{"type":51,"tag":114,"props":6016,"children":6017},{"style":576},[6018],{"type":57,"value":6019},"tool_call_parameters",{"type":51,"tag":114,"props":6021,"children":6022},{"style":225},[6023],{"type":57,"value":238},{"type":51,"tag":114,"props":6025,"children":6026},{"style":225},[6027],{"type":57,"value":692},{"type":51,"tag":114,"props":6029,"children":6030},{"style":225},[6031],{"type":57,"value":726},{"type":51,"tag":114,"props":6033,"children":6034},{"class":116,"line":259},[6035,6039,6044,6048,6052,6056,6060,6065,6069,6073,6077,6081,6085,6089,6093,6097,6101,6105,6109,6114,6118],{"type":51,"tag":114,"props":6036,"children":6037},{"style":225},[6038],{"type":57,"value":1224},{"type":51,"tag":114,"props":6040,"children":6041},{"style":131},[6042],{"type":57,"value":6043},"referenced_tool",{"type":51,"tag":114,"props":6045,"children":6046},{"style":225},[6047],{"type":57,"value":238},{"type":51,"tag":114,"props":6049,"children":6050},{"style":225},[6051],{"type":57,"value":692},{"type":51,"tag":114,"props":6053,"children":6054},{"style":225},[6055],{"type":57,"value":536},{"type":51,"tag":114,"props":6057,"children":6058},{"style":225},[6059],{"type":57,"value":238},{"type":51,"tag":114,"props":6061,"children":6062},{"style":889},[6063],{"type":57,"value":6064},"id",{"type":51,"tag":114,"props":6066,"children":6067},{"style":225},[6068],{"type":57,"value":238},{"type":51,"tag":114,"props":6070,"children":6071},{"style":225},[6072],{"type":57,"value":692},{"type":51,"tag":114,"props":6074,"children":6075},{"style":225},[6076],{"type":57,"value":228},{"type":51,"tag":114,"props":6078,"children":6079},{"style":137},[6080],{"type":57,"value":4511},{"type":51,"tag":114,"props":6082,"children":6083},{"style":225},[6084],{"type":57,"value":238},{"type":51,"tag":114,"props":6086,"children":6087},{"style":225},[6088],{"type":57,"value":1569},{"type":51,"tag":114,"props":6090,"children":6091},{"style":225},[6092],{"type":57,"value":228},{"type":51,"tag":114,"props":6094,"children":6095},{"style":889},[6096],{"type":57,"value":4346},{"type":51,"tag":114,"props":6098,"children":6099},{"style":225},[6100],{"type":57,"value":238},{"type":51,"tag":114,"props":6102,"children":6103},{"style":225},[6104],{"type":57,"value":692},{"type":51,"tag":114,"props":6106,"children":6107},{"style":225},[6108],{"type":57,"value":228},{"type":51,"tag":114,"props":6110,"children":6111},{"style":137},[6112],{"type":57,"value":6113},"client",{"type":51,"tag":114,"props":6115,"children":6116},{"style":225},[6117],{"type":57,"value":238},{"type":51,"tag":114,"props":6119,"children":6120},{"style":225},[6121],{"type":57,"value":6122},"},\n",{"type":51,"tag":114,"props":6124,"children":6125},{"class":116,"line":268},[6126,6130,6134,6138,6142],{"type":51,"tag":114,"props":6127,"children":6128},{"style":225},[6129],{"type":57,"value":1224},{"type":51,"tag":114,"props":6131,"children":6132},{"style":131},[6133],{"type":57,"value":3864},{"type":51,"tag":114,"props":6135,"children":6136},{"style":225},[6137],{"type":57,"value":238},{"type":51,"tag":114,"props":6139,"children":6140},{"style":225},[6141],{"type":57,"value":692},{"type":51,"tag":114,"props":6143,"children":6144},{"style":225},[6145],{"type":57,"value":5897},{"type":51,"tag":114,"props":6147,"children":6148},{"class":116,"line":430},[6149,6154,6158,6163,6167,6171,6175,6180,6184,6188,6192,6197,6201,6205,6209,6213,6217,6221,6225,6229,6233,6237,6241,6245,6249,6253,6257,6261,6266,6270],{"type":51,"tag":114,"props":6150,"children":6151},{"style":225},[6152],{"type":57,"value":6153},"      {",{"type":51,"tag":114,"props":6155,"children":6156},{"style":225},[6157],{"type":57,"value":238},{"type":51,"tag":114,"props":6159,"children":6160},{"style":889},[6161],{"type":57,"value":6162},"path",{"type":51,"tag":114,"props":6164,"children":6165},{"style":225},[6166],{"type":57,"value":238},{"type":51,"tag":114,"props":6168,"children":6169},{"style":225},[6170],{"type":57,"value":692},{"type":51,"tag":114,"props":6172,"children":6173},{"style":225},[6174],{"type":57,"value":228},{"type":51,"tag":114,"props":6176,"children":6177},{"style":137},[6178],{"type":57,"value":6179},"doctor_name",{"type":51,"tag":114,"props":6181,"children":6182},{"style":225},[6183],{"type":57,"value":238},{"type":51,"tag":114,"props":6185,"children":6186},{"style":225},[6187],{"type":57,"value":1569},{"type":51,"tag":114,"props":6189,"children":6190},{"style":225},[6191],{"type":57,"value":228},{"type":51,"tag":114,"props":6193,"children":6194},{"style":889},[6195],{"type":57,"value":6196},"eval",{"type":51,"tag":114,"props":6198,"children":6199},{"style":225},[6200],{"type":57,"value":238},{"type":51,"tag":114,"props":6202,"children":6203},{"style":225},[6204],{"type":57,"value":692},{"type":51,"tag":114,"props":6206,"children":6207},{"style":225},[6208],{"type":57,"value":536},{"type":51,"tag":114,"props":6210,"children":6211},{"style":225},[6212],{"type":57,"value":238},{"type":51,"tag":114,"props":6214,"children":6215},{"style":684},[6216],{"type":57,"value":4346},{"type":51,"tag":114,"props":6218,"children":6219},{"style":225},[6220],{"type":57,"value":238},{"type":51,"tag":114,"props":6222,"children":6223},{"style":225},[6224],{"type":57,"value":692},{"type":51,"tag":114,"props":6226,"children":6227},{"style":225},[6228],{"type":57,"value":228},{"type":51,"tag":114,"props":6230,"children":6231},{"style":137},[6232],{"type":57,"value":4277},{"type":51,"tag":114,"props":6234,"children":6235},{"style":225},[6236],{"type":57,"value":238},{"type":51,"tag":114,"props":6238,"children":6239},{"style":225},[6240],{"type":57,"value":1569},{"type":51,"tag":114,"props":6242,"children":6243},{"style":225},[6244],{"type":57,"value":228},{"type":51,"tag":114,"props":6246,"children":6247},{"style":684},[6248],{"type":57,"value":3625},{"type":51,"tag":114,"props":6250,"children":6251},{"style":225},[6252],{"type":57,"value":238},{"type":51,"tag":114,"props":6254,"children":6255},{"style":225},[6256],{"type":57,"value":692},{"type":51,"tag":114,"props":6258,"children":6259},{"style":225},[6260],{"type":57,"value":228},{"type":51,"tag":114,"props":6262,"children":6263},{"style":137},[6264],{"type":57,"value":6265},"Should reference Dr. Smith",{"type":51,"tag":114,"props":6267,"children":6268},{"style":225},[6269],{"type":57,"value":238},{"type":51,"tag":114,"props":6271,"children":6272},{"style":225},[6273],{"type":57,"value":6274},"}},\n",{"type":51,"tag":114,"props":6276,"children":6277},{"class":116,"line":439},[6278,6282,6286,6290,6294,6298,6302,6307,6311,6315,6319,6323,6327,6331,6335,6339,6343,6347,6351,6355,6360,6364,6368,6372,6377,6381,6385,6389,6394,6398],{"type":51,"tag":114,"props":6279,"children":6280},{"style":225},[6281],{"type":57,"value":6153},{"type":51,"tag":114,"props":6283,"children":6284},{"style":225},[6285],{"type":57,"value":238},{"type":51,"tag":114,"props":6287,"children":6288},{"style":889},[6289],{"type":57,"value":6162},{"type":51,"tag":114,"props":6291,"children":6292},{"style":225},[6293],{"type":57,"value":238},{"type":51,"tag":114,"props":6295,"children":6296},{"style":225},[6297],{"type":57,"value":692},{"type":51,"tag":114,"props":6299,"children":6300},{"style":225},[6301],{"type":57,"value":228},{"type":51,"tag":114,"props":6303,"children":6304},{"style":137},[6305],{"type":57,"value":6306},"date",{"type":51,"tag":114,"props":6308,"children":6309},{"style":225},[6310],{"type":57,"value":238},{"type":51,"tag":114,"props":6312,"children":6313},{"style":225},[6314],{"type":57,"value":1569},{"type":51,"tag":114,"props":6316,"children":6317},{"style":225},[6318],{"type":57,"value":228},{"type":51,"tag":114,"props":6320,"children":6321},{"style":889},[6322],{"type":57,"value":6196},{"type":51,"tag":114,"props":6324,"children":6325},{"style":225},[6326],{"type":57,"value":238},{"type":51,"tag":114,"props":6328,"children":6329},{"style":225},[6330],{"type":57,"value":692},{"type":51,"tag":114,"props":6332,"children":6333},{"style":225},[6334],{"type":57,"value":536},{"type":51,"tag":114,"props":6336,"children":6337},{"style":225},[6338],{"type":57,"value":238},{"type":51,"tag":114,"props":6340,"children":6341},{"style":684},[6342],{"type":57,"value":4346},{"type":51,"tag":114,"props":6344,"children":6345},{"style":225},[6346],{"type":57,"value":238},{"type":51,"tag":114,"props":6348,"children":6349},{"style":225},[6350],{"type":57,"value":692},{"type":51,"tag":114,"props":6352,"children":6353},{"style":225},[6354],{"type":57,"value":228},{"type":51,"tag":114,"props":6356,"children":6357},{"style":137},[6358],{"type":57,"value":6359},"regex",{"type":51,"tag":114,"props":6361,"children":6362},{"style":225},[6363],{"type":57,"value":238},{"type":51,"tag":114,"props":6365,"children":6366},{"style":225},[6367],{"type":57,"value":1569},{"type":51,"tag":114,"props":6369,"children":6370},{"style":225},[6371],{"type":57,"value":228},{"type":51,"tag":114,"props":6373,"children":6374},{"style":684},[6375],{"type":57,"value":6376},"pattern",{"type":51,"tag":114,"props":6378,"children":6379},{"style":225},[6380],{"type":57,"value":238},{"type":51,"tag":114,"props":6382,"children":6383},{"style":225},[6384],{"type":57,"value":692},{"type":51,"tag":114,"props":6386,"children":6387},{"style":225},[6388],{"type":57,"value":228},{"type":51,"tag":114,"props":6390,"children":6391},{"style":137},[6392],{"type":57,"value":6393},"2025-03-05|March 5",{"type":51,"tag":114,"props":6395,"children":6396},{"style":225},[6397],{"type":57,"value":238},{"type":51,"tag":114,"props":6399,"children":6400},{"style":225},[6401],{"type":57,"value":6402},"}}\n",{"type":51,"tag":114,"props":6404,"children":6405},{"class":116,"line":448},[6406],{"type":51,"tag":114,"props":6407,"children":6408},{"style":225},[6409],{"type":57,"value":6410},"    ]\n",{"type":51,"tag":114,"props":6412,"children":6413},{"class":116,"line":457},[6414],{"type":51,"tag":114,"props":6415,"children":6416},{"style":225},[6417],{"type":57,"value":959},{"type":51,"tag":114,"props":6419,"children":6420},{"class":116,"line":466},[6421],{"type":51,"tag":114,"props":6422,"children":6423},{"style":225},[6424],{"type":57,"value":1264},{"type":51,"tag":60,"props":6426,"children":6427},{},[6428,6430,6436,6437,6442,6443,6448,6450,6456,6457,6463,6464,6470],{"type":57,"value":6429},"Eval strategies: ",{"type":51,"tag":110,"props":6431,"children":6433},{"className":6432},[],[6434],{"type":57,"value":6435},"exact",{"type":57,"value":300},{"type":51,"tag":110,"props":6438,"children":6440},{"className":6439},[],[6441],{"type":57,"value":6359},{"type":57,"value":300},{"type":51,"tag":110,"props":6444,"children":6446},{"className":6445},[],[6447],{"type":57,"value":4277},{"type":57,"value":6449},". Prompt evaluation criteria can use binary scoring or\nnumeric scoring with ",{"type":51,"tag":110,"props":6451,"children":6453},{"className":6452},[],[6454],{"type":57,"value":6455},"scoring_mode: \"numeric_uniform\"",{"type":57,"value":300},{"type":51,"tag":110,"props":6458,"children":6460},{"className":6459},[],[6461],{"type":57,"value":6462},"max_score",{"type":57,"value":5546},{"type":51,"tag":110,"props":6465,"children":6467},{"className":6466},[],[6468],{"type":57,"value":6469},"score_instructions",{"type":57,"value":6471},";\nnumeric scores are normalized into the aggregate conversation success percentage. Attach via PATCH:",{"type":51,"tag":102,"props":6473,"children":6475},{"className":104,"code":6474,"language":106,"meta":107,"style":107},"curl -s -X PATCH \"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fconvai\u002Fagents\u002F{agent_id}\" \\\n  -H \"xi-api-key: $ELEVENLABS_API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"platform_settings\": {\"testing\": {\"attached_tests\": [{\"test_id\": \"test_xxxx\"}]}}}'\n",[6476],{"type":51,"tag":110,"props":6477,"children":6478},{"__ignoreMap":107},[6479,6517,6560],{"type":51,"tag":114,"props":6480,"children":6481},{"class":116,"line":117},[6482,6486,6491,6495,6500,6504,6509,6513],{"type":51,"tag":114,"props":6483,"children":6484},{"style":131},[6485],{"type":57,"value":979},{"type":51,"tag":114,"props":6487,"children":6488},{"style":137},[6489],{"type":57,"value":6490}," -s",{"type":51,"tag":114,"props":6492,"children":6493},{"style":137},[6494],{"type":57,"value":1001},{"type":51,"tag":114,"props":6496,"children":6497},{"style":137},[6498],{"type":57,"value":6499}," PATCH",{"type":51,"tag":114,"props":6501,"children":6502},{"style":225},[6503],{"type":57,"value":228},{"type":51,"tag":114,"props":6505,"children":6506},{"style":137},[6507],{"type":57,"value":6508},"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fconvai\u002Fagents\u002F{agent_id}",{"type":51,"tag":114,"props":6510,"children":6511},{"style":225},[6512],{"type":57,"value":238},{"type":51,"tag":114,"props":6514,"children":6515},{"style":539},[6516],{"type":57,"value":1024},{"type":51,"tag":114,"props":6518,"children":6519},{"class":116,"line":127},[6520,6524,6528,6532,6536,6540,6544,6548,6552,6556],{"type":51,"tag":114,"props":6521,"children":6522},{"style":137},[6523],{"type":57,"value":1032},{"type":51,"tag":114,"props":6525,"children":6526},{"style":225},[6527],{"type":57,"value":228},{"type":51,"tag":114,"props":6529,"children":6530},{"style":137},[6531],{"type":57,"value":1041},{"type":51,"tag":114,"props":6533,"children":6534},{"style":539},[6535],{"type":57,"value":1046},{"type":51,"tag":114,"props":6537,"children":6538},{"style":225},[6539],{"type":57,"value":238},{"type":51,"tag":114,"props":6541,"children":6542},{"style":137},[6543],{"type":57,"value":1055},{"type":51,"tag":114,"props":6545,"children":6546},{"style":225},[6547],{"type":57,"value":228},{"type":51,"tag":114,"props":6549,"children":6550},{"style":137},[6551],{"type":57,"value":1064},{"type":51,"tag":114,"props":6553,"children":6554},{"style":225},[6555],{"type":57,"value":238},{"type":51,"tag":114,"props":6557,"children":6558},{"style":539},[6559],{"type":57,"value":1024},{"type":51,"tag":114,"props":6561,"children":6562},{"class":116,"line":153},[6563,6567,6571,6576],{"type":51,"tag":114,"props":6564,"children":6565},{"style":137},[6566],{"type":57,"value":1080},{"type":51,"tag":114,"props":6568,"children":6569},{"style":225},[6570],{"type":57,"value":1085},{"type":51,"tag":114,"props":6572,"children":6573},{"style":137},[6574],{"type":57,"value":6575},"{\"platform_settings\": {\"testing\": {\"attached_tests\": [{\"test_id\": \"test_xxxx\"}]}}}",{"type":51,"tag":114,"props":6577,"children":6578},{"style":225},[6579],{"type":57,"value":1095},{"type":51,"tag":60,"props":6581,"children":6582},{},[6583,6585,6591,6593,6599,6601,6607,6609,6614,6616,6622,6624,6630,6632,6638,6640,6646],{"type":57,"value":6584},"Run selected tests with ",{"type":51,"tag":110,"props":6586,"children":6588},{"className":6587},[],[6589],{"type":57,"value":6590},"POST \u002Fv1\u002Fconvai\u002Fagents\u002F{agent_id}\u002Frun-tests",{"type":57,"value":6592},". The request\nbody requires ",{"type":51,"tag":110,"props":6594,"children":6596},{"className":6595},[],[6597],{"type":57,"value":6598},"tests",{"type":57,"value":6600}," and accepts ",{"type":51,"tag":110,"props":6602,"children":6604},{"className":6603},[],[6605],{"type":57,"value":6606},"repeat_count",{"type":57,"value":6608}," from ",{"type":51,"tag":110,"props":6610,"children":6612},{"className":6611},[],[6613],{"type":57,"value":4859},{"type":57,"value":6615}," to ",{"type":51,"tag":110,"props":6617,"children":6619},{"className":6618},[],[6620],{"type":57,"value":6621},"50",{"type":57,"value":6623}," for repeated runs.\nSimulation tests can define up to 30 ",{"type":51,"tag":110,"props":6625,"children":6627},{"className":6626},[],[6628],{"type":57,"value":6629},"success_conditions",{"type":57,"value":6631}," prompts; all criteria are\nevaluated and merged into the final result.\nFor completed conversations, rerun one evaluation criterion with ",{"type":51,"tag":110,"props":6633,"children":6635},{"className":6634},[],[6636],{"type":57,"value":6637},"POST \u002Fv1\u002Fconvai\u002Fconversations\u002F{conversation_id}\u002Fanalysis\u002Fevaluations\u002Frun",{"type":57,"value":6639}," and a request body containing ",{"type":51,"tag":110,"props":6641,"children":6643},{"className":6642},[],[6644],{"type":57,"value":6645},"evaluation_id",{"type":57,"value":646},{"type":51,"tag":90,"props":6648,"children":6650},{"id":6649},"widget-embedding",[6651],{"type":57,"value":6652},"Widget Embedding",{"type":51,"tag":102,"props":6654,"children":6658},{"className":6655,"code":6656,"language":6657,"meta":107,"style":107},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Celevenlabs-convai agent-id=\"your-agent-id\">\u003C\u002Felevenlabs-convai>\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@elevenlabs\u002Fconvai-widget-embed\" async type=\"text\u002Fjavascript\">\u003C\u002Fscript>\n","html",[6659],{"type":51,"tag":110,"props":6660,"children":6661},{"__ignoreMap":107},[6662,6709],{"type":51,"tag":114,"props":6663,"children":6664},{"class":116,"line":117},[6665,6670,6675,6680,6684,6688,6692,6696,6701,6705],{"type":51,"tag":114,"props":6666,"children":6667},{"style":225},[6668],{"type":57,"value":6669},"\u003C",{"type":51,"tag":114,"props":6671,"children":6672},{"style":684},[6673],{"type":57,"value":6674},"elevenlabs-convai",{"type":51,"tag":114,"props":6676,"children":6677},{"style":576},[6678],{"type":57,"value":6679}," agent-id",{"type":51,"tag":114,"props":6681,"children":6682},{"style":225},[6683],{"type":57,"value":589},{"type":51,"tag":114,"props":6685,"children":6686},{"style":225},[6687],{"type":57,"value":238},{"type":51,"tag":114,"props":6689,"children":6690},{"style":137},[6691],{"type":57,"value":1472},{"type":51,"tag":114,"props":6693,"children":6694},{"style":225},[6695],{"type":57,"value":238},{"type":51,"tag":114,"props":6697,"children":6698},{"style":225},[6699],{"type":57,"value":6700},">\u003C\u002F",{"type":51,"tag":114,"props":6702,"children":6703},{"style":684},[6704],{"type":57,"value":6674},{"type":51,"tag":114,"props":6706,"children":6707},{"style":225},[6708],{"type":57,"value":2398},{"type":51,"tag":114,"props":6710,"children":6711},{"class":116,"line":127},[6712,6716,6721,6726,6730,6734,6739,6743,6747,6752,6756,6760,6765,6769,6773,6777],{"type":51,"tag":114,"props":6713,"children":6714},{"style":225},[6715],{"type":57,"value":6669},{"type":51,"tag":114,"props":6717,"children":6718},{"style":684},[6719],{"type":57,"value":6720},"script",{"type":51,"tag":114,"props":6722,"children":6723},{"style":576},[6724],{"type":57,"value":6725}," src",{"type":51,"tag":114,"props":6727,"children":6728},{"style":225},[6729],{"type":57,"value":589},{"type":51,"tag":114,"props":6731,"children":6732},{"style":225},[6733],{"type":57,"value":238},{"type":51,"tag":114,"props":6735,"children":6736},{"style":137},[6737],{"type":57,"value":6738},"https:\u002F\u002Funpkg.com\u002F@elevenlabs\u002Fconvai-widget-embed",{"type":51,"tag":114,"props":6740,"children":6741},{"style":225},[6742],{"type":57,"value":238},{"type":51,"tag":114,"props":6744,"children":6745},{"style":576},[6746],{"type":57,"value":3433},{"type":51,"tag":114,"props":6748,"children":6749},{"style":576},[6750],{"type":57,"value":6751}," type",{"type":51,"tag":114,"props":6753,"children":6754},{"style":225},[6755],{"type":57,"value":589},{"type":51,"tag":114,"props":6757,"children":6758},{"style":225},[6759],{"type":57,"value":238},{"type":51,"tag":114,"props":6761,"children":6762},{"style":137},[6763],{"type":57,"value":6764},"text\u002Fjavascript",{"type":51,"tag":114,"props":6766,"children":6767},{"style":225},[6768],{"type":57,"value":238},{"type":51,"tag":114,"props":6770,"children":6771},{"style":225},[6772],{"type":57,"value":6700},{"type":51,"tag":114,"props":6774,"children":6775},{"style":684},[6776],{"type":57,"value":6720},{"type":51,"tag":114,"props":6778,"children":6779},{"style":225},[6780],{"type":57,"value":2398},{"type":51,"tag":60,"props":6782,"children":6783},{},[6784,6786,6792,6793,6799,6800,6806,6807,6813],{"type":57,"value":6785},"Customize with attributes: ",{"type":51,"tag":110,"props":6787,"children":6789},{"className":6788},[],[6790],{"type":57,"value":6791},"avatar-image-url",{"type":57,"value":300},{"type":51,"tag":110,"props":6794,"children":6796},{"className":6795},[],[6797],{"type":57,"value":6798},"action-text",{"type":57,"value":300},{"type":51,"tag":110,"props":6801,"children":6803},{"className":6802},[],[6804],{"type":57,"value":6805},"start-call-text",{"type":57,"value":300},{"type":51,"tag":110,"props":6808,"children":6810},{"className":6809},[],[6811],{"type":57,"value":6812},"end-call-text",{"type":57,"value":646},{"type":51,"tag":60,"props":6815,"children":6816},{},[6817,6818,6824],{"type":57,"value":3143},{"type":51,"tag":81,"props":6819,"children":6821},{"href":6820},"references\u002Fwidget-embedding.md",[6822],{"type":57,"value":6823},"Widget Embedding Reference",{"type":57,"value":3151},{"type":51,"tag":90,"props":6826,"children":6828},{"id":6827},"outbound-calls",[6829],{"type":57,"value":6830},"Outbound Calls",{"type":51,"tag":60,"props":6832,"children":6833},{},[6834],{"type":57,"value":6835},"Make outbound phone calls using your agent via Twilio or Exotel integration:",{"type":51,"tag":60,"props":6837,"children":6838},{},[6839],{"type":57,"value":6840},"The examples below use Twilio. See the reference for Exotel REST usage.",{"type":51,"tag":336,"props":6842,"children":6844},{"id":6843},"python-1",[6845],{"type":57,"value":341},{"type":51,"tag":102,"props":6847,"children":6849},{"className":344,"code":6848,"language":338,"meta":107,"style":107},"response = client.conversational_ai.twilio.outbound_call(\n    agent_id=\"your-agent-id\",\n    agent_phone_number_id=\"your-phone-number-id\",\n    to_number=\"+1234567890\",\n    call_recording_enabled=True\n)\nprint(f\"Call initiated: {response.conversation_id}\")\n",[6850],{"type":51,"tag":110,"props":6851,"children":6852},{"__ignoreMap":107},[6853,6861,6868,6876,6884,6892,6899],{"type":51,"tag":114,"props":6854,"children":6855},{"class":116,"line":117},[6856],{"type":51,"tag":114,"props":6857,"children":6858},{},[6859],{"type":57,"value":6860},"response = client.conversational_ai.twilio.outbound_call(\n",{"type":51,"tag":114,"props":6862,"children":6863},{"class":116,"line":127},[6864],{"type":51,"tag":114,"props":6865,"children":6866},{},[6867],{"type":57,"value":1333},{"type":51,"tag":114,"props":6869,"children":6870},{"class":116,"line":153},[6871],{"type":51,"tag":114,"props":6872,"children":6873},{},[6874],{"type":57,"value":6875},"    agent_phone_number_id=\"your-phone-number-id\",\n",{"type":51,"tag":114,"props":6877,"children":6878},{"class":116,"line":171},[6879],{"type":51,"tag":114,"props":6880,"children":6881},{},[6882],{"type":57,"value":6883},"    to_number=\"+1234567890\",\n",{"type":51,"tag":114,"props":6885,"children":6886},{"class":116,"line":181},[6887],{"type":51,"tag":114,"props":6888,"children":6889},{},[6890],{"type":57,"value":6891},"    call_recording_enabled=True\n",{"type":51,"tag":114,"props":6893,"children":6894},{"class":116,"line":190},[6895],{"type":51,"tag":114,"props":6896,"children":6897},{},[6898],{"type":57,"value":508},{"type":51,"tag":114,"props":6900,"children":6901},{"class":116,"line":208},[6902],{"type":51,"tag":114,"props":6903,"children":6904},{},[6905],{"type":57,"value":6906},"print(f\"Call initiated: {response.conversation_id}\")\n",{"type":51,"tag":336,"props":6908,"children":6910},{"id":6909},"javascript-1",[6911],{"type":57,"value":514},{"type":51,"tag":102,"props":6913,"children":6915},{"className":517,"code":6914,"language":511,"meta":107,"style":107},"const response = await client.conversationalAi.twilio.outboundCall({\n  agentId: \"your-agent-id\",\n  agentPhoneNumberId: \"your-phone-number-id\",\n  toNumber: \"+1234567890\",\n  callRecordingEnabled: true,\n});\n",[6916],{"type":51,"tag":110,"props":6917,"children":6918},{"__ignoreMap":107},[6919,6977,7004,7033,7062,7082],{"type":51,"tag":114,"props":6920,"children":6921},{"class":116,"line":117},[6922,6926,6931,6935,6939,6943,6947,6951,6955,6960,6964,6969,6973],{"type":51,"tag":114,"props":6923,"children":6924},{"style":576},[6925],{"type":57,"value":579},{"type":51,"tag":114,"props":6927,"children":6928},{"style":539},[6929],{"type":57,"value":6930}," response ",{"type":51,"tag":114,"props":6932,"children":6933},{"style":225},[6934],{"type":57,"value":589},{"type":51,"tag":114,"props":6936,"children":6937},{"style":528},[6938],{"type":57,"value":636},{"type":51,"tag":114,"props":6940,"children":6941},{"style":539},[6942],{"type":57,"value":641},{"type":51,"tag":114,"props":6944,"children":6945},{"style":225},[6946],{"type":57,"value":646},{"type":51,"tag":114,"props":6948,"children":6949},{"style":539},[6950],{"type":57,"value":651},{"type":51,"tag":114,"props":6952,"children":6953},{"style":225},[6954],{"type":57,"value":646},{"type":51,"tag":114,"props":6956,"children":6957},{"style":539},[6958],{"type":57,"value":6959},"twilio",{"type":51,"tag":114,"props":6961,"children":6962},{"style":225},[6963],{"type":57,"value":646},{"type":51,"tag":114,"props":6965,"children":6966},{"style":597},[6967],{"type":57,"value":6968},"outboundCall",{"type":51,"tag":114,"props":6970,"children":6971},{"style":539},[6972],{"type":57,"value":673},{"type":51,"tag":114,"props":6974,"children":6975},{"style":225},[6976],{"type":57,"value":678},{"type":51,"tag":114,"props":6978,"children":6979},{"class":116,"line":127},[6980,6984,6988,6992,6996,7000],{"type":51,"tag":114,"props":6981,"children":6982},{"style":684},[6983],{"type":57,"value":1459},{"type":51,"tag":114,"props":6985,"children":6986},{"style":225},[6987],{"type":57,"value":692},{"type":51,"tag":114,"props":6989,"children":6990},{"style":225},[6991],{"type":57,"value":228},{"type":51,"tag":114,"props":6993,"children":6994},{"style":137},[6995],{"type":57,"value":1472},{"type":51,"tag":114,"props":6997,"children":6998},{"style":225},[6999],{"type":57,"value":238},{"type":51,"tag":114,"props":7001,"children":7002},{"style":225},[7003],{"type":57,"value":709},{"type":51,"tag":114,"props":7005,"children":7006},{"class":116,"line":153},[7007,7012,7016,7020,7025,7029],{"type":51,"tag":114,"props":7008,"children":7009},{"style":684},[7010],{"type":57,"value":7011},"  agentPhoneNumberId",{"type":51,"tag":114,"props":7013,"children":7014},{"style":225},[7015],{"type":57,"value":692},{"type":51,"tag":114,"props":7017,"children":7018},{"style":225},[7019],{"type":57,"value":228},{"type":51,"tag":114,"props":7021,"children":7022},{"style":137},[7023],{"type":57,"value":7024},"your-phone-number-id",{"type":51,"tag":114,"props":7026,"children":7027},{"style":225},[7028],{"type":57,"value":238},{"type":51,"tag":114,"props":7030,"children":7031},{"style":225},[7032],{"type":57,"value":709},{"type":51,"tag":114,"props":7034,"children":7035},{"class":116,"line":171},[7036,7041,7045,7049,7054,7058],{"type":51,"tag":114,"props":7037,"children":7038},{"style":684},[7039],{"type":57,"value":7040},"  toNumber",{"type":51,"tag":114,"props":7042,"children":7043},{"style":225},[7044],{"type":57,"value":692},{"type":51,"tag":114,"props":7046,"children":7047},{"style":225},[7048],{"type":57,"value":228},{"type":51,"tag":114,"props":7050,"children":7051},{"style":137},[7052],{"type":57,"value":7053},"+1234567890",{"type":51,"tag":114,"props":7055,"children":7056},{"style":225},[7057],{"type":57,"value":238},{"type":51,"tag":114,"props":7059,"children":7060},{"style":225},[7061],{"type":57,"value":709},{"type":51,"tag":114,"props":7063,"children":7064},{"class":116,"line":181},[7065,7070,7074,7078],{"type":51,"tag":114,"props":7066,"children":7067},{"style":684},[7068],{"type":57,"value":7069},"  callRecordingEnabled",{"type":51,"tag":114,"props":7071,"children":7072},{"style":225},[7073],{"type":57,"value":692},{"type":51,"tag":114,"props":7075,"children":7076},{"style":3558},[7077],{"type":57,"value":3561},{"type":51,"tag":114,"props":7079,"children":7080},{"style":225},[7081],{"type":57,"value":709},{"type":51,"tag":114,"props":7083,"children":7084},{"class":116,"line":190},[7085,7089,7093],{"type":51,"tag":114,"props":7086,"children":7087},{"style":225},[7088],{"type":57,"value":967},{"type":51,"tag":114,"props":7090,"children":7091},{"style":539},[7092],{"type":57,"value":972},{"type":51,"tag":114,"props":7094,"children":7095},{"style":225},[7096],{"type":57,"value":570},{"type":51,"tag":336,"props":7098,"children":7100},{"id":7099},"curl-1",[7101],{"type":57,"value":982},{"type":51,"tag":102,"props":7103,"children":7105},{"className":104,"code":7104,"language":106,"meta":107,"style":107},"curl -X POST \"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fconvai\u002Ftwilio\u002Foutbound-call\" \\\n  -H \"xi-api-key: $ELEVENLABS_API_KEY\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"agent_id\": \"your-agent-id\", \"agent_phone_number_id\": \"your-phone-number-id\", \"to_number\": \"+1234567890\", \"call_recording_enabled\": true}'\n",[7106],{"type":51,"tag":110,"props":7107,"children":7108},{"__ignoreMap":107},[7109,7141,7184],{"type":51,"tag":114,"props":7110,"children":7111},{"class":116,"line":117},[7112,7116,7120,7124,7128,7133,7137],{"type":51,"tag":114,"props":7113,"children":7114},{"style":131},[7115],{"type":57,"value":979},{"type":51,"tag":114,"props":7117,"children":7118},{"style":137},[7119],{"type":57,"value":1001},{"type":51,"tag":114,"props":7121,"children":7122},{"style":137},[7123],{"type":57,"value":1006},{"type":51,"tag":114,"props":7125,"children":7126},{"style":225},[7127],{"type":57,"value":228},{"type":51,"tag":114,"props":7129,"children":7130},{"style":137},[7131],{"type":57,"value":7132},"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fconvai\u002Ftwilio\u002Foutbound-call",{"type":51,"tag":114,"props":7134,"children":7135},{"style":225},[7136],{"type":57,"value":238},{"type":51,"tag":114,"props":7138,"children":7139},{"style":539},[7140],{"type":57,"value":1024},{"type":51,"tag":114,"props":7142,"children":7143},{"class":116,"line":127},[7144,7148,7152,7156,7160,7164,7168,7172,7176,7180],{"type":51,"tag":114,"props":7145,"children":7146},{"style":137},[7147],{"type":57,"value":1032},{"type":51,"tag":114,"props":7149,"children":7150},{"style":225},[7151],{"type":57,"value":228},{"type":51,"tag":114,"props":7153,"children":7154},{"style":137},[7155],{"type":57,"value":1041},{"type":51,"tag":114,"props":7157,"children":7158},{"style":539},[7159],{"type":57,"value":1046},{"type":51,"tag":114,"props":7161,"children":7162},{"style":225},[7163],{"type":57,"value":238},{"type":51,"tag":114,"props":7165,"children":7166},{"style":137},[7167],{"type":57,"value":1055},{"type":51,"tag":114,"props":7169,"children":7170},{"style":225},[7171],{"type":57,"value":228},{"type":51,"tag":114,"props":7173,"children":7174},{"style":137},[7175],{"type":57,"value":1064},{"type":51,"tag":114,"props":7177,"children":7178},{"style":225},[7179],{"type":57,"value":238},{"type":51,"tag":114,"props":7181,"children":7182},{"style":539},[7183],{"type":57,"value":1024},{"type":51,"tag":114,"props":7185,"children":7186},{"class":116,"line":153},[7187,7191,7195,7200],{"type":51,"tag":114,"props":7188,"children":7189},{"style":137},[7190],{"type":57,"value":1080},{"type":51,"tag":114,"props":7192,"children":7193},{"style":225},[7194],{"type":57,"value":1085},{"type":51,"tag":114,"props":7196,"children":7197},{"style":137},[7198],{"type":57,"value":7199},"{\"agent_id\": \"your-agent-id\", \"agent_phone_number_id\": \"your-phone-number-id\", \"to_number\": \"+1234567890\", \"call_recording_enabled\": true}",{"type":51,"tag":114,"props":7201,"children":7202},{"style":225},[7203],{"type":57,"value":1095},{"type":51,"tag":60,"props":7205,"children":7206},{},[7207,7208,7214],{"type":57,"value":3143},{"type":51,"tag":81,"props":7209,"children":7211},{"href":7210},"references\u002Foutbound-calls.md",[7212],{"type":57,"value":7213},"Outbound Calls Reference",{"type":57,"value":7215}," for provider-specific endpoints, configuration overrides, and dynamic variables.",{"type":51,"tag":90,"props":7217,"children":7219},{"id":7218},"managing-agents",[7220],{"type":57,"value":7221},"Managing Agents",{"type":51,"tag":336,"props":7223,"children":7225},{"id":7224},"using-cli-recommended",[7226],{"type":57,"value":7227},"Using CLI (Recommended)",{"type":51,"tag":102,"props":7229,"children":7231},{"className":104,"code":7230,"language":106,"meta":107,"style":107},"# List agents and check status\nelevenlabs agents list\nelevenlabs agents status\n\n# Import agents from platform to local config\nelevenlabs agents pull                      # Import all agents\nelevenlabs agents pull --agent \u003Cagent-id>   # Import specific agent\n\n# Push local changes to platform\nelevenlabs agents push              # Upload configurations\nelevenlabs agents push --dry-run    # Preview changes first\n\n# Add tools\nelevenlabs tools add-webhook \"Weather API\"\nelevenlabs tools add-client \"UI Tool\"\n",[7232],{"type":51,"tag":110,"props":7233,"children":7234},{"__ignoreMap":107},[7235,7243,7259,7275,7282,7290,7311,7354,7361,7369,7390,7415,7422,7430,7460],{"type":51,"tag":114,"props":7236,"children":7237},{"class":116,"line":117},[7238],{"type":51,"tag":114,"props":7239,"children":7240},{"style":121},[7241],{"type":57,"value":7242},"# List agents and check status\n",{"type":51,"tag":114,"props":7244,"children":7245},{"class":116,"line":127},[7246,7250,7254],{"type":51,"tag":114,"props":7247,"children":7248},{"style":131},[7249],{"type":57,"value":8},{"type":51,"tag":114,"props":7251,"children":7252},{"style":137},[7253],{"type":57,"value":200},{"type":51,"tag":114,"props":7255,"children":7256},{"style":137},[7257],{"type":57,"value":7258}," list\n",{"type":51,"tag":114,"props":7260,"children":7261},{"class":116,"line":153},[7262,7266,7270],{"type":51,"tag":114,"props":7263,"children":7264},{"style":131},[7265],{"type":57,"value":8},{"type":51,"tag":114,"props":7267,"children":7268},{"style":137},[7269],{"type":57,"value":200},{"type":51,"tag":114,"props":7271,"children":7272},{"style":137},[7273],{"type":57,"value":7274}," status\n",{"type":51,"tag":114,"props":7276,"children":7277},{"class":116,"line":171},[7278],{"type":51,"tag":114,"props":7279,"children":7280},{"emptyLinePlaceholder":175},[7281],{"type":57,"value":178},{"type":51,"tag":114,"props":7283,"children":7284},{"class":116,"line":181},[7285],{"type":51,"tag":114,"props":7286,"children":7287},{"style":121},[7288],{"type":57,"value":7289},"# Import agents from platform to local config\n",{"type":51,"tag":114,"props":7291,"children":7292},{"class":116,"line":190},[7293,7297,7301,7306],{"type":51,"tag":114,"props":7294,"children":7295},{"style":131},[7296],{"type":57,"value":8},{"type":51,"tag":114,"props":7298,"children":7299},{"style":137},[7300],{"type":57,"value":200},{"type":51,"tag":114,"props":7302,"children":7303},{"style":137},[7304],{"type":57,"value":7305}," pull",{"type":51,"tag":114,"props":7307,"children":7308},{"style":121},[7309],{"type":57,"value":7310},"                      # Import all agents\n",{"type":51,"tag":114,"props":7312,"children":7313},{"class":116,"line":208},[7314,7318,7322,7326,7331,7335,7340,7345,7349],{"type":51,"tag":114,"props":7315,"children":7316},{"style":131},[7317],{"type":57,"value":8},{"type":51,"tag":114,"props":7319,"children":7320},{"style":137},[7321],{"type":57,"value":200},{"type":51,"tag":114,"props":7323,"children":7324},{"style":137},[7325],{"type":57,"value":7305},{"type":51,"tag":114,"props":7327,"children":7328},{"style":137},[7329],{"type":57,"value":7330}," --agent",{"type":51,"tag":114,"props":7332,"children":7333},{"style":225},[7334],{"type":57,"value":2245},{"type":51,"tag":114,"props":7336,"children":7337},{"style":137},[7338],{"type":57,"value":7339},"agent-i",{"type":51,"tag":114,"props":7341,"children":7342},{"style":539},[7343],{"type":57,"value":7344},"d",{"type":51,"tag":114,"props":7346,"children":7347},{"style":225},[7348],{"type":57,"value":2278},{"type":51,"tag":114,"props":7350,"children":7351},{"style":121},[7352],{"type":57,"value":7353},"   # Import specific agent\n",{"type":51,"tag":114,"props":7355,"children":7356},{"class":116,"line":251},[7357],{"type":51,"tag":114,"props":7358,"children":7359},{"emptyLinePlaceholder":175},[7360],{"type":57,"value":178},{"type":51,"tag":114,"props":7362,"children":7363},{"class":116,"line":259},[7364],{"type":51,"tag":114,"props":7365,"children":7366},{"style":121},[7367],{"type":57,"value":7368},"# Push local changes to platform\n",{"type":51,"tag":114,"props":7370,"children":7371},{"class":116,"line":268},[7372,7376,7380,7385],{"type":51,"tag":114,"props":7373,"children":7374},{"style":131},[7375],{"type":57,"value":8},{"type":51,"tag":114,"props":7377,"children":7378},{"style":137},[7379],{"type":57,"value":200},{"type":51,"tag":114,"props":7381,"children":7382},{"style":137},[7383],{"type":57,"value":7384}," push",{"type":51,"tag":114,"props":7386,"children":7387},{"style":121},[7388],{"type":57,"value":7389},"              # Upload configurations\n",{"type":51,"tag":114,"props":7391,"children":7392},{"class":116,"line":430},[7393,7397,7401,7405,7410],{"type":51,"tag":114,"props":7394,"children":7395},{"style":131},[7396],{"type":57,"value":8},{"type":51,"tag":114,"props":7398,"children":7399},{"style":137},[7400],{"type":57,"value":200},{"type":51,"tag":114,"props":7402,"children":7403},{"style":137},[7404],{"type":57,"value":7384},{"type":51,"tag":114,"props":7406,"children":7407},{"style":137},[7408],{"type":57,"value":7409}," --dry-run",{"type":51,"tag":114,"props":7411,"children":7412},{"style":121},[7413],{"type":57,"value":7414},"    # Preview changes first\n",{"type":51,"tag":114,"props":7416,"children":7417},{"class":116,"line":439},[7418],{"type":51,"tag":114,"props":7419,"children":7420},{"emptyLinePlaceholder":175},[7421],{"type":57,"value":178},{"type":51,"tag":114,"props":7423,"children":7424},{"class":116,"line":448},[7425],{"type":51,"tag":114,"props":7426,"children":7427},{"style":121},[7428],{"type":57,"value":7429},"# Add tools\n",{"type":51,"tag":114,"props":7431,"children":7432},{"class":116,"line":457},[7433,7437,7442,7447,7451,7456],{"type":51,"tag":114,"props":7434,"children":7435},{"style":131},[7436],{"type":57,"value":8},{"type":51,"tag":114,"props":7438,"children":7439},{"style":137},[7440],{"type":57,"value":7441}," tools",{"type":51,"tag":114,"props":7443,"children":7444},{"style":137},[7445],{"type":57,"value":7446}," add-webhook",{"type":51,"tag":114,"props":7448,"children":7449},{"style":225},[7450],{"type":57,"value":228},{"type":51,"tag":114,"props":7452,"children":7453},{"style":137},[7454],{"type":57,"value":7455},"Weather API",{"type":51,"tag":114,"props":7457,"children":7458},{"style":225},[7459],{"type":57,"value":1249},{"type":51,"tag":114,"props":7461,"children":7462},{"class":116,"line":466},[7463,7467,7471,7476,7480,7485],{"type":51,"tag":114,"props":7464,"children":7465},{"style":131},[7466],{"type":57,"value":8},{"type":51,"tag":114,"props":7468,"children":7469},{"style":137},[7470],{"type":57,"value":7441},{"type":51,"tag":114,"props":7472,"children":7473},{"style":137},[7474],{"type":57,"value":7475}," add-client",{"type":51,"tag":114,"props":7477,"children":7478},{"style":225},[7479],{"type":57,"value":228},{"type":51,"tag":114,"props":7481,"children":7482},{"style":137},[7483],{"type":57,"value":7484},"UI Tool",{"type":51,"tag":114,"props":7486,"children":7487},{"style":225},[7488],{"type":57,"value":1249},{"type":51,"tag":336,"props":7490,"children":7492},{"id":7491},"project-structure",[7493],{"type":57,"value":7494},"Project Structure",{"type":51,"tag":60,"props":7496,"children":7497},{},[7498],{"type":57,"value":7499},"The CLI creates a project structure for managing agents:",{"type":51,"tag":102,"props":7501,"children":7504},{"className":7502,"code":7503,"language":57},[3176],"your_project\u002F\n├── agents.json       # Agent definitions\n├── tools.json        # Tool configurations\n├── tests.json        # Test configurations\n├── agent_configs\u002F    # Individual agent configs\n├── tool_configs\u002F     # Individual tool configs\n└── test_configs\u002F     # Individual test configs\n",[7505],{"type":51,"tag":110,"props":7506,"children":7507},{"__ignoreMap":107},[7508],{"type":57,"value":7503},{"type":51,"tag":336,"props":7510,"children":7512},{"id":7511},"sdk-examples",[7513],{"type":57,"value":7514},"SDK Examples",{"type":51,"tag":102,"props":7516,"children":7518},{"className":344,"code":7517,"language":338,"meta":107,"style":107},"# List\nagents = client.conversational_ai.agents.list()\n\n# Get\nagent = client.conversational_ai.agents.get(agent_id=\"your-agent-id\")\n\n# Update (partial - only include fields to change)\nclient.conversational_ai.agents.update(agent_id=\"your-agent-id\", name=\"New Name\")\nclient.conversational_ai.agents.update(agent_id=\"your-agent-id\",\n    conversation_config={\n        \"agent\": {\"prompt\": {\"prompt\": \"New instructions\", \"llm\": \"claude-sonnet-4\"}}\n    })\n\n# Delete\nclient.conversational_ai.agents.delete(agent_id=\"your-agent-id\")\n",[7519],{"type":51,"tag":110,"props":7520,"children":7521},{"__ignoreMap":107},[7522,7530,7538,7545,7553,7561,7568,7576,7584,7592,7599,7607,7615,7622,7630],{"type":51,"tag":114,"props":7523,"children":7524},{"class":116,"line":117},[7525],{"type":51,"tag":114,"props":7526,"children":7527},{},[7528],{"type":57,"value":7529},"# List\n",{"type":51,"tag":114,"props":7531,"children":7532},{"class":116,"line":127},[7533],{"type":51,"tag":114,"props":7534,"children":7535},{},[7536],{"type":57,"value":7537},"agents = client.conversational_ai.agents.list()\n",{"type":51,"tag":114,"props":7539,"children":7540},{"class":116,"line":153},[7541],{"type":51,"tag":114,"props":7542,"children":7543},{"emptyLinePlaceholder":175},[7544],{"type":57,"value":178},{"type":51,"tag":114,"props":7546,"children":7547},{"class":116,"line":171},[7548],{"type":51,"tag":114,"props":7549,"children":7550},{},[7551],{"type":57,"value":7552},"# Get\n",{"type":51,"tag":114,"props":7554,"children":7555},{"class":116,"line":181},[7556],{"type":51,"tag":114,"props":7557,"children":7558},{},[7559],{"type":57,"value":7560},"agent = client.conversational_ai.agents.get(agent_id=\"your-agent-id\")\n",{"type":51,"tag":114,"props":7562,"children":7563},{"class":116,"line":190},[7564],{"type":51,"tag":114,"props":7565,"children":7566},{"emptyLinePlaceholder":175},[7567],{"type":57,"value":178},{"type":51,"tag":114,"props":7569,"children":7570},{"class":116,"line":208},[7571],{"type":51,"tag":114,"props":7572,"children":7573},{},[7574],{"type":57,"value":7575},"# Update (partial - only include fields to change)\n",{"type":51,"tag":114,"props":7577,"children":7578},{"class":116,"line":251},[7579],{"type":51,"tag":114,"props":7580,"children":7581},{},[7582],{"type":57,"value":7583},"client.conversational_ai.agents.update(agent_id=\"your-agent-id\", name=\"New Name\")\n",{"type":51,"tag":114,"props":7585,"children":7586},{"class":116,"line":259},[7587],{"type":51,"tag":114,"props":7588,"children":7589},{},[7590],{"type":57,"value":7591},"client.conversational_ai.agents.update(agent_id=\"your-agent-id\",\n",{"type":51,"tag":114,"props":7593,"children":7594},{"class":116,"line":268},[7595],{"type":51,"tag":114,"props":7596,"children":7597},{},[7598],{"type":57,"value":403},{"type":51,"tag":114,"props":7600,"children":7601},{"class":116,"line":430},[7602],{"type":51,"tag":114,"props":7603,"children":7604},{},[7605],{"type":57,"value":7606},"        \"agent\": {\"prompt\": {\"prompt\": \"New instructions\", \"llm\": \"claude-sonnet-4\"}}\n",{"type":51,"tag":114,"props":7608,"children":7609},{"class":116,"line":439},[7610],{"type":51,"tag":114,"props":7611,"children":7612},{},[7613],{"type":57,"value":7614},"    })\n",{"type":51,"tag":114,"props":7616,"children":7617},{"class":116,"line":448},[7618],{"type":51,"tag":114,"props":7619,"children":7620},{"emptyLinePlaceholder":175},[7621],{"type":57,"value":178},{"type":51,"tag":114,"props":7623,"children":7624},{"class":116,"line":457},[7625],{"type":51,"tag":114,"props":7626,"children":7627},{},[7628],{"type":57,"value":7629},"# Delete\n",{"type":51,"tag":114,"props":7631,"children":7632},{"class":116,"line":466},[7633],{"type":51,"tag":114,"props":7634,"children":7635},{},[7636],{"type":57,"value":7637},"client.conversational_ai.agents.delete(agent_id=\"your-agent-id\")\n",{"type":51,"tag":60,"props":7639,"children":7640},{},[7641,7642,7646],{"type":57,"value":3143},{"type":51,"tag":81,"props":7643,"children":7644},{"href":3146},[7645],{"type":57,"value":3149},{"type":57,"value":7647}," for all configuration options and SDK examples.",{"type":51,"tag":90,"props":7649,"children":7651},{"id":7650},"error-handling",[7652],{"type":57,"value":7653},"Error Handling",{"type":51,"tag":102,"props":7655,"children":7657},{"className":344,"code":7656,"language":338,"meta":107,"style":107},"try:\n    agent = client.conversational_ai.agents.create(...)\nexcept Exception as e:\n    print(f\"API error: {e}\")\n",[7658],{"type":51,"tag":110,"props":7659,"children":7660},{"__ignoreMap":107},[7661,7669,7677,7685],{"type":51,"tag":114,"props":7662,"children":7663},{"class":116,"line":117},[7664],{"type":51,"tag":114,"props":7665,"children":7666},{},[7667],{"type":57,"value":7668},"try:\n",{"type":51,"tag":114,"props":7670,"children":7671},{"class":116,"line":127},[7672],{"type":51,"tag":114,"props":7673,"children":7674},{},[7675],{"type":57,"value":7676},"    agent = client.conversational_ai.agents.create(...)\n",{"type":51,"tag":114,"props":7678,"children":7679},{"class":116,"line":153},[7680],{"type":51,"tag":114,"props":7681,"children":7682},{},[7683],{"type":57,"value":7684},"except Exception as e:\n",{"type":51,"tag":114,"props":7686,"children":7687},{"class":116,"line":171},[7688],{"type":51,"tag":114,"props":7689,"children":7690},{},[7691],{"type":57,"value":7692},"    print(f\"API error: {e}\")\n",{"type":51,"tag":60,"props":7694,"children":7695},{},[7696,7698,7703,7705,7710,7712,7717,7719,7724],{"type":57,"value":7697},"Common errors: ",{"type":51,"tag":73,"props":7699,"children":7700},{},[7701],{"type":57,"value":7702},"401",{"type":57,"value":7704}," (invalid key), ",{"type":51,"tag":73,"props":7706,"children":7707},{},[7708],{"type":57,"value":7709},"404",{"type":57,"value":7711}," (not found), ",{"type":51,"tag":73,"props":7713,"children":7714},{},[7715],{"type":57,"value":7716},"422",{"type":57,"value":7718}," (invalid config), ",{"type":51,"tag":73,"props":7720,"children":7721},{},[7722],{"type":57,"value":7723},"429",{"type":57,"value":7725}," (rate limit)",{"type":51,"tag":90,"props":7727,"children":7729},{"id":7728},"references",[7730],{"type":57,"value":7731},"References",{"type":51,"tag":7733,"props":7734,"children":7735},"ul",{},[7736,7746,7755,7765,7774],{"type":51,"tag":7737,"props":7738,"children":7739},"li",{},[7740,7744],{"type":51,"tag":81,"props":7741,"children":7742},{"href":83},[7743],{"type":57,"value":86},{"type":57,"value":7745}," - SDK setup and migration",{"type":51,"tag":7737,"props":7747,"children":7748},{},[7749,7753],{"type":51,"tag":81,"props":7750,"children":7751},{"href":3146},[7752],{"type":57,"value":3149},{"type":57,"value":7754}," - All config options and CRUD examples",{"type":51,"tag":7737,"props":7756,"children":7757},{},[7758,7763],{"type":51,"tag":81,"props":7759,"children":7760},{"href":3587},[7761],{"type":57,"value":7762},"Client Tools",{"type":57,"value":7764}," - Webhook, client, and system tools",{"type":51,"tag":7737,"props":7766,"children":7767},{},[7768,7772],{"type":51,"tag":81,"props":7769,"children":7770},{"href":6820},[7771],{"type":57,"value":6652},{"type":57,"value":7773}," - Website integration",{"type":51,"tag":7737,"props":7775,"children":7776},{},[7777,7781],{"type":51,"tag":81,"props":7778,"children":7779},{"href":7210},[7780],{"type":57,"value":6830},{"type":57,"value":7782}," - Phone call integrations",{"type":51,"tag":7784,"props":7785,"children":7786},"style",{},[7787],{"type":57,"value":7788},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":7790,"total":259},[7791,7798,7812,7823,7835,7850,7863],{"slug":4,"name":4,"fn":5,"description":6,"org":7792,"tags":7793,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7794,7795,7796,7797],{"name":13,"slug":4,"type":14},{"name":16,"slug":17,"type":14},{"name":9,"slug":8,"type":14},{"name":20,"slug":21,"type":14},{"slug":29,"name":29,"fn":7799,"description":7800,"org":7801,"tags":7802,"stars":22,"repoUrl":23,"updatedAt":7811},"generate music with ElevenLabs","Generate music using ElevenLabs Music API. Use when creating instrumental tracks, songs with lyrics, background music, jingles, or any AI-generated music composition. Supports prompt-based generation, composition plans for granular control, and detailed output with metadata.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7803,7806,7807,7810],{"name":7804,"slug":7805,"type":14},"AI Infrastructure","ai-infrastructure",{"name":16,"slug":17,"type":14},{"name":7808,"slug":7809,"type":14},"Creative","creative",{"name":9,"slug":8,"type":14},"2026-07-24T05:40:08.812767",{"slug":7813,"name":7813,"fn":7814,"description":7815,"org":7816,"tags":7817,"stars":22,"repoUrl":23,"updatedAt":7822},"setup-api-key","set up ElevenLabs API key","Guides users through setting up an ElevenLabs API key for ElevenLabs MCP tools. Use when the user needs to configure an ElevenLabs API key, when ElevenLabs tools fail due to missing API key, or when the user mentions needing access to ElevenLabs. First checks whether ELEVENLABS_API_KEY is already configured and valid, and only runs full setup when needed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7818,7819],{"name":9,"slug":8,"type":14},{"name":7820,"slug":7821,"type":14},"Environment Variables","environment-variables","2026-04-06T18:09:34.705989",{"slug":7824,"name":7824,"fn":7825,"description":7826,"org":7827,"tags":7828,"stars":22,"repoUrl":23,"updatedAt":7834},"sound-effects","generate sound effects with ElevenLabs","Generate sound effects from text descriptions using ElevenLabs. Use when creating sound effects, generating audio textures, producing ambient sounds, cinematic impacts, UI sounds, or any audio that isn't speech. Supports looping, duration control, and prompt influence tuning.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7829,7830,7831,7832],{"name":16,"slug":17,"type":14},{"name":7808,"slug":7809,"type":14},{"name":9,"slug":8,"type":14},{"name":7833,"slug":7824,"type":14},"Sound Effects","2026-04-06T18:09:39.77459",{"slug":7836,"name":7836,"fn":7837,"description":7838,"org":7839,"tags":7840,"stars":22,"repoUrl":23,"updatedAt":7849},"speech-engine","implement real-time voice conversations","Add real-time voice conversations to a custom agent runtime with ElevenLabs Speech Engine. Use when building Speech Engine servers, WebSocket handlers, WebRTC browser clients, conversation token endpoints, interruption-aware streaming responses, or voice-enabled chat agents that connect developer-owned server logic to ElevenLabs speech-to-text and text-to-speech.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7841,7842,7843,7845,7848],{"name":16,"slug":17,"type":14},{"name":9,"slug":8,"type":14},{"name":7844,"slug":4277,"type":14},"LLM",{"name":7846,"slug":7847,"type":14},"Real-time","real-time",{"name":20,"slug":21,"type":14},"2026-05-15T06:13:51.199332",{"slug":7851,"name":7851,"fn":7852,"description":7853,"org":7854,"tags":7855,"stars":22,"repoUrl":23,"updatedAt":7862},"speech-to-text","transcribe audio with ElevenLabs","Transcribe audio to text using ElevenLabs Scribe v2. Use when converting audio\u002Fvideo to text, generating subtitles, transcribing meetings, or processing spoken content.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7856,7857,7858,7859],{"name":16,"slug":17,"type":14},{"name":9,"slug":8,"type":14},{"name":20,"slug":21,"type":14},{"name":7860,"slug":7861,"type":14},"Transcription","transcription","2026-07-24T05:40:06.834756",{"slug":7864,"name":7864,"fn":7865,"description":7866,"org":7867,"tags":7868,"stars":22,"repoUrl":23,"updatedAt":7874},"text-to-speech","convert text to speech with ElevenLabs","Convert text to speech using ElevenLabs voice AI. Use when generating audio from text, creating voiceovers, building voice apps, or synthesizing speech in 70+ languages.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7869,7870,7871,7872],{"name":7804,"slug":7805,"type":14},{"name":16,"slug":17,"type":14},{"name":9,"slug":8,"type":14},{"name":7873,"slug":7864,"type":14},"Text-to-Speech","2026-04-06T18:09:38.521103",{"items":7876,"total":259},[7877,7884,7891,7896,7903,7911,7918,7925,7936],{"slug":4,"name":4,"fn":5,"description":6,"org":7878,"tags":7879,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7880,7881,7882,7883],{"name":13,"slug":4,"type":14},{"name":16,"slug":17,"type":14},{"name":9,"slug":8,"type":14},{"name":20,"slug":21,"type":14},{"slug":29,"name":29,"fn":7799,"description":7800,"org":7885,"tags":7886,"stars":22,"repoUrl":23,"updatedAt":7811},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7887,7888,7889,7890],{"name":7804,"slug":7805,"type":14},{"name":16,"slug":17,"type":14},{"name":7808,"slug":7809,"type":14},{"name":9,"slug":8,"type":14},{"slug":7813,"name":7813,"fn":7814,"description":7815,"org":7892,"tags":7893,"stars":22,"repoUrl":23,"updatedAt":7822},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7894,7895],{"name":9,"slug":8,"type":14},{"name":7820,"slug":7821,"type":14},{"slug":7824,"name":7824,"fn":7825,"description":7826,"org":7897,"tags":7898,"stars":22,"repoUrl":23,"updatedAt":7834},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7899,7900,7901,7902],{"name":16,"slug":17,"type":14},{"name":7808,"slug":7809,"type":14},{"name":9,"slug":8,"type":14},{"name":7833,"slug":7824,"type":14},{"slug":7836,"name":7836,"fn":7837,"description":7838,"org":7904,"tags":7905,"stars":22,"repoUrl":23,"updatedAt":7849},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7906,7907,7908,7909,7910],{"name":16,"slug":17,"type":14},{"name":9,"slug":8,"type":14},{"name":7844,"slug":4277,"type":14},{"name":7846,"slug":7847,"type":14},{"name":20,"slug":21,"type":14},{"slug":7851,"name":7851,"fn":7852,"description":7853,"org":7912,"tags":7913,"stars":22,"repoUrl":23,"updatedAt":7862},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7914,7915,7916,7917],{"name":16,"slug":17,"type":14},{"name":9,"slug":8,"type":14},{"name":20,"slug":21,"type":14},{"name":7860,"slug":7861,"type":14},{"slug":7864,"name":7864,"fn":7865,"description":7866,"org":7919,"tags":7920,"stars":22,"repoUrl":23,"updatedAt":7874},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7921,7922,7923,7924],{"name":7804,"slug":7805,"type":14},{"name":16,"slug":17,"type":14},{"name":9,"slug":8,"type":14},{"name":7873,"slug":7864,"type":14},{"slug":7926,"name":7926,"fn":7927,"description":7928,"org":7929,"tags":7930,"stars":22,"repoUrl":23,"updatedAt":7935},"voice-changer","transform audio recordings with voice conversion","Transform the voice in an audio recording into a different target voice while preserving emotion, timing, and delivery using the ElevenLabs Voice Changer (speech-to-speech) API. Use when converting one voice to another, changing the speaker\u002Fnarrator of an existing recording, dubbing a voice-over in a different voice, creating character voices from a scratch performance, anonymizing a speaker, or any \"voice conversion \u002F voice transfer \u002F speech-to-speech\" task. Make sure to use this skill whenever the user mentions voice changing, voice conversion, speech-to-speech, swapping a voice in audio, re-voicing a clip, or applying a different voice to an existing recording — even if they don't explicitly say \"voice changer\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7931,7932,7933,7934],{"name":7804,"slug":7805,"type":14},{"name":16,"slug":17,"type":14},{"name":7808,"slug":7809,"type":14},{"name":9,"slug":8,"type":14},"2026-05-02T05:22:50.99428",{"slug":7937,"name":7937,"fn":7938,"description":7939,"org":7940,"tags":7941,"stars":22,"repoUrl":23,"updatedAt":7945},"voice-isolator","isolate voices and remove background noise","Remove background noise and isolate vocals\u002Fspeech from audio using ElevenLabs Voice Isolator (audio isolation) API. Use when cleaning up noisy recordings, removing music or background ambience from dialogue, isolating speech from field recordings, preparing audio for transcription, extracting vocals, or any \"denoise \u002F clean up \u002F isolate voice\" task.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7942,7943,7944],{"name":16,"slug":17,"type":14},{"name":7808,"slug":7809,"type":14},{"name":9,"slug":8,"type":14},"2026-04-23T05:01:58.01956"]