---
schema_version: "1"
id: 0e7c1b6c87a815d189407941b2f05771d3180b23e6913ba37aa5f394fac23703
title: Template-Triggered Prompt Flows
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_concepts_trigger_prompt_template_capability.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_concepts_trigger_prompt_template_capability.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 55591badf659c2fe53d6132ad27eac5689f015df113f77336716541119d1d23a
description: Provide data to prompt templates in Prompt Builder with template-triggered prompt flows.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Template-Triggered Prompt Flows

Provide data to prompt templates in Prompt Builder with template-triggered prompt flows.

### 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 Einstein for Sales, Einstein for Service, or Einstein Platform add-on. To purchase, contact your Salesforce account executive.</td></tr></tbody></table>

Template-triggered prompt flows aren’t compatible with prompt templates created in Winter ’24.

The template-triggered prompt flow performs dynamic logic and actions to generate output text that’s merged into the associated prompt template’s resolution.

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

Example You can create a prompt template that explains how to write an invitation email for company events near a contact’s location. The prompt template can trigger a flow that generates a list of company events near the contact. Depending on whether there are matching events in your Salesforce data, the prompt template adds either no events or the list of company events in the prompt template’s resolution.

![Flow Builder canvas that shows example of template-triggered prompt flow](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/flow/flow_concept_promptflow_canvas.png)

#### See Also

- [Use Prompt Templates to Generate Record Summaries Example](https://help.salesforce.com/s/articleView?id=platform.flow_concepts_trigger_prompt_template_capability_example.htm&release=264.0.0&type=5 "This example gets a list of open customer cases for a given account, and then integrates this data with a field generation prompt template.")
- [Create a Sales Email Template-Triggered Prompt Flow Example](https://help.salesforce.com/s/articleView?id=platform.flow_concepts_trigger_prompt_template_capability_sales_email_example.htm&release=264.0.0&type=5 "This example creates a flow that integrates with a sales email prompt template to automatically gather and present relevant events for your contacts.")
- [Create a Reusable Template-Triggered Prompt Flow Example](https://help.salesforce.com/s/articleView?id=platform.flow_concepts_trigger_prompt_template_capability_reusable_example.htm&release=264.0.0&type=5 "This example creates a sample flow that's available to all prompt templates. Multiple prompt templates can use a single, well-maintained flow for data processing, so this approach saves time, ensures consistency, simplifies development, and improves the reliability of AI-generated outputs.")
- [_Salesforce Help_: Prompt Builder](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_about.htm&type=5&language=en_US)