Events
These docs are for version 1.x of Rasa Open Source.
User Guide
- Installation
- Tutorial: Rasa Basics
- Tutorial: Building Assistants
- Command Line Interface
- Architecture
- Messaging and Voice Channels
- Testing Your Assistant
- Validate Data
- Configuring the HTTP API
- Deploying Your Rasa Assistant
- Cloud Storage
NLU
- About
- Using NLU Only
- Training Data Format
- Language Support
- Choosing a Pipeline
- Components
- Entity Extraction
Core
- About
- Stories
- Domains
- Responses
- Actions
- Reminders and External Events
- Policies
- Slots
- Forms
- Retrieval Actions
- Interactive Learning
- Fallback Actions
- Knowledge Base Actions
Conversation Design
API Reference
- Action Server
- HTTP API
- Jupyter Notebooks
- Agent
- Custom NLU Components
- Rasa SDK
- Events
- Tracker
- Tracker Stores
- Event Brokers
- Lock Stores
- Training Data Importers
- Featurization of Conversations
- TensorFlow Configuration
- Migration Guide
- Rasa Open Source Change Log
Migrate from (beta)
Reference
Events
Conversations in Rasa are represented as a sequence of events. This page lists the event types defined in Rasa Core.
General Purpose Events
Set a Slot
Event to set a slot on a tracker
JSON
evt = {"event": "slot", "name": "departure_airport", "value": "BER"}
The user has specified their preference for the value of a slot. Every slot has a name and a value. This event can be used to set a value for a slot on a conversation.
Restart a conversation
Resets anything logged on the tracker.
JSON
evt = {"event": "restart"}
Conversation should start over & history wiped.
Reset all Slots
Resets all the slots of a conversation.
JSON
evt = {"event": "reset_slots"}
All Slots are reset to their initial values.
Schedule a reminder
Schedule an intent to be triggered in the future.
JSON
evt = {
"event": "reminder",
"intent": "my_intent",
"entities": {"entity1": "value1", "entity2": "value2"},
"date_time": "2018-09-03T11:41:10.128172",
"name": "my_reminder",
"kill_on_user_msg": true,
}
Schedules the asynchronous triggering of a user intent (with entities if needed) at a given time.
Cancel a reminder
Cancel one or more reminders.
JSON
evt = {
"event": "cancel_reminder",
"name": "my_reminder",
"intent": "my_intent",
"entities": [
{"entity": "entity1", "value": "value1"},
{"entity": "entity2", "value": "value2"},
],
"date_time": "2018-09-03T11:41:10.128172",
}
Pause a conversation
Stops the bot from responding to messages.
JSON
evt = {"event": "pause"}
Resume a conversation
Resumes a previously paused conversation.
JSON
evt = {"event": "resume"}
Force a followup action
Instead of predicting the next action, force the next action to be a fixed one.
JSON
evt = {"event": "followup", "name": "my_action"}
Automatically tracked events
User sent message
Message a user sent to the bot.
JSON
evt = {
"event": "user",
"text": "Hey",
"parse_data": {
"intent": {
"name": "greet",
"confidence": 0.9
},
"entities": []
},
"metadata": {},
}
Bot responded message
Message a bot sent to the user.
JSON
evt = {"event": "bot", "text": "Hey there!", "data": {}}
Undo a user message
Undoes all side effects that happened after the last user message.
JSON
evt = {"event": "rewind"}
Undo an action
Undoes all side effects that happened after the last action.
JSON
evt = {"event": "undo"}
Log an executed action
Logs an action the bot executed to the conversation.
JSON
evt = {"event": "action", "name": "my_action"}
Start a new conversation session
Marks the beginning of a new conversation session.
JSON
evt = {"event": "session_started"}