> ## Documentation Index
> Fetch the complete documentation index at: https://slatehq.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# LLM Search

> Run one prompt across multiple AI answer engines and collect each platform's answer and citations.

## Overview

The LLM Search block sends a single prompt to several answer-engine platforms in parallel and returns each platform's answer plus its citations. It also returns one combined, deduplicated list of citation URLs. Use it to see how AI engines answer a query and to gather source URLs for further research.

***

## Configuration

### Prompt (Required)

The question or instruction to send to each platform.

**Example:**

```
What are the best CRM tools for small businesses?
```

You can reference placeholders from previous steps: `{{step_1.output}}`

***

### Platforms

Select which answer engines to query. They run in parallel. Select at least one.

**Default:** All platforms

| Platform | Engine |
| - | - |
| **ChatGPT** | OpenAI |
| **Perplexity** | Perplexity |
| **Google AI Overview** | Google |
| **Google AI Mode** | Google |
| **Claude** | Anthropic |
| **Gemini** | Google |

***

### Country

A 2-letter country code for localized results.

**Default:** United States (`us`)

**Options:** United States, United Kingdom, Canada, Australia, India, Germany, France

***

## Error Handling

Define what happens if the block fails.

**Options:**

1. **Terminate workflow**: Stop execution immediately.
2. **Continue execution**: Proceed to the next step despite the error.
3. **Retry**: Run the block again until it succeeds, up to the **Number of retries** you choose (1–5). If every retry fails, the workflow stops at this block.

If a single platform fails, it returns an empty answer with an `error` field while other platforms still return results.

***

## Output Data

Returns a JSON object.

### prompt

The rendered prompt that was sent.

### platforms

The list of platforms that were queried.

### results

An object keyed by platform. Each entry has an `answer` and a `citations` array of `{ url, title }`. A failed platform also includes an `error` field.

### citation\_urls

A combined, deduplicated list of citation URLs from all platforms, ready for scraping.

**Accessing fields:** `{{step_1.output.results.chatgpt.answer}}`, `{{step_1.output.citation_urls[0]}}`

***

## Sample Output

```json theme={null}
{
  "prompt": "What are the best CRM tools for small businesses?",
  "platforms": ["chatgpt", "perplexity"],
  "results": {
    "chatgpt": {
      "answer": "Popular CRM tools for small businesses include HubSpot, Zoho, and Pipedrive...",
      "citations": [
        { "url": "https://example.com/best-crm", "title": "Best CRM Tools 2026" }
      ]
    },
    "perplexity": {
      "answer": "Top picks for small-business CRMs are HubSpot, Salesforce Essentials, and Freshsales...",
      "citations": [
        { "url": "https://competitor.com/crm-guide", "title": "CRM Buyer's Guide" }
      ]
    }
  },
  "citation_urls": [
    "https://example.com/best-crm",
    "https://competitor.com/crm-guide"
  ]
}
```

***

## Best Practices

* Write a specific prompt; vague prompts return generic answers across engines.
* Select only the platforms you need to keep runs fast and focused.
* Use `citation_urls` to feed a Loop and Web Scrape for deeper research.
* Set the Country to match the market you are studying.
* Compare answers across platforms to spot consensus and gaps.

***

## Common Use Cases

| Use Case | Configuration | Next Steps |
| - | - | - |
| AEO visibility check | Brand query, all platforms | Compare brand mentions |
| Source discovery | Topic prompt | Scrape `citation_urls` |
| Cross-engine comparison | One prompt, multiple platforms | Summarize differences with LLM |
| Citation harvesting | Research prompt | Loop over citation URLs |
| Localized answers | Set Country per market | Compare regional results |

***

## What's Next

* Scrape citation URLs with the [Web Scrape Block](https://slatehq.com/docs/workflows/blocks/data-sources/web-scrape.md)
* Loop through `citation_urls` with the [Loop Block](https://slatehq.com/docs/workflows/blocks/flow/loop.md)
* Summarize answers with the [LLM Block](https://slatehq.com/docs/workflows/blocks/ai/llm.md)
* Save results to [Google Sheets](https://slatehq.com/docs/workflows/blocks/apps/google-sheets.md)
* Learn about [Variable Referencing](https://slatehq.com/docs/workflows/variable-referencing.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.