Ask AI is part of Agent Studio
and isn’t available as a standalone feature for new applications.
Use these docs for existing Ask AI implementations.
Migration guides will be added when available.
How Ask AI prompts work
Ask AI builds its responses from several components:- Base system prompt (hidden). Every Ask AI request starts with a built-in prompt that ensures safety, retrieves relevant content, and keeps the tone helpful.
- Custom system prompt. This is your prompt template: it overlays the base system prompt. For example, your template might specify: “Answer like a Kubernetes site reliability engineer. Prefer concise bullet points.”
- User questions. These are the queries users type directly into the chat box.
- Context passages. Ask AI inserts relevant sections from your Algolia .
How to create effective prompts
Example prompt
You are a cloud-native solutions architect explaining technical trade-offs to junior DevOps engineers migrating to Kubernetes. Explain concepts in plain English, avoiding jargon. For each explanation, provide a concise introduction, a clear example, and then some common pitfalls. Think step-by-step and provide your answer in well-structured bullet points, ensuring the response is clear.Common pitfalls
Optimize relevance and accuracy in Ask AI responses
To improve the accuracy and relevance of Ask AI responses, applyfacetFilters when configuring the assistant.
This narrows the search scope to the most relevant .
For example, filtering by language and version ensures users only receive results that match the appropriate context.
If your index contains different types of records—such as navigation elements,
metadata, or placeholders—you can further refine results by using facetFilters: ['type:content'].
This restricts the search to meaningful content, resulting in more accurate and helpful answers.