﻿---
title: Set up AI features
description: Set up the LLM access and privileges that Elastic Security AI features need, plus optional settings such as the chat experience, Agent Builder documentation, and the AI Assistant Knowledge Base.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/solutions/security/ai/set-up-ai-features
products:
  - Elastic Cloud Serverless
  - Elastic Documentation
  - Elastic Security
applies_to:
  - Serverless Security projects: Generally available
  - Elastic Stack: Generally available
---

# Set up AI features
This page explains how to set up Elastic Security AI features. It covers the required setup, optional setup that controls which models and chat experience are available, and setup that applies only to specific features.

## Required setup

Elastic Security AI features require a connection to a large language model (LLM), and users need privileges for the features they use.

### Connect to an LLM

If your subscription or project feature tier includes [Elastic Managed LLMs](https://docs-v3-preview.elastic.dev/elastic/kibana/tree/main/reference/connectors-kibana/elastic-managed-llm), they're available by default with no setup required. To connect a different LLM, refer to [Configure access to LLMs](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/ai-features/llm-guides/llm-connectors).
Model performance varies by task. To compare models, refer to the [Large language model performance matrix](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/solutions/security/ai/large-language-model-performance-matrix).

### Grant privileges

For the privileges that each feature needs, refer to:
- Elastic Agent Builder: [Permissions and access control in Elastic Agent Builder](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/ai-features/agent-builder/permissions)
- Attack Discovery: [Attack Discovery privileges](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/solutions/security/ai/attack-discovery/grant-access)
- <applies-to>Elastic Cloud Serverless: Preview</applies-to> <applies-to>Elastic Stack: Planned</applies-to> AlertZero: [AlertZero privileges](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/solutions/security/alertzero/alertzero-privileges)

If your space still uses AI Assistant, refer to the requirements in [AI Assistant for Security](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/solutions/security/ai/ai-assistant).

## Optional setup

AI features work with their default settings. Change them to control which models and features are available, or which chat experience each space uses.

### Manage available models and features

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.2
</applies-to>

To limit which connectors and models AI features can use, or to turn AI features off, go to **Feature Settings** or **GenAI Settings** (depending on your Elastic Stack version). For details, refer to [Manage access to AI features](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/ai-features/manage-access-to-ai-assistant).

#### Select models for AlertZero

<applies-to>
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Planned
</applies-to>

AlertZero has its own model settings, which start with preset models instead of your default model. To learn how the Workers pick a model and how to change it, refer to [Select models for the Workers](/elastic/docs-content/pull/9383/solutions/security/alertzero/set-up-alertzero#alertzero-choose-models).

### Switch chat experiences

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.4
  - Elastic Stack: Preview in 9.3
</applies-to>

Elastic Agent Builder is the recommended chat experience, and each space uses one experience for all its users. To change the experience a space uses, refer to [Migrate from AI Assistant to Agent Builder](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/ai-features/ai-chat-experiences/ai-agent-or-ai-assistant).

## Feature-specific setup

The following sections apply to specific features. Only use them if you plan to set up the feature it covers.

### Give Elastic Agent Builder knowledge

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.4
  - Elastic Stack: Preview in 9.3
</applies-to>

Elastic Agent Builder gets product context from installed documentation, and your own data from tools.
- **Elastic documentation and Security Labs**: Install from **GenAI Settings**. Installed content is available in every space. To check or install, refer to [Give Elastic Agent Builder access to Elastic documentation](/elastic/docs-content/pull/9383/explore-analyze/ai-features/manage-access-to-ai-assistant#give-agent-builder-access-to-elastic-documentation).
- **Your own data**: Create an [index search tool](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/ai-features/agent-builder/tools/index-search-tools) for the indices you want the agent to search, then assign the tool to your agent.


### Set up the AI Assistant Knowledge Base

<applies-to>
  - Serverless Security projects: Deprecated
  - Elastic Stack: Planned for deprecation
  - Elastic Stack: Generally available from 9.0 to 9.5
</applies-to>

The Knowledge Base gives AI Assistant more context, such as your internal documentation or threat research. The Knowledge Base requires a machine learning node of at least 4 GB. Enable the Knowledge Base in each Kibana space where you want to use it. For steps to enable it and add knowledge, refer to [AI Assistant Knowledge Base](/elastic/docs-content/pull/9383/solutions/security/ai/ai-assistant-knowledge-base#enable-knowledge-base).

### Turn on Attack Discovery workflows

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.5
</applies-to>

To run Attack Discovery from a workflow or from Elastic Agent Builder, turn on the [`securitySolution:enableAttackDiscoveryWorkflows`](https://docs-v3-preview.elastic.dev/elastic/kibana/tree/main/reference/advanced-settings#kibana-siem-settings) advanced setting. This setting also lets you configure alert retrieval, generation, and validation in the **Attacks** view. After you turn it on, users also need [Workflows privileges](/elastic/docs-content/pull/9383/solutions/security/ai/attack-discovery/grant-access#attack-discovery-workflows-privileges).

### Set up AlertZero

<applies-to>
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Planned
</applies-to>

AlertZero is off by default, and you set it up in each space where you want it. Its Workers need an AI model, and some also need other features turned on. For what each Worker needs and how to start them, refer to [Set up AlertZero](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/solutions/security/alertzero/set-up-alertzero).

### Features with their own setup

Some features need a separate project or a local install:
- <applies-to>Elastic Cloud Serverless: Preview</applies-to> To use [Elastic AI SOC Engine (EASE)](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/solutions/security/ai/ease/ease-intro), create an EASE project, which is a separate Elastic Security Serverless project type.
- To use the [Security MCP App](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/solutions/security/mcp-app/elastic-security-mcp-app), install it on your own machine.