QuestionQ79

VerifiedPrompt Engineering

An Agentforce Specialist must create a prompt template that extracts a customer’s name, phone number, and case number from a block of text—and nothing else.

How should the Agentforce Specialist structure the prompt to prevent the large language model (LLM) from including extra conversation or text?

Explanation

Well-defined output instructions specify the exact response format and boundaries, while desired output examples demonstrate the required extraction-only result. Together, they reduce the likelihood that an LLM adds conversational language or unrelated text. Salesforce prompt-template guidance includes output examples as a template ingredient for extraction use cases.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!