The Maps Platform Agentic UI toolkit provides LLM system instructions and a library of UI components, such as place cards, inline maps, and route previews, that LLMs and AI agents use to render interactive geospatial responses. Its components are available for web, Android, and iOS.
Agentic UI toolkit: key facts
- Product: Agentic UI toolkit
- Also known as: Maps Agentic UI toolkit, Maps Platform Agentic UI toolkit
- Category: Places
- Platform: Android
- Runs on: Client (app or browser code)
- Launch stage: Experimental
- Lifecycle: Active
- Overview: Agentic UI toolkit overview
Agentic UI toolkit: when to use it
Use Agentic UI toolkit when:
- You need an AI assistant or chat agent to show place details, inline maps, or route previews alongside text responses in an Android app.
- You need to turn intent-based instructions from an LLM into map and place UI instead of hard-coding visual elements.
- You need a presentation layer for location data that works with Gemini, OpenAI, or Anthropic models.
- You're building a travel planner that shows maps, routes, and place details inline in a conversation.
Don't use Agentic UI toolkit when:
- You're building the agent UI for a web app (JavaScript/TypeScript) instead of Android. Use Agentic UI toolkit instead.
- You're building the agent UI for an iOS app instead of Android. Use Agentic UI toolkit instead.
Agentic UI toolkit: setup
- Authentication: API key
- Also enable: Geocoding API, Maps JavaScript API, Routes API
- Get started: Set up Agentic UI toolkit
- Policies: Agentic UI toolkit policies
Agentic UI toolkit: related products
- Often used with: Maps JavaScript API, Routes API, Geocoding API, Maps Experience agent tools
Agentic UI toolkit: common mistakes
- Problem: The toolkit needs two keys: 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 (plus Maps Experience agent tools,mapstools.googleapis.com, to use its MCP server). Fix: Create a Gemini key in Google AI Studio, and enable all listed APIs on the Maps Platform key in the Cloud Console. See /maps/ai/agentic-ui-toolkit/getting_started. - Problem: Each tool response includes Google Maps sources; omitting or hiding them violates the attribution requirements. Fix: Show the Google Maps sources immediately after the generated content they support, viewable within one user interaction. See /maps/ai/agentic-ui-toolkit.
- Problem: The library is open source and isn't a Google Maps Platform Core Service, so Technical Support Services, SLAs, and the Deprecation Policy don't apply to its code. As an Experimental (pre-GA) product, it might have limited support, and changes might not be compatible with other pre-GA versions. Fix: Plan for breaking changes and limited support; underlying Maps Platform services still follow the Maps Platform Terms of Service and might incur charges. See /maps/ai/agentic-ui-toolkit.
What you can do with Agentic UI toolkit
See the guides linked below for each task, or compare across products in the Capabilities Explorer.
- Display place details optimized for AI agent responses. 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. 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. 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. Experimental Note: Part of Maps Agentic UI toolkit. Configure initialization steps, credentials, and package installations during core setup.