AgentsSkills

google_maps

View as MarkdownOpen in Claude

Validate addresses and compute driving routes using Google Maps. Handles spoken number normalization (e.g., “seven one four” becomes “714”) and location-biased search.

Tools: lookup_address, compute_route

Requirements: Google Maps API key with Geocoding and Routes APIs enabled

api_key
strRequired

Google Maps API key.

lookup_tool_name
strDefaults to lookup_address

Custom name for the address lookup function.

route_tool_name
strDefaults to compute_route

Custom name for the route computation function.

1from signalwire import AgentBase
2
3class MyAgent(AgentBase):
4 def __init__(self):
5 super().__init__(name="assistant", route="/assistant")
6 self.set_prompt_text("You are a helpful assistant.")
7 self.add_skill("google_maps", {"api_key": "YOUR_GOOGLE_MAPS_API_KEY"})
8
9agent = MyAgent()
10agent.serve()