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
- Setting up CI/CD
- 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.
Note
If you are using the Rasa SDK to write custom actions in python, you need to import the events from rasa_sdk.events, not from rasa.core.events. If you are writing actions in another language, your events should be formatted like the JSON objects on this page.
General Purpose Events
- Set a Slot
- Restart a conversation
- Reset all Slots
- Schedule a reminder
- Cancel a reminder
- Pause a conversation
- Resume a conversation
- Force a followup action
Automatically tracked events
- User sent message
- Bot responded message
- Undo a user message
- Undo an action
- Log an executed action
- Start a new conversation session
Example JSON Snippets
Set a Slot
evt = {"event": "slot", "name": "departure_airport", "value": "BER"}
Restart a conversation
evt = {"event": "restart"}
Reset all Slots
evt = {"event": "reset_slots"}
Schedule a reminder
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,}
Cancel a reminder
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",}
User sent message
evt = {"event": "user", "text": "Hey", "parse_data": {"intent": {"name": "greet", "confidence": 0.9}, "entities": []}, "metadata": {},}
Bot responded message
evt = {"event": "bot", "text": "Hey there!", "data": {}}