---
title: Use Genie in multi-agent systems (Model Serving)
description: Create a multi-agent system using Genie and LangGraph.
canonical_url: https://docs.databricks.com/aws/en/agents/custom-agents/model-serving/multi-agent-genie
---

# Use Genie in multi-agent systems (Model Serving)

> [!NOTE]
> **Preview**
>
> This feature is in [Public Preview](https://docs.databricks.com/aws/en/release-notes/release-types.md).

> [!NOTE]
>
> For new agents, Databricks recommends the [Agent Bricks CLI](https://docs.databricks.com/aws/en/agents/custom-agents/agent-bricks-cli.md). The CLI deploys your agent with the [Agent Bricks agent server](https://docs.databricks.com/aws/en/agents/deploy/agent-server.md) on [Agent Runtime](https://docs.databricks.com/aws/en/agents/deploy/agent-runtime.md). See [Deploy agents on Databricks](https://docs.databricks.com/aws/en/agents/deploy/index.md). To move an existing agent from Model Serving to Databricks Apps, see [Migrate an agent from Model Serving to Databricks Apps](https://docs.databricks.com/aws/en/agents/custom-agents/migrate-agent-to-apps.md).

This page describes Genie agent systems and shows how to create a multi-agent system using Custom Agents and [Genie Agents](https://docs.databricks.com/aws/en/genie-agents/index.md).

## Requirements

* You must have a Genie Agent set up. See [Create and manage a Genie Agent](https://docs.databricks.com/aws/en/genie-agents/set-up.md).

## Benefits of Genie agents

Multi-agent systems consist of multiple agents working together, each with specialized capabilities. A Genie agent allows users to use natural language to query structured data.

Custom Agents allow agents to share answers as context for each other. So users can get answers that pull from multiple sources. You could have an already-deployed RAG agent that queries an unstructured document corpus and combine it with a Genie agent that queries a database of records.

Multi-agent systems typically consist of a supervisor agent that directs and manages context for specialized worker agents.

![Multi-agent framework consisting of a supervisor and specialized agents.](https://docs.databricks.com/aws/en/images/generative-ai/multi-agent-framework.png)

## Example notebooks: Multi-agent system with Genie

The following notebooks show you how to create a multi-agent system that orchestrates these types of agents:

* Genie Agents
* Agents deployed to Model Serving
* UC function-calling agents using built-in code.

#### Multi-agent using Genie and LangGraph

[Get notebook](https://docs.databricks.com/notebooks/source/generative-ai/langgraph-multiagent-genie.html)

#### Multi-agent using Genie and DSPy

[Get notebook](https://docs.databricks.com/notebooks/source/generative-ai/dspy/dspy-multiagent-genie.html)

## Access Genie Agents with on-behalf-of-user authorization

On-behalf-of-user authorization allows an agent system to access a Genie Agent and its underlying resources with agent end user's permissions.

See [On-behalf-of-user authentication](https://docs.databricks.com/aws/en/agents/custom-agents/model-serving/agent-authentication-model-serving.md#on-behalf-of-user-authentication) for more information on how to set up on-behalf-of-user authorization with Genie Agents.
