Testing, Deployment, and Maintenance10% of the exam

Deploying prompt templates from sandbox to production

How prompt templates and dependent flows deploy, which activation and version settings apply to each deployment path, and how cloning and namespace affect packaged-template overrides.

Official exam objective
Identify the considerations for deploying a template from sandbox to production.

~7 min read · 8 practice questions

What the exam expects

  • Deploy a prompt template together with the flows and Apex it references, and recover when that deployment fails.
  • Predict which versions arrive in the target org and whether any version is active afterwards.
  • Configure the two Einstein Setup settings: auto-activation of deployed templates and deploying only the active version.
  • Deploy or retrieve one template with Salesforce CLI using the GenAiPromptTemplate metadata type.
  • Recognise what deployment can't do: delete templates, modify published versions, or bring a missing custom model.
  • Key terms: GenAiPromptTemplate (the metadata type for a prompt template); published version (a version that was ever activated; immutable); template-triggered flow (a flow a template calls to fetch grounding data); Deploy Prompt Templates (the change set permission that auto-activates source-active templates); Deploy Only the Active Template Version (the setting that skips inactive versions).

Key facts

Template-triggered flows
Detail
Build with manual inputs; deploy flow and template together
Failed template-plus-flow deployment
Detail
Deploy the flow first, then the template separately
Default activation after change set
Detail
All templates arrive inactive; activate manually
Deploy Prompt Templates
Detail
Auto-activates source-active templates; change sets only
Default versions in a change set
Detail
All versions, active or inactive
Deploy Only Active Version, no active version
Detail
Deployment fails with an error
Published versions
Detail
Immutable; skipped on redeploy
Custom LLM in a template
Detail
Target org needs a model with the same name
CLI metadata type
Detail
GenAiPromptTemplate:TemplateName
Deleting templates
Detail
Not by change set or CLI; CLI can delete versions
Sources for this section (3)
  • Why explicitly check overridability on a cloned packaged template?
  • When does Prompt Builder show Template Overrides?
  • Why decide the overridable setting before customers install it?

The questions are free to read. Answers with their sources and self-grading are included with the pack.

Keep reading with the Agentforce Specialist pack

  • Core concepts
  • Exam traps
  • Worked scenario

The pack includes:

  • All 26 lessons of the Agentforce Specialist guide, with reading progress
  • Interactive decision walks and step-by-step sequence steppers
  • Practice exams purchase adds inline bank questions and topic practice (8 questions for this lesson)
  • An official source cited for every claim
  • An AI tutor that answers from the guide
  • Choose guide-only, practice-only, or save $4 with both

Practice for the Agentforce Specialist exam