# Building dynamic workflows

Modals support adding custom actions, giving you the flexibility to build interactive workflows.

To add a notification, when opening the Modal, follow the steps:

1. Click on the `Customize Modal` button
2. Go to the **Actions Tab**
3. Click on the `Open Action` to specify it
4. Click on the `Show Notification` to show a notification when opening a Modal
5. Specify the **Title** of the Notification
6. Choose the **Display Color** of the Notification

{% @arcade/embed flowId="5kcGBSNRL5iC6lQsg14N" url="<https://app.arcade.software/share/5kcGBSNRL5iC6lQsg14N>" %}

To add a notification, when closing the Modal, follow the steps:

1. Click on the `Customize Modal` button
2. Go to the **Actions Tab**
3. Click on the `Close Action` to specify it
4. Click on the `Show Notification` to show a notification when closing a Modal
5. Specify the **Title** of the Notification
6. Choose the **Display Color** of the Notification

{% @arcade/embed flowId="5Vt4BeFqFwxsPTdCWdyy" url="<https://app.arcade.software/share/5Vt4BeFqFwxsPTdCWdyy>" %}

You can define variables in your app and seamlessly pass them into modals to populate dynamic content and behavior.

To add a variable to your modal, follow the steps:

1. Click on the **Variables** tab
2. Click on the `Create Global Variable` button
3. Select `Stored Global Variable`
4. Change the **data type** of the variable
5. Add a **Default value** for the variable
6. Click on the `Create` button

{% @arcade/embed flowId="zm0QUyQlojPFhVPyfCje" url="<https://app.arcade.software/share/zm0QUyQlojPFhVPyfCje>" %}

1. Now, let's open the Modal to add a variable to it
2. Choose the Modal you want to add the variable to&#x20;
3. From the right menu, click on the Add Field button
4. Click to Add a new Computed Field
5. Specify the value of the variable
6. Choose the created global variable

{% @arcade/embed flowId="JLhhuHo7zvLMFKdONhEq" url="<https://app.arcade.software/share/JLhhuHo7zvLMFKdONhEq>" %}
