Product
Christmas gifts, wrapped for your agent
Your user says "i wanna buy a christmas present for my boss but idk what to buy them". Your agent finds the gift and AgentMall buys it. Here is the whole flow, ready to paste into your agent.
An API with search and buy lets your agent shop. It doesn't tell your agent what a good gift job looks like: what to read first, what to ask, how to pick, and when to stop. So we wrapped the whole Christmas gift job as instructions your agent follows, ready to slot into your product.
Your connectors bring the context. The instructions tell your agent the flow. AgentMall does the search and the checkout at real stores.
Who does what
- Your product already reads the user's Slack, email or calendar, through the integrations you built. AgentMall never sees any of it. When a source would help and isn't connected, your agent asks: "Your old Slack threads might be a good place to look. Want to connect it?"
- The instructions tell your agent the flow, the questions to ask, and the rules for picking a gift.
- AgentMall searches the store, fills the cart, signs in, and places the order once the shopper approves, or at once when the total is at or under their budget.
A present for the boss
The user says: "i wanna buy a christmas present for my boss but idk what to buy them."
Your agent looks through the connected sources for a problem the boss mentioned. Two weeks ago in #random, Mike said his practice turkey came out dry because he had to guess when it was done, and he is hosting Christmas. So your agent searches Target for a meat thermometer and proposes three:
Taylor Digital LED Rapid Read Thermocouple thermometer $22.99
TempPro TP15HW Waterproof Digital Instant Read thermometer $15.99
KitchenAid Pivoting Display Digital Instant-Read thermometer $11.99
The user picks the Taylor. Your agent buys it with Mike's address in details.ship_to. With a budget ceiling, the order is placed with no extra step. Without one, the user approves the exact total on a link.
The instructions are honest about the edges: US addresses only, no order above $100, no gift wrap or gift message, and no delivery date to pick.
How to add it
1. Get a key. Sign up or sign in at console.getagentmall.com. Setup gives you a sandbox key to build with.
2. Connect AgentMall to your agent. Over MCP, with your key and the user's shopper id. In Claude Code:
claude mcp add --transport http agentmall https://mcp.getagentmall.com \
--header "Authorization: Bearer YOUR_KEY" \
--header "X-Shopper-Id: shp_demo"
Other MCP clients, and the REST API for a backend, are in SKILL.md.
3. Paste these instructions into your agent, as a skill, a rules file or part of its system prompt:
---
name: agentmall-christmas-gifts
description: Find and buy a Christmas present for someone the user knows, with AgentMall. Use when the user asks for a gift idea or wants a present bought and sent, such as "i wanna buy a christmas present for my boss but idk what to buy them". Reads the user's own connected sources for a clue, proposes three options from live search, and buys the one the user picks, shipped to the recipient.
---
# Christmas gifts with AgentMall
The user wants to give someone a present and doesn't know what to buy. You find a problem the recipient mentioned, propose three gifts that solve it, and buy the one the user picks, shipped to the recipient.
These instructions cover the gift flow only. Read https://www.getagentmall.com/SKILL.md first for keys, connecting, every question kind and every error.
## 1. What you need
**From your own connectors: the context.** AgentMall never reads the user's email, Slack, calendar or anything else. Your agent does, through the integrations your product already has. Useful sources:
- Chat (Slack, Teams, WhatsApp): things the recipient said they need, broke, or keep complaining about.
- Email (Gmail, Outlook): plans, hobbies, past thank-you notes, and the recipient's address.
- Calendar: what the recipient is doing over the holidays, such as hosting, travelling or a new baby.
If a source isn't connected and it would help, ask once: "Your old Slack threads might be a good place to look. Want to connect it?" If the user says no, ask them two questions instead: what the recipient is into, and anything they mentioned needing.
**From the user:**
- Who the present is for.
- The budget, and whether it is a ceiling ("no more than $30") or a guide ("about $25").
- The recipient's US postal address and name. Ask for it, or find it in a connected source and confirm it with the user.
**From AgentMall:** `list_merchants`, `search`, `buy`, `get_purchase` and `respond`.
## 2. What AgentMall can't do
Say these up front when they matter, instead of finding out at checkout:
- **US addresses only.** `details.ship_to` takes a US address. A foreign one returns the call error `invalid_address`.
- **No order above $100.** A checkout total above $100 ends `failed` with `total_above_cap`. `max_total` is at most `10000`.
- **One purchase is one order at one store.** Two gifts at two stores are two purchases.
- **One open purchase per store for each shopper.** A second `buy` at a store while the first is `running` or `awaiting_input` returns `purchase_in_progress` with its `purchase_id`. Follow that purchase to the end, then buy the next gift.
- **No gift wrap and no gift message.** The order ships as the store sends it. Tell the user so they can send a note themselves.
- **No delivery date.** You can't ask for a date. The store picks the delivery, and `checkout.fulfillment` shows what it chose when the store says. Read the date from there when it is present, and never promise one.
## 3. The flow
### Find the clue
Search the connected sources for the recipient's name with words like "need", "broke", "wish", "hosting", "always" and "can't". Look for one specific problem, not a general interest. "He likes cooking" gives you a hundred gifts. "My turkey came out dry because I had to guess when it was done" gives you one kind.
Tell the user what you found and where: "Two weeks ago in #random, Mike said his practice turkey came out dry because he had to guess when it was done. He's hosting Christmas. A fast meat thermometer would fix that."
### Pick a store
```json
// list_merchants
{}
```
Pick a store that sells the kind of thing you need, such as `target` for kitchen and home. Check its `profile`: `currency` must be `USD` for a US address.
### Search and propose three
Search with the problem in the query, not the person: `meat thermometer`, not `gift for boss`.
```json
// search
{ "merchant": "target", "query": "instant read meat thermometer" }
```
**Check every title.** Search returns the nearest matches. Drop anything that doesn't fix the problem, anything over the budget, and anything `out_of_stock`. `availability` can be `null` when the store didn't say; the purchase asks `unavailable` if it turns out to be out of stock. Prices are indicative; the checkout total, with tax and shipping, is what gets charged, so leave room under a ceiling.
Propose exactly three, cheapest last, each with a one-line reason tied to the clue. Ask the user to pick one.
### Buy the one they pick
One `buy`, with the recipient's address in `details.ship_to`. `first_name` and `last_name` are the recipient's. The card and the store account stay the shopper's.
- **The user gave a ceiling:** pass it as `max_total` in cents. At or under it the order is placed with no approval.
- **The user gave a guide or no budget:** leave `max_total` out. The shopper approves the exact total on an `approve` link. Never invent a ceiling.
Then follow the purchase with `get_purchase` every 5 seconds, and answer each question as SKILL.md section 6 says. The first purchase at a store usually asks `sign_in` and `card` before `approve`.
When it ends `placed` or `submitted`, tell the user what was ordered, to whom, and the total. Remind them there is no gift wrap or message.
## 4. Worked example
Search results are from `target` on 4 December 2026. Prices change, so search again before you buy.
The user: "i wanna buy a christmas present for my boss but idk what to buy them. like 20 to 30 bucks?"
$20 to $30 is a guide, not a ceiling, so there is no `max_total`.
**1. Look for a clue.** Slack is connected. A search for the boss's name with "need", "hosting" and "turkey" finds a message in #random from two weeks ago: his practice turkey came out dry because he had to guess when it was done, and he is hosting Christmas.
**2. Search.**
```json
// search
{ "merchant": "target", "query": "instant read meat thermometer" }
```
**3. Propose three.**
```text
Mike said in #random his practice turkey came out dry because he had to guess when it
was done, and he's hosting Christmas. A fast thermometer fixes that. From Target:
1. Taylor Digital LED Rapid Read Thermocouple thermometer $22.99
2. TempPro TP15HW Waterproof Digital Instant Read thermometer $15.99
3. KitchenAid Pivoting Display Digital Instant-Read thermometer $11.99
Which one? And what's his address?
```
The user picks the Taylor and pastes the address. The address below is made up for the example.
**4. Buy once.**
```json
// buy
{
"merchant": "target",
"items": [{ "url": "https://www.target.com/p/-/A-82277112", "quantity": 1 }],
"details": {
"ship_to": {
"first_name": "Mike",
"street_address": "200 Oak Ave",
"address_locality": "Portland",
"address_region": "OR",
"postal_code": "97205",
"address_country": "US"
}
},
"idempotency_key": "<new uuid>"
}
```
**5. Follow it.** With no `max_total`, the last question is `approve`. Say: "The total is $X with tax and shipping, going to Mike in Portland. Review and place it here: LINK." Read `total` from the question. Nothing is ordered until the shopper clicks **Place order**. Poll until `placed`, then: "Ordered. It ships to Mike as Target sends it, with no wrap or note, so you might want to send him a message."
## 5. Don't
- Don't buy before the user picks.
- Don't search for "gift for boss". Search for the fix.
- Don't call `buy` again for the same gift. A timed-out `buy` is retried with the same `idempotency_key`.
- Don't quote a delivery date AgentMall didn't give you.
- Don't post in or reply to the source you read the clue from. Reading it is for finding the gift.
Then ask your agent for a present, and it takes it from there.