PrepGenAICerts
← Back to Labs

Add Few-Shot Examples

prompt engineering output✓Fill in Blank

Complete these few-shot examples that teach Claude to select the correct tool for ambiguous customer requests. The examples should show reasoning for why one tool is chosen over another.

const systemPrompt = `You are a customer support agent with access to:
- get_customer: Retrieves customer profile, account info, billing details
- lookup_order: Retrieves order status, tracking, delivery details

## Tool Selection Examples

<example>
User: ""
Reasoning: 
Tool: lookup_order
</example>

<example>
User: "Can you update my email address?"
Reasoning: This is about account profile information, not order-related. The customer wants to modify their account details.
Tool: get_customer
</example>
`;
Next Exercise →

PrepGenAICerts is an independent exam-prep site. It is not affiliated with, endorsed by, or sponsored by Anthropic, PBC. Claude and Anthropic are trademarks of Anthropic, PBC. Exam details are taken from publicly available Anthropic and Pearson documentation. About PrepGenAICerts.