This is a beta feature according to Algolia’s Terms of Service (“Beta Services”).

Key capabilities
Key capabilities
- Natural language queries (when Algolia NeuralSearch is enabled): users ask questions in plain language, agent performs the search
- Keyword search: agent performs traditional keyword-based searches
- Faceted filtering: agent applies filters with AND/OR logic based on user requests
- Multiple indices: agent can query up to 10 indices per agent
- Automatic enrichment: index metadata (facets, searchable attributes) is automatically discovered
- Analytics tracking: all agent-performed queries tagged with the
alg#agent-studioanalytics tag - Full search API support: supports all query-time Algolia Search parameters. For more information, see Search API parameters
- User-restricted access: works with secure API keys for record-level access control
- Simplest integration: no external APIs required, uses existing Algolia Search configuration
Configure the Search tool
- From the dashboard
- With the API
From the Agent Studio agent edit view in the Algolia dashboard:
- Click Add tool > Algolia Search
- Select your (for example,
products) - Add a description: “Product catalog with titles, descriptions, prices, and availability”
- Click Add tool
Use the Other tools option when you need to configure tools with settings not supported by the Algolia dashboard, or when a dedicated interface isn’t available.
Required fields
type: must be"algolia_search_index"indices: array of index configurations (minimum 1, maximum 10)index: Algolia index namedescription: describe what data is in the index, not how to use it. The tool automatically provides usage instructions to the LLM.
Optional fields
name: custom name for this tool instance (defaults to"algolia_search_index")- Per-index
searchParameters: index-specific search parameters
Advanced usage
Full search parameters support
The Algolia Search tool supports all query-time parameters from the Algolia Search API. Configure parameters in one of two ways:- Per-index parameters (most common)
- Global tool-level parameters
JSON
Query-time search parameter overrides
You can override specific search parameters per request by passingalgolia.searchParameters in the completions API request body.
Use this when some values vary by user or session, without changing the tool configuration.
You can only override indices that are already configured on the agent’s Algolia Search tool.
Requests for other indices are rejected.
This is useful when you want to:
- Apply user-specific filters
- Limit which properties are returned
- Restrict which properties are searchable for a specific request
- Change
distinctdynamically - Pass personalization settings such as
userToken
JSON
| Field | Type | Description |
|---|---|---|
filters | string | Filter expression |
attributesToRetrieve | string[] | Properties returned in results |
restrictSearchableAttributes | string[] | Properties searched in this request |
distinct | boolean or integer | Deduplicate results |
userToken | string | User token for personalization and analytics |
enablePersonalization | boolean | Enable Algolia personalization |
personalizationImpact | integer | Weight of personalization in ranking (0 to 100) |
POST /agent-studio/1/agents/{agentId}/completions, see the Agent Studio API reference.
If a parameter is already defined in the tool configuration, the tool configuration takes precedence over the query-time override.
Query-time overrides are most useful for per-user or per-session values, especially
userToken, when these values aren’t already fixed in the tool configuration.Example filters for configuration
- Always exclude out-of-stock items
- Combine multiple filter conditions
- Limit retrieved attributes for faster responses
- Configure faceting behaviour
JSON
Analytics tracking
All queries made by the Algolia Search tool are automatically tagged with:- Track agent-generated queries separately in your Algolia analytics
- Identify popular search patterns from conversational interactions
- Optimize your index based on agent usage
- Go to Algolia Analytics
- Filter by tag:
alg#agent-studio - Review top queries, click-through rates, and conversion metrics