# How to Open Flows from Buttons

## Overview

This tutorial will help you master the art of linking flows in Salesforce. We'll guide you through setting up a button that, when clicked, directs users to another flow. Discover how to configure and customize this button for seamless flow navigation. Get ready to enhance your app's interactivity.

## Result

<figure><img src="/files/cYDjlN8LY1t2iTtH57uG" alt=""><figcaption></figcaption></figure>

## Steps

### Drag a button to your existing screen flow

* Drag the Avonni Button component into your screen flow
* Click on the "Open Component Builder" button to access all settings

### Configure general settings for your button

* Add a label
* Select a variant
* Add an icon if needed

### Create the interaction

* Click on the **Interaction tab**
* Click on the "**`Add Click`**" button to create an interaction
* Choose a type > **`Open Flow Dialog`**
* Select the flow you'd like to trigger when users press the button.
* Optional - add input variables or modal header if needed.

<figure><img src="/files/aGSw26Nfjv5aDkZITIzK" alt=""><figcaption></figcaption></figure>

## Dive Deeper

{% content-ref url="/pages/CXxZsCmnkuGQnLfG7mJM" %}
[Enabling auto-refresh for queries after the Flow Dialog ends](/flow/tutorials/interactions/enabling-auto-refresh-for-queries-after-the-flow-dialog-ends.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avonnicomponents.com/flow/tutorials/components/button/how-to-open-flows-from-buttons.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
