Push Session Data
How to push session data to the platform
We offer a REST API to push session data to the platform. You can find the full API spec here. But this can be used to quickly get started:
Simple Session
Let’s say we have a simple conversation between a user and a bot. The bot has a ground truth context that we want to evaluate the bot on. The request would be formatted as follows:
Tracking Versions
We can also track versions of sessions over time. This can be helpful to track the performance of a different versions of sessions.
Grouping Sessions
You don’t always want to use the same ground truth context for the duration of the conversation. For example, you may want to use a different context for different parts of the conversation. To do this, you can group sessions by passing in a sessionId
parameter that you manage.
Note: It is highly recommended to use a UUID for the sessionId to ensure uniqueness.