> Documentation index: https://developers.google.com/maps/llms.txt

The Agentic UI toolkit provides LLM system instructions and a library of UI components that let LLMs and AI agents render interactive maps, place details, and route previews inside chat responses. The web library is a JavaScript/TypeScript web component library, with matching Android and iOS libraries.

## Agentic UI toolkit: key facts

- **Product:** Agentic UI toolkit
- **Also known as:** Maps Agentic UI toolkit, Maps Platform Agentic UI toolkit
- **Category:** Places
- **Platform:** JavaScript (browser)
- **Runs on:** Client (app or browser code)
- **Launch stage:** Experimental
- **Lifecycle:** Active
- **Overview:** [Agentic UI toolkit overview](https://developers.google.com/maps/ai/agentic-ui-toolkit.md.txt)

## Agentic UI toolkit: when to use it

**Use Agentic UI toolkit when:**

- You need to show interactive maps, place cards, or route previews inline in an LLM chat or AI agent response.
- You're building an AI assistant or travel planner that shows hotels, restaurants, routes, or place details next to text answers.
- You use Gemini, OpenAI, or Anthropic models and need a model-agnostic presentation layer for location data.
- You want the LLM to choose map components through tool-use (function calling) definitions instead of hard-coded UI.
**Don't use Agentic UI toolkit when:**

- You need SLA, technical support, and Deprecation Policy coverage; this open-source, experimental library isn't a Core Service. Use [Maps JavaScript API](https://developers.google.com/maps/documentation/javascript/quick-reference.md.txt) instead.
- You're building a native Android app rather than a web app. Use [Agentic UI toolkit](https://developers.google.com/maps/ai/agentic-ui-toolkit/quick-reference-android.md.txt) instead.
- You're building a native iOS app rather than a web app. Use [Agentic UI toolkit](https://developers.google.com/maps/ai/agentic-ui-toolkit/quick-reference-ios.md.txt) instead.

## Agentic UI toolkit: setup

- **Authentication:** API key
- **Also enable:** [Maps JavaScript API](https://developers.google.com/maps/documentation/javascript/quick-reference.md.txt), [Geocoding API](https://developers.google.com/maps/documentation/geocoding/quick-reference.md.txt), [Routes API](https://developers.google.com/maps/documentation/routes/quick-reference.md.txt)
- **Get started:** [Set up Agentic UI toolkit](https://developers.google.com/maps/ai/agentic-ui-toolkit/getting_started.md.txt)
- **Policies:** [Agentic UI toolkit policies](https://developers.google.com/maps/ai/agentic-ui-toolkit.md.txt#policies_and_terms_of_service)

## Agentic UI toolkit: related products

- **Often used with:** [Maps JavaScript API](https://developers.google.com/maps/documentation/javascript/quick-reference.md.txt), [Routes API](https://developers.google.com/maps/documentation/routes/quick-reference.md.txt), [Geocoding API](https://developers.google.com/maps/documentation/geocoding/quick-reference.md.txt), [Maps Experience agent tools](https://developers.google.com/maps/ai/maps-experience-agent-tools/quick-reference.md.txt)

## Agentic UI toolkit: common mistakes

- **Problem:** The toolkit needs both a Gemini API key and a Google Maps Platform API key. The Maps key must have Geocoding API, Maps JavaScript API, Places UI Kit (`placewidgets.googleapis.com`), and Routes API enabled. The Maps Experience agent tools MCP server (formerly Grounding Lite MCP) also needs `mapstools.googleapis.com` enabled. **Fix:** Get a Gemini key from Google AI Studio, and enable all the required APIs on the Maps Platform key in the Cloud Console. See [/maps/ai/agentic-ui-toolkit/getting_started](https://developers.google.com/maps/ai/agentic-ui-toolkit/getting_started.md.txt).
- **Problem:** Each tool response includes Google Maps sources. Results shown without those sources don't meet the attribution requirements. **Fix:** Show the Google Maps sources right after the generated content they support, and make them viewable within one user interaction. See [/maps/ai/agentic-ui-toolkit](https://developers.google.com/maps/ai/agentic-ui-toolkit.md.txt).
- **Problem:** The toolkit is free while it's experimental, but it can call other Google Maps Platform services that are billed. Maps Experience agent tools (formerly Maps Grounding Lite) and Grounding with Google Maps also have their own terms. **Fix:** Plan for billing on the underlying Maps APIs, and meet the extra terms for the grounding services you use. See [/maps/ai/agentic-ui-toolkit](https://developers.google.com/maps/ai/agentic-ui-toolkit.md.txt).

## What you can do with Agentic UI toolkit

See the guides linked below for each task, or compare across products in the
[Capabilities Explorer](https://developers.google.com/maps/documentation/capabilities-explorer.md.txt).

- [Display place details optimized for AI agent responses.](https://developers.google.com/maps/ai/agentic-ui-toolkit.md.txt#ui_outcomes) Experimental **Note:** Part of Maps Agentic UI toolkit. Configure initialization steps, credentials, and package installations during core setup.
- [Embed an interactive map optimized for AI agent responses.](https://developers.google.com/maps/ai/agentic-ui-toolkit.md.txt#ui_outcomes) Experimental **Note:** Part of Maps Agentic UI toolkit. Configure initialization steps, credentials, and package installations during core setup.
- [Display a route on a map optimized for AI agent responses.](https://developers.google.com/maps/ai/agentic-ui-toolkit.md.txt#ui_outcomes) Experimental **Note:** Part of Maps Agentic UI toolkit. Configure initialization steps, credentials, and package installations during core setup.
- [Show rich visual location details optimized for AI agent responses.](https://developers.google.com/maps/ai/agentic-ui-toolkit.md.txt#ui_outcomes) Experimental **Note:** Part of Maps Agentic UI toolkit. Configure initialization steps, credentials, and package installations during core setup.