Get Started with Prompt Builder

With Prompt Builder, simplify your users’ daily tasks by integrating generative AI, powered by prompt templates, into workflows. Create and Manage prompt templates that incorporate your CRM data from merge fields that reference record fields, flows, related lists, and Apex. Enable generative experiences on record pages or build Agentforce actions to generate summaries, descriptions, and other field values.

On this page you can learn how to call a prompt template programmatically, batch process large numbers of prompt templates, and move prompt templates between orgs using metadata API.

Examples and other resources:

Integrate third-party web applications with prompt templates using Connect REST API.

Use Connect in Apex to call a prompt template from Apex code.

Use actions to call a prompt template from anywhere on the Salesforce Platform.

Asynchronously generate large quantities of responses for prompt templates using Prompt Template Batch Processing in Flow or Apex.

Use Metadata API to move prompt templates between sandbox and production orgs during the development process.