Quick overview
This workflow runs daily and weekly to collect government tenders from configured portals, extract notice text (including PDFs), and use OpenAI to confirm MSME benefits and eligibility against your Udyam profile, then logs results to Google Sheets and sends digests and reminders via Telegram, Slack, and Gmail, with optional Notion/Airtable.
How it works
- Runs every day at 8:00 AM IST (and every Monday at 9:00 AM IST for the weekly summary) and loads portal URLs, your Udyam profile, keywords, limits, and notification targets from a configuration step.
- Fetches the latest tenders from the configured CPPP, NIC-style state portals, and a GeM JSON feed, and posts a Slack warning if any portal fails or its page layout no longer parses.
- Deduplicates tenders for the run, checks a Google Sheets “MSME Tender Log” to skip previously checked or closed items (re-checking eligible ones if the closing date changed), and prioritizes which new notices to read.
- Opens each selected tender notice via HTTP, extracts readable text from HTML or PDFs, and flags unreadable notices for manual review.
- Detects MSME signals (reserved, purchase preference, or exemptions like EMD/tender fee/turnover/experience) and uses OpenAI (gpt-4o-mini) to confirm the benefit strictly from the quoted notice snippets.
- Matches each tender to your Udyam enterprise type, ownership flags, startup status, and registered activities to decide eligibility, estimate savings (for example EMD), and generate a checklist, then appends/updates the record in Google Sheets.
- Builds a ranked digest of eligible tenders and sends it to Telegram (chunked), Slack, and Gmail (HTML), and optionally upserts matching records into Notion and/or Airtable.
- Separately scans the log for eligible tenders closing within the configured reminder window and sends one-time closing reminders to Telegram and Slack, and posts a Monday pipeline summary to Telegram and Slack.
Setup
- Create or choose a Google Sheets spreadsheet with an “MSME Tender Log” sheet, add the required columns, and replace the placeholder Google Sheet ID in all Google Sheets steps.
- Update the Config section with your portal URLs (CPPP/state portals/GeM feed), Udyam profile details (enterprise type, activities, and flags), keyword filters, and your Telegram chat ID, Slack channel ID, and email recipient.
- Add credentials in n8n for Google Sheets, Slack, Telegram, Gmail, and OpenAI.
- Optional: create a Notion database with a “Key” property (and the other mapped fields) and replace the Notion database ID, then enable
useNotion in Config.
- Optional: create an Airtable base/table with the mapped fields, replace the Airtable base/table IDs, and enable
useAirtable in Config.