Skip to main content
This guide covers direct HTTP integrations. To start with the official SDKs, use the quickstart. You need a published configuration and a key with the runtime scope.

1. Create a session

Keep the returned session_id and versions.state_version. A new session starts at version 0.

2. Obtain the first question

When action is ask, display or rephrase candidates[0]. Keep the new versions.state_version and, when possible, the decision_id.

3. Send the visitor answer

Always use the state_version you actually received; 1 is illustrative here.

4. Record the final outcome

Find complete schemas, examples, and errors in the API reference.