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…
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)- A7% (2)
- B3% (1)
- C90% (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
Community Discussion
No community discussion yet for this question.