> ## Documentation Index
> Fetch the complete documentation index at: https://rasa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Set Slots

> Rasa Studio Flow Builder Set slots

This guide explains how to programmatically assign or clear slot values in your flows.
With the **Set Slots** step, you can streamline your conversation logic by managing slot (stored user data) values independently from direct user input.

### What is a Slot?

Think of slots as your assistant’s memory. They store important pieces of information from the conversation, like a user’s name, date, or location, and can be referenced throughout the flow.

## Overview

With the Set Slots step, you can:

1. **Assign a value:** Automatically update a slot value (e.g. set the 'age\_category' slot to 'Minor' based on the user's birth year).
2. **Clear a value:** Reset a slot value (e.g. clear the 'amount' slot if the user exceeds the allowed transaction limit to prompt re-entry)
3. **Persist a value:** Persist a slot value (e.g. persist the 'permission\_granted' slot after the flow ends)

<img src="https://mintcdn.com/rasa-43f32701/MQtQODV4k9Yeq80-/images/legacy/studio/building/set-slot-panel.png?fit=max&auto=format&n=MQtQODV4k9Yeq80-&q=85&s=6aad30607e944e49fe83aac41114f4e0" alt="Panel for setting slots" width="2572" height="1708" data-path="images/legacy/studio/building/set-slot-panel.png" />

<Note>
  This step runs silently in the background without any dialogue. If you need the assistant to prompt the user for input, consider using a [Collect Step](/docs/studio/build/flow-building/collect) instead.
</Note>

### Setting a Slot Value

For example, if the user mentions their birth year during a conversation, we can automatically set the `age_category` slot to `Minor` and clear the `permission_granted` slot, streamlining the interaction accordingly.

<img src="https://mintcdn.com/rasa-43f32701/MQtQODV4k9Yeq80-/images/legacy/studio/building/set-slot-panel.png?fit=max&auto=format&n=MQtQODV4k9Yeq80-&q=85&s=6aad30607e944e49fe83aac41114f4e0" alt="Set slot panel in Studio" width="2572" height="1708" data-path="images/legacy/studio/building/set-slot-panel.png" />

### Setting Multiple Slots

You can set multiple slots in one step. Simply click on "Set another slot" button to add more. You can see how many slots are set in one step by reading the number on the node.

<img src="https://mintcdn.com/rasa-43f32701/MQtQODV4k9Yeq80-/images/legacy/studio/building/set-another-slot-button.png?fit=max&auto=format&n=MQtQODV4k9Yeq80-&q=85&s=ffb4e7ced37e5a530bbe3bb290d157ea" alt="Set multiple slots in Studio" width="860" height="682" data-path="images/legacy/studio/building/set-another-slot-button.png" />

### Clearing a Slot

<Note>
  When you choose to clear a slot's value, its current value is reset, and the system will treat it as if it were `null`.
</Note>

Use this option when a slot’s current value is no longer valid or needed.
For example, if a user attempts to transfer more money than available, you can inform them of the issue and then clear the amount slot, prompting them to enter a correct value.

<img src="https://mintcdn.com/rasa-43f32701/MQtQODV4k9Yeq80-/images/legacy/studio/building/set-slot-operators.png?fit=max&auto=format&n=MQtQODV4k9Yeq80-&q=85&s=1b7e36b38e904aa3efb12d9d58a16be7" alt="Set slot operators" width="860" height="682" data-path="images/legacy/studio/building/set-slot-operators.png" />

### Persisting a Slot value

<Note>
  When you choose to persist a slot's value, that setting applies globally to all its occurrences in the flow.
</Note>

Use this option when you want to persist slot’s value even after the flow ends.

<img src="https://mintcdn.com/rasa-43f32701/MQtQODV4k9Yeq80-/images/legacy/studio/building/set-slot-persistence.png?fit=max&auto=format&n=MQtQODV4k9Yeq80-&q=85&s=d465b4e28474f27770e5c3fb3874c917" alt="Set slot operators" width="866" height="580" data-path="images/legacy/studio/building/set-slot-persistence.png" />


## Related topics

- [Assistant Memory (Slots)](/docs/pro/build/assistant-memory.md)
- [Slots](/docs/studio/build/content-management/slots.md)
- [ReAct Sub Agent](/docs/reference/config/agents/react-sub-agents.md)
- [How to Set Up Your Assistant](/docs/studio/build/set-up-your-assistant.md)
- [Setting Up CI/CD](/docs/pro/deploy/ci-cd.md)
