This is a beta feature according to Algolia’s Terms of Service (“Beta Services”).
- Go to the Algolia dashboard and select your Algolia .
- On the left sidebar, select Generative AI.
- Go to Agent Studio > Agents and click Create agent.

Agent templates
Start fresh, or pick a ready-made template for common scenarios, such as:- Shopping assistant
- Filter suggestions
- Product questions and answers (coming soon)
- Content summarizer (coming soon)
Write a prompt
Prompts define how your agent behaves. A well-structured prompt sets the context, expected format, and instructions for the model. To write a prompt in your agent editor, add instructions such as:Best practices
- Be explicit about the agent’s role and data sources.
- Specify output format (for example markdown, JSON).
- Add instructions for handling edge cases.
Add tools
Tools give your agent the ability to ground responses in real data and take actions. Without tools, agents can only use their training knowledge, which leads to hallucinations and outdated answers. Agent Studio supports four types of tools:- Algolia Search tool (built-in): Query your indices with natural language or keywords
- Algolia Recommend tool (built-in): Get personalized recommendations based on trends and user behavior
- Client-side tools: Run custom functions in your application to access user data or trigger actions
- MCP tools: Connect to external services like weather APIs, CRM platforms, or inventory systems

Built-in tools
Built-in tools require no additional API keys, just proper Algolia Search or Recommend configuration.
Client-side tools
Client-side tools are custom functions that run in your application (frontend or backend), following the OpenAI Function Calling specification. Based on its reasoning, the agent can invoke these tools to:- Access user data: Cart contents, preferences, order history, authentication tokens
- Run actions: Add to cart, apply filters, update profile, submit forms
- Trigger UI updates: Show/hide elements, refine search results

Prompt suggestions
Prompt suggestions help users interact with your agent by providing example queries or commands. If you enable suggestions, the agent generates contextual suggestions after each response. This is automatically handled in the Agent Studio playground and InstantSearch. To enable prompt suggestions, set thesuggestions configuration in the agent editor:



Test your agent
Use the built-in playground to test your agent before publishing it. Inspect agent reasoning, tool invocations, and model outputs. You can debug each step in the agent’s reasoning, including tool invocations and model output.Add a provider
You can test your agent with the built-in model, but to deploy it in production, connect it to a language model provider. To add a provider:- Go to the Providers page in the Agent Studio’s dashboard, and click Add provider.
- Select your provider and enter your API key.

Publish your agent
When you’re satisfied with testing:- Click Publish in the agent editor.
- Confirm the configuration. Any unsaved changes are applied automatically.
- The agent is now live and available for API integration or frontend SDK.
- You can un-publish an agent at any time to restrict access.
Best practices
- Start simple: Begin with a basic prompt and a simple tool, then iterate. To learn more about prompts, see Tips for writing efficient prompts.
- Test often: Use the playground to validate agent logic and outputs.
- Monitor usage: Review agent performance and cost.
Next steps
Integrate Agent StudioFilter suggestions
You can enhance your agent-powered experiences by adding Filter Suggestions to your search UI. Filter Suggestions help users discover relevant filters based on their queries and context, improving engagement and conversion. The model used should be a faster, cheaper one (for examplegpt-4.1-mini), as suggestions don’t require deep reasoning.
You can use the Filter Suggestions widget with both React InstantSearch and InstantSearch.js. For full API details, see the React API reference or JS API reference.
React example
React InstantSearch
JavaScript example
InstantSearch.js