nerdexam
Salesforce

AI-201 · Question #229

Universal Containers (UC) needs to create a custom prompt template that can be called from a Lightning web component. Which prompt template type should UC create?

The correct answer is C. Flex. Flex prompt templates are the most versatile prompt template type in Salesforce, designed to be invoked from multiple contexts including Lightning web components (LWC), Flows, and Apex. They are not tied to a specific UI surface or object. Field Generation templates are…

AI Features for Service (e.g., Einstein Bots, Next Best Action)

Question

Universal Containers (UC) needs to create a custom prompt template that can be called from a Lightning web component. Which prompt template type should UC create?

Options

  • AField Generation
  • BSales Email
  • CFlex

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    3% (1)
  • C
    90% (26)

Explanation

Flex prompt templates are the most versatile prompt template type in Salesforce, designed to be invoked from multiple contexts including Lightning web components (LWC), Flows, and Apex. They are not tied to a specific UI surface or object. Field Generation templates are purpose-built for auto-populating record fields via Einstein and cannot be called from an LWC directly. Sales Email templates are scoped to the sales email generation feature. When a developer needs to call a prompt template programmatically or from a custom component, Flex is the correct choice.

Topics

#Prompt Templates#Einstein GPT#Lightning Web Components#Customization

Community Discussion

No community discussion yet for this question.

Full AI-201 Practice