This n8n workflow automates the processing of GitHub events and sends structured notifications via Telegram and Email, leveraging LLMs and custom scripts for intelligent message formatting.
- 📌 Listen to GitHub events:
star,unstar,push,pull request,commit - ⚡ Data preprocessing: Custom logic using JavaScript and n8n nodes
- 🤖 LLM-powered processing: Uses Google Gemini Chat Models
- 📝 Output parsing: Formats LLM responses for easy consumption
- 📩 Multi-channel notifications: Send messages via
- Telegram bot
- 🛠 Built entirely in n8n: No external orchestration required
-
GitHub Event Trigger
- Automatically triggers on events like
push,commit,star, orpull request.
- Automatically triggers on events like
-
Format Response
- Preprocesses the GitHub payload for LLM processing.
-
LLM Processing
- Uses Google Gemini models to generate formatted messages.
- Structured output parsing ensures notifications are clean and actionable.
-
Edit Fields / JavaScript
- Optional JS code to customize messages or perform additional processing.
-
Send Notifications
- Sends structured messages to Telegram bot and Email.
- n8n installed (Docker recommended)
- Telegram Bot API key
- Gmail/SMTP credentials
- Google Gemini API key
- Start n8n using Docker:
docker run -it --rm \
--name n8n \
-p 5678:5678 \
-v ~/.n8n:/home/node/.n8n \
n8nio/n8n-
Download the workflow JSON provided above. Check out the workflow and code here: Workflow.json
-
Import the workflow JSON in n8n.
-
Add credentials for:
- GitHub
- Telegram Bot
- Gmail/SMTP
- Google Gemini LLM
-
Activate the workflow and start receiving notifications.
- Once activated, this workflow listens to all configured GitHub events.
- Notifications are sent automatically to Telegram and Email.
- Messages are formatted and parsed for clarity and readability.
- n8n Documentation
- Cloudflare Tunnel Docs
- Telegram Credentials Docs
- Gemini API Docs
- Github Credentials
This project demonstrates how n8n + LLMs + No-Code Automation can transform GitHub events into real-time AI-powered notifications. With just Docker, n8n, and a few APIs — you can monitor repositories and send intelligent updates to Telegram and email in minutes 🚀
Made with ❤️ using Docker Desktop, n8n, Gemini, and ☁️ Cloudflare
