Agentic UI toolkit (JavaScript) quick reference

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

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 instead.
  • You're building a native Android app rather than a web app. Use Agentic UI toolkit instead.
  • You're building a native iOS app rather than a web app. Use Agentic UI toolkit instead.

Agentic UI toolkit: setup

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.
  • 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.
  • 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.

What you can do with Agentic UI toolkit

See the guides linked below for each task, or compare across products in the Capabilities Explorer.