How-to guideApplies to: Unified engine deployments
Create a conversation, submit one read-scope turn, watch its events, and read the final result. The assistant must be configured and its provider available.
Ask through the assistant API
The assistant must be configured. This example uses read scope and may make a model request.
Replace the placeholders in your client. Keep returned IDs for later requests. Paths below use the native API prefix; adjust it for your deployment.
1. Check assistant availability
Endpoint reference.
2. Create a conversation
From the response, keep conversation_id from /conversation_id.
Endpoint reference.
3. Ask a question
From the response, keep turn_id from /turn_id.
Endpoint reference.
4. Watch events
Endpoint reference.
5. Read the final turn
Endpoint reference.
Read scope asks the assistant to inspect and explain. Draft and execute scopes have separate behavior. Model requests can incur provider usage. Check assistant capabilities before submitting the turn.
The stream carries sequence IDs. Reconnect with the supported cursor rather than creating a new turn to recover an interrupted stream. Stop watching only closes the browser’s stream; cancellation uses the turn cancel API.
Inspect action requests and approval state before using the action-approval endpoint. The response and event APIs return public turn data; internal model messages are not part of the public response.Last modified on November 4, 2026