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

# AI Mode

> Get AI-generated responses from Google's AI Mode with text, code blocks, references, and more

Get AI-generated responses from Google's AI Mode with text, code blocks, references, and more

|                      |                         |
| -------------------- | ----------------------- |
| **App**              | Google Search           |
| **Operation ID**     | `google_search_ai_mode` |
| **Type**             | Action                  |
| **Connection**       | None                    |
| **Credits per run**  | 10                      |
| **Agent / MCP tool** | Yes                     |

## Inputs

| Field         | Type                       | Required | Default | Description                                                                                                                                                                                 |
| ------------- | -------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `q`           | string                     | Yes      | -       | The search query for Google AI Mode. The AI will respond in the same language as your query.                                                                                                |
| `result_type` | string or SelectableOption | No       | -       | Output format: 'json' (default) returns full response with text blocks, references, etc. 'markdown' returns just the formatted markdown response.                                           |
| `location`    | string                     | No       | -       | Geographic location for the search (e.g., 'New York', 'London', 'Tokyo'). Useful for location-based queries. Leave empty for general results which is the default and most common use case. |
| `gl`          | string                     | No       | -       | Country code for the search (e.g., 'us', 'au', 'de'). Pins the search to a country so results reflect that market. Defaults to 'us' on the API side.                                        |
| `hl`          | string                     | No       | -       | Interface language for the search (e.g., 'en', 'es', 'fr'). Note: the AI answer follows the query language; hl mainly sets the interface language. Defaults to 'en' on the API side.        |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `Dict`

Returns AI-generated response with markdown, text blocks, reference links, and optional local/shopping results.

**Fields**: dynamic (depend on the inputs)
