Skip to main content
This is a beta feature according to Algolia’s Terms of Service (“Beta Services”).
With Algolia Agent Studio, you can build generative AI experiences using your Algolia data. It combines advanced large language models with Algolia Search, making it easier to build safe, responsive, and up-to-date GenAI features in your application.

Get started

  1. Go to the Algolia dashboard and select your Algolia application.
  2. On the left sidebar, select Generative AI.
  3. Go to Agent Studio > Agents and click Create agent.
  4. 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.
  5. Add a provider: Go to Settings, click Add provider, and enter your API key.
  6. Test your agent in the dashboard.
  7. Publish your agent to make it available for integration.
  8. 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

  1. User: Asks “What are the best wireless headphones?”
  2. Agent: Uses the Algolia Search tool to query the product index.
  3. Tool: Returns relevant search results.
  4. Agent: Sends the results and context to the LLM.
  5. Provider (LLM): Generates a natural language answer.
  6. Agent: Returns a conversational response to the user.

Key concepts

ConceptDescription
AgentCore logic engine that interprets input, chooses tools, and executes actions.
ProviderLLM platform (example: OpenAI, Google Gemini) you connect with your API key.
ModelThe specific LLM used for generation.
PromptInstructions sent to the model.
Algolia toolsExtend agent capabilities by calling Algolia APIs.
Client-side toolsBuild 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.
You can start from a template or build your own agent from scratch.

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:
  1. In Agent Studio, go to Settings.
  2. Click Providers > Add provider.
  3. Select your provider.
  4. Enter your API key.
You can try out Agent Studio on the Algolia dashboard without setting up an API key. For production use, you must configure your own 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 the https://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.

Google Gemini

Agent Studio supports Google Gemini via the Generative AI API.

Azure OpenAI

Agent Studio supports Azure OpenAI. When adding your provider, use your Azure OpenAI endpoint URL and model deployment.

OpenAI compatible providers

Agent Studio supports any OpenAI-compatible provider that implements the OpenAI API specification. When adding your provider, use the base URL and API key provided by your vendor.

Request other providers

We’re continuously expanding provider support. If you’d like to request a specific provider, contact Algolia Support.

Next steps