---
schema_version: "1"
id: 5f94095d783ac4f80426d5b1d370628ca77b4f1b1fa7c9ae70fac779e881f3b4
title: Example Instructions for Drafting Flows with Agentforce (Beta)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_build_example_einstein_for_flow_instructions.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_build_example_einstein_for_flow_instructions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8a0283fbcb2f3dd1f9fe4df114edbbe5d49722b0604f1ab6f7d7c0c46a57ecb6
description: Use Agentforce for Flow to create accurate draft flows by providing clear, detailed instructions about your requirements. Base your instructions on example patterns that describe when the flow starts and what actions it should take.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Example Instructions for Drafting Flows with Agentforce (Beta)

Use Agentforce for Flow to create accurate draft flows by providing clear, detailed instructions about your requirements. Base your instructions on example patterns that describe when the flow starts and what actions it should take.

### 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;">Available in: Lightning Experience</td></tr><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><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">This feature requires the Foundations or Agentforce 1 editions. To purchase, contact your Salesforce account executive.</td></tr></tbody></table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)

Note Draft a Flow with Agentforce is a pilot or beta service that is subject to the Beta Services Terms at [Agreements - Salesforce.com](https://www.salesforce.com/company/legal/agreements/) or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the [Product Terms Directory](https://ptd.salesforce.com/). Use of this pilot or beta service is at the Customer's sole discretion.

Find a flow outcome that aligns with your goal and craft your instructions using the example instructions as a guide.

   
| What You Want to Automate | When the Flow Starts | What the Flow Does | Example instructions |
| --- | --- | --- | --- |
| When a new lead comes in, create a task to remind the owner to call the lead in the next week. | When a record is created (a record-triggered flow) | Creates a record | Create a flow that starts when a lead is created and creates a task for the lead owner. The subject of the task is “Call new lead by next week.” |
| Send an email to an account owner anytime a contact is added to their account. | When a record is created (a record-triggered flow) | Sends an email | Create a flow that sends an email notification to the account owner any time a new contact is added to the account. |
| When an account owner is changed, update the owner of all related opportunities and contacts. | When a record is updated (a record-triggered flow) | Updates multiple related records | Create a flow that starts when an account owner is changed and automatically updates all an account’s opportunities and contacts. |
| If the Status field of an applicant record has been left blank, update the field to New. | When a record is created or updated (a record-triggered flow) | Uses a custom object and a custom field, updates a record that meets the criteria | Create a flow that starts when an applicant record is created. If the applicant Status field is empty, set it to New. |
| Every day, find contacts that have a missing phone number and update their description with a reminder to get the phone number at the next meeting. | On a specified day and time (a schedule-triggered flow) | Updates records that meet the criteria | Create a flow that runs every day at 8:00 AM and finds contacts with a blank Phone Number field and updates the description field to say "Get the contact's phone number at the next meeting." |
| Each Wednesday, find opportunities that haven’t been updated in the last 30 days and send an email to their owners to remind them to update their opportunities. | On a specified day and time (a schedule-triggered flow) | Sends an email to a group of recipients | Create a flow that runs every Wednesday at 10:00 AM. The flow finds all opportunities that were created within the last 14 days and updates the Opportunity Next Step field to Assign Executive Sponsor. |
| Collect information in a form and use that information to create a lead. | When a user clicks a button on a screen (a screen flow) | Creates a record by using information from a form | Create a flow that has a screen and collects a first name, last name, and email address. Then, the flow creates a lead with the information collected on the screen. |
| Display a screen that shows support agents their open cases and allows them to upload a file to all those cases. | When a user clicks a button on a screen (a screen flow) | Shows information on a screen and allows user interaction | Create a screen flow that looks up and displays all open cases and allows a support agent to select a case and upload an image file as a file attachment. |
| Create a corresponding case in Salesforce when a user creates a ticket in Zendesk. | When a new ticket is created in Zendesk. | The flow runs on a 5-minute schedule and checks Zendesk for new tickets using the my\_zendeskconnection connector. For each new Zendesk ticket, the flow creates a case in Salesforce. Zendesk Description maps to the Salesforce Case Description, and Zendesk Ticket ID maps to the Salesforce custom field Cust\_Zendesk\_Ticket\_Id. | When a user creates a ticket in Zendesk, create a case in Salesforce. Set the polling frequency for the trigger to 5 minutes. Map the Zendesk Description field to the Salesforce Case description field, and update the Salesforce custom field Cust\_Zendesk\_Ticket\_Id with the Zendesk ticket ID. Use the my\_zendeskconnection for the Zendesk connector. |

#### See Also

- [Best Practices for Drafting Flows with Agentforce (Beta)](https://help.salesforce.com/s/articleView?id=platform.flow_build_best_practices_and_considerations_for_einstein_for_flow.htm&release=264.0.0&type=5 "Get the best results when using Agentforce to build draft flows.")
- [Draft a Flow with Agentforce (Beta)](https://help.salesforce.com/s/articleView?id=platform.flow_build_build_a_flow_with_einstein.htm&release=264.0.0&type=5 "Build your flow faster and easier by letting Agentforce help you get started.")
- [Considerations for Agentforce-Drafted Flows and Formulas (Beta)](https://help.salesforce.com/s/articleView?id=platform.automate_flow_build_einstein_considerations.htm&release=264.0.0&type=5 "Supported functionality, usage requirements, and important limitations when using Agentforce to draft flows and formulas.")
- [_Video_: Get to Know Einstein for Flow](https://salesforce.vidyard.com/watch/Wfhwp7gReQTATYZwdEF8Gk)
- [_Salesforce Help_: About Einstein Generative AI](https://help.salesforce.com/s/articleView?id=ai.generative_ai_about.htm&type=5&language=en_US)