﻿---
title: Migrate from AI Assistant to Agent Builder
description: Switch from the AI Assistant to Agent Builder and find where AI Assistant features live in Agent Builder.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/ai-chat-experiences/ai-agent-or-ai-assistant
products:
  - Elastic Cloud Serverless
  - Elastic Documentation
  - Elastic Observability
  - Elastic Security
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.4, Preview in 9.3
---

# Migrate from AI Assistant to Agent Builder
<admonition title="Requirements">
  To change the chat experience, you need:
  - An Enterprise [subscription](https://www.elastic.co/pricing) or the equivalent Serverless [project feature tier](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/deploy-manage/deploy/elastic-cloud/project-settings).
  - The **Actions and Connectors: Read** privilege, to open **GenAI Settings**.
  - The **Advanced Settings: All** privilege. Without it, the **Chat Experience** setting is visible but you can't save it.
  - Access to at least one classic AI assistant.
  - One of these Elastic Agent Builder privilege sets:
    - **Agent Builder: All**
    - <applies-to>Elastic Stack: Generally available since 9.4</applies-to> **Agent Builder: Read** plus **Create and edit agents**
  For details, refer to [Elastic Agent Builder permissions](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/permissions).
</admonition>

[Elastic Agent Builder](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/elastic-agent-builder) replaces Elastic AI Assistants:
- <applies-to>Elastic Stack: Deprecated since 9.4, Elastic Stack: Generally available from 9.0 to 9.3</applies-to> <applies-to>Elastic Cloud Serverless: Deprecated</applies-to> Elastic AI Assistant for Observability and Search
- <applies-to>Elastic Stack: Planned for deprecation, Elastic Stack: Generally available from 9.0 to 9.5</applies-to> <applies-to>Elastic Cloud Serverless: Deprecated</applies-to> AI Assistant for Security

Switching changes the chat experience only. It doesn't migrate your AI Assistant conversations, prompts, or knowledge base entries, and Elastic Agent Builder can't be configured to access these resources. Use the [feature replacements](#feature-differences-between-agent-builder-and-ai-assistant) to re-create what you need.

## Switch to Agent Builder

- <applies-to>Elastic Stack: Generally available since 9.4</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> Agent Builder is the default chat experience for all solutions.
- <applies-to>Elastic Stack: Generally available in 9.3</applies-to> Agent Builder is the default for Elasticsearch solution users. Elastic Observability and Elastic Security solution users can switch to Agent Builder to opt in.

Kibana might prompt you to switch when your deployment supports it and you have sufficient privileges. You can also switch at any time:
1. Use the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/find-and-organize/find-apps-and-objects) to find [**GenAI Settings**](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/manage-access-to-ai-assistant).
2. Under **Chat Experience**, select **AI Agent**.
3. Select **Save changes**.

<applies-to>Elastic Stack: Generally available since 9.4, Elastic Stack: Preview in 9.3</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> When the switch succeeds, the **AI Agent** button in the Kibana header opens Elastic Agent Builder instead of AI Assistant. To start using it, refer to [Get started with Elastic Agent Builder](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/get-started).
<tip>
  For connectors and tested models, refer to [Configure access to LLMs](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/llm-guides/llm-connectors). To learn about the chat UI modes, refer to [Chat UI modes in Elastic Agent Builder](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/standalone-and-flyout-modes).
</tip>


## Find AI Assistant features in Agent Builder

Most AI Assistant features have an Elastic Agent Builder equivalent. Availability varies by version. Features labeled Elastic Security or Observability exist only in that solution's AI Assistant.

| AI Assistant feature                              | In Agent Builder                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|---------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Chat sharing and duplication**                  | <applies-to>Elastic Stack: Planned</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> Conversations can be shared with specific users or publicly. Only the owner of a conversation can [share it](/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/chat#share-a-conversation). Members can continue a shared conversation. Duplication isn't available.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Chat archiving**(Observability)                 | Not available.<applies-to>Elastic Stack: Planned</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> [Pin conversations](/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/chat#pin-conversations) instead.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Data anonymization**                            | <applies-to>Elastic Stack: Planned</applies-to> <applies-to>Elastic Cloud Serverless: Preview</applies-to> Pattern-based and off by default. Unlike AI Assistant, you choose patterns to mask, not alert fields. Built-in patterns cover email addresses, IP addresses, host names, and account names (off by default), and you can add your own regular expressions. To turn it on, open **Stack Management**, select **Anonymization** in the **AI** section, then turn on **Mask PII in AI requests** on the **Settings** tab. This page requires an Enterprise [subscription](https://www.elastic.co/pricing) or the equivalent Serverless [project feature tier](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/deploy-manage/deploy/elastic-cloud/project-settings), and the **Advanced Settings: All** and **Actions and Connectors** [privileges](/elastic/docs-content/pull/9588/deploy-manage/users-roles/cluster-or-deployment-auth/kibana-privileges#kibana-privileges-management). Masking doesn't apply to data sent directly to a connector, for example from a workflow connector step. |
| **Knowledge base**                                | Refer to [Replace knowledge base content](#replace-knowledge-base-content).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Alerting rule connector action**(Observability) | <applies-to>Elastic Stack: Planned</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> Partial. Use an [action policy to run a workflow](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/alerting/esql/workflows-alerting) that calls an agent with the [`ai.agent`](/elastic/docs-content/pull/9588/explore-analyze/workflows/steps/ai-steps#ai-agent) step.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **Audit logging**                                 | <applies-to>Elastic Stack: Generally available since 9.4</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> Kibana records audit events when agents, tools, and skills are created, updated, or deleted. <applies-to>Elastic Stack: Planned</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> Kibana also records when a conversation is created.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **Citations**(Elastic Security)                   | <applies-to>Elastic Stack: Planned</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> Available.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **Quick prompts**(Elastic Security)               | <applies-to>Elastic Stack: Generally available since 9.4</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> Use [skills](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/skills) and invoke them with slash commands.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

Elastic Agent Builder also adds [custom agents](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/custom-agents), [custom tools](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/tools/custom-tools), and [integration with Elastic Workflows](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/agents-and-workflows).

### Replace knowledge base content

Elastic Agent Builder has no dedicated knowledge base UI. Use these equivalents for what you stored in AI Assistant:

| AI Assistant knowledge base feature              | In Agent Builder                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|--------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Elastic product documentation                    | Install **Elastic documentation** from [**GenAI Settings**](/elastic/docs-content/pull/9588/explore-analyze/ai-features/manage-access-to-ai-assistant#give-agent-builder-access-to-elastic-documentation).<applies-to>Elastic Stack: Planned</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> Kibana installs docs automatically when [Elastic Inference Service (EIS)](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/elastic-inference/eis) is available and **Use AI features** is turned on. |
| Security Labs articles(Elastic Security)         | Install **Security labs** from [**GenAI Settings**](/elastic/docs-content/pull/9588/explore-analyze/ai-features/manage-access-to-ai-assistant#give-agent-builder-access-to-elastic-documentation).                                                                                                                                                                                                                                                                                                                                                                      |
| Indices and content connector indices            | Create an [index search tool](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/tools/index-search-tools) for the index and assign it to your agent.                                                                                                                                                                                                                                                                                                                                                         |
| Markdown entries created in the settings UI      | Index the content yourself, then create an [index search tool](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/tools/index-search-tools).                                                                                                                                                                                                                                                                                                                                                                  |
| "Remember this" in chat                          | <applies-to>Elastic Stack: Planned</applies-to> <applies-to>Elastic Cloud Serverless: Experimental</applies-to> Not a direct replacement. [Context Engine memories](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/context-engine/save-and-retrieve-memories) need Context Engine turned on and a memory-enabled AI index assigned to your agent.                                                                                                                                                                       |
| Required knowledge and retrieval on every prompt | Add the knowledge to your [custom agent's instructions](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9588/explore-analyze/ai-features/agent-builder/custom-agents). The agent decides when to call a tool, so include guidance if it should search specific knowledge regularly.                                                                                                                                                                                                                                                                       |


## API differences between Agent Builder and AI Assistant

Each AI chat experience has different APIs. To learn which actions each option supports, refer to:
- [Agent Builder](https://www.elastic.co/docs/api/doc/kibana/group/endpoint-agent-builder)
- [AI Assistant for Security](https://www.elastic.co/docs/api/doc/kibana/group/endpoint-security-ai-assistant-api)
- [AI Assistant for Observability](https://www.elastic.co/docs/api/doc/kibana/group/endpoint-observability_ai_assistant)