Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Daily Automation Bot β€” Weather + News (n8n workflow)

Automated daily summary workflow built with n8n ⚑ that fetches current 🌀 weather (OpenWeather) and πŸ“° top news headlines (NewsAPI), and delivers a single organized message to Telegram πŸ’¬ and Email πŸ“§.


✨ Features

  • 🌍 Fetches live weather for Alexandria, Egypt.
  • πŸ“° Fetches top news headlines (configurable country / keyword).
  • πŸ“‘ Aggregates results into one nicely formatted HTML email and a short Telegram message.
  • ⏰ Runs daily via a schedule trigger.

πŸ›  Tech stack

  • πŸ”„ n8n (workflow automation)
  • 🌀 OpenWeather API
  • πŸ“° NewsAPI
  • πŸ’¬ Telegram Bot API
  • πŸ“§ Gmail OAuth (optional for email delivery)

πŸ“¦ What’s included

  • πŸ“‚ workflow.json β€” n8n workflow export (safe version, no secrets).
  • πŸ“ README.md β€” this file.
  • πŸ”‘ env.template β€” list of environment variables / keys to fill before running.
  • πŸ–Ό screenshots/ β€” (recommended) add screenshots of the workflow and sample output.

⚠️ Important: This repository does not contain API keys or credentials. You must provide them locally in your n8n instance.

news work flow n8n

πŸš€ Quick setup (Import & Credentials)

  1. πŸ“₯ Import workflow

    • Open your n8n instance β†’ Workflows β†’ Import β†’ Upload workflow.json.
  2. πŸ”‘ Add credentials

    • 🌀 OpenWeather: replace placeholder YOUR_OPENWEATHER_KEY in the OpenWeather HTTP node, or set as environment variable and reference it.
    • πŸ“° NewsAPI: replace YOUR_NEWSAPI_KEY in the NewsAPI HTTP node or set as environment variable.
    • πŸ’¬ Telegram: create a Telegram Bot via BotFather πŸ€– and set the Bot Token in n8n Credentials (Telegram).
    • πŸ“§ Gmail (optional): create OAuth credentials in Google Cloud Console and add Gmail OAuth2 credential in n8n.
  3. πŸ”— Connect credentials to nodes

    • After importing, open each node that requires credentials (Gmail/Telegram) and select the correct credential (or create new one).

    • news wf gmail
  4. βœ… Test

    • Run the OpenWeather and News nodes individually (▢️ Execute Node) to ensure they return valid JSON.
    • Execute the BuildEmail (Function) node to preview bodyHtml and telegramText.
    • Execute the whole workflow or wait for the scheduled run.

🧩 env.template

Use this file as a guide to store your keys (locally, not in Git).

About

πŸ€– Daily automation with n8n β€” sends 🌀 weather & πŸ“° news headlines via πŸ“§ Email + πŸ’¬ Telegram.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors