Prompt template execution surfaces
Key Takeaway
A prompt template does nothing until something runs it. Choose the execution surface by the template type and by whether a person should review the output before it is used.
A prompt template does nothing on its own; something has to run it. Salesforce offers several execution surfaces for prompt templates. Some surfaces show a user a draft to review. On others, automation, code or Agentforce agents run the template.
Kinds of execution surfaces
The execution surfaces for prompt templates include these kinds:
- User-facing surfaces, such as fields on record pages and the email composer.
- Automation, such as flows and batch jobs.
- Code and external apps, which run prompt templates through Apex and REST API.
- Agentforce agents, which run prompt templates through actions.