Library / AI Agents & Assistants
AI Agents & Assistants
Manage Transport Orders from Gmail with GPT-4o and Route Planning
When a transportation request email arrives, OpenAI extracts the addresses, OpenRouteService finds pickup coordinates and distances, and the order is recorded in Google Sheets.
What it does
### 3. Record Shipment Request Information and fetch distance and driving time using Open Route API This starts by recording all the information parsed by the AI node. Then, we use the Open Route API to complete with geocoding data *(GPS Coordinates)* that will be used to fetch driving distance and time. #### How to setup? - Setup API Credentials 1. Get your free API key: Open Route API Documentation 2. Fill the API key in the HTTP request node 3. Select the driving mode (driving-car: individual truck) or (driving-hgv: commercial truck) - Load records in the Google Sheet Node: 1. Add your Google Sheet API credentials to access the Google Sheet file 2. Select the file using the list, an URL or an ID 3. Select the sheet in which you want to record your working sessions 4. Map the fields: shipment_number, pickup_location, pickup_address, pickup_longitude, pickup_latitude, expected_pickup_time, temperature_control, destination_store_name, destination_address, destination_longitude, destination_latitude, expected_delivery_time, driving_distance, driving_time Learn more about the Google Sheet Node Longitudes, latitudes, distance and time will be fetched from the Open Route API.
The steps
- Gmail Trigger
- Structured Output Parser
- AI Agent Parser
- Record Email Content
- Collect Addresses
- 5 sec
- Query Open Route API Pickup
- Save Pickup GPS
- GPS Pickup
- Query Open Route API Delivery
- GPS Delivery
- Save Delivery GPS
- Collect Coordinates
- Request Open Route API
21 steps in total.
Similar automations
AI Agents & AssistantsVacation Planning Agent with OpenAI and Hotel Search5 stepsE-commerce & PaymentsSend Shopify Orders to Business Central Sales Orders31 stepsE-commerce & PaymentsSync Shopify Orders to Business Central Sales Orders131 stepsRAG & Knowledge BasesTravel Planning Agent with Couchbase, Gemini 2.0 and OpenAI11 steps