# 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](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#set-a-slot)
- [Restart a conversation](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#restart-a-conversation)
- [Reset all Slots](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#reset-all-slots)
- [Schedule a reminder](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#schedule-a-reminder)
- [Pause a conversation](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#pause-a-conversation)
- [Resume a conversation](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#resume-a-conversation)
- [Force a followup action](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#force-a-followup-action)

### Automatically tracked events

- [User sent message](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#user-sent-message)
- [Bot responded message](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#bot-responded-message)
- [Undo a user message](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#undo-a-user-message)
- [Undo an action](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#undo-an-action)
- [Log an executed action](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#log-an-executed-action)
  
### [Set a Slot](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id3)
Short

Event to set a slot on a tracker

JSON

```json
evt = {"event": "slot", "name": "departure_airport", "value": "BER"}
```

### [Restart a conversation](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id4)
Short

Resets anything logged on the tracker.

JSON

```json
evt = {"event": "restart"}
```

### [Reset all Slots](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id5)
Short

Resets all the slots of a conversation.

JSON

```json
evt = {"event": "reset_slots"}
```

### [Schedule a reminder](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id6)
Short

Schedule an action to be executed in the future.

JSON

```json
evt={
      "event": "reminder",
      "action": "my_action",
      "date_time": "2018-09-03T11:41:10.128172",
      "name": "my_reminder",
      "kill_on_user_msg": true,
    }
```

### [Pause a conversation](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id7)
Short

Stops the bot from responding to messages.

JSON

```json
evt = {"event": "pause"}
```

### [Resume a conversation](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id8)
Short

Resumes a previously paused conversation.

JSON

```json
evt = {"event": "resume"}
```

### [Force a followup action](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id9)
Short

Instead of predicting the next action, force the next action to be a fixed one.

JSON

```json
evt = {"event": "followup", "name": "my_action"}
```

### [User sent message](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id11)
Short

Message a user sent to the bot.

JSON

```json
evt={
      "event": "user",
      "text": "Hey",
      "parse_data": {
        "intent": {
          "name": "greet",
          "confidence": 0.9
        },
        "entities": []
      },
      "metadata": {},
    }
```

### [Bot responded message](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id12)  
Short

Message a bot sent to the user.

JSON

```json
evt = {"event": "bot", "text": "Hey there!", "data": {}}
```

### [Undo a user message](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id13)
Short

Undoes all side effects that happened after the last user message.

JSON

```json
evt = {"event": "rewind"}
```

### [Undo an action](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id14)
Short

Undoes all side effects that happened after the last action.

JSON

```json
evt = {"event": "undo"}
```

### [Log an executed action](https://legacy-docs-v1.rasa.com/1.5.3/api/events/#id15)
Short

Logs an action the bot executed to the conversation.

JSON

```json
evt = {"event": "action", "name": "my_action"}
```
