> ## Documentation Index
> Fetch the complete documentation index at: https://lightdash-mintlify-ca973f84.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting started with AI agents

> Learn how to create and configure your first AI agent in Lightdash

<Frame>
  <iframe width="100%" height="420" src="https://www.loom.com/embed/50bcb0d6f26b428bae336139d9d64e22" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen />
</Frame>

Getting started with AI agents is simple - you can begin using them right away on any project in your Lightdash instance.

<Steps>
  <Step title="Enable AI features (Admin)">
    Organization admins must first enable AI features for users, [follow the guide](#enable-ai-features)
  </Step>

  <Step title="Create your first agent">
    Set up a new AI agent in your Lightdash project, [follow the guide](#create-a-new-agent)
  </Step>

  <Step title="Configure your agent">
    Use tags to control which data the agent can access, [follow the guide](#configure-your-agent).
  </Step>

  <Step title="Connect to Slack">
    Enable team collaboration through Slack, [follow the guide](#slack-integration)
  </Step>
</Steps>

## Enable AI features

Before users can see the **Ask AI** button and interact with AI agents, an organization admin must enable AI features. By default, AI features may not be visible to users until this step is completed.

<Note>
  This step requires **Organization Admin** permissions. If you're not an admin, ask your organization admin to enable AI features.
</Note>

### How to enable AI features

1. Navigate to the **AI Agents Admin Panel** by going to `/ai-agents/admin/agents` in your Lightdash instance
2. In the top-right corner of the admin panel, you'll see a toggle labeled **Enable AI features for users**
3. Turn on the toggle to make AI features visible across your organization

When enabled:

* The **Ask AI** button appears on the homepage and in the navbar
* Users can interact with AI Agents
* Admins can view and manage AI threads

<Note>
  **Free trial available:** New organizations may see a "Free trial" badge next to this toggle, allowing you to try AI features before committing to a paid plan.
</Note>

***

## Creating your first AI agent

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-ca973f84/cHghj5I2wtqMZ-ik/images/guides/ai-agents/ai-agent-overview-page.png?fit=max&auto=format&n=cHghj5I2wtqMZ-ik&q=85&s=1aac4df92944bfb182369d4d90dfbbb7" width="1128" height="882" data-path="images/guides/ai-agents/ai-agent-overview-page.png" />
</Frame>

## Go to Ask AI

This will be your entry point to working with the AI agent

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-ca973f84/cHghj5I2wtqMZ-ik/images/guides/ai-agents/go-to-ask-ai.png?fit=max&auto=format&n=cHghj5I2wtqMZ-ik&q=85&s=c25401777ded79542964d1759430e794" width="2270" height="1520" data-path="images/guides/ai-agents/go-to-ask-ai.png" />
</Frame>

## Create a new agent

Go to the agent dropdown and click ***Create new agent*** at the bottom

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-ca973f84/cHghj5I2wtqMZ-ik/images/guides/ai-agents/create-new-agent.png?fit=max&auto=format&n=cHghj5I2wtqMZ-ik&q=85&s=e35eb07a664c4e16ebbf11866f539d96" width="2268" height="1510" data-path="images/guides/ai-agents/create-new-agent.png" />
</Frame>

## Configure your agent

### Name and image

Give your agent a memorable name and visual identity

### Instructions

Provide context to guide your agent’s reasoning and ensure responses match your expectations. Your instructions can include any of the following components. Each one helps the agent understand your data, your business, and how you want insights delivered:

* **Domain knowledge** -
  Describe the industry or subject area the AI should think within. Include relevant terminology, methodologies, frameworks, and technical concepts.

* **Company context** -
  Explain the business background behind your analysis. Add details about your goals, product, target audience, strategy, or any constraints that influence how insights should be generated.

* **Analysis preferences** -
  Clarify how you want the AI to approach analysis. Specify preferred metrics, dimensions, chart types, visualization styles, and reporting formats so results match your expectations.

* **Role & expertise** -
  Tell the AI what role it should adopt (e.g., “Senior Marketing Analyst”). Include the communication style, depth of explanation, and level of decision-making authority you expect.

The more context you provide, the more accurate, relevant, and predictable your agent’s responses will be.

### Enable Data Access (optional)

Enable data access to allow your agent to analyze actual query results and provide insights based on the data. When disabled, agents work with metadata only. Learn [how to enable data access](/guides/ai-agents/data-access#how-to-enable-data-access)

### User and Group Access (optional)

Control which users and groups can access your agent through the agent settings. For detailed guidance on how to configure data access control, see [here](/guides/ai-agents/data-access#user-attributes-and-permissions)

### Tags (optional)

Use tags in the Lightdash metadata to control which metrics and dimensions the agent can access. Tags help you restrict your agent to a specific slice of your semantic layer.

1. Tag your dbt model dimensions and metrics with the tags you want - your agent will only have access to those dimensions or metrics that have matching tags.

<Accordion title="View code examples">
  <CodeGroup>
    ```yaml dbt 1.10+ theme={null}
    models:
      - name: orders
        columns:
          - name: status
            config:
              meta:
                dimension:
                  tags: ["ai", "sales"] # <--------- tagging the dimension
          - name: location
            config:
              meta:
                dimension:
                  tags: ["ai", "operations"] # <--------- tagging the dimension
          - name: amount
            description: Total amount of the order
            config:
              meta:
                metrics:
                  total_order_amount:
                    type: sum
                    format: usd
                    round: 2
                    tags: ["ai", "finance"] # <--------- tagging the metric
    ```

    ```yaml dbt <=1.9 theme={null}
    - name: orders
      columns:
        - name: status
          meta:
            dimension:
              tags: ['ai', 'sales'] #    <--------- tagging the dimension
         - name: location
          meta:
            dimension:
              tags: ['ai', 'operations'] #    <--------- tagging the dimension
        - name: amount
          description: Total amount of the order
          meta:
            metrics:
              total_order_amount:
                type: sum
                format: usd
                round: 2
                tags: ['ai', 'finance'] #    <--------- tagging the metric
    ```
  </CodeGroup>
</Accordion>

2. Add the corresponding tags to your agent settings under the Tags field. This tells the agent which tagged dimensions and metrics it should access.

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-ca973f84/cHghj5I2wtqMZ-ik/images/guides/ai-agents/ai-tags.png?fit=max&auto=format&n=cHghj5I2wtqMZ-ik&q=85&s=fff45a7948b5d549c3ac454521d49064" width="2250" height="1404" data-path="images/guides/ai-agents/ai-tags.png" />
</Frame>

3. For more technical users who want to configure tagging rules in more detail - including how tags interact with permissions and schema visibility - see the [Data access control section.](/guides/ai-agents/data-access#limiting-access-to-specific-explores-and-fields)

### Enable Self-Improvement (optional, Beta)

Allow your agent to propose changes to your semantic layer, including updating descriptions and creating new metrics. Changes are tracked in changesets for review. Read more on [self-improvement (beta)](/guides/ai-agents/self-improvement) feature.

## Setting up multiple agents

You can create multiple AI agents, each configured for different tasks, tones, languages, or teams. Each agent can have access to different datasets to focus results and give more accurate answers.

## Slack Integration

Connect your agent to Slack channels so users can interact directly from Slack. Check out all the cool ways to integrate your agent into slack [here](/guides/using-slack-integration#using-the-slack-integration)

1. Add Slack to your organization in organization settings. An admin needs to complete this step. See the [how-to guide](/references/workspace/adding-slack-integration).
2. Add the desired slack channel to your agent integration settings.

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-ca973f84/cHghj5I2wtqMZ-ik/images/guides/ai-agents/ai-integrations.png?fit=max&auto=format&n=cHghj5I2wtqMZ-ik&q=85&s=274e3db6d163c1e5175878aa299e078d" width="2268" height="1516" data-path="images/guides/ai-agents/ai-integrations.png" />
</Frame>

3. Add the `Lightdash for analytics` app to your desired slack channel by going to ***#channel*** --> ***Edit settings*** --> ***Integrations***:

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-ca973f84/cHghj5I2wtqMZ-ik/images/guides/ai-agents/add-lightdash-app-to-slack.png?fit=max&auto=format&n=cHghj5I2wtqMZ-ik&q=85&s=2d32bfbde582bff76a301680ae72e68c" width="674" height="511" data-path="images/guides/ai-agents/add-lightdash-app-to-slack.png" />
</Frame>

4. Now you can interact with your AI agent in slack just as you would in the Lightdash UI. Start asking questions like "What kind of data can you access?" or "Show me total order amount over time".

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-ca973f84/cHghj5I2wtqMZ-ik/images/guides/ai-agents/use-agent-in-slack.png?fit=max&auto=format&n=cHghj5I2wtqMZ-ik&q=85&s=6dbc19c15829c50d7a9e594d97128b9d" width="628" height="152" data-path="images/guides/ai-agents/use-agent-in-slack.png" />
</Frame>

5. You can also summon the bot on a thread to continue the conversation. In order for the bot to be able to respond, you need to enable this context sharing in your Lightdash Integrations settings.

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-ca973f84/cHghj5I2wtqMZ-ik/images/guides/ai-agents/ai-agent-slack-thread-consent.png?fit=max&auto=format&n=cHghj5I2wtqMZ-ik&q=85&s=04146939e4021872b270f9d64f92a70a" width="1848" height="1088" data-path="images/guides/ai-agents/ai-agent-slack-thread-consent.png" />
</Frame>

<br />

Once you're set up - whether in the UI or in Slack - you can start asking questions immediately! Try asking "What kind of data can you access?" to get started:

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-ca973f84/cHghj5I2wtqMZ-ik/images/guides/ai-agents/what-kind-of-data-can-you-access.png?fit=max&auto=format&n=cHghj5I2wtqMZ-ik&q=85&s=ce7bea437a73dbc2ae9c6a146681b817" width="1768" height="1408" data-path="images/guides/ai-agents/what-kind-of-data-can-you-access.png" />
</Frame>

### Slack channels: single-agent vs. multi-agent

By default, each AI agent can only be connected to one Slack channel. If you try to configure two agents in the same Slack channel via the per-agent integration path, you'll receive an error.

If you want multiple agents in the same channel, set up a **multi-agent channel** at the organization level instead. In a multi-agent channel, you don't need to specify which agent to talk to — there's only one Lightdash Slack app name to mention, and Lightdash automatically picks the best agent for your question.

#### Setting up a multi-agent Slack channel

Multi-agent channels are configured at the **organization level**, not per-agent:

1. Go to **Organization Settings → Integrations → Slack**
2. Find the **Multi-agent channel** setting in the AI Agents configuration panel
3. Select the Slack channel you want to designate as the multi-agent channel
4. Click **Save**

Once a channel is designated as the multi-agent channel, all eligible agents in your organization are automatically available in that channel. You do **not** need to add each agent individually via its own **AI Agent → Integrations → Slack** settings.

**Scoping which agents appear:** by default, agents from every project in your organization are eligible. To restrict the channel to agents from specific projects, toggle off **Allow all project agents to appear** and pick the projects you want to include.

<Warning>
  If you see the error **"This Slack channel is already assigned to another AI agent"** while trying to attach a second agent via the per-agent integration path, that path only supports single-agent channels. Switch to the org-level multi-agent channel setup described above instead.
</Warning>
