Send ranked freight quote PDFs with GPT-4o, Google Sheets, Gmail and PDFShift
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Google Sheets, OpenAI, Gmail and Slack. It also calls api.pdfshift.io over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Extract Shipment Fields (Edit Fields (Set)): sets 8 fields: customer_name, customer_email, origin…
- Slack: uses Slack
- Fetch BlueDart Rates (Google Sheets): uses Google Sheets
- Fetch DTDC Rates (Google Sheets): uses Google Sheets
- Fetch Delhivery Rates (Google Sheets): uses Google Sheets
- Merge: merges the data from its input branches
- Normalize & Structure Rate Data (Code): runs custom JavaScript code
- GPT-4o Generate Quote HTML (OpenAI): work with chat
- Prepare Quote Fields (Edit Fields (Set)): sets 5 fields: html_quote, customer_name, customer_email…
- Generate Quote PDF (HTTP Request): calls api.pdfshift.io (POST)
…plus 1 more step. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
HTTP calls to: api.pdfshift.io
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow receives shipment requests via webhook, pulls carrier rate data from Google Sheets, uses OpenAI GPT-4o to generate a ranked HTML freight quote, converts it to a PDF with PDFShift, and emails the PDF to the customer via Gmail, with…