Start a test conversation
Start a simulated conversation with one of your tasks by API and get the agent’s first answer, with the tools it called. Nothing is sent on a real channel.
messenger (legacy value; unsupported channel) value in an API schema or historical record does not make it an available channel. Use Instagram for supported direct messaging.conversation_id you get back.
Before you start
- Use a secret API key. The widget publishable key is rejected with 403
publishable_key_out_of_scope. - MCP keys need
workflows:write. Full-access REST keys need nothing else. - It is always simulated. Nothing is sent on WhatsApp, SMS, email, or any other channel, even if the test lead has a phone or an email.
- It works on paused or inactive tasks, like Playground.
- Your HTTP tools run for real, with the
X-Nexor-Playground: trueheader. Check that header in your endpoint if a test must not create real orders or bookings. - Errors return a stable code in
error, such asworkflow_not_found. Map the code to your own copy. - If the agent refuses the turn on purpose, for example because the lead was escalated to a person or the AI is off for it, you get 409
turn_refusedwith the cause inreason, such aslead_in_support,human_takeover, orai_not_enabled. Sending the same message again gets the same answer. A real failure returnsturn_failedinstead.
What you send
What you get back
Limits
- 30 turns per minute per API key. Over that you get
rate_limitedand aRetry-Afterheader. - A turn that takes more than 90 seconds returns
turn_failedwith reasontimeout. It may still finish; list your test conversations to read it. - API keys and tokens inside tool arguments are masked.
Authorizations
Body
Optional. Simulated channel for the whole conversation; later messages reuse it. Delivery is always simulated. Voice is not available. Any other value returns 400 invalid_input. The messenger value is retained for legacy API compatibility; Facebook Messenger and Facebook private messaging are not supported and cannot be enabled.
whatsapp, webchat, sms, imessage, unsupervised-whatsapp, email, instagram, messenger Response
The conversation was created and the agent answered.
Simulated channel the conversation runs on. The agent writes as it would on that channel; nothing is sent. The messenger value is retained for legacy API compatibility; Facebook Messenger and Facebook private messaging are not supported and cannot be enabled.
whatsapp, webchat, sms, imessage, unsupervised-whatsapp, email, instagram, messenger