Access conversation data
Conversation and user data are available in message handlers:src/index.ts
Get conversation
Fetch conversation details:Update conversation
Update conversation tags:Get user
Fetch user details:Update user
Update user tags:List conversations
List all bot conversations:Pagination
List users
List all bot users:Delete conversation
Delete a conversation:Delete user
Delete a user:State management
Manage state scoped to conversations, users, bots, or workflows.Get or set state
Get existing state or initialize with default:Set state
Update state:Get state
Retrieve state (throws if not exists):List states
List all states for a scope:Delete state
Remove state:State types
Conversation state
User state
Bot state
Workflow state
State expiration
Define state expiration in your bot definition:bot.definition.ts
src/index.ts
Type signatures
Next steps
Messages
Send and receive messages
Bot handlers
Implement handlers