This is a beta feature according to Algolia’s Terms of Service (“Beta Services”).
Get started
- Go to the Algolia dashboard and select your Algolia application.
- On the left sidebar, select Generative AI.
- Go to Agent Studio > Agents and click Create agent.
-
Configure your agent:
- Write a prompt to define your agent’s behavior.
- Add tools (for example: Algolia Search) to extend capabilities.
- You can test with the built-in model before adding an API key.
- Add a provider: Go to Settings, click Add provider, and enter your API key.
- Test your agent in the dashboard.
- Publish your agent to make it available for integration.
- Integrate into your app using the API or AI SDK UI.
How Agent Studio works
Agent Studio brings together agents, tools, and large language models (LLMs) to create a flexible, production-ready generative AI runtime.Architecture overview
- User Input The user sends a message or query.
- Agent The agent interprets the input, selects tools, and orchestrates the workflow.
- Tools The agent can call tools (for example: Algolia Search) to fetch or process data.
- Provider/Model The agent uses a connected LLM provider (example: OpenAI, Google Gemini) to generate responses.
- Response The agent returns a structured, context-aware answer to the user.
Example workflow
- User: Asks “What are the best wireless headphones?”
- Agent: Uses the Algolia Search tool to query the product index.
- Tool: Returns relevant search results.
- Agent: Sends the results and context to the LLM.
- Provider (LLM): Generates a natural language answer.
- Agent: Returns a conversational response to the user.
Key concepts
| Concept | Description |
|---|---|
| Agent | Core logic engine that interprets input, chooses tools, and executes actions. |
| Provider | LLM platform (example: OpenAI, Google Gemini) you connect with your API key. |
| Model | The specific LLM used for generation. |
| Prompt | Instructions sent to the model. |
| Algolia tools | Extend agent capabilities by calling Algolia APIs. |
| Client-side tools | Build user-facing features, such as rendering results or managing UI components. |
What you can build
Agent Studio supports a wide range of generative AI experiences, including:- Shopping assistants that answer product questions and recommend items.
- Content summarizers for extracting key information from large datasets.
- Conversational search interfaces for natural language queries.
- Custom workflows using your own prompts, tools, and integrations.
Bring your own API key
To use the Agent Studio in production, you must provide your own API key for a supported provider. This ensures your usage is secure and isolated. To add a provider:- In Agent Studio, go to Settings.
- Click Providers > Add provider.
- Select your provider.
- Enter your API key.
Any Algolia requests made through Agent Studio will be counted toward your total Search usage and may incur additional charges on your account.
Supported providers
OpenAI
Agent Studio supports OpenAI USA and Europe data residency regions. In Europe, you must send requests to thehttps://eu.api.openai.com/v1 base URL for the request to be processed in the region.
This is handled automatically if you add your provider from the Algolia dashboard.