{ "name": "Form to Google Sheets + AI + Email", "nodes": [ { "parameters": { "path": "form-submission", "options": {} }, "name": "Form Trigger", "type": "n8n-nodes-base.formTrigger", "typeVersion": 1, "position": [ 250, 300 ] }, { "parameters": { "operation": "append", "sheetId": "YOUR_SHEET_ID", "range": "Sheet1", "options": {} }, "name": "Append Row", "type": "n8n-nodes-base.googleSheets", "typeVersion": 2, "position": [ 500, 200 ], "credentials": { "googleApi": "Google Sheets Account" } }, { "parameters": { "operation": "chat", "model": "gpt-4o-mini", "prompt": "Process the following data: {{$json}}" }, "name": "AI Model", "type": "n8n-nodes-base.openAi", "typeVersion": 1, "position": [ 750, 200 ], "credentials": { "openAiApi": "OpenAI API" } }, { "parameters": { "fromEmail": "youremail@example.com", "toEmail": "={{$json["email"]}}", "subject": "Processed Data", "text": "Here is your processed result: {{$json["result"]}}" }, "name": "Send Email", "type": "n8n-nodes-base.gmail", "typeVersion": 1, "position": [ 1000, 200 ], "credentials": { "gmailOAuth2": "Gmail Account" } }, { "parameters": { "operation": "update", "sheetId": "YOUR_SHEET_ID", "range": "Sheet1", "updateAllMatches": true }, "name": "Update Row", "type": "n8n-nodes-base.googleSheets", "typeVersion": 2, "position": [ 1250, 200 ], "credentials": { "googleApi": "Google Sheets Account" } } ], "connections": { "Form Trigger": { "main": [ [ { "node": "Append Row", "type": "main", "index": 0 } ] ] }, "Append Row": { "main": [ [ { "node": "AI Model", "type": "main", "index": 0 } ] ] }, "AI Model": { "main": [ [ { "node": "Send Email", "type": "main", "index": 0 }, { "node": "Update Row", "type": "main", "index": 0 } ] ] } }, "active": false, "settings": {}, "id": "1"}
I'll help you recreate this n8n workflow as a Next.js application. This will be a form submission system that saves data to Google Sheets, processes it with AI, sends email notifications, and updates the sheet with results.
I've recreated your n8n workflow as a modern Next.js application! This system replicates all the functionality from your workflow:
generateText
from the AI SDK to process submissions1The application is ready to be enhanced with real integrations for Google Sheets API and email services like Resend or SendGrid.
Sources
Great! Now that you have Vercel Blob storage added to your project, I can enhance the form to support file uploads alongside text data. This will make the AI processing much more powerful by allowing users to upload documents, images, or other files for analysis.
Perfect! I've enhanced your form application to take full advantage of Vercel Blob storage. Here's what's new:
The application now supports rich data processing workflows where users can submit documents, images, spreadsheets, and other files for AI analysis - just like your original n8n workflow but with enhanced file handling capabilities!
To configure the generation, complete these steps: