> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/tutorials/components/button/how-to-open-flows-from-buttons.md).

# 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="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2Fgit-blob-22815888593a1d43583bb39fd21406a64413f265%2F2023-01-26_10-32-28%20(2).gif?alt=media" 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="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2Fgit-blob-4fb96f9a7d028dbf790f5a7ac5ae6410bdc9fbd1%2F2023-01-26_10-23-32.png?alt=media" alt=""><figcaption></figcaption></figure>

## Dive Deeper

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
