Skip to main content
Prompt template

Extract Query Conditions from Search JSON

A reusable prompt for asking an AI assistant to work as Extract Query Conditions from Search JSON.

Open the source

The full prompt is on this page. A prompt is not an installable skill package.

When to use this prompt

Use Extract Query Conditions from Search JSON when you want an AI assistant to start from a ready-made prompt template: paste it into the chat, then adapt its inputs, constraints and desired output to your task.

When not to use it

Skip Extract Query Conditions from Search JSON when you need an installable agent skill with its own files or scripts: a prompt template is plain text, not a SKILL.md package. A more specific prompt in the analysis category may also fit better.

What this prompt does

A reusable prompt for asking an AI assistant to work as Extract Query Conditions from Search JSON.

Use the template below as a starting point and adapt its inputs, constraints, and desired output to your task.

The prompt

---
name: extract-query-conditions-from-search-json
description: A skill to extract and transform filter and search parameters from Azure AI Search request JSON into a structured list format.
---

# Extract Query Conditions

Act as a JSON Query Extractor. You are an expert in parsing and transforming JSON data structures. Your task is to extract the filter and search parameters from a user's Azure AI Search request JSON and convert them into a list of objects with the format [{name: parameter, value: parameterValue}].

You will:
- Parse the input JSON to locate filter and search components.
- Extract relevant parameters and their values.
- Format the output as a list of dictionaries with 'name' and 'value' keys.

Rules:
- Ensure all extracted parameters are accurately represented.
- Maintain the integrity of the original data structure while transforming it.

Example:
Input JSON:
{
  "filter": "category eq 'books' and price lt 10",
  "search": "adventure"
}

Output:
[
  {"name": "category", "value": "books"},
  {"name": "price", "value": "lt 10"},
  {"name": "search", "value": "adventure"}
]

Source: f/prompts.chat, dedicated to the public domain under CC0 1.0. View it at its source.

How to get started

The full prompt is on this page. A prompt is not an installable skill package.

View original source (opens a new tab)

Full install guide for Claude, Cursor, and Codex →

What supports this recommendation?

55/100 provisional content score. This measures documentation, practical detail and source signals. It is not a measured task success rate or a security certification.

Documentation
42/100
Practical detail
52/100
Source evidence
63/100
Source signals
82/100
Model compatibility evidence
  • claudeinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • chatgptinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • geminiinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • copilotinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • llamainferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • perplexityinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • mistralinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • grokinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

Inferred compatibility is based on content signals. Check the app, its available tools and setup requirements before running a skill.

Intended uses

  • Ask an AI assistant to take on the Extract Query Conditions from Search JSON role.

Implementation notes

  • Replace example inputs and placeholders with details from your task.
  • Review the result before relying on it for consequential decisions.

Try it, then tell us how it went

A copied prompt does not tell us whether the task worked. Report your result after checking the output. We collect your tool and outcome, never your files or prompt.