Send a ChatGPT Email Reply and Save Responses to Google Sheets
This workflow sends an OpenAI GP reply when an email is received from specific email recipients. It then saves the initial email and the GP response to an automatically generated Google spreadsheet. Subsequent GP responses will be added to the same spreadsheet. Additionally, when feedback is given for any of the GP responses, it will be recorded to the spreadsheet, which can then be used later to fine-tune the GP model. ## Prerequisites - [OpenAI credentials](https://docs.n8n.io/integrations/builtin/credentials/openai/) - [Google credentials](https://docs.n8n.io/integrations/builtin/credentials/google/) ## How it works This workflow is essentially a two-in-one workflow. It triggers off from two different nodes and has very different functionality from each trigger. The flow triggered from the `On email received` node is as follows: 1. Triggers off on the `On email received` node. 2. Extract the email body from the email. 3. Generate a response from the email body using the `OpenAI` node. 4. Reply to the email sender using the `Send reply to recipient` node. A feedback link is also included in the email body which will trigger the `On feedback given` node. This is used to fine-tune the GP model. 5. Save the email body and OpenAI response to a Google Sheet. If a sheet does not exist, it will be created. The flow triggered from the `On feedback given` node is as follows: 1. Triggers off when a feedback link is clicked in the emailed GP response. 2. The feedback, either positive or negative, for that specific GP response is then recorded to the Google Sheet.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
Customer Support Automation Suite
8 hand-picked workflows for $39.00.
That is $4.88 each, vs $24.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Communication workflows
- Automate Intelligent Email Classification with AI in Gmail$4.99
- Automate Outbound Calls with Ultravox AI and Twilio$4.99
- Generate AI videos and carousels with Blotato for Instagram and TikTok$9.99
- Automating WhatsApp Replies Using GoHighLevel with Redis and Anthropic$24.99
- Automate Gmail Email Labeling with AI for Enhanced Organization$14.99
- Automate Email Summarization and Logging with AI and Google Sheets$9.99
More from Michael Green
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.