AutomationMart
Home/Browse/Promo seeker: Auto-find promo codes with SerpAPI, Gemini & Telegram
n8n

Promo seeker: Auto-find promo codes with SerpAPI, Gemini & Telegram

n8nn8n16 modulesv1.0
GmailSlackTelegramGemini

Promo Seeker automatically finds, verifies, and delivers active promo codes to users via Telegram or email using SerpAPI + Gemini (OpenRouter). Saves hours of manual searching and deduplicates results into an n8n Data Table for fast reuse. Why Use This Workflow? Time Savings: Reduces manual promo hunting from 2 hours to 5 minutes per query. Cost Reduction: Cuts reliance on paid scraping tools or manual services — potential savings of $50–$200/month. Error Prevention: Cross-references sources and

At a glance

Promo seeker: Auto-find promo codes with SerpAPI, Gemini & Telegram is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Slack, Telegram, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Slack, Telegram, Gemini
Modules
16
Price
Free
Version
v1.0
Promo seeker: Auto-find promo codes with SerpAPI, Gemini & Telegram workflow diagram

About this workflow

Promo Seeker automatically finds, verifies, and delivers active promo codes to users via Telegram or email using SerpAPI + Gemini (OpenRouter). Saves hours of manual searching and deduplicates results into an n8n Data Table for fast reuse. Why Use This Workflow? Time Savings: Reduces manual promo hunting from 2 hours to 5 minutes per query. Cost Reduction: Cuts reliance on paid scraping tools or manual services — potential savings of $50–$200/month. Error Prevention: Cross-references sources and enforces a 30‑day recency filter to reduce expired-code hits by 60% vs single-source checks. Scalability: Handles hundreds of queries per day with Data Table upserts and optional scheduling for continuous discovery. Ideal For - Marketing / Growth Managers: Quickly discover competitor or partner discounts to promote in campaigns. - Customer Support / Operations: Respond to user requests with verified promo codes via Telegram or email. - Affiliate / Content Teams: Aggregate and maintain a clean promo feed for newsletters or site widgets. How It Works 1. Trigger: Incoming request via Webhook, Telegram message, Google Form submission, or scheduled run. 2. Data Collection: The LangChain agent uses SerpAPI search results and Gemini (OpenRouter) to locate recent promo codes. 3. Processing: Filter for recency (last 30 days), extract code, value, terms, and expiry. 4. Intelligence Layer: Gemini 2.5 Pro (OpenRouter) + LangChain agent structure and verify results, outputting a standardized JSON. 5. Output & Delivery: If a code exists in the Data Table, notify the requester via Telegram and Gmail; otherwise, return results and upsert them into the Data Table. 6. Storage & Logging: Results stored/upserted in an n8n Data Table to prevent duplicates and enable fast lookups. Setup Guide Prerequisites | Requirement | Type | Purpose | |-------------|------|---------| | n8n instance | Essential | Execute the workflow — import JSON to your n8n instance | | SerpAPI account | Essential | Web search results for promo code discovery | | OpenRouter (Gemini) account | Essential | Language model (Gemini 2.5 Pro) for extraction and verification | | Telegram Bot (BotFather) | Essential | Receive queries and send promo notifications | | Gmail OAuth2 | Essential | Send rich email notifications | | n8n Data Tables | Essential | Store and deduplicate promo code records | Get your n8n instance here: n8n instance — import the JSON and begin configuration. (Repeat link for convenience) n8n instance Installation Steps 1. Import the JSON workflow into your n8n instance. 2. Configure credentials (use n8n's Credentials UI — do NOT paste keys into nodes): - SerpAPI: paste your SerpAPI API Key from your SerpAPI dashboard. - OpenRouter API: paste your OpenRouter API Key (for Gemini 2.5 Pro). - Telegram API: create bot via @BotFather, then add Bot Token to Telegram credentials. - Gmail OAuth2: use n8n's Gmail OAuth2 credential flow and authorize the account. 3. Update environment-specific values: - Webhook path: /v1/promo-seeker (configured in the Webhook node) or replace with your preferred path. - Data Table ID: point to your own Data Table - Form/webhook recipient fields (email/chatId mappings). 4. Customize settings: - Adjust the LangChain agent prompt (Promo Seeker Agent) for different recency windows or regional focus. - Change max results/limit on the Data Table node (default limit = 3). 5. Test execution: - Trigger via Telegram or a POST to the webhook with sample payload: - Confirm notifications arrive and Data Table rows are upserted. Technical Details Core Nodes | Node | Purpose | Key Configuration | |------|---------|-------------------| | SerpAPI | Fetch web search results | Provide credential; adjust search params in agent prompt | | Gemini 2.5Pro (OpenRouter) | Extract & verify promo details | Use OpenRouter credential; model google/gemini-2.5-pro | | Promo Seeker Agent (LangChain) | Orchestrates search + parsing | System prompt enforces 30‑day recency & result format | | Structured Output Parser | Validates agent output | JSON schema example for platform/code/value/terms/validUntil | | Data Table (Get row(s)) | Lookup existing promos | Filters by platform; limit = 3 | | If (Code Exist?) | Branching logic | Checks existence of platform field | | Data Table (Upsert row(s)) | Insert or update promo | Mapping from agent output to Data Table columns | | Telegram Trigger / Telegram | Receive queries & notify users | Webhook-based trigger; parsemode = HTML for messages | | Gmail | Send rich HTML emails | Uses Gmail OAuth2 credential | | Webhook / Form Trigger | Alternate inputs | Webhook path /v1/promo-seeker and Form trigger for manual submissions | Workflow Logic - On trigger, the Platform Set node normalizes the incoming query and receiver. - Get row(s) checks Data Table for existing promos. - If found: notify via Telegram and send Gmail (email template included). - If not found: the Promo Seeker Agent runs SerpAPI searches, parses structured output, then Upsert row(s) saves results and notifications are sent. - Structured Output Parser enforces correct JSON to avoid bad upserts. Customization Options Basic Adjustments - Recency window: change the agent prompt to 7/14/30 days. - Result limit: increase Data Table Get limit or change Upsert batch size. Advanced Enhancements - Add Slack or Microsoft Teams notifications (moderate complexity). - Add caching layer (Redis) to reduce repeated SerpAPI calls (advanced). - Parallelize searches across multiple search engines (higher API usage & complexity). Performance & Optimization | Metric | Expected Performance | Optimization Tips | |--------|----------------------|-------------------| | Execution time | 8–30s per new search (depends on SerpAPI + LM response) | Reduce SerpAPI page depth; cache recent results | | API calls | 3–10 SerpAPI calls per complex query | Batch queries; use higher-quality search params | | Error handling | Agent retries on malformed output | Use retry nodes and set onError strategy for downstream nodes | Troubleshooting | Problem | Cause | Solution | |---------|-------|----------| | No results returned | Query too vague or rate-limited API | Improve query specificity; check SerpAPI quota | | Gmail send fails | OAuth scope not granted or token expired | Reconnect Gmail OAuth2 credential in n8n | | Telegram webhook not firing | Incorrect bot token or webhook setup | Recreate Telegram credential and check bot permissions | | Duplicate rows | Upsert mapping mismatch | Ensure promoCode mapping in Upsert matches structured output | | Agent returns malformed JSON | LM prompt too permissive | Tighten the agent system prompt and validate with Structured Output Parser | --- Created by: khaisa Studio Category: Marketing Automation Tags: promo-codes, coupons, serpapi, telegram, gmail, openrouter, data-tables Need custom workflows or help adapting this template? Contact us

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Create a draft email in Google Mail using a new message from Claude AI

Automatically draft emails in Google Mail using Claude AI's new message feature. Streamline communication by creating drafts directly from AI-generated content.

Free

Trigger new email notifications and add rows to Google Sheets from Gmail messages

Automatically trigger new email notifications and parse CSV data from Gmail messages, then add rows to Google Sheets for streamlined data management.

Free

Share data added to a Google Sheet as Slack messages

Receive instant Slack notifications for every new Google Sheets row.

Free

Smart email auto-responder template using AI

Smart Email Auto-Responder with AI Classification Automatically Categorize and Reply to Emails using LangChain + Google Gemini + Gmail + SMTP + Brevo This n8n workflow is designed to intelligently manage incoming emails and automatically send personalized responses based on the content. It classifies emails using LangChain's Text Classifier, sends HTML responses depending on the category, and updates Gmail and Brevo CRM accordingly. --- Key Features Triggers and Classifies Emails - Listens

Free

🎓 How to transform unstructured email data into structured format with AI agent

This workflow automates the process of extracting structured, usable information from unstructured email messages across multiple platforms. It connects directly to Gmail, Outlook, and IMAP accounts, retrieves incoming emails, and sends their content to an AI-powered parsing agent built on OpenAI GPT models. The AI agent analyzes each email, identifies relevant details, and returns a clean JSON structure containing key fields: From – sender’s email address To

Free

Upload new Slack files to Wasabi

Every time a new file is posted to your Slack channel, Make will automatically upload that file to Wasabi,

Free

Firecrawl AI-powered market intelligence bot: automated news insights delivery

Workflow Overview This cutting-edge n8n automation is a sophisticated market research and intelligence gathering tool designed to transform web content discovery into actionable insights. By intelligently combining web crawling, AI-powered filtering, and smart summarization, this workflow: 1. Discovers Relevant Content: - Automatically crawls target websites - Identifies trending topics - Extracts comprehensive article details 2. Intelligent Content Filtering: - Applie

Free

🛠️ Google Drive tool MCP server 💪 all 17 operations

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator? Join the community Complete MCP server exposing all Google Drive Tool operations to AI agents. Zero configuration needed - all 17 operations pre-built. ⚡ Quick Setup 1. Import this workflow into your n8n instance 2. Activate the workflow to start your MCP server 3. Copy the webhook URL from the MCP trigger node 4. Connect AI agents using the MCP URL 🔧 How it Works • MCP Trigger

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free