---
schema_version: "1"
id: 159bcbedd9620646d44e518ae554d6d6562df33da964cca1e4e9ef62b050222a
title: Connect Your Agent Using a Flow
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/experience/264-0-0/support_connect_agent_flow.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.support_connect_agent_flow.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4fd4599e5ba2bb1b57cf901db8ec67e536578f8dde50c2d11ccabe3eb1b6a79a
description: Connect your agent to the chat component using a prebuilt flow template. This flow contains the logic for session creation, conversation handoffs, and user verification.
products:
  - Experiences
release: "264"
---
# Connect Your Agent Using a Flow

Connect your agent to the chat component using a prebuilt flow template. This flow contains the logic for session creation, conversation handoffs, and user verification.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Enterprise, Performance, Unlimited, and Developer Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Enhanced Chat with the Einstein for Service, Einstein Platform, Community, Community Plus, or Agentforce for Service add-on</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <a href="https://help.salesforce.com/s/articleView?id=experience.exp_cloud_basics_glossary.htm&amp;language=en_US&amp;type=5" target="_blank">LWR </a>and <a href="https://help.salesforce.com/s/articleView?id=experience.exp_cloud_basics_glossary.htm&amp;language=en_US&amp;type=5" target="_blank">Aura</a></td></tr></tbody></table>

1. From Setup, in the Quick Find box, enter Flows, and then select **Flows**.
2. Click **New Flow**. The Flow Builder opens.
3. Select **Record-Triggered Flow**, then click **Create**.
4. From the Flow Templates pane, search and, then select **Agentforce Attach**.
5. Review and customize the flow if needed.
    
    In most cases, the default logic is sufficient, but you can adjust the triggers or the decision logic.
6. Click **Save As**, name the flow, and click **Activate**.
7. Return to Experience Builder, and confirm that the agent is mapped to the Enhanced Chat component.
8. Click **Publish** to deploy the site changes.