Skip to content

Commit

Permalink
Merge pull request #284 from botpress/rk-events
Browse files Browse the repository at this point in the history
added events
  • Loading branch information
ptrckbp authored Apr 18, 2024
2 parents a871feb + 5ab4e27 commit ffb784a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pages/cloud/admin-dashboard/_meta.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"details": "Chatbot Details",
"details": "Overview",
"messaging-channels": "",
"logs": "Admin Logs",
"config-variables": "Configuration Variables",
"analytics": "Chatbot Analytics",
"chat": "Chat with your Bot",
"logs": "Production Logs",
"conversations": "Conversations",
"analytics": "Analytics",
"events": "Events",
"usage": "Resources Usage Metrics",
"managing-workspaces": ""
"managing-workspaces": "",
"config-variables": "Configuration Variables"
}
38 changes: 38 additions & 0 deletions pages/cloud/admin-dashboard/events.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Events

![Misunderstood](/docs/content/events.png)

Botpress provides a comprehensive system for managing and inspecting events that occur within your bot. This system is essential for understanding how your bot interacts with users and for troubleshooting any issues that may arise.

**Events** represent anything that happens within the bot, such as messages from users, bot replies, and various system-level occurrences. By examining these events, builders can debug triggers, inspect payloads, and monitor the health and activity of their bot.

## Filtering Events

The Events page allows you to filter events by the following criteria:

- **Event**: The type of event that occurred.
- **Conversation**: The conversation to which the event belongs. You can filter by conversation ID.
- **User**: The user who triggered the event. You can filter by user ID.
- **Message**: The message content. You can filter by message ID.

Each event in Botpress has a specific type and status. These characteristics provide detailed information about what the event represents and the state of its processing.

### Types of Events

- `message_created`: Generated when a new message is created by a user.
- `state_expired`: Indicates that a conversation state has expired.
- `task_update`: Reflects changes in the status of a task.
- `webhook:event`: Triggered by a webhook event.
- `webchat:conversationStarted`: Marks the beginning of a new conversation.
- `webchat:trigger`: Indicates that a trigger has been activated.
- `botready`: Signifies that the bot is ready to receive messages.
- `botpublished`: Occurs when the bot is published.

### Event Statuses

Events can have one of the following statuses:

- `Processed`: The event has been successfully handled by the bot.
- `Failed`: The bot encountered an error while processing the event.
- `Pending`: The event is in the queue, awaiting processing.
- `Ignored`: The event has been deliberately ignored, usually by design.
Binary file added public/content/events.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ffb784a

Please sign in to comment.