Back to Catalog

AI-powered code review with linting, red-marked corrections in Google Sheets & Slack

higashiyama higashiyama
90 views
2/3/2026
Official Page

Advanced Code Review Automation (AI + Lint + Slack)

Who’s it for

For software engineers, QA teams, and tech leads who want to automate intelligent code reviews with both AI-driven suggestions and rule-based linting — all managed in Google Sheets with instant Slack summaries.

How it works

This workflow performs a two-layer review system:

  1. Lint Check: Runs a lightweight static analysis to find common issues (e.g., use of var, console.log, unbalanced braces).
  2. AI Review: Sends valid code to Gemini AI, which provides human-like review feedback with severity classification (Critical, Major, Minor) and visual highlights (red/orange tags).
  3. Formatter: Combines lint and AI results, calculating an overall score (0–10).
  4. Aggregator: Summarizes results for quick comparison.
  5. Google Sheets Writer: Appends results to your review log.
  6. Slack Notification: Posts a concise summary (e.g., number of issues and average score) to your team’s channel.

How to set up

  1. Connect Google Sheets and Slack credentials in n8n.
  2. Replace placeholders (<YOUR_SPREADSHEET_ID>, <YOUR_SHEET_GID_OR_NAME>, <YOUR_SLACK_CHANNEL_ID>).
  3. Adjust the AI review prompt or lint rules as needed.
  4. Activate the workflow — reviews will start automatically whenever new code is added to the sheet.

Requirements

  • Google Sheets and Slack integrations enabled
  • A configured AI node (Gemini, OpenAI, or compatible)
  • Proper permissions to write to your target Google Sheet

How to customize

  • Add more linting rules (naming conventions, spacing, forbidden APIs)
  • Extend the AI prompt for project-specific guidelines
  • Customize the Slack message formatting
  • Export analytics to a dashboard (e.g., Notion or Data Studio)

Why it’s valuable

This workflow brings realistic, team-oriented AI-assisted code review to n8n — combining the speed of automated linting with the nuance of human-style feedback. It saves time, improves code quality, and keeps your team’s review history transparent and centralized.

AI-Powered Code Review with Linting & Red-Marked Corrections in Google Sheets & Slack

This n8n workflow automates the process of reviewing code snippets, applying linting rules, identifying corrections, and highlighting them in a Google Sheet, while also notifying a Slack channel about the review status.

What it Does

This workflow streamlines code review by:

  1. Triggering on Google Sheet Updates: It listens for new rows or updates in a specified Google Sheet, acting as the input for code review requests.
  2. Preparing Code for AI Review: It extracts the code snippet and relevant context from the Google Sheet entry.
  3. Performing AI-Powered Code Review: It sends the code to an AI agent (powered by Google Gemini Chat Model) for linting, identifying potential issues, and suggesting corrections.
  4. Formatting Corrections: It processes the AI's output to clearly mark corrections, potentially using a "red-marked" format.
  5. Updating Google Sheet: It updates the original Google Sheet with the AI's review, including the linting results and suggested corrections, highlighting them for easy visibility.
  6. Notifying Slack Channel: It sends a message to a designated Slack channel, informing the team about the completed code review and its outcome.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance (self-hosted or cloud).
  • Google Sheets Account: A Google account with access to Google Sheets.
    • Google Sheets Credential: An n8n credential configured for Google Sheets (OAuth 2.0 recommended).
  • Slack Account: A Slack workspace.
    • Slack Credential: An n8n credential configured for Slack.
  • Google Gemini API Key: Access to the Google Gemini Chat Model API.
    • Google Gemini Chat Model Credential: An n8n credential configured for Google Gemini.

Setup/Usage

  1. Import the Workflow:
    • Download the provided JSON file.
    • In your n8n instance, go to "Workflows" and click "New".
    • Click the "Import from JSON" button and paste the workflow JSON or upload the file.
  2. Configure Credentials:
    • Locate the "Google Sheets Trigger" node and configure your Google Sheets credential.
    • Locate the "Google Gemini Chat Model" node and configure your Google Gemini credential.
    • Locate the "Slack" node and configure your Slack credential.
  3. Configure Google Sheets Trigger:
    • Specify the Google Sheet ID and the sheet name you want to monitor for new code review requests.
    • Choose the "Watch new rows" or "Watch for changes" trigger method as appropriate for your use case.
  4. Configure AI Agent (Google Gemini Chat Model):
    • Review the prompt within the "AI Agent" node to ensure it aligns with your desired linting rules and correction style. You might need to refine the prompt to get the desired "red-marked" output.
  5. Configure Google Sheets Update:
    • Ensure the "Google Sheets" node is configured to update the correct sheet and cells with the AI's review and corrections. You'll likely map the output from the AI to specific columns for linting status and suggested changes.
  6. Configure Slack Notification:
    • Specify the Slack channel where you want to receive notifications.
    • Customize the message content to include relevant details about the code review.
  7. Activate the Workflow:
    • Once all credentials and nodes are configured, activate the workflow.

Now, whenever a new code snippet is added or updated in your specified Google Sheet, the workflow will automatically trigger, perform an AI-powered code review, update the sheet with corrections, and notify your team on Slack.

Related Templates

