---
schema_version: "1"
id: 2f81302049d6743a1ea90336a7a4086daf46b20451fc191695d146ef23cc4476
title: Embed a Flow in a Visualforce Page
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_distribute_internal_vf.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_distribute_internal_vf.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a270f2826631d14b9ed70b9b3e0d6be01f039bae2a64e90638d0cb97bb9342da
description: To customize your flow’s look and feel for internal users, add the flow to a Visualforce page. Then distribute that page through a Visualforce tab, custom button, or custom link.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Embed a Flow in a Visualforce Page

To customize your flow’s look and feel for internal users, add the flow to a Visualforce page. Then distribute that page through a Visualforce tab, custom button, or custom link.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="vertical-align:top;" id="d176821e62">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d176821e62 ">To create, edit, and set version settings for Visualforce pages:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d176821e62 ">Customize Application</td>

          </tr>
        </tbody>
      </table>

1. Find the flow’s API name.
    1. From Setup, enter Flows in the Quick Find box, then select **Flows**.
    2. Click the name of the flow.
    3. Copy the API name of the flow.
2. From Setup, enter Visualforce Pages in the Quick Find box, then select **Visualforce Pages**.
3. Define a new Visualforce page, or open an existing one.
4. Add the `<flow:interview>` component somewhere between the `<apex:page>` tags.
5. Set the `name` attribute to the API name of the flow.
    
    For example:
    
    ```markup
    <apex:page>
    <flow:interview name="flowAPIName"/>
    </apex:page>
    ```
    
    If the flow is from a managed package, the `name` attribute must be in this format: `namespace.flowuniquename`.
6. Click **Save**.
7. Restrict which users can access the Visualforce page.
    1. Click **Visualforce Pages**.
    2. Click **Security** next to your Visualforce page.
    3. Move all the appropriate profiles from Available Profiles to Enabled Profiles by using the add and remove buttons.
    4. Click **Save**.
8. Add the Visualforce page to your app by using a custom button, link, or Visualforce tab.

- **[Customize a Visualforce Component to Control the Flow's Finish Behavior](https://help.salesforce.com/s/articleView?id=platform.flow_distribute_internal_vf_finish.htm&release=264.0.0&type=5)**  
    By default, users who click **Finish** start a new interview and see the first screen of the flow. After you embed a flow in a Visualforce page, configure the `finishLocation` attribute to route users to another page in Salesforce.