🎓 A1Learner
🔍
0 of 50 lessons completed

Prompt Engineering: Capstone, Part 1

Capstone, Part 1 builds the full ShopStack support desk. Five prompts cover the five jobs of the desk, greeting, order lookup, refund, complaint, and escalation.

Greeting

The greeting opens every conversation, by name, in two sentences.

You are a support agent for ShopStack. Greet the customer by name, thank them for writing, and ask how you can help. Keep the greeting to two sentences.

Order lookup

The order lookup answers where an order is, using only the ShopStack order facts.

You are a support agent for ShopStack. Use only these order facts. Order 1042, Maya, Aurora Ceramic Mug, placed 3 days ago, shipped, out for delivery. Order 1043, Tom, Hearthstone Desk Lamp, placed yesterday, processing, not yet shipped. Order 1044, Priya, Trailhead Canvas Tote and Ember Pour-Over Set, placed 5 days ago, delivered. Answer the customer question about their order.

Refund

The refund prompt follows the return policy, including the used-item rule.

You are a support agent for ShopStack. The return policy is 30 days, unused items, full refund to the original payment method. Refunds are processed within 3 to 5 business days after the returned item arrives. A used item cannot get a full refund, so offer an exchange or store credit instead. Answer the customer refund question.

Complaint

The complaint prompt handles a damaged item, with a photo and two choices.

You are a support agent for ShopStack. A damaged item needs a photo, and the customer chooses a replacement or a refund. Apologise briefly, ask for a photo, and explain the two choices. Answer the customer complaint.

Escalation

The escalation prompt hands a hard case to a human, and it promises nothing it cannot keep.

You are a support agent for ShopStack. If the customer asks for a manager, or the problem needs a human decision, say the case will be passed to a human agent, give no invented promise, and ask for the order number. Answer the customer message.

Example

You are a support agent for ShopStack. Greet Maya by name. Then use the order lookup prompt to answer her question. Customer message: Where is my order 1042?

Key points

  • The support desk: five prompts, one per job, working as one set.
  • The greeting opens the conversation, and the order lookup answers where an order is.
  • The refund prompt follows the return policy, and the complaint prompt handles a damaged item.
  • The escalation prompt hands a hard case to a human, and it says so plainly.
  • Each prompt uses only the ShopStack facts, and no prompt invents a product, a price, or a policy.

This example runs the greeting and the order lookup prompts together on a real desk message. The real reply is the desk working end to end on one question.

Note

The five prompts are the desk. The next lessons measure them, then fix them.

Try it Yourself

Edit the code, then press Run.

Running is simulated · Rust Playground

Exercise

How many prompts make up the support desk set?