Send daily Malaysian weather alerts with Perplexity AI, Firecrawl and Telegram
Automated Malaysian Weather Alerts with Perplexity AI, Firecrawl and Telegram This n8n template automates daily weather monitoring by fetching official government warnings and searching for related news coverage, then...
Template notes
Automated Malaysian Weather Alerts with Perplexity AI, Firecrawl and Telegram
This n8n template automates daily weather monitoring by fetching official government warnings and searching for related news coverage, then delivering comprehensive reports directly to Telegram.
Use cases include monitoring severe weather conditions, tracking flood warnings across Malaysian states, staying updated on weather-related news, and receiving automated daily weather briefings for emergency preparedness.
Good to know
- Firecrawl free tier allows limited scraping requests per hour. Consider the 3-second interval between requests to avoid rate limits. - OpenAI costs apply for content summarization - GPT-4.1 mini balances quality and affordability. - After testing multiple AI models (GPT, Gemini), Perplexity Sonar Pro Search proved most effective for finding recent, relevant weather news from Malaysian sources. - The workflow focuses on major Malaysian news outlets like Utusan, Harian Metro, Berita Harian, and Kosmo.
How it works
1. Schedule Trigger runs daily at 9 AM to fetch weather warnings from Malaysia's official data.gov.my API. 2. JavaScript code processes weather data to extract warning types, severity levels, and affected locations. 3. Search queries are aggregated and combined with location information. 4. Perplexity Sonar Pro AI Agent searches for recent news articles (within 3 days) from Malaysian news channels. 5. URLs are cleaned and processed one by one through a loop to manage API limits. 6. Firecrawl scrapes each news article and extracts summaries from main content. 7. All summaries and source URLs are combined and sent to OpenAI for final report generation. 8. The polished weather report is delivered to your Telegram channel in English.
How to use