← Back to Labs

Add Few-Shot Examples

prompt engineering outputFill 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 →