
Setup the SDK
Open a thread
Start by opening a thread.tags
param:
Track messages
Now you can track messages. The supported roles areassistant
, user
, system
, & tool
.
Track custom events
You can track custom events that happen within your chatbot. This can include things like:- opening a document
- clicking a button
- submitting a form
- user activity or inactivity
- other events that you want to track
Capture user feedback
Finally, you can track user feedback on bot replies: The ID is the same as the one returned bytrackMessage
.
null
as the feedback data.