Actualizar enrutador de entrada
Activa o desactiva el enrutador de entrada de un agente y cambia su tarea por defecto, los umbrales de la IA y las preguntas de aclaración. Requiere confirm: true.
"confirm": true. Los que no envíes mantienen su valor. Cualquier otra clave devuelve 400 invalid_router_settings_field, con las claves desconocidas en fields.
Activar el enrutador
- Si no indicas una tarea por defecto, Nexor usa la tarea más antigua del agente, dentro de
candidate_workflow_idscuando esa lista está definida. - La tarea por defecto debe ser una de las tareas del agente. Puede estar en pausa.
- Cuando
candidate_workflow_idsestá definida, la tarea por defecto debe estar en esa lista.
Decidir cuándo el agente pregunta primero
Desactivar el enrutador
Autorizaciones
API key for authentication. Keys are prefixed with nxr_live_.
Parámetros de ruta
Agent ID (master_workflow in the API). A malformed ID returns 400 invalid_group_id.
Cuerpo
Send only the settings to change. Any other key returns 400 invalid_router_settings_field.
Must be true.
true Whether the inbound router picks the task for new inbound conversations of this agent.
Default task (workflow in the API). Conversations go here when no rule matches and the AI is not confident enough. Must be a task of this agent; paused tasks are allowed.
Tasks the router may choose from. null means every task of the agent.
When true, the AI reads the lead's first message and picks the task that fits best. It runs only when no earlier step decided and more than one task is available.
Minimum AI confidence to send the conversation straight to a task. Default 0.75.
0 <= x <= 1Below confidence_threshold but at or above this value, the agent asks the lead a clarifying question instead of guessing (WhatsApp and web chat). Below it, the conversation goes to the default task. Must not be greater than confidence_threshold. null restores the default (0.55).
0 <= x <= 1When a second task scores within this margin of the best one, the agent asks a clarifying question while questions remain. 0 turns this off. Default 0.25.
0 <= x <= 1A lead who writes again within this many hours goes back to the task chosen last time. null turns this off.
x >= 1Maximum clarifying questions before the conversation goes to the best match or the default task. Default 3.
1 <= x <= 5AI model size used to pick the task: haiku (faster, default) or sonnet (more capable).
haiku, sonnet When true, later messages in an ongoing conversation are also checked against the agent's other tasks, and the router records when another task would fit better (would_extract outcome).
Tasks considered by that later check. null means every task of the agent.
Minimum confidence for that later check. Default 0.75.
0 <= x <= 1Free-form object saved with the settings. Defaults to {}; the router does not require it.