Skip to content

adityanaranje/n8n-github-events-telegram-email-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

🚀 GitHub Event Automation Workflow in n8n

n8n GitHub LLM

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.

🖼️ Workflow Preview

n8n Workflow


✨ Features

  • 📌 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
    • Email
  • 🛠 Built entirely in n8n: No external orchestration required

🛠 Workflow Steps

  1. GitHub Event Trigger

    • Automatically triggers on events like push, commit, star, or pull request.
  2. Format Response

    • Preprocesses the GitHub payload for LLM processing.
  3. LLM Processing

    • Uses Google Gemini models to generate formatted messages.
    • Structured output parsing ensures notifications are clean and actionable.
  4. Edit Fields / JavaScript

    • Optional JS code to customize messages or perform additional processing.
  5. Send Notifications

    • Sends structured messages to Telegram bot and Email.

🔧 Prerequisites

  • n8n installed (Docker recommended)
  • Telegram Bot API key
  • Gmail/SMTP credentials
  • Google Gemini API key

🚀 Installation

  1. Start n8n using Docker:
docker run -it --rm \
  --name n8n \
  -p 5678:5678 \
  -v ~/.n8n:/home/node/.n8n \
  n8nio/n8n
  1. Download the workflow JSON provided above. Check out the workflow and code here: Workflow.json

  2. Import the workflow JSON in n8n.

  3. Add credentials for:

    • GitHub
    • Telegram Bot
    • Gmail/SMTP
    • Google Gemini LLM
  4. Activate the workflow and start receiving notifications.


📈 Usage

  • 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.

📚 Resources


💡 Conclusion

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

About

This project demonstrates how n8n + LLMs + No-Code Automation can transform GitHub events into real-time AI-powered notifications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors