Probar un mensaje
Simula un primer mensaje y revisa qué tarea elegiría el enrutador de entrada, sin enviar nada ni guardar un lead.
- El enrutador debe estar activo (
is_active: true). Si no, la API responde 400inbound_router_inactive. channelaceptawhatsapp,webchat,emailoapi.- Cada llamada es un primer mensaje nuevo. Las pruebas anteriores no se recuerdan. Cuando el resultado trae
clarify_question, esa es la pregunta que el agente le haría al lead. - Las reglas sobre
phoneymetadatausan elphoney lametadataque envías en el cuerpo. La prueba no envía email ni etiquetas, así que las reglas sobreemailotagsno encuentran valor, y solonot_existsse cumple. - Las claves MCP necesitan
workflows:read. La prueba no necesitaconfirm.
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
Channel the message arrives on.
whatsapp, webchat, email, api The lead's first message.
1Optional phone number of the simulated lead. Rules on phone check this value.
Optional metadata of the simulated lead. Rules on metadata.<key> check these values.
Respuesta
Result of the simulation.
true Step that decided. Same values as layer in List decisions.
What the AI step did: ROUTE picked a task, ASK_AGAIN asks a clarifying question, FALLBACK used the default task. null when another step decided.
ROUTE, ASK_AGAIN, FALLBACK, null Task that would answer. null while a clarifying question is pending.
Question the agent would ask the lead.
true when the clarifying questions ran out and the default or best task was used.