Get travel time
well_get_travel_timeGet how long one trip takes and how far it is, from Google Maps: "the drive to the 10:00 meeting", "le trajet jusqu'au match de samedi". Call it for each event that has a location when the person asks for the travel time: once per event and way of travel you compare. Pass destination: the event's location copied as the event or the mail states it. Pass origin: the start address the person gave; else, for a trip of the person to one of their events, the place of their meeting that ends at most 60 minutes before when a walk from it is under 10 minutes, else their saved home or that day's office from memory; never an address you complete. Leave it out only when no start is known: the trip then starts from the workspace's own address. Leave mode out for a car trip. A person with no pinned way of travel gets one call per way, walk first, stopping at the first that fits the scale of the skill in use; a pinned way gets its own call and, when it is not walk, one walk call. A walk or bicycle answer says the route is in beta and can miss sidewalks or bike paths. Pass departure_at when the time the person leaves is known, so a car trip reads traffic. An event with no location gets no call: say its travel time is unknown. The tool runs at most 12 times per turn.
For the walking time from a location the person shared in this conversation to a place that well_search_places returned: pass origin_latitude and origin_longitude exactly as the shared location states them, destination_place_id as the place's place_id, and mode "walk". A place with no place_id gets no call. Never pass an address and a point together, and never a destination and a place id together.
Returns status "found" with duration_minutes, mode and origin_kind, with distance_km and origin unless the trip starts at a shared location ("shared_point"), or "no_route" when Google Maps found no route. Give the duration as the tool returns it, say it comes from Google Maps, and when origin_kind is "workspace_address" say the trip starts from the workspace's address. Never estimate, compute or recall a travel time or a distance the tool did not return. On a failure, error_reason is one of "origin_required" (no start was given and the workspace has no address on file: ask the person where they leave from), "call_limit_reached" (this turn already asked enough trips), "daily_limit_reached" (the person or the workspace reached today's limit), "location_invalid" (the call gave no end, two ends, two starts or half a point: nothing was counted) or "travel_time_unavailable" (the travel time cannot be read now). Then say in the person's language that the travel time is not available and why, and give no figure.
When the token authorizes one workspace, call this directly — no workspace call is needed first. When it authorizes several, this read will not guess which one you mean: pass workspace_id on the call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How the person travels. Leave it out for "car" unless the person named another way. | |
| origin | No | Where the trip starts, only when it is known: the location of the person's previous event that day, or an address the person gave. Leave it out to start from the workspace's own address. Never give it with origin_latitude and origin_longitude. | |
| destination | No | Where the trip ends: the location of the event as the event or the mail states it, or an address the person gave. Copy it; never invent or complete an address. Give it or destination_place_id, never both. | |
| departure_at | No | When the person leaves, ISO 8601 with an offset. A car trip then reads traffic at that time. | |
| workspace_id | No | Target workspace. Omit when the token authorizes one workspace. Required when it authorizes several: this read reports one workspace's own figures and will not choose which. | |
| conversation_id | No | The conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation. | |
| origin_latitude | No | The latitude of a location the person shared in this conversation, in decimal degrees exactly as given, when the trip starts there. Give it with origin_longitude, and without origin. | |
| workspace_scope | No | Restrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace. | |
| origin_longitude | No | The longitude of a location the person shared in this conversation, in decimal degrees exactly as given, when the trip starts there. Give it with origin_latitude, and without origin. | |
| destination_place_id | No | Where the trip ends, as the `place_id` of a place that well_search_places returned. Copy it as returned. Give it or destination, never both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| origin | No | ||
| source | No | ||
| status | No | ||
| success | Yes | ||
| distance_km | No | ||
| origin_kind | No | ||
| error_reason | No | ||
| conversation_id | No | The conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation. | |
| newly_connected | No | Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later. | |
| duration_minutes | No | ||
| resolved_workspace | No | The workspace that answered, when the caller named none and the token authorizes several. | |
| conversation_id_note | No | Present only when the server opened a fresh lane, stating that no choice recorded earlier was read. | |
| conversation_id_source | No | Where the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened. |