# 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**
  
  JSON
  
  ```
  evt = {"event": "slot", "name": "departure_airport", "value": "BER"}
  ```

The user has specified their preference for the value of a `slot`.

- **Restart a conversation**  
  
  JSON
  
  ```
  evt = {"event": "restart"}
  ```

Conversation should start over & history wiped.

- **Reset all Slots**  
  
  JSON
  
  ```
  evt = {"event": "reset_slots"}
  ```

All Slots are reset to their initial values.

- **Schedule a reminder**  
  
  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,}
  ```

- **Cancel a reminder**  
  
  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** 
  
  JSON
  
  ```
  evt = {"event": "pause"}
  ```

- **Resume a conversation** 
  
  JSON
  
  ```
  evt = {"event": "resume"}
  ```

- **Force a followup action**  
  
  JSON
  
  ```
  evt = {"event": "followup", "name": "my_action"}
  ```

### Automatically tracked events

- **User sent message**  
  
  JSON
  
  ```
  evt = {"event": "user", "text": "Hey", "parse_data": {"intent": {"name": "greet", "confidence": 0.9}, "entities": []}, "metadata": {},}
  ```

- **Bot responded message**  
  
  JSON
  
  ```
  evt = {"event": "bot", "text": "Hey there!", "data": {}}
  ```

- **Undo a user message**  
   
  JSON
  
  ```
  evt = {"event": "rewind"}
  ```

- **Undo an action**  
  
  JSON
  
  ```
  evt = {"event": "undo"}
  ```

- **Log an executed action**  
  
  JSON
  
  ```
  evt = {"event": "action", "name": "my_action"}
  ```

- **Start a new conversation session**  
  
  JSON
  
  ```
  evt = {"event": "session_started"}
  ```

👋 I can help you get started with Rasa and answer your technical questions.
