Back to all examples
Map Chat Agent
Ask a chat beside the map for places, routes or traffic, and watch the map search, draw and frame the answer
Ask the panel beside the map for coffee shops, a route or a traffic read on an area, and the map searches, draws and frames the answer.
createMapAgentbinds a language model to this map and the TomTom services, and the tools, schemas and system prompt come with it.toolsadds oneToolEntryof the app’s own beside the built-ins, andcreateClarifyIntentToolasks for a missing detail through a form.agent.state.trafficAreaAnalyticsexposes what the agent drew as typed entries with ashown-changeevent for the panel to bind to.
Related examples
Map Chat Agent State Playground
A map chat whose every result lands in a side panel, where you can show, hide or drop it yourself
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Bring Your Own Data
Plugins
Web
React
Site Selection Agent
A site selection agent on the TomTom Maps SDK Agent Toolkit: hand-picked default tools, custom analysis tools, its own persona and state slice
Playground
AI
Search and Geocoding
Places and POIs
Routing
Traffic
Map Style
Base Map
Plugins
Web
React
Live Traffic Agent
AI traffic-manager assistant: monitor incidents, cluster hotspots, and analyse network state
Playground
AI
Search and Geocoding
Map Style
Base Map
Geometry
Traffic
Routing
Plugins
Web
React
Reachable ranges playground
Style drive-time bands from two stations, and theme the map they take their colours from
Playground
Routing
Geometry
Map Style
Plugins
Web