n8n Workflow for Small Business With Local Review Replies
Overview & Architecture
Answering every customer review takes time, and a rushed reply to an angry review can make things worse. This blueprint drafts the replies for you without letting anything go out on its own. A review is sent to an n8n webhook, rules you keep in a Google Sheet flag low ratings and complaint words, and a local Ollama model labels the review and writes a reply in your brand voice.
Routine reviews come back as ready-to-copy drafts. Complaints, low ratings and anything the checks don’t trust are marked for approval. Every review is logged to the sheet, and nothing is posted to a review site automatically.
The Pipeline
- Setup Workflow (run once): Creates a Google Sheet with a Business Rules tab (seeded with example settings), a Reviews log and an Approval Queue tab that uses a
QUERYformula to list reviews waiting for approval. - New Review Webhook: Receives
{ platform, review_id, reviewer, rating, review_text }as a POST. - Load Rules and Validate: A Google Sheets node reads the rules and a Code node checks the payload (whole-number rating 1 to 5, a review ID). It flags ratings at or below
approval_rating_maxand any complaint keywords. Bad payloads get an HTTP 400 with the reasons. - Ollama: Classify Review:
gemma4:12b-it-qatreturns JSON with sentiment, topic, a complaint flag, a one-line summary and the key customer wording. A Code node forces the labels into your allowed lists and falls back safely if the JSON is unusable. - Ollama: Draft Reply: Writes the public owner reply in your brand voice. Complaints end with your contact line, and the prompt forbids refunds, discounts, freebies and admitting fault.
- Approval Rules Check: Combines rule flags with model flags, banned phrases found in the draft and empty drafts, then marks the review Needs Approval or Draft - Routine.
- Save and Respond: Appends the review, labels, draft, status and reasons to the Reviews tab, and the webhook returns the draft as JSON.
What You Need
- n8n (tested on version 2.45.5) with the Webhook, Google Sheets, Code, If, Set, HTTP Request, Respond to Webhook and Ollama nodes
- A local Ollama server with a text model such as
gemma4:12b-it-qat - A Google Sheets OAuth2 credential in n8n
- A way to send reviews to the webhook (curl for testing; connecting a real review source is up to you)
Key Deployment Hurdles & Solutions
- Expired Google Credentials: The setup workflow failed twice with “The credential needs to be reconnected” for the Google Sheets and Google Drive accounts. Reconnecting the credentials in n8n fixed it, and setup then created the sheet in one run.
- Pointing the Workflow at the New Sheet: The main workflow was first tested with pinned rule data. Once setup had created the spreadsheet, both Google Sheets nodes were switched to it. In the download they say
YOUR_SPREADSHEET_IDuntil you set your own. - Slow First Run: The first test after the model had been idle took about 90 seconds while Ollama loaded it. Warm runs finished in about 5 to 7 seconds. The webhook waits for the whole run, so give callers a long enough timeout.
- Keeping Replies Safe: Low ratings and complaints always go to approval. Drafts are also checked for banned phrases like “refund” and “discount” before they can count as routine. The keyword checks are simple substring matches, so they lean toward flagging too much rather than too little.
- Tested Paths: A 2-star “waited 25 minutes” review was marked Needs Approval with four reasons, and a 5-star review came back as a routine draft. The bad-payload (HTTP 400) branch is built but was not run in testing.
Download the Workflow (.json)
Two import-ready n8n workflows: the 15-node review replies workflow and the 4-node run-once sheet setup. In n8n choose Import from file for each and select your own Google Sheets and Ollama credentials. Run the setup workflow first, then put the new spreadsheet ID on both Google Sheets nodes in the main workflow.
Download the review replies workflow (.json)
Download the sheet setup workflow (.json)
Download the Companion System Prompt (.md)
Enter your first name to personalize the review-replies assistant prompt so your AI helper can walk you through Ollama, Google Sheets and webhook setup step by step. Add your email optionally to get notified when new home lab blueprints drop.