To find your state IDs in Botpress Cloud, you need to know the state type, ID, and name. Here’s how you can identify them:
1. State Types
Common types are: conversation, user, bot, integration, and workflow.
2. State IDs
Conversation State: The ID is the conversation ID.
User State: The ID is the user ID.
Bot State: The ID is your bot ID.
Workflow State: The ID is the workflow ID.
You can retrieve these IDs programmatically in your bot code or via API:
- Conversation ID and User ID are available in event/session variables during execution.
- To list all conversations or users (and get their IDs), use the listConversations or listUsers endpoints.
3. State Names
The state name is defined by your bot or integration when creating or updating state. If you’re not sure, check your code or integration definition.
ref:
https://botpress.com/docs/api-reference/runtime-api/concepts
You should be able to reset the states in an execute code card with this information.
Hope it helps!