Cert++
Close

Grounded-response instructions in prompt templates

Key Takeaway

Ground the template with merge fields, and keep that data in a triple-quote block, separate from the instructions. In the instructions, tell the LLM not to add information it wasn't given, to generate only the expected content, and how to handle empty fields.

A prompt template sends the LLM two things: grounding data, which the template's merge fields fill in from your Salesforce data, and natural-language instructions that tell the LLM what to do with that data. Grounded-response instructions are the parts of the template that tie the response to the supplied data, limit it to the expected output, and say how to handle missing information. Without grounding and clear instructions, an LLM can return generic, irrelevant, or false content.

Prompt templates and prompt resolution

When the template runs, relevant CRM data replaces the merge fields. Filling in the merge fields with real data is called prompt resolution. The result is a grounded prompt, which goes to the LLM.

Agentforce Specialist Study Guide

Checklist progress

0/204Learned

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Agentforce Specialist studiers. 757 members and growing.