Esta operación permite crear un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.
{
"success": true,
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"master_workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "created",
"language": "<string>",
"timezone": "<string>",
"region_style": "<string>",
"coerced_fields": [
{
"key": "buyer_profile",
"requested_type": "select",
"saved_type": "text",
"reason": "no_options",
"hint": "This field was saved as text because it had no options. To make it a list, send it again with type select and a non-empty options array."
}
]
}
POST/workflowsCrea un agente nuevo (funnel + statuses) desde cero — completamente vía API. Este es el primer paso del ciclo de vida API-first de un agente:
Idempotente. Si ya existe un agente con el mismo name en tu cuenta, devuelve el existente (status: "existed") en lugar de crear un duplicado — seguro de reintentar.
Límite de contenido del cliente
Cada tarea tiene un máximo de 20.000 tokens del cliente, incluida la identidad compartida cuando pertenece a un agente. Las instrucciones internas de Nexor no consumen este cupo, pero una tarea que hace llamadas tiene además un límite de 28.000 tokens por llamada que sí las incluye. El límite cubre la configuración descrita en Límite de tu contenido.La API devuelve 422 CUSTOMER_PROMPT_TOO_LARGE si la configuración final del cliente supera este límite. Si una llamada superaría el límite por llamada, devuelve 503 VOICE_PROMPT_CAPACITY_EXCEEDED con capacity.tokens y capacity.limit. Acorta el prompt o las instrucciones en al menos capacity.tokens - capacity.limit tokens. La creación puede incluir varias escrituras, por lo que debes consultar el estado actual de la tarea antes de reintentar una solicitud fallida.Si el flujo de llamada de la tarea supera 390.000 bytes, la API devuelve 422 CONVERSATION_FLOW_TOO_LARGE con projected_bytes, limit y las partes que determinan su tamaño. Si no se puede construir el flujo de llamada con la configuración, devuelve 422 CONVERSATION_FLOW_CONFIGURATION_INVALID con un reason.
Cuerpo de la Solicitud
Campo
Tipo
Requerido
Descripción
name
string
Sí
Nombre del agente. Se usa para el chequeo de idempotencia
Array no vacío de statuses del funnel (ver abajo). Si ninguno está marcado is_initial, se usa el primero; si ninguno está marcado is_terminal, se usa el último
description
string
No
Descripción del agente
global_prompt
string
No
Prompt base. También se puede configurar después vía PATCH /workflows/:id/prompt
language
string
No
Por defecto es
channels
array
No
Canales a habilitar, ej. ["whatsapp", "email"]. Por defecto ["whatsapp"]
fields
array
No
Campos personalizados a recolectar (ver Actualizar Estructura para la forma exacta). Un campo select o multiselect necesita en options al menos una opción que no esté en blanco; sin ella, se guarda como text y aparece en coerced_fields
Goals disponibles
goal_type
Resultado esperado
Notas
appointment
Agendar una reunión
Habilita las capacidades de calendario.
payment_link
Enviar un link de pago y cerrar el cobro
La integración que genera o entrega el link debe estar configurada.
qualification
Calificar al lead según los datos recopilados
Combínalo con campos y etapas que expresen los criterios.
information
Responder preguntas
Normalmente depende de una base de conocimiento.
support
Resolver o escalar consultas de soporte
Define reglas claras de escalación.
document_collection
Solicitar y verificar documentos
El dashboard muestra una sección Documentos para este goal.
quote
Generar una cotización desde un catálogo
Requiere un catálogo asignado.
custom
Cumplir un objetivo escrito por el operador
No habilita herramientas de calendario.
sale
Completar una venta
Valor compatible con la API; no aparece como preset en el selector actual del dashboard.
El onboarding también muestra Calificar y luego agendar. Esa opción se guarda como appointment con un pipeline y reglas de calificación; no envíes qualify_then_book a este endpoint público.
El goal custom
Usa custom cuando el objetivo del agente no es ninguno de los presets: cobranza, reactivación de clientes, post-venta o encuestas. El agente persigue un objetivo escrito en tus propias palabras, configurado en el Dashboard en Configuración del agente → Objetivo y guardado como config.goal_statement. Admite hasta 600 caracteres y debe describir el resultado, no el procedimiento. Dos cosas a saber:
Un agente customno agenda reuniones — las herramientas de calendario no están disponibles para él. Si el objetivo termina en una reunión agendada, usa appointment.
Debes enviar statuses como en cualquier otro goal. Este endpoint no infiere el pipeline; para un custom típico puedes usar new → contacted → engaged → converted → lost y adaptar las instrucciones de transición al resultado escrito.
Si un campo select o multiselect de fields no tenía ninguna opción válida, Nexor lo guarda como text y agrega coerced_fields a la respuesta. Cada entrada trae el key del campo, requested_type, saved_type (text), reason (no_options) y un hint. Para convertir el campo en una lista, envíalo a Actualizar Estructura con type en select o multiselect y un array options no vacío.
503 VOICE_PROMPT_BUDGET_UNAVAILABLE indica que Nexor no pudo completar la comprobación de capacidad. Reintenta cuando la validación esté disponible.
Autorizaciones
X-API-Key
string
header
requerido
API key for authentication. Keys are prefixed with nxr_live_. To work inside a sub-account with a main account key, also send the optional X-Nexor-Sub-Account-Id header.
{
"success": true,
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"master_workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "created",
"language": "<string>",
"timezone": "<string>",
"region_style": "<string>",
"coerced_fields": [
{
"key": "buyer_profile",
"requested_type": "select",
"saved_type": "text",
"reason": "no_options",
"hint": "This field was saved as text because it had no options. To make it a list, send it again with type select and a non-empty options array."
}
]
}
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Nexor","colors":{"primary":"#0A0A0A","light":"#FAFAFA","dark":"#0A0A0A"},"logo":{"light":"https://mintcdn.com/nexor/f1Gy8zY6i2a68PTn/images/logo-black.svg?fit=max\u0026auto=format\u0026n=f1Gy8zY6i2a68PTn\u0026q=85\u0026s=2a5ea3c97db1c6499f5f24571b593e6f","dark":"https://mintcdn.com/nexor/f1Gy8zY6i2a68PTn/images/logo-white.svg?fit=max\u0026auto=format\u0026n=f1Gy8zY6i2a68PTn\u0026q=85\u0026s=65697db82c09cf7f5a5e76a512981d1e","href":"https://docs.getnexor.ai"},"favicon":{"light":"https://mintcdn.com/nexor/f1Gy8zY6i2a68PTn/images/icon.png?fit=max\u0026auto=format\u0026n=f1Gy8zY6i2a68PTn\u0026q=85\u0026s=321e364fa619df901dc06c5ef29d4125","dark":"https://mintcdn.com/nexor/f1Gy8zY6i2a68PTn/images/icon.png?fit=max\u0026auto=format\u0026n=f1Gy8zY6i2a68PTn\u0026q=85\u0026s=321e364fa619df901dc06c5ef29d4125"},"api":{"openapi":"openapi.json","playground":{"display":"interactive"},"examples":{"prefill":true}},"navbar":{"links":[{"href":"https://app.getnexor.ai","label":"Ir a Nexor →"}]},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":true},"contextual":{"options":["copy","assistant"],"display":"header"},"thumbnails":{"fonts":{"family":"Inter"}},"interaction":{"drilldown":true},"metadata":{"timestamp":true},"markdown":{"schema":false},"navigation":{"languages":[{"language":"en","href":"docs/en/guides/getting-started"},{"language":"es","href":"docs/es/guides/getting-started"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nexor","hasAudioNarration":false,"actualSubdomain":"nexor","customDomains":["docs.getnexor.ai"],"gitSource":{"type":"github","owner":"getnexor-ai","repo":"nexor-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af7117677407407f8da0472","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"en","tag":"API reference","count":159},{"language":"es","tag":"Referencia API","count":159},{"language":"en","tag":"Leads","count":27},{"language":"es","tag":"Leads","count":27},{"language":"en","tag":"CRM Chat","count":25},{"language":"es","tag":"CRM por chat","count":25},{"language":"en","tag":"Agents","count":20},{"language":"es","tag":"Agentes","count":20},{"language":"en","tag":"Cloud Functions","count":19},{"language":"es","tag":"Cloud Functions","count":19},{"language":"en","tag":"Scheduled Functions","count":18},{"language":"es","tag":"Funciones programadas","count":18},{"language":"en","tag":"Inbound router","count":14},{"language":"en","tag":"Meetings","count":14},{"language":"en","tag":"Support reference","count":14},{"language":"es","tag":"Enrutador de entrada","count":14},{"language":"es","tag":"Reuniones","count":14},{"language":"es","tag":"Referencia de soporte","count":14},{"language":"en","tag":"Integrations","count":13},{"language":"es","tag":"Integraciones","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"workos-onboarding","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":"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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"docs/es/api/workflows/create-workflow","slug":"/docs/es/api/workflows/create-workflow","pageMetadata":{"title":"Crear un agente","sidebarTitle":"Crear","description":"Esta operación permite crear un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.","openapi":"openapi.json POST /workflows","href":"/docs/es/api/workflows/create-workflow"},"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: \"Esta operación permite crear un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.\"\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,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(`span`,{class:`badge--post`,children:`POST`}),`\n`,_jsx(`code`,{class:`endpoint-url`,children:`/workflows`}),`\n`,_jsx(_components.p,{children:`Crea un agente nuevo (funnel + statuses) desde cero — completamente vía API. Este es el primer paso del ciclo de vida API-first de un agente:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Crear`}),` el agente (este endpoint). Nace `,_jsx(_components.strong,{children:`pausado`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/docs/es/api/workflows/set-workflow-prompt`,children:`Configurar su prompt`}),` — qué dice y cómo se comporta.`]}),`\n`,_jsxs(_components.li,{children:[`Opcionalmente `,_jsx(_components.a,{href:`/docs/es/api/workflows/update-workflow-structure`,children:`agregar statuses/campos personalizados`}),` o `,_jsx(_components.a,{href:`/docs/es/api/workflow-tools/create-workflow-tool`,children:`tools personalizadas`}),` que pueda llamar.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/docs/es/api/workflows/update-workflow`,children:`Activarlo`}),` seteando `,_jsx(_components.code,{children:`is_paused: false`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Idempotente.`}),` Si ya existe un agente con el mismo `,_jsx(_components.code,{children:`name`}),` en tu cuenta, devuelve el existente (`,_jsx(_components.code,{children:`status: \"existed\"`}),`) en lugar de crear un duplicado — seguro de reintentar.`]}),`\n`,_jsx(Heading,{level:`2`,id:`límite-de-contenido-del-cliente`,children:`Límite de contenido del cliente`}),`\n`,_jsxs(_components.p,{children:[`Cada tarea tiene un máximo de `,_jsx(_components.strong,{children:`20.000 tokens del cliente`}),`, incluida la identidad compartida cuando pertenece a un agente. Las instrucciones internas de Nexor no consumen este cupo, pero una tarea que hace llamadas tiene además un límite de 28.000 tokens por llamada que sí las incluye. El límite cubre la configuración descrita en `,_jsx(_components.a,{href:`/docs/es/guides/agents/prompt-best-practices#l%C3%ADmite-de-tu-contenido`,children:`Límite de tu contenido`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`La API devuelve `,_jsx(_components.code,{children:`422 CUSTOMER_PROMPT_TOO_LARGE`}),` si la configuración final del cliente supera este límite. Si una llamada superaría el límite por llamada, devuelve `,_jsx(_components.code,{children:`503 VOICE_PROMPT_CAPACITY_EXCEEDED`}),` con `,_jsx(_components.code,{children:`capacity.tokens`}),` y `,_jsx(_components.code,{children:`capacity.limit`}),`. Acorta el prompt o las instrucciones en al menos `,_jsx(_components.code,{children:`capacity.tokens - capacity.limit`}),` tokens. La creación puede incluir varias escrituras, por lo que debes consultar el estado actual de la tarea antes de reintentar una solicitud fallida.`]}),`\n`,_jsxs(_components.p,{children:[`Si el flujo de llamada de la tarea supera `,_jsx(_components.strong,{children:`390.000 bytes`}),`, la API devuelve `,_jsx(_components.code,{children:`422 CONVERSATION_FLOW_TOO_LARGE`}),` con `,_jsx(_components.code,{children:`projected_bytes`}),`, `,_jsx(_components.code,{children:`limit`}),` y las partes que determinan su tamaño. Si no se puede construir el flujo de llamada con la configuración, devuelve `,_jsx(_components.code,{children:`422 CONVERSATION_FLOW_CONFIGURATION_INVALID`}),` con un `,_jsx(_components.code,{children:`reason`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`cuerpo-de-la-solicitud`,children:`Cuerpo de la Solicitud`}),`\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:`Requerido`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Sí`})}),_jsx(_components.td,{children:`Nombre del agente. Se usa para el chequeo de idempotencia`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`goal_type`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Sí`})}),_jsxs(_components.td,{children:[`Uno de los valores de la tabla `,_jsx(_components.a,{href:`#goals-disponibles`,children:`Goals disponibles`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`statuses`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Sí`})}),_jsxs(_components.td,{children:[`Array no vacío de statuses del funnel (ver abajo). Si ninguno está marcado `,_jsx(_components.code,{children:`is_initial`}),`, se usa el primero; si ninguno está marcado `,_jsx(_components.code,{children:`is_terminal`}),`, se usa el último`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Descripción del agente`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`global_prompt`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Prompt base. También se puede configurar después vía `,_jsx(_components.code,{children:`PATCH /workflows/:id/prompt`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`language`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Por defecto `,_jsx(_components.code,{children:`es`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`channels`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Canales a habilitar, ej. `,_jsx(_components.code,{children:`[\"whatsapp\", \"email\"]`}),`. Por defecto `,_jsx(_components.code,{children:`[\"whatsapp\"]`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fields`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Campos personalizados a recolectar (ver `,_jsx(_components.a,{href:`/docs/es/api/workflows/update-workflow-structure`,children:`Actualizar Estructura`}),` para la forma exacta). Un campo `,_jsx(_components.code,{children:`select`}),` o `,_jsx(_components.code,{children:`multiselect`}),` necesita en `,_jsx(_components.code,{children:`options`}),` al menos una opción que no esté en blanco; sin ella, se guarda como `,_jsx(_components.code,{children:`text`}),` y aparece en `,_jsx(_components.code,{children:`coerced_fields`})]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`goals-disponibles`,children:`Goals disponibles`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`goal_type`})}),_jsx(_components.th,{children:`Resultado esperado`}),_jsx(_components.th,{children:`Notas`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`appointment`})}),_jsx(_components.td,{children:`Agendar una reunión`}),_jsx(_components.td,{children:`Habilita las capacidades de calendario.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_link`})}),_jsx(_components.td,{children:`Enviar un link de pago y cerrar el cobro`}),_jsx(_components.td,{children:`La integración que genera o entrega el link debe estar configurada.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`qualification`})}),_jsx(_components.td,{children:`Calificar al lead según los datos recopilados`}),_jsx(_components.td,{children:`Combínalo con campos y etapas que expresen los criterios.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`information`})}),_jsx(_components.td,{children:`Responder preguntas`}),_jsx(_components.td,{children:`Normalmente depende de una base de conocimiento.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`support`})}),_jsx(_components.td,{children:`Resolver o escalar consultas de soporte`}),_jsx(_components.td,{children:`Define reglas claras de escalación.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_collection`})}),_jsx(_components.td,{children:`Solicitar y verificar documentos`}),_jsxs(_components.td,{children:[`El dashboard muestra una sección `,_jsx(_components.strong,{children:`Documentos`}),` para este goal.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`quote`})}),_jsx(_components.td,{children:`Generar una cotización desde un catálogo`}),_jsx(_components.td,{children:`Requiere un catálogo asignado.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`custom`})}),_jsx(_components.td,{children:`Cumplir un objetivo escrito por el operador`}),_jsx(_components.td,{children:`No habilita herramientas de calendario.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sale`})}),_jsx(_components.td,{children:`Completar una venta`}),_jsx(_components.td,{children:`Valor compatible con la API; no aparece como preset en el selector actual del dashboard.`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`El onboarding también muestra `,_jsx(_components.strong,{children:`Calificar y luego agendar`}),`. Esa opción se guarda como `,_jsx(_components.code,{children:`appointment`}),` con un pipeline y reglas de calificación; no envíes `,_jsx(_components.code,{children:`qualify_then_book`}),` a este endpoint público.`]})}),`\n`,_jsxs(Heading,{level:`3`,id:`el-goal-custom`,children:[`El goal `,_jsx(_components.code,{children:`custom`})]}),`\n`,_jsxs(_components.p,{children:[`Usa `,_jsx(_components.code,{children:`custom`}),` cuando el objetivo del agente no es ninguno de los presets: cobranza, reactivación de clientes, post-venta o encuestas. El agente persigue un `,_jsx(_components.strong,{children:`objetivo escrito en tus propias palabras`}),`, configurado en el Dashboard en `,_jsx(_components.strong,{children:`Configuración del agente → Objetivo`}),` y guardado como `,_jsx(_components.code,{children:`config.goal_statement`}),`. Admite hasta 600 caracteres y debe describir el resultado, no el procedimiento. Dos cosas a saber:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Un agente `,_jsx(_components.code,{children:`custom`}),` `,_jsx(_components.strong,{children:`no agenda reuniones`}),` — las herramientas de calendario no están disponibles para él. Si el objetivo termina en una reunión agendada, usa `,_jsx(_components.code,{children:`appointment`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Debes enviar `,_jsx(_components.code,{children:`statuses`}),` como en cualquier otro goal. Este endpoint no infiere el pipeline; para un custom típico puedes usar `,_jsx(_components.code,{children:`new → contacted → engaged → converted → lost`}),` y adaptar las instrucciones de transición al resultado escrito.`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`forma-de-statuses`,children:[`Forma de `,_jsx(_components.code,{children:`statuses[]`})]}),`\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:`Requerido`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`key`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Sí`})}),_jsx(_components.td,{children:`Identificador estable del status`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Sí`})}),_jsxs(_components.td,{children:[`Etiqueta visible (`,_jsx(_components.code,{children:`label`}),` también es aceptado)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`is_initial`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Marca el status de entrada del funnel`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`is_terminal`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Marca un status de cierre del funnel`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sort_order`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Por defecto, el índice del array`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`respuestas`,children:`Respuestas`}),`\n`,_jsxs(Heading,{level:`3`,id:`201-—-agente-creado`,children:[_jsx(_components.code,{children:`201`}),` — Agente creado`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,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:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_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:` \"workflow_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123e4567-e89b-12d3-a456-426614174000\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"created\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Si un campo `,_jsx(_components.code,{children:`select`}),` o `,_jsx(_components.code,{children:`multiselect`}),` de `,_jsx(_components.code,{children:`fields`}),` no tenía ninguna opción válida, Nexor lo guarda como `,_jsx(_components.code,{children:`text`}),` y agrega `,_jsx(_components.code,{children:`coerced_fields`}),` a la respuesta. Cada entrada trae el `,_jsx(_components.code,{children:`key`}),` del campo, `,_jsx(_components.code,{children:`requested_type`}),`, `,_jsx(_components.code,{children:`saved_type`}),` (`,_jsx(_components.code,{children:`text`}),`), `,_jsx(_components.code,{children:`reason`}),` (`,_jsx(_components.code,{children:`no_options`}),`) y un `,_jsx(_components.code,{children:`hint`}),`. Para convertir el campo en una lista, envíalo a `,_jsx(_components.a,{href:`/docs/es/api/workflows/update-workflow-structure#campos-de-lista`,children:`Actualizar Estructura`}),` con `,_jsx(_components.code,{children:`type`}),` en `,_jsx(_components.code,{children:`select`}),` o `,_jsx(_components.code,{children:`multiselect`}),` y un array `,_jsx(_components.code,{children:`options`}),` no vacío.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`200-—-ya-existía-respuesta-idempotente`,children:[_jsx(_components.code,{children:`200`}),` — Ya existía (respuesta idempotente)`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,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:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_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:` \"workflow_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123e4567-e89b-12d3-a456-426614174000\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"existed\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Heading,{level:`3`,id:`400-—-error-de-validación`,children:[_jsx(_components.code,{children:`400`}),` — Error de validación`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid input\"`}),_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:`\"name is required\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Otros errores de validación:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\"goal_type must be one of: appointment, sale, qualification, information, payment_link, support, custom, quote, document_collection\"`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\"statuses must be a non-empty array\"`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\"each status needs a key and a name\"`})}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`401-—-error-de-autenticación`,children:[_jsx(_components.code,{children:`401`}),` — Error de autenticación`]}),`\n`,_jsxs(_components.p,{children:[`Ver `,_jsx(_components.a,{href:`/docs/es/api/authentication`,children:`Autenticación`}),`.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`503-—-validación-no-disponible`,children:[_jsx(_components.code,{children:`503`}),` — Validación no disponible`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`503 VOICE_PROMPT_BUDGET_UNAVAILABLE`}),` indica que Nexor no pudo completar la comprobación de capacidad. Reintenta cuando la validación esté disponible.`]})]})}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":"Crear un agente","sidebarTitle":"Crear","description":"Esta operación permite crear un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.","openapi":"openapi.json POST /workflows","href":"/docs/es/api/workflows/create-workflow"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Límite de contenido del cliente","slug":"límite-de-contenido-del-cliente","depth":2,"children":[]},{"title":"Cuerpo de la Solicitud","slug":"cuerpo-de-la-solicitud","depth":2,"children":[{"title":"Goals disponibles","slug":"goals-disponibles","depth":3,"children":[]},{"title":"El goal custom","slug":"el-goal-custom","depth":3,"children":[]},{"title":"Forma de statuses[]","slug":"forma-de-statuses","depth":3,"children":[]}]},{"title":"Respuestas","slug":"respuestas","depth":2,"children":[{"title":"201 — Agente creado","slug":"201-—-agente-creado","depth":3,"children":[]},{"title":"200 — Ya existía (respuesta idempotente)","slug":"200-—-ya-existía-respuesta-idempotente","depth":3,"children":[]},{"title":"400 — Error de validación","slug":"400-—-error-de-validación","depth":3,"children":[]},{"title":"401 — Error de autenticación","slug":"401-—-error-de-autenticación","depth":3,"children":[]},{"title":"503 — Validación no disponible","slug":"503-—-validación-no-disponible","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create an Agent","description":"Esta operación permite crear un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.","operationId":"postWorkflows","tags":["Agents"],"responses":{"200":"2f09f1af-e547-4b12-9eed-3b17d7517c1d","201":"8241db1f-0957-4aff-97c9-b983bb38da4a","400":"ccb0c9c1-cee1-4134-b79b-ecb6e1e74542","401":"361371b3-b761-445f-a6fb-5f692ce4c80e","403":"06cd2214-25ef-4ee6-9f86-8407b1c9051b","404":"edc8880d-0349-4bc0-b674-643f8937bd08","409":"939198b9-03ea-48bb-b031-5d62f3e204ab","422":"b7cbf040-4117-44f8-80cd-326bf156ec14","429":"7e1ff64f-2439-42df-8066-a64d2b1b14c0","500":"baf2670d-05fe-41bc-b1ce-1cc8af004319","503":"63c878e7-4952-4ae5-b201-828606a87ba5"},"x-docs":{"group":"Agents","path":"api/workflows/create-workflow","pageMode":"existing-bind","contractDetail":"handler-derived-top-level","source":{"repo":"nexor-node-api","sha":"acd1e9d6f19b23177d05408eb712f6d1f047fcfc","file":"src/features/public-api/public-workflows.routes.js","line":319,"factory":"createPublicWorkflowsRouter","mount":"/api/public/workflows","localPath":"/"},"scope":"workflows:write","auth":{"credential":"X-API-Key or Authorization Bearer API key","audience":"tenant_customer"},"observed":{"body_fields":["agent_name","agent_role","begin_message","channels","company_name","description","fields","global_prompt","goal_type","language","master_workflow_id","name","region_style","statuses","timezone"],"required_body_fields":["goal_type","name","statuses"],"required_body_fields_by_variant":[],"request_body_required":true,"query_fields":[],"required_query_fields":[],"response_codes":[200,201,400,404,409,422,500,503],"response_fields_by_code":{"200":["master_workflow_id","status","success","workflow_id"],"201":["coerced_fields","language","master_workflow_id","region_style","status","success","timezone","workflow_id"],"400":["code","error","message"],"404":["code","error","message"],"409":["code","error","message"],"422":["content_bytes","customer","error","exits","fields","limit","phases","projected_bytes","reason","reroute_targets","tokens","tools","transfers","workflow_id"],"500":["code","error","message"],"503":["capacity","customer","error","message"]},"path_fields":[],"required_path_fields":[]},"en":{"path":"docs/en/api/workflows/create-workflow","title":"Create an Agent","sidebarTitle":"Create","description":"This operation lets you create an agent for the authenticated Nexor account. This reference documents verified path, query, and top-level JSON body fields, observed response status codes, and top-level response fields. Provider-owned or deeply nested response shapes may remain open."},"es":{"path":"docs/es/api/workflows/create-workflow","title":"Crear un agente","sidebarTitle":"Crear","description":"Esta operación permite crear un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas."},"contractSource":{"artifact":"phase9-contracts-workflows-templates.json","sha256":"a4cfab8dd2d49077a62e7dc1b8aa52edada619b31e237b1dd1c46ab11ab82880","node_sha":"0489d6ae8f42220d3e445c6b09c6da3de3981c1e","evidence":["src/features/public-api/public-workflows.routes.js:317-519","src/features/wizard/schema.js:9-9","src/features/ai-agent/i18n/data/retell-languages.js:64-84"]},"safety":{"contract":null,"securityReview":{"decision":"publish","warning_codes":[],"notes":[],"evidence":["node@0489d6ae8f42220d3e445c6b09c6da3de3981c1e:src/features/ai-agent/i18n/data/retell-languages.js:64-84","node@0489d6ae8f42220d3e445c6b09c6da3de3981c1e:src/features/public-api/public-workflows.routes.js:317-519","node@0489d6ae8f42220d3e445c6b09c6da3de3981c1e:src/features/public-api/public-workflows.routes.js:318","node@0489d6ae8f42220d3e445c6b09c6da3de3981c1e:src/features/wizard/schema.js:9-9"]}}},"parameters":[],"requestBody":"7c614983-3948-4e94-bd4b-c4010f7ea898","method":"post","type":"path","servers":["5c88c5ae-afbe-4d33-b16e-710cb9d2baa8"],"security":["2401f0d1-5a36-4e43-97cb-c2d97e69a8f2"],"path":"/workflows","baseUrlOptions":["https://api.getnexor.ai/api/public"],"title":"Create an Agent","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.name":"\u003cstring>","body.statuses.items.0.oneOf.0.key":"\u003cstring>","body.statuses.items.0.oneOf.0.name":"\u003cstring>","body.statuses.items.0.oneOf.0.label":"\u003cstring>","body.statuses.items.0.oneOf.0.is_initial":false,"body.statuses.items.0.oneOf.0.is_terminal":false,"body.statuses.items.0.oneOf.0.sort_order":123,"body.statuses.items.0.oneOf.0.entry_hint.oneOf.0":"\u003cstring>","body.statuses.items.0.oneOf.0.category.oneOf.0":"\u003cstring>","body.statuses.items.0.oneOf.0.color":"\u003cstring>","body.statuses.items.0.oneOf.0.is_auto_contacted":false,"body.statuses.items.0.oneOf.0.is_auto_engaged":false,"body.statuses.items.0.oneOf.0.is_booking_target":false,"body.statuses.items.0.oneOf.0.is_qualified":false,"body.statuses.items.0.oneOf.0.requires_all_fields":false,"body.statuses.items.0.oneOf.0.pause_bot":false,"body.statuses.items.0.oneOf.0.required_field_keys.oneOf.0.items.0":"\u003cstring>","body.statuses.items.0.oneOf.0.transition_rules.oneOf.0":{},"body.statuses.items.0.oneOf.0.timeout_config.oneOf.0.timeout.oneOf.0":1,"body.statuses.items.0.oneOf.0.timeout_config.oneOf.0.target_status_key":"\u003cstring>","body.statuses.items.0.oneOf.0.transfer_config.oneOf.0.target_workflow_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","body.statuses.items.0.oneOf.0.transfer_config.oneOf.0.target_status_key.oneOf.0":"\u003cstring>","body.statuses.items.0.oneOf.0.transfer_config.oneOf.0.copy_fields":true,"body.statuses.items.0.oneOf.0.transfer_config.oneOf.0.silent":true,"body.statuses.items.0.oneOf.0.assignment_config.oneOf.0":{},"body.master_workflow_id.oneOf.0":"3c90c3cc-0d44-4b50-8888-8dd25736052a","body.agent_name.oneOf.0":"\u003cstring>","body.agent_role.oneOf.0":"\u003cstring>","body.company_name.oneOf.0":"\u003cstring>","body.begin_message.oneOf.0":"\u003cstring>","body.timezone":"\u003cstring>","body.global_prompt":"\u003cstring>","body.fields.items.0.key":"\u003cstring>","body.fields.items.0.label":"\u003cstring>","body.fields.items.0.type":"text","body.fields.items.0.required":false,"body.fields.items.0.options.oneOf.0.items.0.oneOf.0":"\u003cstring>","body.fields.items.0.extraction_hints":"\u003cstring>","body.fields.items.0.sort_order":123,"body.fields.items.0.metadata_key.oneOf.0":"\u003cstring>","body.description.oneOf.0":"\u003cstring>"}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"goal_type":{"type":"string","enum":["appointment","sale","qualification","information","payment_link","support","custom","quote","document_collection"],"isRequired":true,"uniqueKey":"goal_type","typeLabel":"enum\u003cstring>"},"statuses":{"type":"array","items":{"oneOf":[{"type":"object","required":["key","name"],"properties":{"key":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.key","typeLabel":"string"},"name":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.name","typeLabel":"string"},"label":{"type":"string","minLength":1,"uniqueKey":"statuses.items.[INDEX].oneOf.0.label","typeLabel":"string"},"is_initial":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.0.is_initial","typeLabel":"boolean"},"is_terminal":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.0.is_terminal","typeLabel":"boolean"},"sort_order":{"type":"number","uniqueKey":"statuses.items.[INDEX].oneOf.0.sort_order","typeLabel":"number"},"entry_hint":{"oneOf":[{"type":"string","uniqueKey":"statuses.items.[INDEX].oneOf.0.entry_hint.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"statuses.items.[INDEX].oneOf.0.entry_hint.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.0.entry_hint","typeLabel":"string | null"},"category":{"oneOf":[{"type":"string","uniqueKey":"statuses.items.[INDEX].oneOf.0.category.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"statuses.items.[INDEX].oneOf.0.category.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.0.category","typeLabel":"string | null"},"color":{"type":"string","uniqueKey":"statuses.items.[INDEX].oneOf.0.color","typeLabel":"string"},"is_auto_contacted":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.0.is_auto_contacted","typeLabel":"boolean"},"is_auto_engaged":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.0.is_auto_engaged","typeLabel":"boolean"},"is_booking_target":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.0.is_booking_target","typeLabel":"boolean"},"is_qualified":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.0.is_qualified","typeLabel":"boolean"},"requires_all_fields":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.0.requires_all_fields","typeLabel":"boolean"},"pause_bot":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.0.pause_bot","typeLabel":"boolean"},"required_field_keys":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"statuses.items.[INDEX].oneOf.0.required_field_keys.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"statuses.items.[INDEX].oneOf.0.required_field_keys.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"statuses.items.[INDEX].oneOf.0.required_field_keys.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.0.required_field_keys","typeLabel":"string[] | null"},"transition_rules":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.transition_rules.oneOf.0","typeLabel":"object"},{"type":"null","properties":{},"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.transition_rules.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.0.transition_rules","typeLabel":"object | null"},"timeout_config":{"oneOf":[{"type":"object","properties":{"timeout":{"oneOf":[{"type":"number","minimum":0,"exclusiveMinimum":true,"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.timeout_config.oneOf.0.timeout.oneOf.0","typeLabel":"number"},{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.timeout_config.oneOf.0.timeout.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.timeout_config.oneOf.0.timeout","typeLabel":"number | string"},"unit":{"type":"string","enum":["minutes","hours","days"],"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.timeout_config.oneOf.0.unit","typeLabel":"enum\u003cstring>"},"target_status_key":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.timeout_config.oneOf.0.target_status_key","typeLabel":"string"}},"required":["timeout","unit","target_status_key"],"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.timeout_config.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"timeout":{"oneOf":[{"type":"number","minimum":0,"exclusiveMinimum":true},{"type":"string","minLength":1}]},"unit":{"type":"string","enum":["minutes","hours","days"]},"target_status_key":{"type":"string","minLength":1}},"required":["timeout","unit","target_status_key"],"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.timeout_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.0.timeout_config","typeLabel":"object | null"},"transfer_config":{"oneOf":[{"type":"object","properties":{"target_workflow_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.transfer_config.oneOf.0.target_workflow_id","typeLabel":"string\u003cuuid>"},"target_status_key":{"oneOf":[{"type":"string","description":"Key of the stage in the receiving task where the lead starts (the Landing stage). Omitted, null, or blank: the first stage. It must be an open stage of the receiving task: not terminal, won, or lost, not the goal stage, not a stage that pauses the agent, and not a stage with its own transfer. Otherwise, or when the value is not a string, the request returns 400 `transfer_target_status_invalid`. If the stage no longer qualifies when the transfer runs, or its owner assignment has no eligible member, the lead starts in the first stage.","uniqueKey":"statuses.items.[INDEX].oneOf.0.transfer_config.oneOf.0.target_status_key.oneOf.0","typeLabel":"string"},{"type":"null","description":"Key of the stage in the receiving task where the lead starts (the Landing stage). Omitted, null, or blank: the first stage. It must be an open stage of the receiving task: not terminal, won, or lost, not the goal stage, not a stage that pauses the agent, and not a stage with its own transfer. Otherwise, or when the value is not a string, the request returns 400 `transfer_target_status_invalid`. If the stage no longer qualifies when the transfer runs, or its owner assignment has no eligible member, the lead starts in the first stage.","uniqueKey":"statuses.items.[INDEX].oneOf.0.transfer_config.oneOf.0.target_status_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.0.transfer_config.oneOf.0.target_status_key","typeLabel":"string | null"},"copy_fields":{"type":"boolean","description":"`true`: copies each value the source task collected into the receiving task's variable with the same key. Omitted or `false`: nothing is copied into variables. Either way, the receiving task's context includes a snapshot of the collected fields.","uniqueKey":"statuses.items.[INDEX].oneOf.0.transfer_config.oneOf.0.copy_fields","typeLabel":"boolean"},"silent":{"type":"boolean","description":"Text channels only (WhatsApp, Instagram, Messenger, SMS, email, Web Chat, iMessage). `true`: the receiving task sends nothing when the lead is transferred, starts no contact cadence, and answers when the lead writes. Omitted or `false`: the usual transfer behavior applies. A non-boolean value returns 400 `transfer_silent_invalid`.","uniqueKey":"statuses.items.[INDEX].oneOf.0.transfer_config.oneOf.0.silent","typeLabel":"boolean"}},"required":["target_workflow_id"],"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.transfer_config.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"target_workflow_id":{"type":"string","format":"uuid"},"target_status_key":{"oneOf":[{"type":"string","description":"Key of the stage in the receiving task where the lead starts (the Landing stage). Omitted, null, or blank: the first stage. It must be an open stage of the receiving task: not terminal, won, or lost, not the goal stage, not a stage that pauses the agent, and not a stage with its own transfer. Otherwise, or when the value is not a string, the request returns 400 `transfer_target_status_invalid`. If the stage no longer qualifies when the transfer runs, or its owner assignment has no eligible member, the lead starts in the first stage."},{"type":"null","description":"Key of the stage in the receiving task where the lead starts (the Landing stage). Omitted, null, or blank: the first stage. It must be an open stage of the receiving task: not terminal, won, or lost, not the goal stage, not a stage that pauses the agent, and not a stage with its own transfer. Otherwise, or when the value is not a string, the request returns 400 `transfer_target_status_invalid`. If the stage no longer qualifies when the transfer runs, or its owner assignment has no eligible member, the lead starts in the first stage."}]},"copy_fields":{"type":"boolean","description":"`true`: copies each value the source task collected into the receiving task's variable with the same key. Omitted or `false`: nothing is copied into variables. Either way, the receiving task's context includes a snapshot of the collected fields."},"silent":{"type":"boolean","description":"Text channels only (WhatsApp, Instagram, Messenger, SMS, email, Web Chat, iMessage). `true`: the receiving task sends nothing when the lead is transferred, starts no contact cadence, and answers when the lead writes. Omitted or `false`: the usual transfer behavior applies. A non-boolean value returns 400 `transfer_silent_invalid`."}},"required":["target_workflow_id"],"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.transfer_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.0.transfer_config","typeLabel":"object | null"},"assignment_config":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.assignment_config.oneOf.0","typeLabel":"object"},{"type":"null","properties":{},"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0.assignment_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.0.assignment_config","typeLabel":"object | null"}},"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["key","label"],"properties":{"key":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.key","typeLabel":"string"},"label":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.label","typeLabel":"string"},"name":{"type":"string","minLength":1,"uniqueKey":"statuses.items.[INDEX].oneOf.1.name","typeLabel":"string"},"is_initial":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.1.is_initial","typeLabel":"boolean"},"is_terminal":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.1.is_terminal","typeLabel":"boolean"},"sort_order":{"type":"number","uniqueKey":"statuses.items.[INDEX].oneOf.1.sort_order","typeLabel":"number"},"entry_hint":{"oneOf":[{"type":"string","uniqueKey":"statuses.items.[INDEX].oneOf.1.entry_hint.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"statuses.items.[INDEX].oneOf.1.entry_hint.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.1.entry_hint","typeLabel":"string | null"},"category":{"oneOf":[{"type":"string","uniqueKey":"statuses.items.[INDEX].oneOf.1.category.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"statuses.items.[INDEX].oneOf.1.category.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.1.category","typeLabel":"string | null"},"color":{"type":"string","uniqueKey":"statuses.items.[INDEX].oneOf.1.color","typeLabel":"string"},"is_auto_contacted":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.1.is_auto_contacted","typeLabel":"boolean"},"is_auto_engaged":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.1.is_auto_engaged","typeLabel":"boolean"},"is_booking_target":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.1.is_booking_target","typeLabel":"boolean"},"is_qualified":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.1.is_qualified","typeLabel":"boolean"},"requires_all_fields":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.1.requires_all_fields","typeLabel":"boolean"},"pause_bot":{"type":"boolean","default":false,"uniqueKey":"statuses.items.[INDEX].oneOf.1.pause_bot","typeLabel":"boolean"},"required_field_keys":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"statuses.items.[INDEX].oneOf.1.required_field_keys.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"statuses.items.[INDEX].oneOf.1.required_field_keys.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"statuses.items.[INDEX].oneOf.1.required_field_keys.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.1.required_field_keys","typeLabel":"string[] | null"},"transition_rules":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.transition_rules.oneOf.0","typeLabel":"object"},{"type":"null","properties":{},"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.transition_rules.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.1.transition_rules","typeLabel":"object | null"},"timeout_config":{"oneOf":[{"type":"object","properties":{"timeout":{"oneOf":[{"type":"number","minimum":0,"exclusiveMinimum":true,"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.timeout_config.oneOf.0.timeout.oneOf.0","typeLabel":"number"},{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.timeout_config.oneOf.0.timeout.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.timeout_config.oneOf.0.timeout","typeLabel":"number | string"},"unit":{"type":"string","enum":["minutes","hours","days"],"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.timeout_config.oneOf.0.unit","typeLabel":"enum\u003cstring>"},"target_status_key":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.timeout_config.oneOf.0.target_status_key","typeLabel":"string"}},"required":["timeout","unit","target_status_key"],"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.timeout_config.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"timeout":{"oneOf":[{"type":"number","minimum":0,"exclusiveMinimum":true},{"type":"string","minLength":1}]},"unit":{"type":"string","enum":["minutes","hours","days"]},"target_status_key":{"type":"string","minLength":1}},"required":["timeout","unit","target_status_key"],"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.timeout_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.1.timeout_config","typeLabel":"object | null"},"transfer_config":{"oneOf":[{"type":"object","properties":{"target_workflow_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.transfer_config.oneOf.0.target_workflow_id","typeLabel":"string\u003cuuid>"},"target_status_key":{"oneOf":[{"type":"string","description":"Key of the stage in the receiving task where the lead starts (the Landing stage). Omitted, null, or blank: the first stage. It must be an open stage of the receiving task: not terminal, won, or lost, not the goal stage, not a stage that pauses the agent, and not a stage with its own transfer. Otherwise, or when the value is not a string, the request returns 400 `transfer_target_status_invalid`. If the stage no longer qualifies when the transfer runs, or its owner assignment has no eligible member, the lead starts in the first stage.","uniqueKey":"statuses.items.[INDEX].oneOf.1.transfer_config.oneOf.0.target_status_key.oneOf.0","typeLabel":"string"},{"type":"null","description":"Key of the stage in the receiving task where the lead starts (the Landing stage). Omitted, null, or blank: the first stage. It must be an open stage of the receiving task: not terminal, won, or lost, not the goal stage, not a stage that pauses the agent, and not a stage with its own transfer. Otherwise, or when the value is not a string, the request returns 400 `transfer_target_status_invalid`. If the stage no longer qualifies when the transfer runs, or its owner assignment has no eligible member, the lead starts in the first stage.","uniqueKey":"statuses.items.[INDEX].oneOf.1.transfer_config.oneOf.0.target_status_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.1.transfer_config.oneOf.0.target_status_key","typeLabel":"string | null"},"copy_fields":{"type":"boolean","description":"`true`: copies each value the source task collected into the receiving task's variable with the same key. Omitted or `false`: nothing is copied into variables. Either way, the receiving task's context includes a snapshot of the collected fields.","uniqueKey":"statuses.items.[INDEX].oneOf.1.transfer_config.oneOf.0.copy_fields","typeLabel":"boolean"},"silent":{"type":"boolean","description":"Text channels only (WhatsApp, Instagram, Messenger, SMS, email, Web Chat, iMessage). `true`: the receiving task sends nothing when the lead is transferred, starts no contact cadence, and answers when the lead writes. Omitted or `false`: the usual transfer behavior applies. A non-boolean value returns 400 `transfer_silent_invalid`.","uniqueKey":"statuses.items.[INDEX].oneOf.1.transfer_config.oneOf.0.silent","typeLabel":"boolean"}},"required":["target_workflow_id"],"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.transfer_config.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"target_workflow_id":{"type":"string","format":"uuid"},"target_status_key":{"oneOf":[{"type":"string","description":"Key of the stage in the receiving task where the lead starts (the Landing stage). Omitted, null, or blank: the first stage. It must be an open stage of the receiving task: not terminal, won, or lost, not the goal stage, not a stage that pauses the agent, and not a stage with its own transfer. Otherwise, or when the value is not a string, the request returns 400 `transfer_target_status_invalid`. If the stage no longer qualifies when the transfer runs, or its owner assignment has no eligible member, the lead starts in the first stage."},{"type":"null","description":"Key of the stage in the receiving task where the lead starts (the Landing stage). Omitted, null, or blank: the first stage. It must be an open stage of the receiving task: not terminal, won, or lost, not the goal stage, not a stage that pauses the agent, and not a stage with its own transfer. Otherwise, or when the value is not a string, the request returns 400 `transfer_target_status_invalid`. If the stage no longer qualifies when the transfer runs, or its owner assignment has no eligible member, the lead starts in the first stage."}]},"copy_fields":{"type":"boolean","description":"`true`: copies each value the source task collected into the receiving task's variable with the same key. Omitted or `false`: nothing is copied into variables. Either way, the receiving task's context includes a snapshot of the collected fields."},"silent":{"type":"boolean","description":"Text channels only (WhatsApp, Instagram, Messenger, SMS, email, Web Chat, iMessage). `true`: the receiving task sends nothing when the lead is transferred, starts no contact cadence, and answers when the lead writes. Omitted or `false`: the usual transfer behavior applies. A non-boolean value returns 400 `transfer_silent_invalid`."}},"required":["target_workflow_id"],"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.transfer_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.1.transfer_config","typeLabel":"object | null"},"assignment_config":{"oneOf":[{"type":"object","properties":{},"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.assignment_config.oneOf.0","typeLabel":"object"},{"type":"null","properties":{},"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1.assignment_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"statuses.items.[INDEX].oneOf.1.assignment_config","typeLabel":"object | null"}},"additionalProperties":true,"uniqueKey":"statuses.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"statuses.items.[INDEX]","typeLabel":"object"},"minItems":1,"isRequired":true,"uniqueKey":"statuses","typeLabel":"object[]"},"master_workflow_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"master_workflow_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"master_workflow_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"master_workflow_id","typeLabel":"string\u003cuuid> | null"},"language":{"type":"string","enum":["es-CL","es-MX","es-PE","es-CO","es-AR","es-US","en-US","en-AU","ko-KR","pt-BR","fr-FR","ar-AE","zh-CN","vi-VN","th-TH"],"uniqueKey":"language","typeLabel":"enum\u003cstring>"},"agent_name":{"oneOf":[{"type":"string","maxLength":200,"uniqueKey":"agent_name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":200,"uniqueKey":"agent_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent_name","typeLabel":"string | null"},"agent_role":{"oneOf":[{"type":"string","maxLength":200,"uniqueKey":"agent_role.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":200,"uniqueKey":"agent_role.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent_role","typeLabel":"string | null"},"company_name":{"oneOf":[{"type":"string","maxLength":200,"uniqueKey":"company_name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":200,"uniqueKey":"company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"company_name","typeLabel":"string | null"},"begin_message":{"oneOf":[{"type":"string","maxLength":1000,"uniqueKey":"begin_message.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":1000,"uniqueKey":"begin_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"begin_message","typeLabel":"string | null"},"timezone":{"type":"string","description":"Valid IANA time-zone name.","uniqueKey":"timezone","typeLabel":"string"},"region_style":{"type":"string","enum":["cl","mx","pe","co","ar","es","latam","us","au","gb","in","nz","kr","br","pt"],"uniqueKey":"region_style","typeLabel":"enum\u003cstring>"},"global_prompt":{"type":"string","uniqueKey":"global_prompt","typeLabel":"string"},"channels":{"type":"array","items":{"type":"string","enum":["whatsapp","call","voice","retell","email","sms"],"uniqueKey":"channels.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"channels","typeLabel":"enum\u003cstring>[]"},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"fields.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"fields.items.[INDEX].label","typeLabel":"string"},"type":{"type":"string","enum":["text","number","date","datetime","boolean","select","multiselect","email","phone","url","currency"],"default":"text","uniqueKey":"fields.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"required":{"type":"boolean","default":false,"uniqueKey":"fields.items.[INDEX].required","typeLabel":"boolean"},"options":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"string","description":"One choice of a `select` or `multiselect` field: a string, or an object with the stored `value` and an optional display `label`. When you send options, a string must not be empty.","uniqueKey":"fields.items.[INDEX].options.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"One choice of a `select` or `multiselect` field: a string, or an object with the stored `value` and an optional display `label`. When you send options, a string must not be empty.","required":["value"],"properties":{"value":{"type":"string","isRequired":true,"uniqueKey":"fields.items.[INDEX].options.oneOf.0.items.[INDEX].oneOf.1.value","typeLabel":"string"},"label":{"type":"string","uniqueKey":"fields.items.[INDEX].options.oneOf.0.items.[INDEX].oneOf.1.label","typeLabel":"string"}},"uniqueKey":"fields.items.[INDEX].options.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"fields.items.[INDEX].options.oneOf.0.items.[INDEX]","typeLabel":"string | object"},"description":"Choices for a `select` or `multiselect` field. A usable option is a string that is not blank, or an object whose `value` is a string that is not blank. A `select` or `multiselect` field sent with no usable option is saved as `text` with `options` set to null and listed in `coerced_fields`.","uniqueKey":"fields.items.[INDEX].options.oneOf.0","typeLabel":"(string | object)[]"},{"type":"null","items":{"oneOf":[{"type":"string","description":"One choice of a `select` or `multiselect` field: a string, or an object with the stored `value` and an optional display `label`. When you send options, a string must not be empty."},{"type":"object","description":"One choice of a `select` or `multiselect` field: a string, or an object with the stored `value` and an optional display `label`. When you send options, a string must not be empty.","required":["value"],"properties":{"value":{"type":"string"},"label":{"type":"string"}}}]},"description":"Choices for a `select` or `multiselect` field. A usable option is a string that is not blank, or an object whose `value` is a string that is not blank. A `select` or `multiselect` field sent with no usable option is saved as `text` with `options` set to null and listed in `coerced_fields`.","uniqueKey":"fields.items.[INDEX].options.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.items.[INDEX].options","typeLabel":"(string | object)[] | null"},"extraction_hints":{"type":"string","uniqueKey":"fields.items.[INDEX].extraction_hints","typeLabel":"string"},"sort_order":{"type":"number","uniqueKey":"fields.items.[INDEX].sort_order","typeLabel":"number"},"metadata_key":{"oneOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)*$","description":"Lead metadata key or dot-separated path that prefills this field.","uniqueKey":"fields.items.[INDEX].metadata_key.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)*$","description":"Lead metadata key or dot-separated path that prefills this field.","uniqueKey":"fields.items.[INDEX].metadata_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.items.[INDEX].metadata_key","typeLabel":"string | null"},"intake_value_map":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","uniqueKey":"fields.items.[INDEX].intake_value_map.oneOf.0.additionalProperties","typeLabel":"string"},"description":"Incoming-string to canonical-field-value normalization map.","uniqueKey":"fields.items.[INDEX].intake_value_map.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","uniqueKey":"fields.items.[INDEX].intake_value_map.oneOf.1.additionalProperties","typeLabel":"string"},"description":"Incoming-string to canonical-field-value normalization map.","uniqueKey":"fields.items.[INDEX].intake_value_map.oneOf.1","typeLabel":"null"}],"uniqueKey":"fields.items.[INDEX].intake_value_map","typeLabel":"object | null"}},"required":["key","label"],"additionalProperties":true,"uniqueKey":"fields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"fields","typeLabel":"object[]"},"description":{"oneOf":[{"type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"}},"required":["name","goal_type","statuses"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","statuses":[{"key":"\u003cstring>","name":"\u003cstring>","label":"\u003cstring>","is_initial":false,"is_terminal":false,"sort_order":123,"entry_hint":"\u003cstring>","category":"\u003cstring>","color":"\u003cstring>","is_auto_contacted":false,"is_auto_engaged":false,"is_booking_target":false,"is_qualified":false,"requires_all_fields":false,"pause_bot":false,"required_field_keys":["\u003cstring>"],"transition_rules":{},"timeout_config":{"timeout":1,"target_status_key":"\u003cstring>"},"transfer_config":{"target_workflow_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","target_status_key":"\u003cstring>","copy_fields":true,"silent":true},"assignment_config":{}}],"master_workflow_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","agent_name":"\u003cstring>","agent_role":"\u003cstring>","company_name":"\u003cstring>","begin_message":"\u003cstring>","timezone":"\u003cstring>","global_prompt":"\u003cstring>","channels":[],"fields":[{"key":"\u003cstring>","label":"\u003cstring>","type":"text","required":false,"options":["\u003cstring>"],"extraction_hints":"\u003cstring>","sort_order":123,"metadata_key":"\u003cstring>","intake_value_map":{}}],"description":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"2f09f1af-e547-4b12-9eed-3b17d7517c1d":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[true],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"workflow_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"workflow_id","typeLabel":"string\u003cuuid>"},"master_workflow_id":{"oneOf":[{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"master_workflow_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","isRequired":true,"uniqueKey":"master_workflow_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"master_workflow_id","typeLabel":"string\u003cuuid> | null"},"status":{"type":"string","enum":["existed"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"}},"required":["success","workflow_id","master_workflow_id","status"],"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"workflow_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","master_workflow_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"existed"}}},"exampleType":"generated"}},"exampleType":"generated"},"8241db1f-0957-4aff-97c9-b983bb38da4a":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[true],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"workflow_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"workflow_id","typeLabel":"string\u003cuuid>"},"master_workflow_id":{"oneOf":[{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"master_workflow_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","isRequired":true,"uniqueKey":"master_workflow_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"master_workflow_id","typeLabel":"string\u003cuuid> | null"},"status":{"type":"string","enum":["created"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"language":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"language.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"language.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"language","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"timezone.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"timezone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"timezone","typeLabel":"string | null"},"region_style":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"region_style.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"region_style.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"region_style","typeLabel":"string | null"},"coerced_fields":{"type":"array","items":{"type":"object","description":"A field that was sent as `select` or `multiselect` with no usable option and was saved as `text`. To make it a list, send it again with `type` set to `select` or `multiselect` and a non-empty `options` array.","properties":{"key":{"type":"string","description":"Key of the field.","isRequired":true,"uniqueKey":"coerced_fields.items.[INDEX].key","typeLabel":"string"},"requested_type":{"type":"string","enum":["select","multiselect"],"isRequired":true,"uniqueKey":"coerced_fields.items.[INDEX].requested_type","typeLabel":"enum\u003cstring>"},"saved_type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"coerced_fields.items.[INDEX].saved_type","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","enum":["no_options"],"isRequired":true,"uniqueKey":"coerced_fields.items.[INDEX].reason","typeLabel":"enum\u003cstring>"},"hint":{"type":"string","description":"Plain-language explanation of what happened and how to fix it.","isRequired":true,"uniqueKey":"coerced_fields.items.[INDEX].hint","typeLabel":"string"}},"required":["key","requested_type","saved_type","reason","hint"],"additionalProperties":true,"example":{"key":"buyer_profile","requested_type":"select","saved_type":"text","reason":"no_options","hint":"This field was saved as text because it had no options. To make it a list, send it again with type select and a non-empty options array."},"uniqueKey":"coerced_fields.items.[INDEX]","typeLabel":"object"},"description":"Fields from `fields` that were sent as `select` or `multiselect` with no usable option and were saved as `text`. Present only when at least one field was saved this way.","uniqueKey":"coerced_fields","typeLabel":"object[]"}},"required":["success","workflow_id","master_workflow_id","status","language","timezone","region_style"],"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"workflow_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","master_workflow_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"created","language":"\u003cstring>","timezone":"\u003cstring>","region_style":"\u003cstring>","coerced_fields":[{"key":"buyer_profile","requested_type":"select","saved_type":"text","reason":"no_options","hint":"This field was saved as text because it had no options. To make it a list, send it again with type select and a non-empty options array."}]}}},"exampleType":"generated"}},"exampleType":"generated"},"ccb0c9c1-cee1-4134-b79b-ecb6e1e74542":{"description":"Invalid input or a protected mutation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"}},"required":["error"],"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"361371b3-b761-445f-a6fb-5f692ce4c80e":{"description":"Missing, invalid, disabled, or expired API key.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","description":"Error type","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"06cd2214-25ef-4ee6-9f86-8407b1c9051b":{"description":"The API key is not allowed to call this operation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","description":"Error type","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"edc8880d-0349-4bc0-b674-643f8937bd08":{"description":"The tenant-scoped resource was not found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"}},"required":["error"],"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"939198b9-03ea-48bb-b031-5d62f3e204ab":{"description":"The requested mutation conflicts with current state. `escalation_stage_key_reserved` (code `ESCALATION_STAGE_KEY_RESERVED`): a status uses the escalation stage's reserved key (`awaiting_human_response` or `__awaiting_human_response__`) or its `system_kind`. Nexor creates that stage itself when escalation is turned on; nothing is created.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"}},"required":["error"],"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"example":{"error":"escalation_stage_key_reserved","code":"ESCALATION_STAGE_KEY_RESERVED"},"examples":{"Example":{"title":"Example","value":{"error":"escalation_stage_key_reserved","code":"ESCALATION_STAGE_KEY_RESERVED"}}},"exampleType":"examples"}},"exampleType":"examples"},"b7cbf040-4117-44f8-80cd-326bf156ec14":{"description":"Customer task configuration exceeds 20,000 tokens, including inherited shared identity. Read the current task state before retrying creation. CONVERSATION_FLOW_TOO_LARGE means the task's call flow would exceed 390,000 bytes; CONVERSATION_FLOW_CONFIGURATION_INVALID means the call flow cannot be built from the resulting configuration. Nothing is saved.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["error","tokens","limit","customer"],"properties":{"error":{"type":"string","enum":["CUSTOMER_PROMPT_TOO_LARGE"],"isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"enum\u003cstring>"},"tokens":{"type":"integer","minimum":20001,"isRequired":true,"uniqueKey":"oneOf.0.tokens","typeLabel":"integer"},"limit":{"type":"integer","enum":[20000],"isRequired":true,"uniqueKey":"oneOf.0.limit","typeLabel":"enum\u003cinteger>"},"customer":{"type":"object","required":["tokens","limit","policy_version"],"properties":{"tokens":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"oneOf.0.customer.tokens","typeLabel":"integer"},"limit":{"type":"integer","enum":[20000],"isRequired":true,"uniqueKey":"oneOf.0.customer.limit","typeLabel":"enum\u003cinteger>"},"policy_version":{"type":"string","enum":["customer-config-v1"],"isRequired":true,"uniqueKey":"oneOf.0.customer.policy_version","typeLabel":"enum\u003cstring>"}},"description":"Customer-authored task configuration only. Nexor internal instructions are excluded.","isRequired":true,"uniqueKey":"oneOf.0.customer","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"The task's call flow would exceed the size Nexor can publish. Nothing is saved. A flow already over the limit can still shrink.","required":["error","projected_bytes","limit","phases","transfers","exits","reroute_targets","fields","tools","content_bytes"],"example":{"error":"CONVERSATION_FLOW_TOO_LARGE","projected_bytes":412345,"limit":390000,"phases":14,"transfers":3,"exits":4,"reroute_targets":5,"fields":20,"tools":6,"content_bytes":60000},"properties":{"error":{"type":"string","enum":["CONVERSATION_FLOW_TOO_LARGE"],"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"enum\u003cstring>"},"projected_bytes":{"type":"integer","description":"Projected size of the task's call flow after the change, in bytes.","isRequired":true,"uniqueKey":"oneOf.1.projected_bytes","typeLabel":"integer"},"limit":{"type":"integer","enum":[390000],"description":"Maximum call flow size, in bytes.","isRequired":true,"uniqueKey":"oneOf.1.limit","typeLabel":"enum\u003cinteger>"},"phases":{"type":"integer","description":"Conversation stages the call flow builds, open and won.","isRequired":true,"uniqueKey":"oneOf.1.phases","typeLabel":"integer"},"transfers":{"type":"integer","description":"Stages that transfer the call to another task.","isRequired":true,"uniqueKey":"oneOf.1.transfers","typeLabel":"integer"},"exits":{"type":"integer","description":"Terminal stages that end the conversation.","isRequired":true,"uniqueKey":"oneOf.1.exits","typeLabel":"integer"},"reroute_targets":{"type":"integer","description":"Other tasks of the agent an inbound call can be moved to.","isRequired":true,"uniqueKey":"oneOf.1.reroute_targets","typeLabel":"integer"},"fields":{"type":"integer","description":"Fields the task collects.","isRequired":true,"uniqueKey":"oneOf.1.fields","typeLabel":"integer"},"tools":{"type":"integer","description":"Tools assigned to the task.","isRequired":true,"uniqueKey":"oneOf.1.tools","typeLabel":"integer"},"content_bytes":{"type":"integer","description":"Bytes of the task's own prompts and descriptions.","isRequired":true,"uniqueKey":"oneOf.1.content_bytes","typeLabel":"integer"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"The task's call flow cannot be built from the resulting configuration. Nothing is saved. Fix the configuration named by `reason`; retrying the same request fails again.","required":["error","workflow_id","reason"],"example":{"error":"CONVERSATION_FLOW_CONFIGURATION_INVALID","workflow_id":"0e865063-80b7-4f6d-a207-f1608e112ba7","reason":"inbound_leaf_reroute_candidate_outside_group"},"properties":{"error":{"type":"string","enum":["CONVERSATION_FLOW_CONFIGURATION_INVALID"],"isRequired":true,"uniqueKey":"oneOf.2.error","typeLabel":"enum\u003cstring>"},"workflow_id":{"type":"string","format":"uuid","description":"Task whose call flow cannot be built.","isRequired":true,"uniqueKey":"oneOf.2.workflow_id","typeLabel":"string\u003cuuid>"},"reason":{"type":"string","description":"Machine code naming the configuration problem.","isRequired":true,"uniqueKey":"oneOf.2.reason","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"CUSTOMER_PROMPT_TOO_LARGE","tokens":20002,"limit":20000,"customer":{"tokens":1,"limit":20000,"policy_version":"customer-config-v1"}}}},"exampleType":"generated"}},"exampleType":"generated"},"7e1ff64f-2439-42df-8066-a64d2b1b14c0":{"description":"A public API rate limit was exceeded.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","description":"Error type","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"baf2670d-05fe-41bc-b1ce-1cc8af004319":{"description":"Internal server error.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"}},"required":["error"],"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"63c878e7-4952-4ae5-b201-828606a87ba5":{"description":"A call for this task would exceed the call limit, which counts customer content plus Nexor's instructions and tools. Read the current task state before retrying, then shorten the prompt or instructions by at least capacity.tokens - capacity.limit tokens. Validation can also be unavailable (VOICE_PROMPT_BUDGET_UNAVAILABLE); retry when validation is available.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"A call for this task would exceed the call limit (capacity.limit), which counts customer content plus Nexor's instructions and tools. Shorten the prompt or instructions by at least capacity.tokens - capacity.limit tokens, or turn off calls if the task never calls.","required":["error","customer","capacity"],"properties":{"error":{"type":"string","enum":["VOICE_PROMPT_CAPACITY_EXCEEDED"],"isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"enum\u003cstring>"},"customer":{"type":"object","required":["tokens","limit","policy_version"],"properties":{"tokens":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"oneOf.0.customer.tokens","typeLabel":"integer"},"limit":{"type":"integer","enum":[20000],"isRequired":true,"uniqueKey":"oneOf.0.customer.limit","typeLabel":"enum\u003cinteger>"},"policy_version":{"type":"string","enum":["customer-config-v1"],"isRequired":true,"uniqueKey":"oneOf.0.customer.policy_version","typeLabel":"enum\u003cstring>"}},"description":"Customer-authored task configuration only. Nexor internal instructions are excluded.","isRequired":true,"uniqueKey":"oneOf.0.customer","typeLabel":"object"},"capacity":{"type":"object","required":["tokens","limit"],"properties":{"tokens":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"oneOf.0.capacity.tokens","typeLabel":"integer"},"limit":{"type":"integer","enum":[28000],"isRequired":true,"uniqueKey":"oneOf.0.capacity.limit","typeLabel":"enum\u003cinteger>"}},"isRequired":true,"uniqueKey":"oneOf.0.capacity","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Call capacity validation is unavailable. Retry when validation is available.","required":["error","message"],"properties":{"error":{"type":"string","enum":["VOICE_PROMPT_BUDGET_UNAVAILABLE"],"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"VOICE_PROMPT_CAPACITY_EXCEEDED","customer":{"tokens":1,"limit":20000,"policy_version":"customer-config-v1"},"capacity":{"tokens":1,"limit":28000}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"2401f0d1-5a36-4e43-97cb-c2d97e69a8f2":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Keys are prefixed with `nxr_live_`. To work inside a sub-account with a main account key, also send the optional `X-Nexor-Sub-Account-Id` header.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"5c88c5ae-afbe-4d33-b16e-710cb9d2baa8":{"url":"https://api.getnexor.ai/api/public","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Keys are prefixed with `nxr_live_`. To work inside a sub-account with a main account key, also send the optional `X-Nexor-Sub-Account-Id` header.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"API key for authentication. Keys are prefixed with `nxr_live_`. To work inside a sub-account with a main account key, also send the optional `X-Nexor-Sub-Account-Id` header.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"nexor","siteName":"Nexor","title":"Crear un agente - Nexor","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/docs/en/api/workflows/create-workflow","matchLevel":1},"es":{"href":"/docs/es/api/workflows/create-workflow","matchLevel":0}}},"lastModified":"2026-11-12T19:23:50.063Z","gitLastModified":"2026-11-12T19:23:26.000Z","originalFileLocation":"docs/es/api/workflows/create-workflow.md","locale":"es"},"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=\"system\"}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=\"Esta operación permite crear un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Nexor\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nexor/LDGxX4GCDO05TtkY/_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/nexor/LDGxX4GCDO05TtkY/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nexor/LDGxX4GCDO05TtkY/_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/nexor/LDGxX4GCDO05TtkY/_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/nexor/LDGxX4GCDO05TtkY/_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/nexor/LDGxX4GCDO05TtkY/_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/nexor/LDGxX4GCDO05TtkY/_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/nexor/LDGxX4GCDO05TtkY/_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/nexor/LDGxX4GCDO05TtkY/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Crear un agente - Nexor\">\u003cmeta data-mint-head property=\"og:description\" content=\"Esta operación permite crear un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nexor\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getnexor.ai/docs/es/api/workflows/create-workflow\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nexor.mintlify.site/_mintlify/api/og/v2?division=Workflows+%28tareas%29\u0026amp;title=Crear+un+agente\u0026amp;description=Esta+operaci%C3%B3n+permite+crear+un+agente+en+la+cuenta+autenticada+de+Nexor.+Esta+referencia+documenta+campos+verificados+de+ruta%2C+consulta+y+cuerpo+JSON+de+nivel+\u0026amp;theme=9c0e76a74db2d58e3c1a4fe5\u0026amp;signature=eaa46dbff6644158f1d55d13cb34a6f25dacd03663f3c6ba405dc08d28fbb537\">\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=\"Crear un agente - Nexor\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Esta operación permite crear un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nexor.mintlify.site/_mintlify/api/og/v2?division=Workflows+%28tareas%29\u0026amp;title=Crear+un+agente\u0026amp;description=Esta+operaci%C3%B3n+permite+crear+un+agente+en+la+cuenta+autenticada+de+Nexor.+Esta+referencia+documenta+campos+verificados+de+ruta%2C+consulta+y+cuerpo+JSON+de+nivel+\u0026amp;theme=9c0e76a74db2d58e3c1a4fe5\u0026amp;signature=eaa46dbff6644158f1d55d13cb34a6f25dacd03663f3c6ba405dc08d28fbb537\">\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/nexor/LDGxX4GCDO05TtkY/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nexor\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A0A0A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getnexor.ai/docs/es/api/workflows/create-workflow\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/es/api/workflows/create-workflow.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.getnexor.ai/docs/es/api/workflows/create-workflow\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.getnexor.ai/docs/en/api/workflows/create-workflow\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.getnexor.ai/docs/en/api/workflows/create-workflow\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getnexor.ai/#organization\",\"name\":\"Nexor\",\"url\":\"https://docs.getnexor.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nexor/f1Gy8zY6i2a68PTn/images/logo-black.svg?fit=max\u0026auto=format\u0026n=f1Gy8zY6i2a68PTn\u0026q=85\u0026s=2a5ea3c97db1c6499f5f24571b593e6f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getnexor.ai#website\",\"name\":\"Nexor\",\"url\":\"https://docs.getnexor.ai\",\"publisher\":{\"@id\":\"https://docs.getnexor.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getnexor.ai/docs/es/api/workflows/create-workflow#webpage\",\"url\":\"https://docs.getnexor.ai/docs/es/api/workflows/create-workflow\",\"name\":\"Crear un agente\",\"description\":\"Esta operación permite crear un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.\",\"dateModified\":\"2026-11-12T19:23:26.000Z\",\"isPartOf\":{\"@id\":\"https://docs.getnexor.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getnexor.ai/docs/es/api/workflows/create-workflow#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getnexor.ai/docs/es/api/workflows/create-workflow#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Referencia API\",\"item\":\"https://docs.getnexor.ai/docs/es/api/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Workflows (tareas)\",\"item\":\"https://docs.getnexor.ai/docs/es/api/workflows/list-workflows\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Crear un agente\",\"item\":\"https://docs.getnexor.ai/docs/es/api/workflows/create-workflow\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.getnexor.ai/docs/es/api/workflows/create-workflow#apireference\",\"headline\":\"Crear un agente\",\"name\":\"Crear un agente\",\"description\":\"Esta operación permite crear un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.\",\"url\":\"https://docs.getnexor.ai/docs/es/api/workflows/create-workflow\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getnexor.ai/docs/es/api/workflows/create-workflow#webpage\"},\"dateModified\":\"2026-11-12T19:23:26.000Z\",\"publisher\":{\"@id\":\"https://docs.getnexor.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getnexor.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Nexor\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Nexor\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/es/api/workflows/create-workflow.md","siteName":"Nexor","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/docs/en/api/workflows/create-workflow"}]},{"language":"es","groups":[{"group":"Empieza aquí","pages":[{"title":"Bienvenido a Nexor","sidebarTitle":"Bienvenida","href":"/docs/es/guides/getting-started"},{"title":"Agentes y tareas","sidebarTitle":"Agentes y tareas","href":"/docs/es/guides/getting-started/anatomy-of-an-agent"},{"title":"Changelog","href":"/docs/es/changelog"}]},{"group":"Quickstart","pages":[{"title":"Conecta canales y trae tus leads","sidebarTitle":"Conecta tus canales","href":"/docs/es/guides/getting-started/operate-and-connect-channels"},{"title":"Crea tu primer agente","sidebarTitle":"Configura tu agente","href":"/docs/es/guides/getting-started/overview"},{"title":"Comparte tus leads e integra tus sistemas","sidebarTitle":"Comparte tus leads","href":"/docs/es/guides/integrations/overview"}]},{"group":"Referencia API","pages":[{"title":"Introducción a la API de Nexor","sidebarTitle":"Introducción","href":"/docs/es/api/introduction"},{"title":"Autenticación","sidebarTitle":"Autenticación","href":"/docs/es/api/authentication"},{"title":"SDK de JavaScript","sidebarTitle":"SDK de JavaScript","href":"/docs/es/api/sdk"},{"group":"Servidor MCP","pages":[{"title":"Servidor MCP","sidebarTitle":"Servidor MCP","href":"/docs/es/api/mcp-server"},{"title":"Catálogo de tools MCP","sidebarTitle":"Catálogo de tools","href":"/docs/es/api/mcp-server/tools"}]},{"group":"Leads","expanded":true,"pages":[{"title":"Crear o actualizar leads","sidebarTitle":"Crear","openapi":"openapi.json POST /leads","href":"/docs/es/api/leads/create-lead"},{"title":"Forzar Primer Mensaje","sidebarTitle":"Primer mensaje","href":"/docs/es/api/leads/force-first-message"},{"title":"Listar Leads","sidebarTitle":"Listar","openapi":"openapi.json GET /leads","href":"/docs/es/api/leads/list-leads"},{"title":"Listar conversaciones de prueba","sidebarTitle":"Conversaciones de prueba","openapi":"openapi.json GET /test-conversations","href":"/docs/es/api/leads/list-test-conversations"},{"title":"Iniciar una conversación de prueba","sidebarTitle":"Iniciar conversación de prueba","openapi":"openapi.json POST /test-conversations","href":"/docs/es/api/leads/start-test-conversation"},{"title":"Enviar un mensaje en una conversación de prueba","sidebarTitle":"Enviar mensaje de prueba","openapi":"openapi.json POST /test-conversations/{conversation_id}/messages","href":"/docs/es/api/leads/send-test-message"},{"title":"Obtener Lead","sidebarTitle":"Obtener","openapi":"openapi.json GET /leads/{id}","href":"/docs/es/api/leads/get-lead"},{"title":"Actualizar Lead","sidebarTitle":"Actualizar","openapi":"openapi.json PUT /leads/{id}","href":"/docs/es/api/leads/update-lead"},{"title":"Patch Lead","sidebarTitle":"Patch","openapi":"openapi.json PATCH /leads/{id}","href":"/docs/es/api/leads/patch-lead"},{"title":"Forzar Estado del Lead","sidebarTitle":"Forzar Estado","openapi":"openapi.json POST /leads/{id}/status","href":"/docs/es/api/leads/set-status"},{"title":"Patch Tags","sidebarTitle":"Patch tags","openapi":"openapi.json POST /leads/tags","href":"/docs/es/api/leads/patch-tags"},{"title":"Bulk Patch Metadata","sidebarTitle":"Bulk patch metadata","openapi":"openapi.json PATCH /leads/metadata","href":"/docs/es/api/leads/patch-metadata"},{"title":"Archivar un lead","sidebarTitle":"Archivar","openapi":"openapi.json DELETE /leads/{id}","href":"/docs/es/api/leads/delete-leads-by-id"},{"title":"Asignar Agente a Lead","sidebarTitle":"Asignar Agente","openapi":"openapi.json POST /leads/{id}/assign-workflow","href":"/docs/es/api/leads/assign-workflow"},{"title":"Obtener Historial del Lead","sidebarTitle":"Obtener Historial","openapi":"openapi.json GET /leads/{id}/history","href":"/docs/es/api/leads/get-lead-history"},{"title":"Obtener Reuniones del Lead","sidebarTitle":"Obtener Reuniones","openapi":"openapi.json GET /leads/{id}/meetings","href":"/docs/es/api/leads/get-lead-meetings"},{"title":"Detener Automatización","sidebarTitle":"Detener","openapi":"openapi.json POST /leads/{id}/automation/stop","href":"/docs/es/api/leads/stop-automation"},{"title":"Reanudar Automatización","sidebarTitle":"Reanudar","openapi":"openapi.json POST /leads/{id}/automation/resume","href":"/docs/es/api/leads/resume-automation"}]},{"group":"Workflows (tareas)","expanded":true,"pages":[{"title":"Listar Agentes","sidebarTitle":"Listar","openapi":"openapi.json GET /workflows","href":"/docs/es/api/workflows/list-workflows"},{"title":"Consultar un agente","sidebarTitle":"Detalles","description":"Esta operación permite consultar un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.","openapi":"openapi.json GET /workflows/{id}","href":"/docs/es/api/workflows/get-workflow"},{"title":"Crear un agente","sidebarTitle":"Crear","openapi":"openapi.json POST /workflows","href":"/docs/es/api/workflows/create-workflow"},{"title":"Actualizar un agente","sidebarTitle":"Actualizar","description":"Esta operación permite actualizar un agente en la cuenta autenticada de Nexor. Esta referencia documenta campos verificados de ruta, consulta y cuerpo JSON de nivel superior, códigos de estado observados y campos de respuesta de nivel superior. Las respuestas del proveedor o con estructuras anidadas profundas pueden permanecer abiertas.","openapi":"openapi.json PATCH /workflows/{id}","href":"/docs/es/api/workflows/update-workflow"},{"title":"Archivar un agente","sidebarTitle":"Archivar","openapi":"openapi.json DELETE /workflows/{id}","href":"/docs/es/api/workflows/delete-workflows-by-id"},{"title":"Actualizar la estructura de un agente","sidebarTitle":"Estructura","openapi":"openapi.json PATCH /workflows/{id}/structure","href":"/docs/es/api/workflows/update-workflow-structure"},{"title":"Probar Workflow Tool","sidebarTitle":"Probar una herramienta","openapi":"openapi.json POST /workflows/{id}/tools/{toolId}/test","href":"/docs/es/api/workflow-tools/test-workflow-tool"}]},{"group":"Mensajes","expanded":true,"pages":[{"title":"Enviar Mensaje","sidebarTitle":"Enviar","openapi":"openapi.json POST /messages","href":"/docs/es/api/messages/send-message"},{"title":"Listar Templates de WhatsApp","sidebarTitle":"Listar plantillas","openapi":"openapi.json GET /templates","href":"/docs/es/api/messages/list-templates"}]},{"group":"Reuniones","expanded":false,"pages":[{"title":"Registrar una Reunión","sidebarTitle":"Registrar","openapi":"openapi.json POST /meetings","href":"/docs/es/api/meetings/create-meeting"},{"title":"Listar reuniones","sidebarTitle":"Listar","openapi":"openapi.json GET /meetings","href":"/docs/es/api/meetings/get-meetings"},{"title":"Consultar una reunión","sidebarTitle":"Detalles","openapi":"openapi.json GET /meetings/{id}","href":"/docs/es/api/meetings/get-meetings-by-id"},{"title":"Cancelar una Reunión","sidebarTitle":"Cancelar","openapi":"openapi.json POST /meetings/{id}/cancel","href":"/docs/es/api/meetings/cancel-meeting"},{"title":"Reprogramar una reunión","sidebarTitle":"Reprogramar","openapi":"openapi.json PATCH /meetings/{id}/reschedule","href":"/docs/es/api/meetings/patch-meetings-by-id-reschedule"},{"title":"Reservar una reunión","sidebarTitle":"Reservar","openapi":"openapi.json POST /meetings/book","href":"/docs/es/api/meetings/post-meetings-book"},{"title":"Consultar horarios disponibles para reuniones","sidebarTitle":"Horarios disponibles","openapi":"openapi.json GET /workflows/{id}/slots","href":"/docs/es/api/meetings/get-workflows-by-id-slots"},{"title":"Marcar una Reunión como No-Show","sidebarTitle":"Marcar como No-show","openapi":"openapi.json POST /meetings/{id}/no-show","href":"/docs/es/api/meetings/mark-no-show"},{"title":"Marcar una Reunión como Completada","sidebarTitle":"Marcar como Completada","openapi":"openapi.json POST /meetings/{id}/complete","href":"/docs/es/api/meetings/complete-meeting"}]},{"group":"Conversiones","expanded":false,"pages":[{"title":"Listar Eventos de Conversión","sidebarTitle":"Listar Eventos","openapi":"openapi.json GET /conversions","href":"/docs/es/api/conversions/list-conversions"},{"title":"Crear Evento de Conversión","sidebarTitle":"Crear Evento","openapi":"openapi.json POST /conversions","href":"/docs/es/api/conversions/create-conversion"},{"title":"Listar Tipos de Conversión","sidebarTitle":"Listar Tipos","openapi":"openapi.json GET /conversion-types","href":"/docs/es/api/conversions/list-conversion-types"}]},{"group":"Reportes","expanded":false,"pages":[{"title":"Reporte de Funnel","sidebarTitle":"Funnel","openapi":"openapi.json GET /reports/funnel","href":"/docs/es/api/reports/get-funnel-report"},{"title":"Reporte de Lead","sidebarTitle":"Lead","openapi":"openapi.json GET /reports/lead/{lead_id}","href":"/docs/es/api/reports/get-lead-report"},{"title":"Consultar estadísticas de reuniones","sidebarTitle":"Estadísticas de reuniones","openapi":"openapi.json GET /reports/meeting-stats","href":"/docs/es/api/reports/get-reports-meeting-stats"},{"title":"Desempeño del equipo","sidebarTitle":"Desempeño del equipo","openapi":"openapi.json GET /reports/team-performance","href":"/docs/es/api/reports/get-team-performance"},{"title":"Salud de las herramientas","sidebarTitle":"Salud de las herramientas","openapi":"openapi.json GET /tool-health","href":"/docs/es/api/reports/get-tool-health"},{"title":"Exportar un reporte de leads","sidebarTitle":"Exportar leads","openapi":"openapi.json POST /reports/leads/export","href":"/docs/es/api/reports/post-reports-leads-export"}]},{"group":"Bandeja de entrada","expanded":false,"pages":[{"title":"Conteos de Inbox","sidebarTitle":"Conteos","openapi":"openapi.json GET /inbox/summary","href":"/docs/es/api/inbox/get-inbox-summary"},{"title":"Listar escalaciones","sidebarTitle":"Escalaciones","openapi":"openapi.json GET /escalations","href":"/docs/es/api/inbox/list-escalations"}]},{"group":"Disponibilidad del equipo","expanded":false,"pages":[{"title":"Consultar la disponibilidad del equipo","sidebarTitle":"Consultar","openapi":"openapi.json GET /team/availability","href":"/docs/es/api/team/get-team-availability"},{"title":"Cambiar el tiempo de inactividad","sidebarTitle":"Cambiar tiempo de inactividad","openapi":"openapi.json PATCH /team/availability/settings","href":"/docs/es/api/team/patch-team-availability-settings"},{"title":"Poner Ausente a un miembro del equipo","sidebarTitle":"Poner Ausente","openapi":"openapi.json PUT /team/availability/{user_id}","href":"/docs/es/api/team/put-team-availability-by-user-id"}]},{"group":"Webhooks","expanded":false,"pages":[{"title":"Descripción general","href":"/docs/es/api/webhooks/overview"},{"title":"Recibir leads por webhook","sidebarTitle":"Leads entrantes","openapi":"openapi.json POST /leads/webhook","href":"/docs/es/api/webhooks/inbound-leads"},{"title":"Evento: Cambio de estado","href":"/docs/es/api/webhooks/status-changed"},{"title":"Evento: Eventos de reunión","href":"/docs/es/api/webhooks/meeting-events"},{"title":"Evento: Outreach fallido","href":"/docs/es/api/webhooks/outreach-failed"},{"title":"Eventos: Mensaje enviado, entregado y recibido","href":"/docs/es/api/webhooks/message-events"},{"title":"Verificación de firmas","href":"/docs/es/api/webhooks/verifying-signatures"},{"title":"Reintentos y manejo de errores","href":"/docs/es/api/webhooks/retries-and-errors"}]},{"group":"Configuración CRM","expanded":false,"pages":[{"title":"Listar opciones de agenda del CRM","sidebarTitle":"Opciones","openapi":"openapi.json GET /crm-management/booking/choices","href":"/docs/es/api/crm-management/list-choices"},{"title":"Consultar agenda nativa del CRM","sidebarTitle":"Consultar configuración","openapi":"openapi.json GET /crm-management/booking","href":"/docs/es/api/crm-management/get-booking"},{"title":"Configurar agenda nativa del CRM","sidebarTitle":"Configurar o retirar","openapi":"openapi.json POST /crm-management/booking","href":"/docs/es/api/crm-management/change-booking"},{"title":"Consultar ejecuciones de importación GHL","sidebarTitle":"Ejecuciones de importación","openapi":"openapi.json GET /crm-management/gohighlevel/import-status","href":"/docs/es/api/crm-management/get-ghl-import-status"}]},{"group":"CRM por chat","expanded":false,"pages":[{"title":"Configurar integraciones CRM por chat","sidebarTitle":"Configuración CRM por chat","href":"/docs/es/guides/integrations/crm-chat-configuration"},{"title":"Consultar URL y campos recibidos","sidebarTitle":"Consultar URL y campos recibidos","openapi":"openapi.json GET /crm-account/intake-details","href":"/docs/es/api/crm-chat/get-crm-intake-details"},{"title":"Renovar URL de recepción de Kommo","sidebarTitle":"Renovar URL de recepción de Kommo","openapi":"openapi.json POST /crm-account/kommo/rotate-token","href":"/docs/es/api/crm-chat/rotate-kommo-webhook-token"},{"title":"Consultar trabajo de importación","sidebarTitle":"Consultar trabajo de importación","openapi":"openapi.json GET /crm-account/import-job","href":"/docs/es/api/crm-chat/get-crm-import-job"},{"title":"Revisar sincronización manual de HubSpot","sidebarTitle":"Revisar sincronización manual de HubSpot","openapi":"openapi.json GET /crm-account/hubspot/sync-preview","href":"/docs/es/api/crm-chat/get-hubspot-sync-preview"},{"title":"Ejecutar sincronización manual de HubSpot","sidebarTitle":"Ejecutar sincronización manual de HubSpot","openapi":"openapi.json POST /crm-account/hubspot/sync","href":"/docs/es/api/crm-chat/run-hubspot-sync"},{"title":"Consultar conflictos de Odoo","sidebarTitle":"Consultar conflictos de Odoo","openapi":"openapi.json GET /crm-account/odoo/conflicts","href":"/docs/es/api/crm-chat/list-odoo-sync-conflicts"},{"title":"Resolver un conflicto de Odoo","sidebarTitle":"Resolver un conflicto de Odoo","openapi":"openapi.json POST /crm-account/odoo/conflicts/resolve","href":"/docs/es/api/crm-chat/resolve-odoo-sync-conflict"},{"title":"Preparar salidas de Odoo","sidebarTitle":"Preparar salidas de Odoo","openapi":"openapi.json POST /crm-account/odoo/outputs","href":"/docs/es/api/crm-chat/change-odoo-account-outputs"},{"title":"Listar conexiones de la cuenta","sidebarTitle":"Listar conexiones de la cuenta","openapi":"openapi.json GET /crm-account/connections","href":"/docs/es/api/crm-chat/list-crm-account-connections"},{"title":"Configurar entradas compartidas de Odoo","sidebarTitle":"Configurar entradas compartidas de Odoo","openapi":"openapi.json POST /crm-account/odoo/inputs","href":"/docs/es/api/crm-chat/change-odoo-account-inputs"},{"title":"Consultar configuración de cuenta","sidebarTitle":"Consultar configuración de cuenta","openapi":"openapi.json GET /crm-account/configuration","href":"/docs/es/api/crm-chat/get-crm-account-configuration"},{"title":"Configurar valores generales de Zoho","sidebarTitle":"Configurar valores generales de Zoho","openapi":"openapi.json POST /crm-account/zoho/defaults","href":"/docs/es/api/crm-chat/change-zoho-account-defaults"},{"title":"Configurar controles generales de HubSpot","sidebarTitle":"Configurar controles generales de HubSpot","openapi":"openapi.json POST /crm-account/hubspot/controls","href":"/docs/es/api/crm-chat/change-hubspot-account-controls"},{"title":"Reasignar una entrada del CRM","sidebarTitle":"Reasignar una entrada del CRM","openapi":"openapi.json POST /crm-account/reassign","href":"/docs/es/api/crm-chat/reassign-crm-intake"},{"title":"Solicitar importación del CRM","sidebarTitle":"Solicitar importación del CRM","openapi":"openapi.json POST /crm-account/import","href":"/docs/es/api/crm-chat/run-crm-account-import"},{"title":"Consultar diagnóstico del CRM","sidebarTitle":"Consultar diagnóstico del CRM","openapi":"openapi.json GET /crm-management/diagnostics","href":"/docs/es/api/crm-chat/get-agent-crm-diagnostics"},{"title":"Consultar opciones de HubSpot","sidebarTitle":"Consultar opciones de HubSpot","openapi":"openapi.json GET /crm-management/hubspot/catalog","href":"/docs/es/api/crm-chat/list-agent-hubspot-catalog"},{"title":"Contar registros de una ruta de Kommo","sidebarTitle":"Contar registros de una ruta de Kommo","openapi":"openapi.json GET /crm-management/kommo/source-count","href":"/docs/es/api/crm-chat/count-agent-kommo-source"},{"title":"Consultar entradas de Odoo por Agente","sidebarTitle":"Consultar entradas de Odoo por Agente","openapi":"openapi.json GET /crm-management/odoo/inputs","href":"/docs/es/api/crm-chat/get-agent-odoo-inputs"},{"title":"Previsualizar entradas de Odoo por Agente","sidebarTitle":"Previsualizar entradas de Odoo por Agente","openapi":"openapi.json POST /crm-management/odoo/inputs/preview","href":"/docs/es/api/crm-chat/preview-agent-odoo-inputs"},{"title":"Guardar entradas de Odoo por Agente","sidebarTitle":"Guardar entradas de Odoo por Agente","openapi":"openapi.json POST /crm-management/odoo/inputs/save","href":"/docs/es/api/crm-chat/change-agent-odoo-inputs"},{"title":"Crear conexión CRM","sidebarTitle":"Crear conexión","openapi":"openapi.json POST /crm-connections/connect","href":"/docs/es/api/integrations/create-crm-connection"},{"title":"Consultar conexión CRM","sidebarTitle":"Estado de conexión","openapi":"openapi.json GET /crm-connections/{provider}","href":"/docs/es/api/integrations/get-crm-connection"},{"title":"Desconectar CRM","sidebarTitle":"Desconectar","openapi":"openapi.json POST /crm-connections/{provider}/disconnect","href":"/docs/es/api/integrations/disconnect-crm"}]},{"group":"Agentes","expanded":false,"pages":[{"title":"Configurar navegación de menús telefónicos","sidebarTitle":"Navegación de menús telefónicos","openapi":"openapi.json PUT /master-workflows/{id}/ivr-navigation","href":"/docs/es/api/master-workflows/set-ivr-navigation"}]},{"group":"Enrutador de entrada","expanded":false,"pages":[{"title":"Consultar enrutador de entrada","sidebarTitle":"Consultar configuración","openapi":"openapi.json GET /master-workflows/{id}/router","href":"/docs/es/api/inbound-router/get-inbound-router"},{"title":"Actualizar enrutador de entrada","sidebarTitle":"Actualizar configuración","openapi":"openapi.json PUT /master-workflows/{id}/router","href":"/docs/es/api/inbound-router/update-inbound-router"},{"title":"Consultar llamadas entrantes","sidebarTitle":"Consultar llamadas entrantes","openapi":"openapi.json GET /master-workflows/{id}/inbound-calls","href":"/docs/es/api/inbound-router/get-inbound-calls"},{"title":"Actualizar llamadas entrantes","sidebarTitle":"Actualizar llamadas entrantes","openapi":"openapi.json PUT /master-workflows/{id}/inbound-calls","href":"/docs/es/api/inbound-router/update-inbound-calls"},{"title":"Consultar transferencias por tema","sidebarTitle":"Consultar transferencias por tema","openapi":"openapi.json GET /master-workflows/{id}/transfer-rules","href":"/docs/es/api/inbound-router/get-transfer-rules"},{"title":"Actualizar transferencias por tema","sidebarTitle":"Actualizar transferencias por tema","openapi":"openapi.json PUT /master-workflows/{id}/transfer-rules","href":"/docs/es/api/inbound-router/update-transfer-rules"},{"title":"Listar reglas de enrutamiento","sidebarTitle":"Listar reglas","openapi":"openapi.json GET /master-workflows/{id}/router/rules","href":"/docs/es/api/inbound-router/list-routing-rules"},{"title":"Reemplazar reglas de enrutamiento","sidebarTitle":"Reemplazar reglas","openapi":"openapi.json PUT /master-workflows/{id}/router/rules","href":"/docs/es/api/inbound-router/replace-routing-rules"},{"title":"Actualizar identidad compartida","sidebarTitle":"Actualizar identidad","openapi":"openapi.json PUT /master-workflows/{id}/router/identity","href":"/docs/es/api/inbound-router/update-agent-identity"},{"title":"Probar un mensaje","sidebarTitle":"Probar un mensaje","openapi":"openapi.json POST /master-workflows/{id}/router/test","href":"/docs/es/api/inbound-router/test-inbound-router"},{"title":"Listar decisiones de enrutamiento","sidebarTitle":"Listar decisiones","openapi":"openapi.json GET /master-workflows/{id}/router/decisions","href":"/docs/es/api/inbound-router/list-routing-decisions"},{"title":"Consultar métricas de enrutamiento","sidebarTitle":"Consultar métricas","openapi":"openapi.json GET /master-workflows/{id}/router/stats","href":"/docs/es/api/inbound-router/get-routing-stats"},{"title":"Listar puntos de entrada","sidebarTitle":"Listar puntos de entrada","openapi":"openapi.json GET /entry-points","href":"/docs/es/api/inbound-router/list-entry-points"},{"title":"Definir el destino de un punto de entrada","sidebarTitle":"Definir destino","openapi":"openapi.json PUT /entry-points/destination","href":"/docs/es/api/inbound-router/set-entry-point-destination"}]},{"group":"Archivos del agente","expanded":false,"pages":[{"title":"Listar archivos del agente","sidebarTitle":"Listar","openapi":"openapi.json GET /file-library/files","href":"/docs/es/api/agent-files/list-agent-files"},{"title":"Consultar archivo del agente","sidebarTitle":"Consultar","openapi":"openapi.json GET /file-library/files/{id}","href":"/docs/es/api/agent-files/get-agent-file"},{"title":"Actualizar archivo del agente","sidebarTitle":"Actualizar","openapi":"openapi.json PATCH /file-library/files/{id}","href":"/docs/es/api/agent-files/update-agent-file"},{"title":"Cambiar disponibilidad del archivo","sidebarTitle":"Cambiar disponibilidad","openapi":"openapi.json PUT /file-library/files/{id}/availability","href":"/docs/es/api/agent-files/set-agent-file-availability"},{"title":"Eliminar archivo del agente","sidebarTitle":"Eliminar","openapi":"openapi.json DELETE /file-library/files/{id}","href":"/docs/es/api/agent-files/delete-agent-file"}]},{"group":"Subcuentas","expanded":false,"pages":[{"title":"Listar subcuentas","sidebarTitle":"Listar","openapi":"openapi.json GET /sub-accounts","href":"/docs/es/api/sub-accounts/list-sub-accounts"},{"title":"Crear subcuenta","sidebarTitle":"Crear","openapi":"openapi.json POST /sub-accounts","href":"/docs/es/api/sub-accounts/create-sub-account"},{"title":"Reenviar invitación de subcuenta","sidebarTitle":"Reenviar invitación","openapi":"openapi.json POST /sub-accounts/{sub_account_id}/invitations/resend","href":"/docs/es/api/sub-accounts/resend-sub-account-invitation"},{"title":"Copiar un agente a una subcuenta","sidebarTitle":"Copiar un agente","openapi":"openapi.json POST /sub-accounts/{sub_account_id}/agents/duplicate","href":"/docs/es/api/sub-accounts/copy-agent-to-sub-account"},{"title":"Pausar subcuenta","sidebarTitle":"Pausar","openapi":"openapi.json POST /sub-accounts/{sub_account_id}/pause","href":"/docs/es/api/sub-accounts/pause-sub-account"},{"title":"Desactivar subcuenta","sidebarTitle":"Desactivar","openapi":"openapi.json POST /sub-accounts/{sub_account_id}/deactivate","href":"/docs/es/api/sub-accounts/deactivate-sub-account"},{"title":"Reactivar subcuenta","sidebarTitle":"Reactivar","openapi":"openapi.json POST /sub-accounts/{sub_account_id}/reactivate","href":"/docs/es/api/sub-accounts/reactivate-sub-account"}]},{"group":"Funciones programadas","expanded":false,"pages":[{"title":"Listar funciones programadas","sidebarTitle":"Listar","openapi":"openapi.json GET /scheduled-functions","href":"/docs/es/api/scheduled-functions/list-scheduled-functions"},{"title":"Consultar una función programada","sidebarTitle":"Detalles","openapi":"openapi.json GET /scheduled-functions/{id}","href":"/docs/es/api/scheduled-functions/get-scheduled-function"},{"title":"Crear una función programada","sidebarTitle":"Crear","openapi":"openapi.json POST /scheduled-functions","href":"/docs/es/api/scheduled-functions/create-scheduled-function"},{"title":"Actualizar una función programada","sidebarTitle":"Actualizar","openapi":"openapi.json PATCH /scheduled-functions/{id}","href":"/docs/es/api/scheduled-functions/update-scheduled-function"},{"title":"Guardar un borrador de función programada","sidebarTitle":"Guardar borrador","openapi":"openapi.json PATCH /scheduled-functions/{id}/draft","href":"/docs/es/api/scheduled-functions/save-draft"},{"title":"Descartar un borrador de función programada","sidebarTitle":"Descartar borrador","openapi":"openapi.json DELETE /scheduled-functions/{id}/draft","href":"/docs/es/api/scheduled-functions/discard-draft"},{"title":"Probar una función programada","sidebarTitle":"Probar","openapi":"openapi.json POST /scheduled-functions/{id}/test","href":"/docs/es/api/scheduled-functions/test-scheduled-function"},{"title":"Publicar un borrador de función programada","sidebarTitle":"Publicar","openapi":"openapi.json POST /scheduled-functions/{id}/publish","href":"/docs/es/api/scheduled-functions/publish-scheduled-function"},{"title":"Listar versiones de una función programada","sidebarTitle":"Versiones","openapi":"openapi.json GET /scheduled-functions/{id}/versions","href":"/docs/es/api/scheduled-functions/list-versions"},{"title":"Consultar una versión de función programada","sidebarTitle":"Detalles de versión","openapi":"openapi.json GET /scheduled-functions/{id}/versions/{versionNumber}","href":"/docs/es/api/scheduled-functions/get-version"},{"title":"Restaurar una versión de función programada","sidebarTitle":"Restaurar versión","openapi":"openapi.json POST /scheduled-functions/{id}/versions/{versionNumber}/restore","href":"/docs/es/api/scheduled-functions/restore-version"},{"title":"Ejecutar una función programada ahora","sidebarTitle":"Ejecutar ahora","openapi":"openapi.json POST /scheduled-functions/{id}/run","href":"/docs/es/api/scheduled-functions/run-scheduled-function"},{"title":"Previsualizar el horario de una función programada","sidebarTitle":"Previsualizar horario","openapi":"openapi.json POST /scheduled-functions/preview-schedule","href":"/docs/es/api/scheduled-functions/preview-schedule"},{"title":"Previsualizar la cohorte de una función programada","sidebarTitle":"Previsualizar cohorte","openapi":"openapi.json POST /scheduled-functions/preview-cohort","href":"/docs/es/api/scheduled-functions/preview-cohort"},{"title":"Consultar la referencia de funciones programadas","sidebarTitle":"Referencia","openapi":"openapi.json GET /scheduled-functions/reference","href":"/docs/es/api/scheduled-functions/reference"},{"title":"Listar ejecuciones de funciones programadas","sidebarTitle":"Historial de ejecuciones","openapi":"openapi.json GET /scheduled-functions/runs","href":"/docs/es/api/scheduled-functions/list-runs"},{"title":"Consultar una ejecución de función programada","sidebarTitle":"Detalles de ejecución","openapi":"openapi.json GET /scheduled-functions/runs/{runId}","href":"/docs/es/api/scheduled-functions/get-run"},{"title":"Borrar el historial de funciones programadas","sidebarTitle":"Borrar historial","openapi":"openapi.json DELETE /scheduled-functions/runs","href":"/docs/es/api/scheduled-functions/clear-runs"}]},{"group":"Cloud Functions","expanded":false,"pages":[{"title":"Listar funciones en la nube","sidebarTitle":"Listar","openapi":"openapi.json GET /cloud-functions","href":"/docs/es/api/cloud-functions/get-cloud-functions"},{"title":"Consultar una función en la nube","sidebarTitle":"Detalles","openapi":"openapi.json GET /cloud-functions/{id}","href":"/docs/es/api/cloud-functions/get-cloud-functions-by-id"},{"title":"Crear una función en la nube","sidebarTitle":"Crear","openapi":"openapi.json POST /cloud-functions","href":"/docs/es/api/cloud-functions/post-cloud-functions"},{"title":"Actualizar una función en la nube","sidebarTitle":"Actualizar","openapi":"openapi.json PATCH /cloud-functions/{id}","href":"/docs/es/api/cloud-functions/patch-cloud-functions-by-id"},{"title":"Eliminar una función en la nube","sidebarTitle":"Eliminar","openapi":"openapi.json DELETE /cloud-functions/{id}","href":"/docs/es/api/cloud-functions/delete-cloud-functions-by-id"},{"title":"Guardar un borrador de función en la nube","sidebarTitle":"Guardar borrador","openapi":"openapi.json PATCH /cloud-functions/{id}/draft","href":"/docs/es/api/cloud-functions/patch-cloud-functions-by-id-draft"},{"title":"Descartar un borrador de función en la nube","sidebarTitle":"Descartar borrador","openapi":"openapi.json DELETE /cloud-functions/{id}/draft","href":"/docs/es/api/cloud-functions/delete-cloud-functions-by-id-draft"},{"title":"Probar una función en la nube","sidebarTitle":"Probar","openapi":"openapi.json POST /cloud-functions/{id}/test","href":"/docs/es/api/cloud-functions/post-cloud-functions-by-id-test"},{"title":"Publicar un borrador de función en la nube","sidebarTitle":"Publicar","openapi":"openapi.json POST /cloud-functions/{id}/publish","href":"/docs/es/api/cloud-functions/post-cloud-functions-by-id-publish"},{"title":"Listar versiones de una función en la nube","sidebarTitle":"Versiones","openapi":"openapi.json GET /cloud-functions/{id}/versions","href":"/docs/es/api/cloud-functions/get-cloud-functions-by-id-versions"},{"title":"Consultar una versión de función en la nube","sidebarTitle":"Detalles de versión","openapi":"openapi.json GET /cloud-functions/{id}/versions/{versionNumber}","href":"/docs/es/api/cloud-functions/get-cloud-functions-by-id-versions-by-version-number"},{"title":"Restaurar una versión de función en la nube","sidebarTitle":"Restaurar versión","openapi":"openapi.json POST /cloud-functions/{id}/versions/{versionNumber}/restore","href":"/docs/es/api/cloud-functions/post-cloud-functions-by-id-versions-by-version-number-restore"},{"title":"Ejecutar una función en la nube","sidebarTitle":"Ejecutar ahora","openapi":"openapi.json POST /cloud-functions/{id}/run","href":"/docs/es/api/cloud-functions/post-cloud-functions-by-id-run"},{"title":"Listar ejecuciones de funciones en la nube","sidebarTitle":"Historial de ejecuciones","openapi":"openapi.json GET /cloud-functions/runs","href":"/docs/es/api/cloud-functions/get-cloud-functions-runs"},{"title":"Consultar una ejecución de función en la nube","sidebarTitle":"Detalles de ejecución","openapi":"openapi.json GET /cloud-functions/runs/{runId}","href":"/docs/es/api/cloud-functions/get-cloud-functions-runs-by-run-id"},{"title":"Borrar el historial de funciones en la nube","sidebarTitle":"Borrar historial","openapi":"openapi.json DELETE /cloud-functions/runs","href":"/docs/es/api/cloud-functions/delete-cloud-functions-runs"},{"title":"Listar variables de entorno de funciones","sidebarTitle":"Variables de entorno","openapi":"openapi.json GET /cloud-functions/environment-variables","href":"/docs/es/api/cloud-functions/get-cloud-functions-environment-variables"},{"title":"Configurar una variable de entorno de funciones","sidebarTitle":"Configurar variable","openapi":"openapi.json PUT /cloud-functions/environment-variables/{key}","href":"/docs/es/api/cloud-functions/put-cloud-functions-environment-variables-by-key"},{"title":"Eliminar una variable de entorno de funciones","sidebarTitle":"Eliminar variable","openapi":"openapi.json DELETE /cloud-functions/environment-variables/{key}","href":"/docs/es/api/cloud-functions/delete-cloud-functions-environment-variables-by-key"}]},{"title":"Leer motivos de descarte","sidebarTitle":"Leer motivos de descarte","openapi":"openapi.json GET /workflows/{id}/discard-reasons","href":"/docs/es/api/workflows/get-discard-reasons"},{"title":"Editar definiciones de descarte","sidebarTitle":"Editar definiciones de descarte","openapi":"openapi.json PATCH /workflows/{id}/discard-reasons","href":"/docs/es/api/workflows/set-discard-reason-definitions"},{"title":"Administrar motivos de descarte","sidebarTitle":"Administrar motivos de descarte","openapi":"openapi.json POST /workflows/discard-reasons/changes","href":"/docs/es/api/workflows/change-discard-reasons"}]},{"group":"Configura y lanza","pages":[{"title":"Arma y ajusta tus agentes con Nexor AI","sidebarTitle":"Nexor AI","href":"/docs/es/guides/getting-started/build-with-nexorgpt"},{"title":"Prueba tu agente","sidebarTitle":"Prueba tu agente","href":"/docs/es/guides/getting-started/test-in-playground"},{"title":"Tareas que trabajan juntas","sidebarTitle":"Tareas que trabajan juntas","href":"/docs/es/guides/getting-started/connected-agents"},{"title":"Checklist para activar","sidebarTitle":"Checklist para activar","href":"/docs/es/guides/getting-started/launch-checklist"},{"title":"Planifica tu agente","sidebarTitle":"Planifica tu agente","href":"/docs/es/guides/getting-started/define-your-use-case"},{"title":"Para desarrolladores","sidebarTitle":"Para desarrolladores","href":"/docs/es/guides/getting-started/for-developers"}]},{"group":"WhatsApp","pages":[{"title":"Conectar WhatsApp","sidebarTitle":"Conectar WhatsApp","href":"/docs/es/guides/connecting-whatsapp"},{"title":"Plantillas de mensaje de WhatsApp","sidebarTitle":"Plantillas de mensaje","href":"/docs/es/guides/whatsapp/message-templates"},{"title":"Consentimiento y baja en WhatsApp","sidebarTitle":"Consentimiento y baja","href":"/docs/es/guides/whatsapp/consent-and-opt-out"},{"title":"Entrega de mensajes y calidad de la cuenta","sidebarTitle":"Entrega y calidad","href":"/docs/es/guides/whatsapp/delivery-and-quality"},{"title":"Verifica tu negocio en Meta","sidebarTitle":"Verificación del negocio","href":"/docs/es/guides/whatsapp/business-verification"},{"title":"Solución de problemas de conexión de WhatsApp","sidebarTitle":"Solución de problemas","href":"/docs/es/guides/whatsapp/troubleshooting"},{"title":"Referencia de codigos de error de WhatsApp","sidebarTitle":"Codigos de error","href":"/docs/es/guides/whatsapp/error-codes"},{"title":"Precios de WhatsApp","sidebarTitle":"Precios","href":"/docs/es/guides/whatsapp/pricing"}]},{"group":"Canales","pages":[{"title":"Configurar llamadas de voz","sidebarTitle":"Voz","href":"/docs/es/guides/channels/voice"},{"title":"Email","sidebarTitle":"Email","href":"/docs/es/guides/channels/email"},{"title":"Configurar SMS y 10DLC de EE. UU.","sidebarTitle":"SMS y 10DLC","href":"/docs/es/guides/channels/sms-and-10dlc"},{"title":"Chat web","sidebarTitle":"Chat web","href":"/docs/es/guides/channels/web-chat"},{"title":"Conectar Instagram","sidebarTitle":"Instagram","href":"/docs/es/guides/channels/instagram"},{"title":"Conectar Messenger","sidebarTitle":"Messenger","href":"/docs/es/guides/channels/messenger"}]},{"group":"Agentes","pages":[{"title":"Pipeline y operación del Agente","sidebarTitle":"Pipeline","href":"/docs/es/guides/agents/pipeline"},{"title":"Configuración del agente","sidebarTitle":"Ajustes","href":"/docs/es/guides/agents/settings"},{"title":"Mapa del agente: qué pasa cuando entra un lead","sidebarTitle":"Mapa del agente","href":"/docs/es/guides/agents/agent-map"},{"title":"Borradores y versiones: prueba los cambios antes de que los vean tus leads","sidebarTitle":"Borradores y versiones","href":"/docs/es/guides/agents/drafts-and-versions"},{"title":"Recepcionista IA: deriva leads nuevos y transfiere llamadas","sidebarTitle":"Recepcionista IA","href":"/docs/es/guides/agents/router"},{"title":"Revisión lógica","sidebarTitle":"Revisión lógica","href":"/docs/es/guides/agents/logical-check"},{"title":"Buenas prácticas para los prompts","sidebarTitle":"Buenas prácticas","href":"/docs/es/guides/agents/prompt-best-practices"},{"title":"Base de conocimiento, archivos y catálogos de productos","sidebarTitle":"Base de conocimiento","href":"/docs/es/guides/agents/knowledge-base"},{"title":"Fuentes conectadas: Instagram y Google Drive","sidebarTitle":"Fuentes conectadas","href":"/docs/es/guides/agents/connected-sources"},{"title":"Registra conversiones","sidebarTitle":"Conversiones","href":"/docs/es/guides/agents/conversions"},{"group":"Leads","pages":[{"title":"Gestionar leads","sidebarTitle":"Gestionar","href":"/docs/es/guides/agents/leads/manage-leads"},{"title":"Detalle y conversaciones del lead","sidebarTitle":"Detalle y chat","href":"/docs/es/guides/agents/leads/conversations"},{"title":"Organiza leads con tags","sidebarTitle":"Tags","href":"/docs/es/guides/agents/leads/tags"},{"title":"Agregar un lead manualmente","sidebarTitle":"Agregar manualmente","href":"/docs/es/guides/agents/leads/manual-upload"},{"title":"Subir leads desde CSV o Excel","sidebarTitle":"Subir un archivo","href":"/docs/es/guides/agents/leads/csv-upload"},{"title":"Conectar HubSpot","sidebarTitle":"HubSpot","href":"/docs/es/guides/agents/leads/hubspot"},{"title":"Conectar Kommo","href":"/docs/es/guides/agents/leads/kommo"},{"title":"Conecta tu API","href":"/docs/es/guides/agents/leads/api"},{"title":"Leads de prueba","sidebarTitle":"De prueba","href":"/docs/es/guides/agents/leads/test-leads"}]}]},{"group":"Reuniones","pages":[{"title":"Administrar reuniones","sidebarTitle":"Descripción general","href":"/docs/es/guides/meetings/overview"},{"title":"Calendarios y disponibilidad","sidebarTitle":"Calendarios y disponibilidad","href":"/docs/es/guides/meetings/calendars-and-availability"},{"title":"Configurar tipos de reunión y anfitriones","sidebarTitle":"Tipos y anfitriones","href":"/docs/es/guides/meetings/meeting-types-and-hosts"},{"title":"Configurar recordatorios y avisos","sidebarTitle":"Recordatorios y avisos","href":"/docs/es/guides/meetings/reminders-and-alerts"},{"title":"Agenda del CRM desde el chat","sidebarTitle":"Agenda del CRM desde el chat","href":"/docs/es/guides/meetings/crm-booking-chat"}]},{"group":"Integraciones","pages":[{"title":"Google Calendar","sidebarTitle":"Google Calendar","href":"/docs/es/guides/integrations/google-calendar"},{"title":"Outlook Calendar","sidebarTitle":"Outlook Calendar","href":"/docs/es/guides/integrations/outlook-calendar"},{"title":"Zoom","sidebarTitle":"Zoom","href":"/docs/es/guides/integrations/zoom"},{"title":"Conectar Calendly","sidebarTitle":"Calendly","href":"/docs/es/guides/integrations/calendly"},{"title":"Conectar Cal.com","sidebarTitle":"Cal.com","href":"/docs/es/guides/integrations/calcom"},{"title":"Conexión personalizada","sidebarTitle":"Conexión personalizada","href":"/docs/es/guides/integrations/custom-connection"},{"title":"Conectar GoHighLevel","sidebarTitle":"GoHighLevel","href":"/docs/es/guides/integrations/gohighlevel"},{"title":"Conectar Zoho CRM","sidebarTitle":"Zoho CRM","href":"/docs/es/guides/integrations/zoho"},{"title":"Conectar Salesforce","sidebarTitle":"Salesforce","href":"/docs/es/guides/integrations/salesforce"},{"title":"Conectar Odoo","sidebarTitle":"Odoo","href":"/docs/es/guides/integrations/odoo"},{"title":"Conectar Google Sheets","sidebarTitle":"Google Sheets","href":"/docs/es/guides/integrations/google-sheets"},{"title":"Conectar Slack","sidebarTitle":"Slack","href":"/docs/es/guides/integrations/slack"},{"title":"Conectar apps y servidores MCP","sidebarTitle":"Apps y servidores MCP","href":"/docs/es/guides/integrations/mcp-apps"}]},{"group":"Cuenta","pages":[{"title":"Perfil personal y preferencias","sidebarTitle":"Perfil","href":"/docs/es/guides/account/profile"},{"title":"Miembros, roles y acceso","sidebarTitle":"Miembros y roles","href":"/docs/es/guides/account/members-and-roles"},{"title":"Configuración de notificaciones","sidebarTitle":"Notificaciones","href":"/docs/es/guides/account/notifications"},{"title":"Facturación, cuota de leads y facturas","sidebarTitle":"Facturación","href":"/docs/es/guides/account/billing"},{"title":"Reactivar un plan cancelado","sidebarTitle":"Reactivar plan","href":"/docs/es/guides/account/reactivate-plan"},{"title":"Subcuentas","sidebarTitle":"Subcuentas","href":"/docs/es/guides/account/sub-accounts"}]},{"group":"Bandeja de entrada","pages":[{"title":"Resumen de Inbox","sidebarTitle":"Resumen","href":"/docs/es/guides/inbox/overview"},{"title":"Gestiona escalaciones en Inbox","sidebarTitle":"Escalaciones","href":"/docs/es/guides/inbox/escalations"}]},{"group":"Métricas","pages":[{"title":"Dashboards de Métricas","sidebarTitle":"Dashboards","href":"/docs/es/guides/insights/dashboards"}]},{"group":"Herramientas para desarrolladores","pages":[{"title":"Automatización avanzada","sidebarTitle":"Vista general","href":"/docs/es/guides/advanced/overview"},{"title":"Cloud Functions","sidebarTitle":"Cloud Functions","href":"/docs/es/guides/advanced/cloud-functions"},{"title":"Funciones programadas","sidebarTitle":"Funciones programadas","href":"/docs/es/guides/advanced/scheduled-functions"}]},{"group":"Referencia de soporte","pages":[{"title":"Glosario: agente, tarea, grupo y nombres anteriores","sidebarTitle":"Glosario","href":"/docs/es/support/glossary"},{"title":"Alcance de la configuración: cuenta, agente y tarea","sidebarTitle":"Alcance de la configuración","href":"/docs/es/support/settings-scope"},{"title":"Dónde está cada ajuste: v2 y vista clásica (v1)","sidebarTitle":"Dónde está cada ajuste","href":"/docs/es/support/where-is-each-setting"},{"title":"Horarios de contacto, cadencia y seguimientos","sidebarTitle":"Horarios y cadencia","href":"/docs/es/support/contact-hours-and-cadence"},{"title":"Asignar leads solo a miembros Activos (Activo / Ausente)","sidebarTitle":"Solo miembros Activos","href":"/docs/es/support/assign-only-active-agents"},{"title":"CRM y entrada de leads: diagnóstico","sidebarTitle":"CRM y entrada de leads","href":"/docs/es/support/crm-sync-and-lead-intake"},{"title":"WhatsApp Coexistence: los mensajes no aparecen en la app WhatsApp Business","sidebarTitle":"Sincronización de Coexistence","href":"/docs/es/support/whatsapp-coexistence-sync"},{"title":"Novedades del producto en la app (ventana Novedades)","sidebarTitle":"Novedades en la app","href":"/docs/es/support/product-news-in-the-app"},{"title":"Tickets de soporte desde Nexor AI (levantar un ticket, ver mis tickets)","sidebarTitle":"Tickets de soporte desde Nexor AI","href":"/docs/es/support/support-tickets-from-nexor-ai"},{"title":"Contactar a soporte de Nexor (correo de soporte, eliminar mi cuenta)","sidebarTitle":"Contáctanos","href":"/docs/es/support/contact-support"},{"title":"Dashboard clásico de Resumen (v1): métricas y avisos","sidebarTitle":"Dashboard clásico (v1)","href":"/docs/es/guides/getting-started/dashboard"},{"group":"Cumplimiento en EE. UU.","pages":[{"title":"Cumplimiento en Estados Unidos: consentimiento, llamadas con IA y SMS","sidebarTitle":"Reglas para EE. UU.","href":"/docs/es/guides/compliance/us-outreach-overview"},{"title":"Reglas por estado de EE. UU. para llamadas y SMS","sidebarTitle":"Reglas por estado","href":"/docs/es/guides/compliance/us-state-rules"},{"title":"Aviso de IA y grabación de llamadas para agentes en EE. UU.","sidebarTitle":"Aviso de IA y grabación","href":"/docs/es/guides/compliance/ai-disclosure-and-recording"}]}]}]}]},"basePath":"","title":"Crear un agente - Nexor","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-BIYvYBgk.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}