---
schema_version: "1"
id: 3d330c401ee22ab182845f380aadcc7b0b65a7820e122f5463adccc0525f7afd
title: Add Flow Merge Fields Without Data 360 Objects to a Sales Email Prompt Template
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/prompt_builder_add_flows_without_data_cloud_sales_email.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.prompt_builder_add_flows_without_data_cloud_sales_email.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 52c776832ee1de745467e572b3d559d4b2d3479de6a65010c223dcee99620d94
description: Create and preview an example sales email prompt template that uses a flow.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Add Flow Merge Fields Without Data 360 Objects to a Sales Email Prompt Template

Create and preview an example sales email prompt template that uses a flow.

### 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;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions with the Einstein for Platform, or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations</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="text-align:center;vertical-align:top;" id="d163461e63">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d163461e63 ">To create and manage prompt templates in Prompt Builder:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d163461e63 ">
              <p>Prompt Template Manager permission set</p>
              <ul>
                <li>Manage Prompt Templates</li>

                <li>Execute Prompt Templates</li>

              </ul>
              <p>OR</p>
              <p style="margin-bottom:0;">Customize Application permission set</p>
            </td>

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

Say you’re a Salesforce admin and your sales team requests an easier way to send emails to contacts about nearby Marketing events.

Create an email prompt template that launches a flow to get Marketing events in the same city and state as each contact. Use a flow to get a list of events and their locations for the LLM.

1. To create the Get Marketing Events flow from Flow Builder, see [Example of Sales Email Template-Triggered Prompt Flow](https://help.salesforce.com/s/articleView?id=platform.flow_concepts_trigger_prompt_template_capability_sales_email_example.htm&type=5&language=en_US).
2. When the flow is ready, let’s use an example prompt template that uses merge fields and your new flow to generate an email about nearby Marketing events for a selected contact.
    
    In Prompt Builder, create a prompt template.
    
    1. In the Prompt Template Type dropdown, select **Sales Email**.
    2. For the Prompt Template Name, enter Nearby Events Marketing Email.
    3. For the Recipient Type, select **Contact**. Remember that to insert a flow into a prompt template, the flow’s Recipient Type has to be the same data type as the prompt template’s flow resource.
    4. Leave the Description blank.
    5. Click **Next**, and you’re redirected to the Prompt Template Workspace.
3. In the [Example Prompt Template Library](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_example_library.htm&release=264.0.0&type=5 "This library of example prompt templates gives you a starting point for creating your own custom prompt templates."), find the sales email prompt template “Draft an email for a contact about regional marketing events.” Copy and paste this template into the Prompt Template Workspace.
4. Before you can run this template in Prompt Builder, use the Resource field in the Prompt section to replace the placeholders with real merge fields. Then, add a reference to the real Marketing Events Summary flow that you created.
    1. In the Prompt Template Workspace, delete the <Get\_Events\_Near\_Contact\_\_Prompt\_\_Flow> placeholder.
    2. Click the **Resource** search bar and select **Flows**.
    3. To add this flow to your template, select **Get Marketing Events**.
5. Run the prompt template and see the LLM-generated email draft.
    1. Click the Preview Settings button.
    2. Under Inputs, search for a contact name in the Recipient search bar and select it. This selection defines the recipient of the LLM-generated email draft.
    3. In the Configure Response and Display sections, verify that Generate Response, Display Prompt, and Display Resolution are selected or deselected based on what you want to test.
    4. Click **Save & Preview**, and review the response.