# Events [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#events "Permalink to this headline")

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](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#general-purpose-events) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#general-purpose-events "Permalink to this headline")

### [Set a Slot](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id3) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#set-a-slot "Permalink to this headline")

Short

Event to set a slot on a tracker

JSON

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

Class_class_`rasa.core.events.``SlotSet`( _key_, _value=None_, _timestamp=None_, _metadata=None_) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#rasa.core.events.SlotSet "Permalink to this definition")

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](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id4) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#restart-a-conversation "Permalink to this headline")

Short

Resets anything logged on the tracker.

JSON

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

### [Reset all Slots](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id5) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#reset-all-slots "Permalink to this headline")

Short

Resets all the slots of a conversation.

JSON

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

### [Schedule a reminder](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id6) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#schedule-a-reminder "Permalink to this headline")

Short

Schedule an action to be executed in the future.

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.6.2/api/events/#id7) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#pause-a-conversation "Permalink to this headline")

Short

Stops the bot from responding to messages. Action prediction
will be halted until resumed.

JSON

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

### [Resume a conversation](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id8) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#resume-a-conversation "Permalink to this headline")

Short

Resumes a previously paused conversation. The bot will start
predicting actions again.

JSON

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

### [Force a followup action](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id9) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#force-a-followup-action "Permalink to this headline")

Short

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](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id10) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#automatically-tracked-events "Permalink to this headline")

### [User sent message](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id11) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#user-sent-message "Permalink to this headline")

Short

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](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id12) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#bot-responded-message "Permalink to this headline")

Short

Message a bot sent to the user.

JSON

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

### [Undo a user message](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id13) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#undo-a-user-message "Permalink to this headline")

Short

Undoes all side effects that happened after the last user message
(including the `user` event of the message).

JSON

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

### [Undo an action](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id14) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#undo-an-action "Permalink to this headline")

Short

Undoes all side effects that happened after the last action
(including the `action` event of the action).

JSON

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

### [Log an executed action](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id15) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#log-an-executed-action "Permalink to this headline")

Short

Logs an action the bot executed to the conversation. Events that
action created are logged separately.

JSON

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

### [Start a new conversation session](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#id16) [¶](https://legacy-docs-v1.rasa.com/1.6.2/api/events/#start-a-new-conversation-session "Permalink to this headline")

Short

Marks the beginning of a new conversation session. Resets the tracker and
triggers an `ActionSessionStart` which by default applies the existing
`SlotSet` events to the new session.

JSON

```
evt = {"event": "session_started"}
```

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