using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/agents/{agentId}/execute");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
request.AddJsonBody("{\n \"history\": [\n {\n \"role\": \"user\",\n \"content\": \"\"\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/agents/{agentId}/execute");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
request.AddJsonBody("{\n \"history\": [\n {\n \"role\": \"user\",\n \"content\": \"\"\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
Consulta Usar artifacts con OpenAI Agents para ver
los formatos admitidos, límites, vigencia y el flujo completo.El agente debe usar el runtime OpenAI Agents. Carga primero hasta 10
archivos de 25 MB cada uno; una ejecución admite 50 MB en total:
No envíes URLs de almacenamiento ni contenido base64. Las referencias están
aisladas por cuenta y agente y no se admiten en phone-call.
Obtener JSON estructurado
Los pasos de código pueden enviar responseSchema al ejecutar un agente
OpenAI Agents:
{ "history": [{"role": "user", "content": "Extrae los datos de la póliza."}], "artifacts": [{"id": "<artifactId>"}], "responseSchema": { "type": "object", "properties": { "marca": {"type": ["string", "null"]}, "ano": {"type": ["integer", "null"]}, "modelo": {"type": ["string", "null"]} }, "required": ["marca", "ano", "modelo"], "additionalProperties": false }}
La respuesta agrega structuredOutput, validado contra el schema. Si omites
responseSchema, el agente mantiene su comportamiento de chat y devuelve
texto normalmente.El schema es estricto: usa additionalProperties: false, incluye todas las
propiedades en required y representa datos opcionales con tipos nullable.
Ver la ejecución en LLM Traces
El ejemplo anterior usa mi-sesion-123 como identificador de la ejecución.
Envía un valor único en x-agent-session-id.
Espera la respuesta del agente.
En la misma cuenta, abre /pas/llm-traces/mi-sesion-123.
La ruta usa el valor exacto de x-agent-session-id. No uses el ID de la
solicitud ni el ID de un registro individual.
El header es opcional, pero recomendado. Si lo omites, execute no devuelve el
identificador generado y no podrás abrir la traza directamente. Los registros
pueden tardar unos segundos en aparecer.
La vista LLM Traces muestra llamadas al modelo, herramientas, tiempos y consumo de tokens.
Respuesta
Campo
Tipo
Descripción
response
string
Respuesta textual del agente.
structuredOutput
object
Objeto validado cuando envías responseSchema.
handoff
object
Presente solo cuando el agente transfiere a un agente humano.
Configura un timeout generoso: la ejecución puede tardar varios segundos.
handoff
Campo
Tipo
Descripción
handoffId
string
Identificador único del handoff.
department.id
string
Identificador del departamento destino.
department.name
string
Nombre del departamento destino.
message
string
Mensaje de notificación del handoff.
summary
string
Resumen del contexto transferido.
metadata.handoffReason
string
Motivo del handoff.
metadata.agentId
string
Identificador del agente de IA (si aplica).
metadata.agentName
string
Nombre del agente de IA (si aplica).
metadata.handoffTime
number
Timestamp del handoff en milisegundos (epoch).
Ejemplo sin handoff
{ "response": "¡Hola! ¿En qué puedo ayudarte?"}
Ejemplo con handoff
{ "response": "Te conecto con un asesor que puede ayudarte mejor.", "handoff": { "handoffId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "department": { "id": "dept_atencion", "name": "Atención a clientes" }, "message": "Voy a transferirte con un asesor para que pueda apoyarte.", "summary": "El usuario solicita ser transferido con un asesor humano.", "metadata": { "handoffReason": "El usuario pidió hablar con un asesor humano.", "agentId": "<agentId>", "agentName": "Asistente de Acme Seguros", "handoffTime": 1710000000000 } }}
Errores frecuentes
HTTP
Qué significa
Qué hacer
400
El body o artifact es inválido, el runtime no admite artifacts o el agente no está activo.
Revisa el body, usa un artifact del mismo agente y confirma el runtime en la plataforma.
401
API key inválida o faltante.
Verifica x-ib-api-key.
404
El agente no existe o no pertenece a tu cuenta.
Abre el agente en la plataforma y confirma su agentId.
500
Error inesperado.
Reintenta; si continúa, contacta soporte.
Authorizations
x-ib-api-key
string
header
required
Headers
x-agent-session-id
string
Identificador único de la ejecución. Usa el mismo valor en /pas/llm-traces/{sessionId} para consultar sus trazas.
Example:
"mi-sesion-123"
Path Parameters
agentId
string
required
Identificador del agente. Solicítalo con tu ejecutivo de cuenta.
Body
application/json
history
object[]
required
Lista con exactamente un mensaje del usuario. Cada solicitud es independiente; no envíes historial de varios turnos.
Required array length: 1 element
Show child attributes
artifacts
object[]
Referencias devueltas por el endpoint de artifacts.
Maximum array length: 10
Show child attributes
responseSchema
object
Schema JSON opcional para obtener structuredOutput. Solo está disponible con runtime openai-agents y modo chat-conversation. Debe ser estricto: todos los objetos usan additionalProperties: false y requieren todas sus propiedades.
Show child attributes
Response
Respuesta del agente. Usa solo response y, si existe, handoff.
response
string
required
Respuesta textual del agente para el usuario final.
structuredOutput
object
Objeto validado contra responseSchema, cuando fue solicitado. response conserva la representación JSON serializada para compatibilidad.
handoff
object
Presente solo cuando el agente decide transferir la conversación a un agente humano.
using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/agents/{agentId}/execute");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
request.AddJsonBody("{\n \"history\": [\n {\n \"role\": \"user\",\n \"content\": \"\"\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/agents/{agentId}/execute");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
request.AddJsonBody("{\n \"history\": [\n {\n \"role\": \"user\",\n \"content\": \"\"\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Insurance Boosters API","description":"Documentación de la API de Insurance Boosters para integradores externos.","colors":{"primary":"#6746C2","light":"#6746C2","dark":"#8B6FE8"},"logo":{"light":"https://mintcdn.com/insurance-boosters/Xcjz70lXRQ2GedqW/assets/logo.png?fit=max\u0026auto=format\u0026n=Xcjz70lXRQ2GedqW\u0026q=85\u0026s=55567c3a57de1462828afcff190e9ac9","dark":"https://mintcdn.com/insurance-boosters/Xcjz70lXRQ2GedqW/assets/logo-dark.png?fit=max\u0026auto=format\u0026n=Xcjz70lXRQ2GedqW\u0026q=85\u0026s=2d6582fb0f5f441b10f827d6e36a9e73","href":"https://developers.insuranceboosters.com"},"favicon":"https://mintcdn.com/insurance-boosters/Xcjz70lXRQ2GedqW/assets/logo.png?fit=max\u0026auto=format\u0026n=Xcjz70lXRQ2GedqW\u0026q=85\u0026s=55567c3a57de1462828afcff190e9ac9","api":{"openapi":"openapi/whatsapp-v1.json","playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required","languages":["curl","python","javascript","typescript","node","java","csharp","dotnet","go","ruby","php","kotlin","rust","swift","powershell"],"prefill":true,"autogenerate":true},"mdx":{"auth":{"method":"key","name":"x-ib-api-key"},"server":"https://api.insuranceboosters.com/api/v1"}},"appearance":{"default":"light","strict":false},"background":{"decoration":"gradient","color":{"light":"#F8F6FF","dark":"#1A1425"}},"navbar":{"links":[{"href":"https://insuranceboosters.com","label":"Sitio web"}],"primary":{"type":"button","label":"Soporte","href":"mailto:soporte@insuranceboosters.com"}},"footer":{"socials":{"website":"https://insuranceboosters.com"}},"seo":{"metatags":{"og:site_name":"Insurance Boosters API","og:locale":"es_MX"},"indexing":"all"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor","mcp","vscode","devin-mcp","aistudio","grok"],"display":"header"},"variables":{"api-base-url":"https://api.insuranceboosters.com/api/v1"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"insurance-boosters","hasAudioNarration":false,"actualSubdomain":"insurance-boosters","customDomains":["developers.insuranceboosters.com"],"gitSource":{"type":"github","owner":"autoclupp","repo":"insurance-boosters-app","deployBranch":"main","contentDirectory":"docs/brands/insurance-boosters","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aff061497e1b315b98b792f","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"Referencia API","count":101},{"language":"default","tag":"Automatizaciones","count":38},{"language":"default","tag":"Tableros","count":25},{"language":"default","tag":"Agentes IA","count":18},{"language":"default","tag":"WhatsApp","count":13},{"language":"default","tag":"Agentes personalizados","count":11},{"language":"default","tag":"Pasos","count":11},{"language":"default","tag":"Registros","count":10},{"language":"default","tag":"Plantillas","count":10},{"language":"default","tag":"Triggers","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"alex@insuranceboosters.com"}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"agentes/ejecutar-agente","slug":"/agentes/ejecutar-agente","pageMetadata":{"title":"Ejecutar agente personalizado","description":"Envía un mensaje a un agente de IA administrado desde la plataforma y recibe su respuesta.","openapi":"openapi/agentes-v1.yaml POST /agents/{agentId}/execute","keywords":["agentes","IA","ejecutar","handoff"],"href":"/agentes/ejecutar-agente"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Envía un mensaje a un agente de IA administrado desde la plataforma y recibe su respuesta.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Info,OptimizedImage,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Envía un mensaje a un agente personalizado y recibe su respuesta.`}),`\n`,_jsx(_components.p,{children:`Antes de empezar, necesitas:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Una `,_jsx(_components.a,{href:`/autenticacion`,children:`API key`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`El `,_jsx(_components.code,{children:`agentId`}),`, disponible en la URL del agente dentro de la plataforma.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`enviar-un-mensaje`,children:`Enviar un mensaje`}),`\n`,_jsxs(_components.p,{children:[`Llama a `,_jsx(_components.code,{children:`POST /agents/{agentId}/execute`}),` con exactamente un mensaje de rol\n`,_jsx(_components.code,{children:`user`}),`. Sustituye `,_jsx(_components.code,{children:`{agentId}`}),`, `,_jsx(_components.code,{children:`TU_API_KEY`}),` y `,_jsx(_components.code,{children:`\u003cmensaje>`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.insuranceboosters.com/api/v1/agents/{agentId}/execute\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-ib-api-key: TU_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-agent-session-id: mi-sesion-123\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"history\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\": \"user\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": \"\u003cmensaje>\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`ejecutar-con-documentos-o-imágenes`,children:`Ejecutar con documentos o imágenes`}),`\n`,_jsxs(_components.p,{children:[`Consulta `,_jsx(_components.a,{href:`/agentes/usar-artifacts`,children:`Usar artifacts con OpenAI Agents`}),` para ver\nlos formatos admitidos, límites, vigencia y el flujo completo.`]}),`\n`,_jsxs(_components.p,{children:[`El agente debe usar el runtime `,_jsx(_components.strong,{children:`OpenAI Agents`}),`. Carga primero hasta 10\narchivos de 25 MB cada uno; una ejecución admite 50 MB en total:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.insuranceboosters.com/api/v1/agents/{agentId}/artifacts\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-ib-api-key: TU_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"files=@poliza.pdf\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"files=@foto-siniestro.jpg\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Usa los `,_jsx(_components.code,{children:`id`}),` devueltos —expiran en 24 horas— al ejecutar el mismo agente:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.insuranceboosters.com/api/v1/agents/{agentId}/execute\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-ib-api-key: TU_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-agent-session-id: mi-sesion-123\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"history\": [{\"role\": \"user\", \"content\": \"Resume las coberturas.\"}],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"artifacts\": [{\"id\": \"\u003cartifactId>\"}]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`No envíes URLs de almacenamiento ni contenido base64. Las referencias están\naisladas por cuenta y agente y no se admiten en `,_jsx(_components.code,{children:`phone-call`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`obtener-json-estructurado`,children:`Obtener JSON estructurado`}),`\n`,_jsxs(_components.p,{children:[`Los pasos de código pueden enviar `,_jsx(_components.code,{children:`responseSchema`}),` al ejecutar un agente\nOpenAI Agents:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"history\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Extrae los datos de la póliza.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"artifacts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cartifactId>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"responseSchema\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"properties\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"marca\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"null\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ano\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"integer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"null\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"modelo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"null\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"marca\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ano\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"modelo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"additionalProperties\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`La respuesta agrega `,_jsx(_components.code,{children:`structuredOutput`}),`, validado contra el schema. Si omites\n`,_jsx(_components.code,{children:`responseSchema`}),`, el agente mantiene su comportamiento de chat y devuelve\ntexto normalmente.`]}),`\n`,_jsxs(_components.p,{children:[`El schema es estricto: usa `,_jsx(_components.code,{children:`additionalProperties: false`}),`, incluye todas las\npropiedades en `,_jsx(_components.code,{children:`required`}),` y representa datos opcionales con tipos nullable.`]}),`\n`,_jsx(Heading,{level:`2`,id:`ver-la-ejecución-en-llm-traces`,children:`Ver la ejecución en LLM Traces`}),`\n`,_jsxs(_components.p,{children:[`El ejemplo anterior usa `,_jsx(_components.code,{children:`mi-sesion-123`}),` como identificador de la ejecución.`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Envía un valor único en `,_jsx(_components.code,{children:`x-agent-session-id`}),`.`]}),`\n`,_jsx(_components.li,{children:`Espera la respuesta del agente.`}),`\n`,_jsxs(_components.li,{children:[`En la misma cuenta, abre `,_jsx(_components.code,{children:`/pas/llm-traces/mi-sesion-123`}),`.`]}),`\n`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`La ruta usa el valor exacto de `,_jsx(_components.code,{children:`x-agent-session-id`}),`. No uses el ID de la\nsolicitud ni el ID de un registro individual.`]})}),`\n`,_jsxs(_components.p,{children:[`El header es opcional, pero recomendado. Si lo omites, `,_jsx(_components.code,{children:`execute`}),` no devuelve el\nidentificador generado y no podrás abrir la traza directamente. Los registros\npueden tardar unos segundos en aparecer.`]}),`\n`,_jsx(Frame,{caption:`La vista LLM Traces muestra llamadas al modelo, herramientas, tiempos y consumo de tokens.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/insurance-boosters/F5h3qEq6zY3b4sgf/assets/llm-traces.webp?fit=max\u0026auto=format\u0026n=F5h3qEq6zY3b4sgf\u0026q=85\u0026s=e0871e936c947ee45caba14f7eeba418`,alt:`Vista ilustrativa de LLM Traces con métricas y registros de una ejecución`,\"data-og-width\":`1238`,width:`1238`,\"data-og-height\":`760`,height:`760`,\"data-path\":`assets/llm-traces.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/insurance-boosters/F5h3qEq6zY3b4sgf/assets/llm-traces.webp?w=280\u0026fit=max\u0026auto=format\u0026n=F5h3qEq6zY3b4sgf\u0026q=85\u0026s=19a30031b4b6ee7c28d6d7371418e21d 280w, https://mintcdn.com/insurance-boosters/F5h3qEq6zY3b4sgf/assets/llm-traces.webp?w=560\u0026fit=max\u0026auto=format\u0026n=F5h3qEq6zY3b4sgf\u0026q=85\u0026s=cd0fbb3c401d41fe88509920ea60aa57 560w, https://mintcdn.com/insurance-boosters/F5h3qEq6zY3b4sgf/assets/llm-traces.webp?w=840\u0026fit=max\u0026auto=format\u0026n=F5h3qEq6zY3b4sgf\u0026q=85\u0026s=cbb6d9550fa03b368b0a9b41dde2da80 840w, https://mintcdn.com/insurance-boosters/F5h3qEq6zY3b4sgf/assets/llm-traces.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=F5h3qEq6zY3b4sgf\u0026q=85\u0026s=50cf984222dd201f8c888764ddd12746 1100w, https://mintcdn.com/insurance-boosters/F5h3qEq6zY3b4sgf/assets/llm-traces.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=F5h3qEq6zY3b4sgf\u0026q=85\u0026s=afe2dd11fed6ea45473ad4bf5e397340 1650w, https://mintcdn.com/insurance-boosters/F5h3qEq6zY3b4sgf/assets/llm-traces.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=F5h3qEq6zY3b4sgf\u0026q=85\u0026s=dc0e19ed8c5dfb7acbec449386fbb41f 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`respuesta`,children:`Respuesta`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Respuesta textual del agente.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`structuredOutput`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsxs(_components.td,{children:[`Objeto validado cuando envías `,_jsx(_components.code,{children:`responseSchema`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`handoff`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{children:`Presente solo cuando el agente transfiere a un agente humano.`})]})]})]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Configura un timeout generoso: la ejecución puede tardar varios segundos.`})}),`\n`,_jsx(Heading,{level:`3`,id:`handoff`,children:_jsx(_components.code,{children:`handoff`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`handoffId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Identificador único del handoff.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`department.id`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Identificador del departamento destino.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`department.name`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Nombre del departamento destino.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Mensaje de notificación del handoff.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`summary`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Resumen del contexto transferido.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata.handoffReason`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Motivo del handoff.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata.agentId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Identificador del agente de IA (si aplica).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata.agentName`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Nombre del agente de IA (si aplica).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata.handoffTime`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`Timestamp del handoff en milisegundos (epoch).`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`ejemplo-sin-handoff`,children:`Ejemplo sin handoff`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"¡Hola! ¿En qué puedo ayudarte?\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`ejemplo-con-handoff`,children:`Ejemplo con handoff`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Te conecto con un asesor que puede ayudarte mejor.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"handoff\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"handoffId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"department\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dept_atencion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Atención a clientes\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Voy a transferirte con un asesor para que pueda apoyarte.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"El usuario solicita ser transferido con un asesor humano.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"handoffReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"El usuario pidió hablar con un asesor humano.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agentId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cagentId>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agentName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Asistente de Acme Seguros\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"handoffTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1710000000000`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`errores-frecuentes`,children:`Errores frecuentes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`Qué significa`}),_jsx(_components.th,{children:`Qué hacer`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`El body o artifact es inválido, el runtime no admite artifacts o el agente no está activo.`}),_jsx(_components.td,{children:`Revisa el body, usa un artifact del mismo agente y confirma el runtime en la plataforma.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`API key inválida o faltante.`}),_jsxs(_components.td,{children:[`Verifica `,_jsx(_components.code,{children:`x-ib-api-key`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`El agente no existe o no pertenece a tu cuenta.`}),_jsxs(_components.td,{children:[`Abre el agente en la plataforma y confirma su `,_jsx(_components.code,{children:`agentId`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Error inesperado.`}),_jsx(_components.td,{children:`Reintenta; si continúa, contacta soporte.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Ejecutar agente personalizado","description":"Envía un mensaje a un agente de IA administrado desde la plataforma y recibe su respuesta.","openapi":"openapi/agentes-v1.yaml POST /agents/{agentId}/execute","keywords":["agentes","IA","ejecutar","handoff"],"href":"/agentes/ejecutar-agente"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Enviar un mensaje","slug":"enviar-un-mensaje","depth":2,"children":[]},{"title":"Ejecutar con documentos o imágenes","slug":"ejecutar-con-documentos-o-imágenes","depth":2,"children":[]},{"title":"Obtener JSON estructurado","slug":"obtener-json-estructurado","depth":2,"children":[]},{"title":"Ver la ejecución en LLM Traces","slug":"ver-la-ejecución-en-llm-traces","depth":2,"children":[]},{"title":"Respuesta","slug":"respuesta","depth":2,"children":[{"title":"handoff","slug":"handoff","depth":3,"children":[]},{"title":"Ejemplo sin handoff","slug":"ejemplo-sin-handoff","depth":3,"children":[]},{"title":"Ejemplo con handoff","slug":"ejemplo-con-handoff","depth":3,"children":[]}]},{"title":"Errores frecuentes","slug":"errores-frecuentes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"executeAgent","summary":"Ejecutar agente","description":"Envía un mensaje a un agente de IA administrado desde la plataforma y recibe su respuesta.","tags":["Agentes IA"],"parameters":["066293b3-b29c-4009-9ddd-0234aa5978d7","aa7f6f27-24d9-44d6-8757-d31bc1d8e56f"],"requestBody":"7b22fbf0-f59b-4996-9b44-7048df4c4bcf","responses":{"200":"57a97d97-70df-45d2-b632-8da954d8bcf0","400":"4047a34a-b769-4fab-afae-c5aad150480b","401":"13aa8638-30b2-4a93-b649-9fe0c030b7eb","404":"ae2f3953-daab-445a-b4ca-b0e451762096","500":"2eb4b8bd-20fd-4b11-9f79-ef91c685a76c"},"method":"post","type":"path","servers":["0c7cfd29-159a-426a-b6d9-70da971bf87d"],"security":["6e8d4b37-8fc3-4234-88f4-61a4b0541168"],"path":"/agents/{agentId}/execute","baseUrlOptions":["https://api.insuranceboosters.com/api/v1"],"title":"Ejecutar agente","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","typescript","node","java","csharp","dotnet","go","ruby","php","kotlin","rust","swift","powershell"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.history.items.0.role":"user","body.history.items.0.content":""}]},"dependencies":{"parameters":{"066293b3-b29c-4009-9ddd-0234aa5978d7":{"name":"agentId","in":"path","required":true,"description":"Identificador del agente. Solicítalo con tu ejecutivo de cuenta.","schema":{"type":"string","isRequired":true,"description":"Identificador del agente. Solicítalo con tu ejecutivo de cuenta.","uniqueKey":"","typeLabel":"string"}},"aa7f6f27-24d9-44d6-8757-d31bc1d8e56f":{"name":"x-agent-session-id","in":"header","required":false,"description":"Identificador único de la ejecución. Usa el mismo valor en `/pas/llm-traces/{sessionId}` para consultar sus trazas.\n","schema":{"type":"string","example":"mi-sesion-123","isRequired":false,"description":"Identificador único de la ejecución. Usa el mismo valor en `/pas/llm-traces/{sessionId}` para consultar sus trazas.\n","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["history"],"additionalProperties":false,"properties":{"history":{"type":"array","description":"Lista con exactamente un mensaje del usuario. Cada solicitud es independiente; no envíes historial de varios turnos.\n","minItems":1,"maxItems":1,"items":{"type":"object","required":["role","content"],"additionalProperties":false,"properties":{"role":{"type":"string","const":"user","description":"Rol del mensaje. En esta API solo se admite `user`.","isRequired":true,"uniqueKey":"history.items.[INDEX].role","typeLabel":"string"},"content":{"type":"string","minLength":1,"description":"Texto del mensaje que recibe el agente.","isRequired":true,"uniqueKey":"history.items.[INDEX].content","typeLabel":"string"}},"uniqueKey":"history.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"history","typeLabel":"object[]"},"artifacts":{"type":"array","maxItems":10,"description":"Referencias devueltas por el endpoint de artifacts.","items":{"type":"object","required":["id"],"additionalProperties":false,"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].id","typeLabel":"string"}},"uniqueKey":"artifacts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"artifacts","typeLabel":"object[]"},"responseSchema":{"type":"object","required":["type"],"additionalProperties":true,"properties":{"type":{"type":"string","const":"object","isRequired":true,"uniqueKey":"responseSchema.type","typeLabel":"string"},"properties":{"type":"object","additionalProperties":true,"uniqueKey":"responseSchema.properties","typeLabel":"object"},"required":{"type":"array","items":{"type":"string","uniqueKey":"responseSchema.required.items.[INDEX]","typeLabel":"string"},"uniqueKey":"responseSchema.required","typeLabel":"string[]"},"additionalProperties":{"type":"boolean","uniqueKey":"responseSchema.\\additionalProperties","typeLabel":"boolean"}},"description":"Schema JSON opcional para obtener `structuredOutput`. Solo está disponible con runtime `openai-agents` y modo `chat-conversation`. Debe ser estricto: todos los objetos usan `additionalProperties: false` y requieren todas sus propiedades.\n","uniqueKey":"responseSchema","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"history":[{"role":"user","content":""}]},"examples":{"Example":{"title":"Example","value":{"history":[{"role":"user","content":""}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"57a97d97-70df-45d2-b632-8da954d8bcf0":{"description":"Respuesta del agente. Usa solo `response` y, si existe, `handoff`.","content":{"application/json":{"schema":{"type":"object","required":["response"],"additionalProperties":true,"properties":{"response":{"type":"string","description":"Respuesta textual del agente para el usuario final.","isRequired":true,"uniqueKey":"response","typeLabel":"string"},"structuredOutput":{"type":"object","additionalProperties":true,"description":"Objeto validado contra `responseSchema`, cuando fue solicitado. `response` conserva la representación JSON serializada para compatibilidad.\n","uniqueKey":"structuredOutput","typeLabel":"object"},"handoff":{"type":"object","required":["handoffId","department","message","summary","metadata"],"properties":{"handoffId":{"type":"string","description":"Identificador único del evento de handoff.","isRequired":true,"uniqueKey":"handoff.handoffId","typeLabel":"string"},"department":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"Identificador del departamento destino.","isRequired":true,"uniqueKey":"handoff.department.id","typeLabel":"string"},"name":{"type":"string","description":"Nombre del departamento destino.","isRequired":true,"uniqueKey":"handoff.department.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"handoff.department","typeLabel":"object"},"message":{"type":"string","description":"Mensaje de notificación asociado al handoff.","isRequired":true,"uniqueKey":"handoff.message","typeLabel":"string"},"summary":{"type":"string","description":"Resumen de la solicitud o contexto transferido.","isRequired":true,"uniqueKey":"handoff.summary","typeLabel":"string"},"metadata":{"type":"object","required":["handoffReason","handoffTime"],"properties":{"handoffReason":{"type":"string","description":"Motivo por el que el agente inició el handoff.","isRequired":true,"uniqueKey":"handoff.metadata.handoffReason","typeLabel":"string"},"handoffTime":{"type":"number","description":"Marca de tiempo del handoff en milisegundos (epoch).","isRequired":true,"uniqueKey":"handoff.metadata.handoffTime","typeLabel":"number"},"agentId":{"type":"string","description":"Identificador del agente de IA que inició el handoff.","uniqueKey":"handoff.metadata.agentId","typeLabel":"string"},"agentName":{"type":"string","description":"Nombre del agente de IA que inició el handoff.","uniqueKey":"handoff.metadata.agentName","typeLabel":"string"}},"isRequired":true,"uniqueKey":"handoff.metadata","typeLabel":"object"}},"description":"Presente solo cuando el agente decide transferir la conversación a un agente humano.\n","uniqueKey":"handoff","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"respuestaSimple":{"title":"respuestaSimple","summary":"Respuesta sin handoff","value":{"response":"¡Hola! ¿En qué puedo ayudarte?"}},"conHandoff":{"title":"conHandoff","summary":"Respuesta con handoff a un agente humano","value":{"response":"Te conecto con un asesor que puede ayudarte mejor.","handoff":{"handoffId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","department":{"id":"dept_atencion","name":"Atención a clientes"},"message":"Voy a transferirte con un asesor para que pueda apoyarte.","summary":"El usuario solicita ser transferido con un asesor humano.","metadata":{"handoffReason":"El usuario pidió hablar con un asesor humano.","agentId":"","agentName":"Asistente de Acme Seguros","handoffTime":1710000000000}}}}},"exampleType":"examples"}},"exampleType":"examples"},"4047a34a-b769-4fab-afae-c5aad150480b":{"description":"Body inválido o el agente no está activo.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","description":"Detalle del error de validación o de negocio.","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"error.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Detalle del error de validación o de negocio.","uniqueKey":"error.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"error","typeLabel":"string | object[]"},"message":{"type":"string","description":"Mensaje de error de autenticación.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"agenteInactivo":{"title":"agenteInactivo","value":{"error":"Agent is not active."}},"historyRequerido":{"title":"historyRequerido","summary":"Falta history","value":{"error":"Required"}}},"exampleType":"examples"}},"exampleType":"examples"},"13aa8638-30b2-4a93-b649-9fe0c030b7eb":{"description":"API key inválida o faltante.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","description":"Detalle del error de validación o de negocio.","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"error.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Detalle del error de validación o de negocio.","uniqueKey":"error.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"error","typeLabel":"string | object[]"},"message":{"type":"string","description":"Mensaje de error de autenticación.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"invalidApiKey":{"title":"invalidApiKey","value":{"message":"Invalid API key."}},"missingAuth":{"title":"missingAuth","value":{"message":"Invalid authorization format."}}},"exampleType":"examples"}},"exampleType":"examples"},"ae2f3953-daab-445a-b4ca-b0e451762096":{"description":"El agente no existe o no pertenece a tu cuenta.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","description":"Detalle del error de validación o de negocio.","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"error.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Detalle del error de validación o de negocio.","uniqueKey":"error.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"error","typeLabel":"string | object[]"},"message":{"type":"string","description":"Mensaje de error de autenticación.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Agent with ID \u003cagentId> not found."},"examples":{"Example":{"title":"Example","value":{"error":"Agent with ID \u003cagentId> not found."}}},"exampleType":"examples"}},"exampleType":"examples"},"2eb4b8bd-20fd-4b11-9f79-ef91c685a76c":{"description":"Error inesperado.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","description":"Detalle del error de validación o de negocio.","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"error.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Detalle del error de validación o de negocio.","uniqueKey":"error.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"error","typeLabel":"string | object[]"},"message":{"type":"string","description":"Mensaje de error de autenticación.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Internal server error."},"examples":{"Example":{"title":"Example","value":{"error":"Internal server error."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"6e8d4b37-8fc3-4234-88f4-61a4b0541168":{"IbApiKey":{"type":"apiKey","in":"header","name":"x-ib-api-key","scopes":[],"schemeName":"IbApiKey"}}},"servers":{"0c7cfd29-159a-426a-b6d9-70da971bf87d":{"url":"https://api.insuranceboosters.com/api/v1","description":"Producción"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-ib-api-key","scopes":[],"schemeName":"IbApiKey"},"schema":{"title":"x-ib-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"IbApiKey","name":"x-ib-api-key"}],"title":"IbApiKey"}]},"originalFileLocation":"openapi/agentes-v1.yaml"},"subdomain":"insurance-boosters","siteName":"Insurance Boosters API","title":"Ejecutar agente personalizado - Insurance Boosters API","contextualStarterQuestions":[{"_id":"6aff062316300ea66aa50d8e","deploymentId":"6a546a253fa2eb468be6e093","questionText":"How do I send a message?","status":"active","generatedBy":"contextual","path":"agentes/ejecutar-agente","createdAt":"2026-11-19T14:22:27.019Z","updatedAt":"2026-11-19T14:22:27.019Z","__v":0},{"_id":"6aff062316300ea66aa50d90","deploymentId":"6a546a253fa2eb468be6e093","questionText":"How do I get JSON output?","status":"active","generatedBy":"contextual","path":"agentes/ejecutar-agente","createdAt":"2026-11-19T14:22:27.019Z","updatedAt":"2026-11-19T14:22:27.019Z","__v":0},{"_id":"6aff062316300ea66aa50d8f","deploymentId":"6a546a253fa2eb468be6e093","questionText":"Can I upload documents?","status":"active","generatedBy":"contextual","path":"agentes/ejecutar-agente","createdAt":"2026-11-19T14:22:27.019Z","updatedAt":"2026-11-19T14:22:27.019Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T14:22:23.623Z","originalFileLocation":"agentes/ejecutar-agente.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Envía un mensaje a un agente de IA administrado desde la plataforma y recibe su respuesta.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Insurance Boosters API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Ejecutar agente personalizado - Insurance Boosters API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Envía un mensaje a un agente de IA administrado desde la plataforma y recibe su respuesta.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Insurance Boosters API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.insuranceboosters.com/agentes/ejecutar-agente\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://insurance-boosters.mintlify.site/_mintlify/api/og/v2?division=Agentes+personalizados\u0026amp;title=Ejecutar+agente+personalizado\u0026amp;description=Env%C3%ADa+un+mensaje+a+un+agente+de+IA+administrado+desde+la+plataforma+y+recibe+su+respuesta.\u0026amp;theme=fd26171829582214a7d44de3\u0026amp;signature=bc9df90c90e60a0bd244079ff384c20fd4896324b8c8ed39e92381f0c66519ca\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Ejecutar agente personalizado - Insurance Boosters API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Envía un mensaje a un agente de IA administrado desde la plataforma y recibe su respuesta.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://insurance-boosters.mintlify.site/_mintlify/api/og/v2?division=Agentes+personalizados\u0026amp;title=Ejecutar+agente+personalizado\u0026amp;description=Env%C3%ADa+un+mensaje+a+un+agente+de+IA+administrado+desde+la+plataforma+y+recibe+su+respuesta.\u0026amp;theme=fd26171829582214a7d44de3\u0026amp;signature=bc9df90c90e60a0bd244079ff384c20fd4896324b8c8ed39e92381f0c66519ca\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Insurance Boosters API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6746C2\">\u003cmeta data-mint-head name=\"og:locale\" content=\"es_MX\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.insuranceboosters.com/agentes/ejecutar-agente\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/agentes/ejecutar-agente.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.insuranceboosters.com/#organization\",\"name\":\"Insurance Boosters API\",\"url\":\"https://developers.insuranceboosters.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/insurance-boosters/Xcjz70lXRQ2GedqW/assets/logo.png?fit=max\u0026auto=format\u0026n=Xcjz70lXRQ2GedqW\u0026q=85\u0026s=55567c3a57de1462828afcff190e9ac9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.insuranceboosters.com#website\",\"name\":\"Insurance Boosters API\",\"url\":\"https://developers.insuranceboosters.com\",\"publisher\":{\"@id\":\"https://developers.insuranceboosters.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.insuranceboosters.com/agentes/ejecutar-agente#webpage\",\"url\":\"https://developers.insuranceboosters.com/agentes/ejecutar-agente\",\"name\":\"Ejecutar agente personalizado\",\"description\":\"Envía un mensaje a un agente de IA administrado desde la plataforma y recibe su respuesta.\",\"dateModified\":\"2026-11-19T14:22:23.623Z\",\"isPartOf\":{\"@id\":\"https://developers.insuranceboosters.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.insuranceboosters.com/agentes/ejecutar-agente#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.insuranceboosters.com/agentes/ejecutar-agente#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agentes IA\",\"item\":\"https://developers.insuranceboosters.com/agentes/introduccion\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agentes personalizados\",\"item\":\"https://developers.insuranceboosters.com/agentes/personalizados\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ejecutar agente personalizado\",\"item\":\"https://developers.insuranceboosters.com/agentes/ejecutar-agente\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.insuranceboosters.com/agentes/ejecutar-agente#apireference\",\"headline\":\"Ejecutar agente personalizado\",\"name\":\"Ejecutar agente personalizado\",\"description\":\"Envía un mensaje a un agente de IA administrado desde la plataforma y recibe su respuesta.\",\"url\":\"https://developers.insuranceboosters.com/agentes/ejecutar-agente\",\"mainEntityOfPage\":{\"@id\":\"https://developers.insuranceboosters.com/agentes/ejecutar-agente#webpage\"},\"dateModified\":\"2026-11-19T14:22:23.623Z\",\"keywords\":\"agentes, IA, ejecutar, handoff\",\"publisher\":{\"@id\":\"https://developers.insuranceboosters.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.insuranceboosters.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Insurance Boosters API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Insurance Boosters API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/agentes/ejecutar-agente.md","siteName":"Insurance Boosters API","nav":{"global":null,"tabs":[{"tab":"Inicio","icon":"house","pages":[{"title":"Inicio","href":""}]},{"tab":"Referencia API","icon":"square-terminal","groups":[{"group":"WhatsApp","icon":"message-circle","root":{"title":"WhatsApp","icon":"message-circle","href":"/whatsapp/introduccion"},"directory":"accordion","pages":[{"group":"Plantillas","icon":"message-square-text","root":{"title":"Plantillas","icon":"message-square-text","href":"/whatsapp/plantillas"},"pages":[{"title":"Listar plantillas","openapi":"openapi/whatsapp-v1.json GET /whatsapp/{phoneNumberId}/templates","href":"/whatsapp/listar-plantillas"},{"title":"Enviar plantilla","openapi":"openapi/whatsapp-v1.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla"},{"group":"Ejemplos","icon":"list-tree","root":{"title":"Tipos de plantilla","href":"/whatsapp/tipos-de-plantilla"},"pages":[{"title":"Sin variables","openapi":"openapi/examples/sin-variables.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/sin-variables"},{"title":"Variables posicionales","openapi":"openapi/examples/variables-posicionales.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/variables-posicionales"},{"title":"Variables con nombre","openapi":"openapi/examples/variables-con-nombre.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/variables-con-nombre"},{"title":"Header con imagen","openapi":"openapi/examples/header-imagen.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/header-imagen"},{"title":"Header con PDF","openapi":"openapi/examples/header-pdf.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/header-pdf"},{"title":"Header con video","openapi":"openapi/examples/header-video.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/header-video"},{"title":"Botones dinámicos","openapi":"openapi/examples/botones-dinamicos.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/botones-dinamicos"},{"title":"Plantilla con WhatsApp Flow","openapi":"openapi/whatsapp-v1.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/flow"}]}]},{"group":"Mensajes con archivo","icon":"paperclip","root":{"title":"Mensajes con archivo y texto","icon":"paperclip","href":"/whatsapp/mensajes-con-archivo"},"pages":[{"title":"Enviar documento con texto","openapi":"openapi/whatsapp-v1.json POST /whatsapp/{phoneNumberId}/document","href":"/whatsapp/enviar-documento"},{"title":"Enviar imagen con texto","openapi":"openapi/whatsapp-v1.json POST /whatsapp/{phoneNumberId}/image","href":"/whatsapp/enviar-imagen"},{"title":"Enviar video con texto","openapi":"openapi/whatsapp-v1.json POST /whatsapp/{phoneNumberId}/video","href":"/whatsapp/enviar-video"}]}]},{"group":"Contactos","icon":"contact","root":{"title":"Contactos","icon":"contact","href":"/contactos/introduccion"},"directory":"accordion","pages":[{"title":"Obtener esquema de contactos","openapi":"openapi/contactos-v1.yaml GET /tenants/{tenantId}/schemas/contact","href":"/contactos/obtener-schema"},{"title":"Crear contacto","openapi":"openapi/contactos-v1.yaml POST /contacts","href":"/contactos/crear-contacto"},{"title":"Listar contactos","openapi":"openapi/contactos-v1.yaml GET /contacts","href":"/contactos/listar-contactos"},{"title":"Buscar contactos","openapi":"openapi/contactos-v1.yaml POST /contacts/search","href":"/contactos/buscar-contactos"},{"title":"Consultar contacto","openapi":"openapi/contactos-v1.yaml GET /contacts/{contactId}","href":"/contactos/consultar-contacto"},{"title":"Actualizar contacto","openapi":"openapi/contactos-v1.yaml PATCH /contacts/{contactId}","href":"/contactos/actualizar-contacto"},{"title":"Eliminar contacto","openapi":"openapi/contactos-v1.yaml DELETE /contacts/{contactId}","href":"/contactos/eliminar-contacto"}]},{"group":"Agentes IA","icon":"bot","root":{"title":"Agentes IA","icon":"bot","href":"/agentes/introduccion"},"directory":"card","pages":[{"group":"Agentes personalizados","icon":"bot","root":{"title":"Agentes personalizados","icon":"bot","href":"/agentes/personalizados"},"directory":"accordion","pages":[{"title":"Editar agente personalizado","openapi":"openapi/agentes-v1.yaml PUT /agents/{agentId}","href":"/agentes/editar-agente"},{"title":"Usar artifacts con OpenAI Agents","description":"Carga documentos e imágenes y úsalos como contexto al ejecutar un agente con runtime OpenAI Agents.","openapi":"openapi/agentes-v1.yaml POST /agents/{agentId}/artifacts","href":"/agentes/usar-artifacts"},{"title":"Ejecutar agente personalizado","openapi":"openapi/agentes-v1.yaml POST /agents/{agentId}/execute","href":"/agentes/ejecutar-agente"},{"group":"Herramientas","icon":"wrench","root":{"title":"Herramientas","description":"Crea, consulta, actualiza, prueba y elimina las herramientas de tus agentes de IA.","icon":"wrench","href":"/agentes/herramientas/introduccion"},"directory":"accordion","pages":[{"title":"Tipos de herramienta","href":"/agentes/herramientas/tipos-de-herramienta"},{"title":"Listar herramientas","openapi":"openapi/herramientas-agentes-v1.yaml GET /tools","href":"/agentes/herramientas/listar-herramientas"},{"title":"Crear herramienta","openapi":"openapi/herramientas-agentes-v1.yaml POST /tools","href":"/agentes/herramientas/crear-herramienta"},{"title":"Consultar herramienta","openapi":"openapi/herramientas-agentes-v1.yaml GET /tools/{toolId}","href":"/agentes/herramientas/consultar-herramienta"},{"title":"Actualizar herramienta","openapi":"openapi/herramientas-agentes-v1.yaml PUT /tools/{toolId}","href":"/agentes/herramientas/actualizar-herramienta"},{"title":"Consultar uso de herramienta","openapi":"openapi/herramientas-agentes-v1.yaml GET /tools/{toolId}/usage","href":"/agentes/herramientas/consultar-uso"},{"title":"Probar código","openapi":"openapi/herramientas-agentes-v1.yaml POST /tools/test-run-code","href":"/agentes/herramientas/probar-codigo"},{"title":"Eliminar herramienta","openapi":"openapi/herramientas-agentes-v1.yaml DELETE /tools/{toolId}","href":"/agentes/herramientas/eliminar-herramienta"}]}]},{"group":"Agentes preconfigurados","icon":"sparkles","root":{"title":"Agentes preconfigurados","icon":"sparkles","href":"/agentes/preconfigurados"},"directory":"card","pages":[{"group":"Seguros","icon":"shield","root":{"title":"Agentes preconfigurados para Seguros","sidebarTitle":"Seguros","icon":"shield","href":"/agentes/industrias/seguros"},"directory":"card","pages":[{"title":"Agente de IA: Emisión RC Profesional en GNP","sidebarTitle":"GNP: Emisión RC Profesional","icon":"shield-check","href":"/automatizaciones/paso-gnp-emision-rc-profesional"},{"title":"Agente de IA: Cotización GMM en GNP","sidebarTitle":"GNP: cotización GMM","icon":"heart-pulse","href":"/automatizaciones/paso-gnp-cotizacion-gmm"},{"title":"Agente de IA: Reporte de pólizas y recibos pendientes en GNP","sidebarTitle":"GNP: pólizas y recibos pendientes","icon":"file-search","href":"/automatizaciones/paso-gnp-recibos-vencidos"},{"title":"Agente de IA: Reporte de pólizas y recibos pendientes en Quálitas","sidebarTitle":"Quálitas: reporte pendiente","icon":"file-down","tag":"Nuevo","href":"/automatizaciones/paso-qualitas-cobranza-pendiente"},{"title":"Agente de IA: PDFs de recibos pendientes en GNP","sidebarTitle":"GNP: PDFs de recibos","icon":"file-down","href":"/automatizaciones/paso-gnp-documentos-recibos"},{"title":"Agente de IA: Cotización GMM en HDI","sidebarTitle":"HDI: cotización GMM","icon":"heart-pulse","href":"/automatizaciones/paso-hdi-cotizacion-gmm"},{"title":"Agente de IA: Cotización GMM en MAPFRE","sidebarTitle":"MAPFRE: cotización GMM","icon":"heart-pulse","href":"/automatizaciones/paso-mapfre-cotizacion-gmm"}]}]}]},{"group":"Automatizaciones","icon":"workflow","root":{"title":"Automatizaciones","icon":"workflow","href":"/automatizaciones/introduccion"},"directory":"accordion","pages":[{"group":"Definición","icon":"file-pen","root":{"title":"Definición","icon":"file-pen","href":"/automatizaciones/definicion"},"pages":[{"title":"Listar automatizaciones","openapi":"openapi/automatizaciones-v1.yaml GET /workflows","href":"/automatizaciones/listar-automatizaciones"},{"title":"Crear automatización","openapi":"openapi/automatizaciones-v1.yaml POST /workflows","href":"/automatizaciones/crear-automatizacion"},{"title":"Consultar automatización","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}","href":"/automatizaciones/consultar-automatizacion"},{"title":"Actualizar automatización","openapi":"openapi/automatizaciones-v1.yaml PUT /workflows/{workflowId}","href":"/automatizaciones/actualizar-automatizacion"},{"title":"Eliminar automatización","openapi":"openapi/automatizaciones-v1.yaml DELETE /workflows/{workflowId}","href":"/automatizaciones/eliminar-automatizacion"}]},{"group":"Publicación","icon":"badge-check","root":{"title":"Publicación","icon":"badge-check","href":"/automatizaciones/publicacion"},"pages":[{"title":"Publicar automatización","openapi":"openapi/automatizaciones-v1.yaml POST /workflows/{workflowId}/publish","href":"/automatizaciones/publicar-automatizacion"},{"title":"Activar automatización","openapi":"openapi/automatizaciones-v1.yaml POST /workflows/{workflowId}/activate","href":"/automatizaciones/activar-automatizacion"},{"title":"Desactivar automatización","openapi":"openapi/automatizaciones-v1.yaml POST /workflows/{workflowId}/deactivate","href":"/automatizaciones/desactivar-automatizacion"}]},{"group":"Versiones","icon":"git-branch","root":{"title":"Versiones","icon":"git-branch","href":"/automatizaciones/versiones"},"pages":[{"title":"Listar versiones","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/versions","href":"/automatizaciones/listar-versiones"},{"title":"Consultar versión","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/versions/{versionId}","href":"/automatizaciones/consultar-version"}]},{"group":"Disparos","icon":"zap","root":{"title":"Disparos","icon":"zap","href":"/automatizaciones/disparos"},"pages":[{"title":"Disparar webhook","openapi":"openapi/automatizaciones-v1.yaml POST /webhooks/{workflowId}/{secret}","href":"/automatizaciones/disparar-webhook"},{"title":"Ejecutar ahora (cron)","openapi":"openapi/automatizaciones-v1.yaml POST /workflows/{workflowId}/trigger-now","href":"/automatizaciones/ejecutar-ahora"},{"title":"Trigger de correo Gmail","icon":"https://mintlify.s3.us-west-1.amazonaws.com/insurance-boosters/assets/gmail.png","href":"/automatizaciones/trigger-gmail"},{"title":"Trigger de respuesta rápida de WhatsApp","icon":"message-circle-reply","href":"/automatizaciones/trigger-whatsapp-quick-reply"}]},{"group":"Triggers","icon":"radio-tower","root":{"title":"Triggers","icon":"radio-tower","href":"/automatizaciones/triggers"},"pages":[{"title":"Webhook","icon":"webhook","href":"/automatizaciones/triggers/webhook"},{"title":"Programación","icon":"clock","href":"/automatizaciones/triggers/programacion"},{"title":"Registro creado","icon":"database","href":"/automatizaciones/triggers/registro-creado"},{"title":"Registro actualizado","icon":"database-zap","href":"/automatizaciones/triggers/registro-actualizado"},{"title":"Contacto creado","icon":"contact-round","href":"/automatizaciones/triggers/contacto-creado"},{"title":"Contacto actualizado","icon":"contact-round-cog","href":"/automatizaciones/triggers/contacto-actualizado"},{"title":"Data Endpoint de WhatsApp Flow","icon":"message-circle-code","href":"/automatizaciones/triggers/data-endpoint-whatsapp-flow"},{"title":"Respuesta de WhatsApp Flow","icon":"message-circle","href":"/automatizaciones/triggers/respuesta-whatsapp-flow"},{"title":"Reintentos e idempotencia","icon":"refresh-cw","href":"/automatizaciones/triggers/reintentos-idempotencia"}]},{"group":"Ejecuciones","icon":"history","root":{"title":"Ejecuciones","icon":"history","href":"/automatizaciones/ejecuciones"},"pages":[{"title":"Listar ejecuciones","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/runs","href":"/automatizaciones/listar-ejecuciones"},{"title":"Consultar ejecución","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/runs/{runId}","href":"/automatizaciones/consultar-ejecucion"},{"title":"Listar pasos de una ejecución","sidebarTitle":"Pasos de la ejecución","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/runs/{runId}/steps","href":"/automatizaciones/listar-pasos-ejecucion"},{"title":"Diagnosticar un paso de navegador","sidebarTitle":"Diagnóstico de navegador","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/runs/{runId}/steps/{stepId}/diagnostics","icon":"stethoscope","href":"/automatizaciones/diagnosticar-paso-navegador"}]},{"group":"Pasos","icon":"blocks","root":{"title":"Tipos de paso","icon":"blocks","href":"/automatizaciones/tipos-de-paso"},"pages":[{"title":"Variables y contexto","icon":"braces","href":"/automatizaciones/variables-y-contexto"},{"title":"Archivos entre pasos","icon":"files","href":"/automatizaciones/archivos-entre-pasos"},{"title":"Enviar correo con Gmail","icon":"https://mintlify.s3.us-west-1.amazonaws.com/insurance-boosters/assets/gmail.png","href":"/automatizaciones/paso-gmail"},{"title":"Llamadas con mensaje","icon":"phone-call","href":"/automatizaciones/paso-llamadas-con-mensaje"},{"title":"Paso Agente IA: investigar la web","icon":"globe","href":"/automatizaciones/paso-navegador"},{"title":"Paso Agente IA: completar tarea web","icon":"mouse-pointer-click","href":"/automatizaciones/paso-tarea-navegador"},{"title":"Paso Agente IA: automatizar portal","icon":"bot","href":"/automatizaciones/paso-agente-guion"},{"title":"Paso Criterio IA","icon":"https://mintlify.s3.us-west-1.amazonaws.com/insurance-boosters/assets/typesafe-mark.svg","href":"/automatizaciones/paso-decision"},{"title":"Paso JavaScript","icon":"code","href":"/automatizaciones/paso-javascript"},{"title":"Paso HTTP","icon":"globe","href":"/automatizaciones/paso-http"},{"title":"Paso Esperar","icon":"clock","href":"/automatizaciones/paso-esperar"}]}]},{"group":"Tableros","icon":"table-2","root":{"title":"Tableros","icon":"table-2","href":"/tableros/introduccion"},"directory":"accordion","pages":[{"group":"Administración","icon":"layout-dashboard","root":{"title":"Gestión de tableros","icon":"layout-dashboard","href":"/tableros/gestion"},"pages":[{"title":"Listar tableros","openapi":"openapi/tableros-v1.yaml GET /databases","href":"/tableros/listar-tableros"},{"title":"Crear tablero","openapi":"openapi/tableros-v1.yaml POST /databases","href":"/tableros/crear-tablero"},{"title":"Consultar tablero","openapi":"openapi/tableros-v1.yaml GET /databases/{databaseId}","href":"/tableros/consultar-tablero"},{"title":"Actualizar tablero","openapi":"openapi/tableros-v1.yaml PATCH /databases/{databaseId}","href":"/tableros/actualizar-tablero"}]},{"group":"Campos","icon":"columns-3","root":{"title":"Campos","icon":"columns-3","href":"/tableros/campos"},"pages":[{"title":"Crear campo","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/fields","href":"/tableros/crear-campo"},{"title":"Tipos y configuración de campos","icon":"list-tree","href":"/tableros/tipos-de-campo"},{"title":"Actualizar campo","openapi":"openapi/tableros-v1.yaml PATCH /databases/{databaseId}/fields/{fieldId}","href":"/tableros/actualizar-campo"},{"title":"Reordenar campos","openapi":"openapi/tableros-v1.yaml PUT /databases/{databaseId}/fields/reorder","href":"/tableros/reordenar-campos"},{"title":"Vincular relación bidireccional","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/fields/{fieldId}/link","sidebarTitle":"Vincular relación","href":"/tableros/vincular-relacion"},{"title":"Desvincular relación bidireccional","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/fields/{fieldId}/unlink","sidebarTitle":"Desvincular relación","href":"/tableros/desvincular-relacion"},{"title":"Eliminar campo","openapi":"openapi/tableros-v1.yaml DELETE /databases/{databaseId}/fields/{fieldId}","href":"/tableros/eliminar-campo"}]},{"group":"Registros","icon":"rows-3","root":{"title":"Registros","icon":"rows-3","href":"/tableros/registros"},"pages":[{"title":"Valores por tipo de campo","icon":"braces","href":"/tableros/valores-por-tipo"},{"title":"Listar registros","openapi":"openapi/tableros-v1.yaml GET /databases/{databaseId}/records","href":"/tableros/listar-registros"},{"title":"Buscar registros","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records/search","href":"/tableros/buscar-registros"},{"title":"Crear registro","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records","href":"/tableros/crear-registro"},{"title":"Crear registros en lote","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records/bulk","sidebarTitle":"Crear en lote","href":"/tableros/crear-registros-lote"},{"title":"Consultar registro","openapi":"openapi/tableros-v1.yaml GET /databases/{databaseId}/records/{recordId}","href":"/tableros/consultar-registro"},{"title":"Actualizar registro","openapi":"openapi/tableros-v1.yaml PATCH /databases/{databaseId}/records/{recordId}","href":"/tableros/actualizar-registro"},{"title":"Actualizar relaciones de un registro","openapi":"openapi/tableros-v1.yaml PATCH /databases/{databaseId}/records/{recordId}/relation-links","sidebarTitle":"Actualizar relaciones","href":"/tableros/actualizar-relaciones-registro"},{"title":"Consultar historial de un registro","openapi":"openapi/tableros-v1.yaml GET /databases/{databaseId}/records/{recordId}/history","sidebarTitle":"Consultar historial","href":"/tableros/historial-registro"},{"title":"Eliminar registro","openapi":"openapi/tableros-v1.yaml DELETE /databases/{databaseId}/records/{recordId}","href":"/tableros/eliminar-registro"}]},{"group":"Archivos","icon":"paperclip","root":{"title":"Archivos","icon":"paperclip","href":"/tableros/archivos"},"pages":[{"title":"Subir archivo","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records/{recordId}/fields/{fieldKey}/files","href":"/tableros/subir-archivo"},{"title":"Desadjuntar archivo","openapi":"openapi/tableros-v1.yaml DELETE /databases/{databaseId}/records/{recordId}/fields/{fieldKey}/files/{fileId}","href":"/tableros/desadjuntar-archivo"}]},{"group":"PDF","icon":"file-text","root":{"title":"Generar PDF","icon":"file-text","href":"/tableros/generar-pdf"},"pages":[{"title":"Listar plantillas PDF","openapi":"openapi/tableros-v1.yaml GET /databases/{databaseId}/pdf-templates","href":"/tableros/listar-plantillas-pdf"},{"title":"Generar PDF de un registro","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records/{recordId}/pdf-template","href":"/tableros/generar-pdf-registro"}]}]}]}]},"basePath":"","title":"Ejecutar agente personalizado - Insurance Boosters API","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["c2aa737661","b0f84f53ff","07c022d89b","a74be98ba7","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-D4yvBxwa.js","snippetPresets-CkhhQaIQ.js","utils-XnMGX2lF.js","style-to-object-BY3JEAdk.js","utils-CRXL1dwr.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DvwRKZnA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DYtgUc7n.js","_Uint8Array-D8z7zjjJ.js","isObject-FP1Yky1u.js","Page-DQd9HN9r.js","api-description-markdown-BpDftTKT.js","DynamicMarkdown-CZT_WAnN.js","CodeSnippet-C1QlaNYl.js","use-playground-group-access-DyQ_1IIe.js","SectionHeading-K1iuDm9j.js","ApiExamples-RYQSJVS4.js","usePlaygroundInputsStore-k_R_BTDL.js","shallow-BwVhzryZ.js","isEqual-Cx5TQjMc.js","CodeSnippets-BDe2dS5N.js","MethodPill-Dx3JIwHJ.js","getPastedJson-buPTdYs_.js","Check2Icon-DmMrzBYX.js","axios-CsQoIw0U.js","Frame-D6LgX1ys.js","zoom-image-lightbox-CIIGaZaE.js","lightbox-handle-r17bVUz3.js","Markdown-erv2ryQz.js","AssistantPageLink-DJ01X1Sn.js","dist-D9mz3EIS.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}