Comprehensive and Detailed In-Depth Explanation:
UC needs to incorporate data from multiple unrelated objects (standard and custom) into a prompt template for a sales proposal. Let’s evaluate the options based on Agentforce capabilities.
Option A: Create a prompt template passing in a special custom object that connects the records temporarily.While a custom object could theoretically act as a junction to link unrelated records, this approach requires additional setup (e.g., creating the object, populating it with data via automation), and there’s no direct mechanism in Prompt Builder to "pass in" such an object to a prompt template without grounding or flow support. This is inefficient and not a native feature, making it incorrect.
Option B: Create a prompt template-triggered flow to access the data from standard and custom objects.There’s no such thing as a "prompt template-triggered flow" in Salesforce. Flows can invoke prompt templates (e.g., via the "Prompt Template" action), but the reverse—triggering a flow from a prompt template—is not a standard construct. While a flow could gather data from unrelated objects and pass it to a prompt, this option’s terminology is inaccurate, and it’s not the most direct solution, making it incorrect.
Option C: Create a Flex template to add resources with standard and custom objects as inputs.In Agentforce’s Prompt Builder, a Flex template (short for Flexible Prompt Template) allows users to define dynamic inputs, including data from multiple Salesforce objects (standard or custom), even if they’re unrelated. Resources can be added to the template (e.g., via merge fields or Data Cloud queries), enabling the prompt to pull data directly from specified objects without requiring a junction object or complex flows. This is ideal for generating a sales proposal using disparate data sources and aligns with Salesforce’s documentation on Flex templates, making it the correct answer.
Why Option C is Correct:
Flex templates are designed for scenarios requiring flexible data inputs, allowing UC to directly reference multiple unrelated objects in the prompt template. This simplifies the process and leverages Prompt Builder’s native capabilities, as outlined in Salesforce documentation.
[References:, , Salesforce Agentforce Documentation: Prompt Builder > Flex Templates – Describes adding multiple object resources as inputs., , Trailhead: Build Prompt Templates in Agentforce – Highlights Flex templates for dynamic data scenarios., , Salesforce Help: Create Flexible Prompts – Confirms support for standard and custom object data., , , ]
Submit