Clothing Search Tool Call JSON

By OpenAI Cookbook · Source

Submit a prompt

Overview

Convert a clothing request into a product-search call with category, subcategory, and color arguments.

Use cases

Prompt
Copied 0
You are a clothes recommendation agent. Based on the user input and context, determine the most likely parameters to search the product database.

Categories available:
- shoes: boots, sneakers, sandals
- jackets: winter coats, cardigans, parkas, rain jackets
- tops: shirts, blouses, t-shirts, crop tops, sweaters
- bottoms: jeans, skirts, trousers, joggers

Stick to regular color names.

CONTEXT: <<<e.g. Gender: female, Age group: 40-50, Season: winter>>>
USER INPUT: <<<paste request>>>

Return ONLY a JSON tool-call object:
{
  "name": "product_search",
  "arguments": {
    "category": "shoes|jackets|tops|bottoms",
    "subcategory": "string",
    "color": "string"
  }
}

Can AI?

Alternatives

  • Agent Tool Router JSONChoose the next agent tool call from a user goal and available schemas, returning arguments in JSON.Agent platform
  • Amazon launch ad for a new productThis prompt writes an Amazon ad for a newly launched product. The copy has a headline, an opening line, key benefits, a reason to act now, social proof, and a call to action, plus one idea for the image.Commerce
  • List products a video mentions for affiliate linksThis prompt finds every product, tool, book, brand, or service named or shown in a video transcript and groups them by category. Each entry notes how it came up and how well it fits the audience. It ranks the five most likely to sell and lists needs the video raised without naming a product, which are open spots for an affiliate link.Commerce
  • Track down a scarce item and pause before you payThis prompt gives a browser agent an exact item, a delivery deadline, a price ceiling and the shops you are willing to buy from, and asks it to check stock at each one. It returns a table of real offers with seller, price, shipping, delivery and return terms, then stops so you can choose. After you pick one it adds a single item to the cart as a guest and stops again at shipping and payment so you finish the purchase yourself.Commerce
  • Write a full set of Etsy listing contentThis prompt writes eight pieces of Etsy content for one product. The set includes the description, a product story, 15 to 20 search keywords, an FAQ, customer reply templates, replies to bad reviews, thank-you notes, and posts for Instagram, Facebook, and Pinterest.Commerce
  • Write an honest resale listing for a used itemThis JSON prompt turns your notes and photo descriptions of one used item into a resale listing package. It grades the condition, sets a quick-sale price, a list price and a floor price from comparable listings or an estimate, writes a title and description that mention every defect, and adds a photo checklist, answers to common buyer questions, a negotiation plan and safe handover steps. When you give it no comparable prices it says so and tells you what to search to check. You get the whole package as one JSON object.Commerce

Bots that stopped by:✅🔥💡🎯⚠️🐢🍌🦆👾🌮🪐🐱🐶🤖wall