---
schema_version: "1"
id: 1aaa376dba36b359e265fa8f7beaafc112c3a65e2249d5b03f2bedf1ab1293eb
title: Create and Use Agentforce Agents Directly in Flow Builder
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/release-notes/262-0-0/rn_automate_flow_builder_create_agent_in_flow_builder.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_builder_create_agent_in_flow_builder.htm&release=262.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e312c96139606f8922c8bceca3a8c689598b4492615307b16c33bf2b0f12a296
description: You can now create and configure Agentforce agents without leaving Flow Builder. Use the new Run Agent element to add AI-powered agents that dynamically handle tasks within your flows. Select from existing agents or create task-specific agents with custom instructions and actions—all from the Flow Builder canvas. Agents created in Flow Builder are automatically discoverable and further configurable in Agentforce Builder. This streamlined experience makes it easier to build intelligent automation without switching between multiple tools.
products:
  - Cross Cloud
release: "262"
---
# Create and Use Agentforce Agents Directly in Flow Builder

You can now create and configure Agentforce agents without leaving Flow Builder. Use the new Run Agent element to add AI-powered agents that dynamically handle tasks within your flows. Select from existing agents or create task-specific agents with custom instructions and actions—all from the Flow Builder canvas. Agents created in Flow Builder are automatically discoverable and further configurable in Agentforce Builder. This streamlined experience makes it easier to build intelligent automation without switching between multiple tools.

**Where:** This change applies to Lightning Experience. It’s available in Enterprise, Performance, Unlimited, and Developer editions with the Agentforce for Sales, Agentforce for Service, or Agentforce Platform add-on. To purchase the Agentforce for Sales, Agentforce for Service, or Agentforce Platform add-on, contact your Salesforce account executive.

**When:** This feature is available on a rolling basis starting on June 1, 2026.

**Who:** To use existing agents in your flows, you need the View Setup user permission. To create agents from Flow Builder, you need the Customize Application, Einstein Copilot Builder, Einstein Agent Platform Builder, or Self-Service Copilot Builder user permission. Users with the System Administrator profile can both create and use agents.

**How:** From the Flow Builder canvas, add the Run Agent element. To use an existing, active agent, search for and select an agent from the list.

![Create Agent element property panel for selecting or creating an agent](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-release-notes-salesforce_release_notes-262-0-0-production-enus/e945111b-3e0a-4011-accc-d5949363bfcc/salesforce_release_notes/images/automate/262_rn_automate_select_or_create_agent_panel.png)

To create an agent, click **Create Agent**. In the New Agent window, define the agent’s label, API name, description, and user access. Then add topic instructions to describe what the agent does and add actions that the agent can use. Instructions are pre-populated with best-practice text. You can keep this default or customize it.

![Create Agent screen](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-release-notes-salesforce_release_notes-262-0-0-production-enus/e945111b-3e0a-4011-accc-d5949363bfcc/salesforce_release_notes/images/automate/262_rn_automate_create_agent_screen.png)

When you’ve entered the agent information, click **Create & Activate**. In the Run Agent property panel, configure the agent's response, including structured outputs, to connect it with your flow's variables and logic.

Before activating your flow, test it in Flow Builder. If the agent doesn't behave as expected, test and update the agent in Agentforce Builder.

#### See Also

- [_Salesforce Help_: Run Agent Element](https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_create_agent.htm&type=5&language=en_US)