Events in Rasa | Rasa Documentation

Build your first agent in just a few minutes with Rasa Copilot.

Each conversation in Rasa represents a sequence of events. Events are used to track user messages and bot responses, as well as side effects of actions that Rasa takes during a conversation, such as advancing flows or setting slots. Events are emitted by Rasa at different stages of the conversation, and they can be used to analyze and improve your assistant by querying the Rasa analytics data pipeline or running end-to-end tests.

Events are stored in the Rasa tracker store and can be additionally accessed via the Rasa HTTP API.

Event Types

Rasa issues different types of events throughout the course of a conversation, among which:

All events share the following attributes:

User Event

The UserUttered event represents a message sent by the user and its type name is user. It contains the following additional attributes:

Bot Event

The BotUttered event represents a message sent by the bot and its type name is bot. It contains the following additional attributes:

Slot Event

The SlotSet event represents the setting of a slot and its type name is slot. It contains the following additional attributes:

Reset Slots Event

The AllSlotsReset event represents the resetting of all slots and its type name is reset_slots. It does not contain any additional attributes.

Entities Event

The EntitiesAdded event represents the addition of entities to the conversation state and its type name is entities. It contains the following additional attributes:

Action Event

The ActionExecuted event represents the execution of an action and its type name is action. It contains the following additional attributes:

Followup Action Event

The FollowupAction event represents the enqueueing of a follow-up action and its type name is followup. It contains the following additional attributes:

Action Execution Rejected Event

The ActionExecutionRejected event represents the rejection of an action execution and its type name is action_execution_rejected. It contains the following additional attributes:

Session Started Event

The SessionStarted event represents the start of a new conversation session and its type name is session_started. It does not contain any additional attributes.

Restarted Event

The Restarted event represents the reset of a conversation session and its type name is restart. It does not contain any additional attributes.

Stack Event

The DialogueStackUpdated event represents the update of the conversation stack and its type name is stack. It contains the following additional attributes:

Routing Session Ended Event

The RoutingSessionEnded event represents the end of a routing session for coexistence and its type name is routing_session_ended. It does not contain any additional attributes.

Flow Started Event

The FlowStarted event represents the start of a flow and its type name is flow_started. It contains the following additional attributes:

Flow Interrupted Event

The FlowInterrupted event represents the interruption of a flow and its type name is flow_interrupted. It contains the following additional attributes:

Flow Resumed Event

The FlowResumed event represents the resuming of a flow and its type name is flow_resumed. It contains the following additional attributes:

Flow Completed Event

The FlowCompleted event represents the completion of a flow and its type name is flow_completed. It contains the following additional attributes:

Flow Cancelled Event

The FlowCancelled event represents the cancellation of a flow and its type name is flow_cancelled. It contains the following additional attributes:

Reminder Event

The ReminderScheduled event represents the scheduling of a reminder and its type name is reminder. It contains the following additional attributes:

Cancel Reminder Event

The ReminderCancelled event represents the cancellation of a reminder and its type name is cancel_reminder. It contains the following additional attributes:

Rewind Event

The UserUtteranceReverted event represents the reverting of every event which happened after the most recent user message and its type name is rewind. It does not contain any additional attributes.

Undo Event

The ActionReverted event represents the reverting of the bot's last action and its type name is undo. It does not contain any additional attributes.

Export Story Event

The StoryExported event represents the export of a training data story to file and its type name is export. It contains the following additional attributes:

Pause Event

The ConversationPaused event represents the pausing of a conversation and its type name is pause. It does not contain any additional attributes.

Resume Event

The ConversationResumed event represents the resuming of a conversation and its type name is resume. It does not contain any additional attributes.

Active Loop Event

The ActiveLoop event represents the activation of a form and its type name is active_loop. It contains the following additional attributes:

Loop Interrupted Event

The LoopInterrupted event represents the interruption of a form and its type name is loop_interrupted. It contains the following additional attributes:

Session Ended Event

The SessionEnded event represents the end of a session and its type name is session_ended. Rasa adds _reason key to the metadata attribute of the event with the reason for the session end.

Agent Started Event

The AgentStarted event represents the start of a sub agent and its type name is agent_started. It contains the following additional attributes:

Agent Completed Event

The AgentCompleted event represents the completion of a sub agent and its type name is agent_completed. It contains the following additional attributes:

Agent Interrupted Event

The AgentInterrupted event represents the interruption of a sub agent and its type name is agent_interrupted. It contains the following additional attributes:

Agent Cancelled Event

The AgentCancelled event represents the cancellation of a sub agent and its type name is agent_cancelled. It contains the following additional attributes:

Agent Resumed Event

The AgentResumed event represents the resuming of a sub agent and its type name is agent_resumed. It contains the following additional attributes: