🤖 AI-powered prompt enhancement assistant using Google Sheets
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 17 nodes and runs on Google Sheets events. Along the way it connects Groq Chat Model, Google Gemini Chat Model, Telegram and Google Sheets.
How it runs
Trigger: On Google Sheets events.
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Send Success Message To User (Telegram): uses Telegram
- ExecutionController (Code): runs custom JavaScript code
- PrepareForFirstGen - OPM (Edit Fields (Set)): sets 3 fields: chatInput, sessionId, systemMessage
- PromptModifer (AI Agent): runs an AI agent, with model: Qwen3 - PM, Gemini - PM; memory: ChatHistory - PM
- Parse AI Chat (Code): runs custom JavaScript code
- Switch: routes items into 3 branches
- Finalize ModifiedPrompt DataModel (Edit Fields (Set)): sets 9 fields: Original Prompt ID, isProcessed, Prompt Title…
- Send Exceed Limits Error (Telegram): uses Telegram
- Create/Upate Modified Prompt (Google Sheets): append or update
Services it uses
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 (12)
- Edit Fields (Set)
n8n-nodes-base.set - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - Telegram
n8n-nodes-base.telegram - Switch
n8n-nodes-base.switch - Google Sheets Trigger
n8n-nodes-base.googleSheetsTrigger - No Operation, do nothing
n8n-nodes-base.noOp - Google Sheets
n8n-nodes-base.googleSheets
From the author
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Introduction Tired of spending time crafting the perfect AI prompt? This workflow takes your simple ideas like "write a blog post" and automatically…