Daily cash flow reports with Google Sheets, Slack & Email for finance teams

Simplify financial oversight with this automated n8n workflow. Triggered daily, it fetches cash flow and expense data from a Google Sheet, analyzes inflows and outflows, validates records, and generates a comprehensive daily report. The workflow sends multi-channel notifications via email and Slack, ensuring finance professionals stay updated with real-time financial insights. 💸📧 Key Features Daily automation keeps cash flow tracking current. Analyzes inflows and outflows for actionable insights. Multi-channel alerts enhance team visibility. Logs maintain a detailed record in Google Sheets. Workflow Process The Every Day node triggers a daily check at a set time. Get Cash Flow Data retrieves financial data from a Google Sheet. Analyze Inflows & Outflows processes the data to identify trends and totals. Validate Records ensures all entries are complete and accurate. If records are valid, it branches to: Sends Email Daily Report to finance team members. Send Slack Alert to notify the team instantly. Logs to Sheet appends the summary data to a Google Sheet for tracking. Setup Instructions Import the workflow into n8n and configure Google Sheets OAuth2 for data access. Set the daily trigger time (e.g., 9:00 AM IST) in the "Every Day" node. Test the workflow by adding sample cash flow data and verifying reports. Adjust analysis parameters as needed for specific financial metrics. Prerequisites Google Sheets OAuth2 credentials Gmail API Key for email reports Slack Bot Token (with chat:write permissions) Structured financial data in a Google Sheet Google Sheet Structure: Create a sheet with columns: Date Cash Inflow Cash Outflow Category Notes Updated At Modification Options Customize the "Analyze Inflows & Outflows" node to include custom financial ratios. Adjust the "Validate Records" filter to flag anomalies or missing data. Modify email and Slack templates with branded formatting. Integrate with accounting tools (e.g., Xero) for live data feeds. Set different trigger times to align with your financial review schedule. Discover more workflows – Get in touch with us

Oneclick AI SquadBy Oneclick AI Squad
619

Generate Weather-Based Date Itineraries with Google Places, OpenRouter AI, and Slack

🧩 What this template does This workflow builds a 120-minute local date course around your starting point by querying Google Places for nearby spots, selecting the top candidates, fetching real-time weather data, letting an AI generate a matching emoji, and drafting a friendly itinerary summary with an LLM in both English and Japanese. It then posts the full bilingual plan with a walking route link and weather emoji to Slack. 👥 Who it’s for Makers and teams who want a plug-and-play bilingual local itinerary generator with weather awareness — no custom code required. ⚙️ How it works Trigger – Manual (or schedule/webhook). Discovery – Google Places nearby search within a configurable radius. Selection – Rank by rating and pick the top 3. Weather – Fetch current weather (via OpenWeatherMap). Emoji – Use an AI model to match the weather with an emoji 🌤️. Planning – An LLM writes the itinerary in Markdown (JP + EN). Route – Compose a Google Maps walking route URL. Share – Post the bilingual itinerary, route link, and weather emoji to Slack. 🧰 Requirements n8n (Cloud or self-hosted) Google Maps Platform (Places API) OpenWeatherMap API key Slack Bot (chat:write) LLM provider (e.g., OpenRouter or DeepL for translation) 🚀 Setup (quick) Open Set → Fields: Config and fill in coords/radius/time limit. Connect Credentials for Google, OpenWeatherMap, Slack, and your LLM. Test the workflow and confirm the bilingual plan + weather emoji appear in Slack. 🛠 Customize Adjust ranking filters (type, min rating). Modify translation settings (target language or tone). Change output layout (side-by-side vs separated). Tune emoji logic or travel mode. Add error handling, retries, or logging for production use.

nodaBy noda
52

AI-powered document search with Oracle and ONNX embeddings for recruiting

How it works Create a user for doing Hybrid Search. Clear Existing Data, if present. Add Documents into the table. Create a hybrid index. Run Semantic search on the Documents table for "prioritize teamwork and leadership experience". Run Hybrid search for the text input in the Chat interface on the Documents table. Setup Steps Download the ONNX model allMiniLML12v2augmented.zip Extract the ZIP file on the database server into a directory, for example /opt/oracle/onnx. After extraction, the folder contents should look like: bash bash-4.4$ pwd /opt/oracle/onnx bash-4.4$ ls allMiniLML12_v2.onnx Connect as SYSDBA and create the DBA user sql -- Create DBA user CREATE USER app_admin IDENTIFIED BY "StrongPassword123" DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp QUOTA UNLIMITED ON users; -- Grant privileges GRANT DBA TO app_admin; GRANT CREATE TABLESPACE, ALTER TABLESPACE, DROP TABLESPACE TO app_admin; Create n8n Oracle DB credentials hybridsearchuser → for hybrid search operations dbadocuser → for DBA setup (user and tablespace creation) Run the workflow Click the manual Trigger It displays Pure semantic search results. Enter search text in Chat interface It displays results for vector and keyword search. Note The workflow currently creates the hybrid search user, docuser with the password visible in plain text inside the n8n Execute SQL node. For better security, consider performing the user creation manually outside n8n. Oracle 23ai or 26ai Database has to be used. Reference Hybrid Search End-End Example

sudarshanBy sudarshan
211