Get started with the Agent Studio dashboard
On this page
Agent Studio is a beta feature according to the Algolia Terms of Service (“Beta Services”).
Dashboard overview
Start by creating a new agent, which acts as the core decision-maker in your GenAI workflow. An agent receives a prompt, selects the appropriate tools, and generates a response using a language model.
To create an agent, go to the Generative AI > Agent Studio > Agents section in the Algolia dashboard then click Create agent.
Agent templates
You can start from scratch or use template designed for common use cases like:
- Shopping assistant
- Product questions and answers (Coming soon)
- Content summarizer (Coming soon)
You can modify the prompts, tools, and settings after selecting a template.
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:
1
2
You are a helpful assistant that answers product-related questions using the Algolia index.
Always return your answer in markdown format.
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 extend your agent’s capabilities. You can add different tools provided by Algolia, including:
- Algolia Search: Search across Algolia indices.
- Algolia Browse: Fetch records in bulk. (Coming soon)
- Algolia Recommend: Get recommendations based on content and user behavior. (Coming soon)
Click Add tool, select the type, and configure the parameters.
Add client-side tools
You can give the agent access to your own custom code through client-side tools. Based on its reasoning, the agent can invoke these tools to perform actions in your application.
They can be useful for mainly two purposes:
-
Fetching Data: Retrieve information to incorporate into the response. Useful for passing user state or fetching additional data not available in Algolia indices.
-
Taking Action: Perform actions like submitting a form, calling APIs, modifying application state. For example, you can:
- Add items to a shopping cart.
- Display product details.
- Apply search filters.
Client-side tools live in your application. But the JSON schema definitions need to be added in the agent editor.
Make sure to define the tool’s name, description, and parameters. The agent will use this information to decide when to invoke the tool. Read more about defining functions.
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
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 Generative AI > Agent Studio > Providers section.
- Under Providers, click Add provider.
- Choose the provider and enter your API key.
You can switch or update provider credentials at any time.
Publish your agent
When you’re satisfied with testing:
- Click Publish in the agent editor.
- Confirm the configuration, any unsaved changes will be applied.
- The agent is now live and available for API integration or frontend SDK.
- You can unpublish an agent at any time to restrict access.
Best practices
- Start simple: Begin with a basic prompt and a simple tool, then iterate.
- Test often: Use the playground to validate agent logic and outputs.
- Monitor usage: Review agent performance and cost.