Question 91
Choose 1
An Agentforce at Universal Containers is working on a prompt template to generate personalized emails for product demonstration requests from customers. It is important for the Al-generated email to adhere strictly to the guidelines, using only associated opportunity information, and to encourage the recipient to take the desired action.
How should the Agentforce Specialist include these instructions on a new line in the prompt template?
How should the Agentforce Specialist include these instructions on a new line in the prompt template?
Correct answer:
A. Surround them with triple quotes (""").
Explanation:
To ensure the AI-generated email adheres to guidelines while staying personalized and actionable, the AgentForce Specialist should:
Use Triple Quotes (""") for Instructions
Triple quotes clearly separate instructions from grounded fields in the prompt template.
Example:
"""
- Use only Opportunity fields (no external data).
- Tone: Professional but enthusiastic.
- Include a clear call-to-action (e.g., 'Schedule your demo today!').
"""
Hi {{Contact.FirstName}},
Thank you for your interest in {{Opportunity.Product_Name__c}}!
Benefit: The LLM treats these as rules, not part of the output.
Why Not the Other Options?
B. "Merged fields":
While necessary for personalization ({{Opportunity.CloseDate}}), they don’t enforce guidelines.
C. "Curly brackets {}":
These are for merge fields, not instructions. The LLM would treat {instructions} as literal text.
Reference:
Salesforce Help - Prompt Template Instructions
To ensure the AI-generated email adheres to guidelines while staying personalized and actionable, the AgentForce Specialist should:
Use Triple Quotes (""") for Instructions
Triple quotes clearly separate instructions from grounded fields in the prompt template.
Example:
"""
- Use only Opportunity fields (no external data).
- Tone: Professional but enthusiastic.
- Include a clear call-to-action (e.g., 'Schedule your demo today!').
"""
Hi {{Contact.FirstName}},
Thank you for your interest in {{Opportunity.Product_Name__c}}!
Benefit: The LLM treats these as rules, not part of the output.
Why Not the Other Options?
B. "Merged fields":
While necessary for personalization ({{Opportunity.CloseDate}}), they don’t enforce guidelines.
C. "Curly brackets {}":
These are for merge fields, not instructions. The LLM would treat {instructions} as literal text.
Reference:
Salesforce Help - Prompt Template Instructions
