Clothing Search Tool Call JSON

OpenAI Cookbook

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

  • 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
  • Niche product research for Etsy sellersThis prompt suggests niche items an Etsy seller could make or list, weighing current trends, open gaps, competition, and demand. It does not see live Etsy data, so treat its trend claims as guesses to check.Commerce