2 templates found
Category:
Author:
Sort:

Automate code reviews for GitLab MRs with Gemini AI and JIRA context

What it does Automates code review by listening for a comment trigger on GitLab merge requests, summarising the diff, and using an LLM to post constructive, line‑specific feedback. If a JIRA ticket ID is found in the MR description, the ticket’s summary is used to inform the AI review. Use cases Quickly obtain high‑quality feedback on MRs without waiting for peers. Highlight logic, security or performance issues that might slip through cursory reviews. Incorporate project context by pulling in related JIRA ticket summaries. Good to know Triggered by commenting ai-review on a merge request. The LLM returns only high‑value findings; if nothing critical is detected, the workflow posts an “all clear” message. You can swap out the LLM (Gemini, OpenAI, etc.) or adjust the prompt to fit your team’s guidelines. AI usage may incur costs or be geo‑restricted depending on your provider n8n.io. How it works Webhook listener: A Webhook node captures GitLab note events and filters for the trigger phrase. Fetch & parse: The workflow retrieves MR details and diffs, splitting each change into “original” and “new” code blocks. Optional JIRA context: If your MR description includes a JIRA key (e.g., PROJ-123), the workflow fetches the ticket (and parent ticket for subtasks) and composes a brief context summary. LLM review: The parsed diff and optional context are sent to an LLM with instructions to identify logic, security or performance issues and suggest improvements. Post results: Inline comments are posted back to the MR at the appropriate file/line positions; if no issues are found, a single “all clear” note is posted. How to use Import the template JSON and open the Webhook node. Replace the REPLACEWITHUNIQUE_PATH placeholder with your desired path and configure a GitLab project webhook to send MR comments to that URL. Select your LLM credentials in the Gemini (or other LLM) node, and optionally add JIRA credentials in the JIRA nodes. Activate the workflow and comment ai-review on any merge request to test it. For each review, the workflow posts status updates (“AI review initiated…”) and final comments. Requirements A GitLab project with a generate Personal Access Token (PAT) stored as an environment variable (GITLAB_TOKEN). LLM credentials (e.g., Google Gemini) and optional JIRA credentials. Customising this workflow Change the trigger phrase in the Trigger Phrase Filter node. Modify the LLM prompt to focus on different aspects (e.g., style, documentation). Filter out certain file types or directories before sending diffs to the LLM. Integrate other services (Slack, email) to notify teams when reviews are complete.

Evgeny AgronskyBy Evgeny Agronsky
957

Auto-tag high-value sales orders in Zoho CRM with VIP alert

Description: Automatically detect and flag high-value sales orders as VIP in Zoho CRM using this intelligent n8n workflow. Ideal for eCommerce platforms, sales automation tools, or ERP systems, this automation template listens to incoming order data via webhook, checks if the sales order amount exceeds a set threshold (₹10,000 or $10,000), and updates the CRM with a VIP tag in real time. Whether you're scaling your operations or building a smart sales pipeline, this template ensures no important order goes unnoticed—real-time tagging of premium clients made easy. What This Template Does (Step-by-Step) 🔔 Webhook Trigger (Sales Order Intake) Receives real-time POST requests from your e-commerce, POS, or order management system Captures order details, including total value ($json.body.salesorder.total) ⚖️ High-Value Condition Check Evaluates whether the sales order value exceeds a custom threshold (default: 10,000) If order total > 10,000, continues the workflow Otherwise, halts execution (no CRM action) 🏷️ Zoho CRM VIP Tagging Automatically creates or updates a purchase order record in Zoho CRM Tags the record with “VIP Order” to flag it for priority handling Uses OAuth2-secured integration with your Zoho account Required Integrations: ✅ Zoho CRM (OAuth2 credentials) ✅ Any external sales/order system with webhook support Use Cases: 💰 B2B sales teams tracking large enterprise orders 🛍️ D2C brands prioritizing premium customers for fulfillment or loyalty 🔁 CRM automation agencies building smart workflows for clients 🧑‍💼 Sales managers setting up internal escalations or alerts for VIP deals Key Features: ⚙️ No-code CRM automation using n8n 🔒 Secure Zoho CRM integration via OAuth2 ⏱️ Instant tagging for faster follow-up 🧠 Configurable logic (change the threshold easily!) 📈 Scalable for thousands of incoming orders

Rahul JoshiBy Rahul Joshi
421
All templates loaded