Migrate Ask AI to Agent Studio
Ask AI is moving into Algolia Agent Studio, the place to build and manage AI agents. You can migrate your existing Ask AI assistant to Agent Studio, then update your DocSearch (or custom API) integration to use the new agent.
Migrate your assistant
- Open Agent Studio in the Algolia dashboard.
- Migrate or recreate your Ask AI assistant as an Agent Studio agent.
- Copy the agent ID — you will use it in DocSearch (and custom API clients) below.
Update DocSearch
DocSearch v4
Turn on the agentStudio flag and pass your Agent Studio agent ID as assistantId:
docsearch({
appId: 'YOUR_APP_ID',
indexName: 'YOUR_INDEX_NAME',
apiKey: 'YOUR_SEARCH_API_KEY',
askAi: {
assistantId: 'YOUR_AGENT_ID',
agentStudio: true,
},
});
<DocSearch
appId="YOUR_APP_ID"
indexName="YOUR_INDEX_NAME"
apiKey="YOUR_SEARCH_API_KEY"
askAi={{
assistantId: 'YOUR_AGENT_ID',
agentStudio: true,
}}
/>
Notes for v4:
agentStudiolives inside theaskAiobject (not as a top-level prop on the modal).- When
agentStudio: true,searchParametersmust be keyed by index name. See Using Agent Studio with DocSearch andaskAi.agentStudio.
For the Sidepanel, set agentStudio={true} and pass the agent ID as assistantId. See the Sidepanel API reference.
DocSearch v5
In DocSearch v5, Agent Studio is the default chat backend. Pass your Agent Studio agent ID directly (no agentStudio flag required). Exact prop names will be documented with the v5 release.
Custom Ask AI API integrations
If you call the Ask AI HTTP API yourself (instead of using DocSearch), point your client at Agent Studio instead of the Ask AI chat API.
Do not continue building new integrations against the Ask AI API endpoints. Use the Agent Studio APIs and guides:
- Agent Studio documentation
- Completions are available under your application host, for example:
https://{APPLICATION_ID}.algolia.net/agent-studio/1/agents/{AGENT_ID}/completions
For DocSearch users, prefer the SDK configuration above — DocSearch wires the Agent Studio transport for you when agentStudio: true.
Related docs
- Get started with Ask AI (legacy Ask AI setup)
- Ask AI API (legacy; migrate to Agent Studio)
- DocSearch API — askAi.agentStudio
- Agent Studio on algolia.com