1. Opening Problem Statement
Meet Jason, a technology enthusiast and AI researcher who wants to stay updated with the latest AI advancements every morning. Jason follows multiple news sources, but manually searching, reading, and translating dozens of articles every day wastes over an hour — time he could spend on research or development.
Moreover, Jason struggles with translation accuracy and maintaining context, especially for technical AI terms. Missing relevant news or delayed updates mean lost opportunities in his fast-paced field.
This is where our n8n workflow — “Daily AI News Translation & Summary with GPT-4 and Telegram Delivery” — solves Jason’s problem by automating news fetching, summarizing, translating, and delivering directly to his preferred Telegram channel at 8 AM daily. The pain of manual curation and translation is eliminated, saving valuable time and ensuring accuracy.
2. What This Automation Does ⚙️
This workflow automates the entire process Jason struggles with, using n8n to perform multiple tasks seamlessly every day at 8 AM. Here’s what happens when it runs:
- Fetches the latest 20 AI-related articles from two major news APIs: GNews and NewsAPI, ensuring comprehensive coverage.
- Standardizes and merges news items from both APIs into a single dataset, eliminating duplication.
- Uses OpenAI’s GPT-4.1 model to select the top 15 relevant articles, generate a concise summary, and translate it into Traditional Chinese while preserving technical terms.
- Includes article URLs in the summary, providing easy access to full content.
- Delivers the polished summary directly to a specified Telegram chat using the Telegram Bot node.
- Runs automatically every morning at 8 AM without any manual intervention.
This automation saves Jason at least an hour daily and eliminates errors caused by manual translation or missed articles.
3. Prerequisites ⚙️
- 🗓️ n8n account (free or self-hosted, e.g., Hostinger for hosting)
- 🔑 NewsAPI.org API key to fetch news articles
- 🔑 GNews API key to fetch additional news articles
- 🔑 OpenAI API key with access to GPT-4.1 model
- 📱 Telegram Bot token created via BotFather, plus target chat ID
- Basic knowledge of n8n interface to configure nodes and credentials
4. Step-by-Step Guide 🔌
Step 1: Set Up the Scheduled Trigger Node
Navigate to Nodes → Schedule Trigger. Set the trigger to run daily at 8 AM by selecting the triggerAtHour option and inputting 8.
You should see a confirmation with “Next execution” reflecting the next 8 AM.
This ensures the automation runs every day at the right moment.
Common mistake: Forgetting to set the correct time zone can cause unexpected trigger times.
Step 2: Configure the “Fetch GNews articles” HTTP Request Node
Click on HTTP Request → Fetch GNews articles. Set the method to GET (default) and the URL to https://gnews.io/api/v4/search.
Add query parameters:
– q: AI
– lang: en
– apikey: Your GNews API key (set via credentials or directly)
This node fetches up to 20 relevant news articles on AI.
Visual tip: Check the response in the output pane to ensure articles array is returned.
Common mistake: Missing API key or incorrect parameter spelling results in empty or error responses.
Step 3: Configure the “Fetch NewsAPI articles” HTTP Request Node
In the next HTTP Request node, set URL to https://newsapi.org/v2/everything.
Add headers:
– X-Api-Key: Your NewsAPI key
Add query parameters:
– q: AI
– language: en
– sortBy: publishedAt
– pageSize: 20
This fetches the latest 20 English AI news articles.
Expected outcome: JSON response with an articles array.
Common mistake: Forgetting the API key or incorrect header formatting will cause 401 Unauthorized errors.
Step 4: Set “GNews: Map to articles” Node
This is a Set node that maps the articles property from the GNews JSON response.
In parameters, assign articles as string to ={{ $json.articles }}.
You should see the articles array available for the next node.
Common mistake: Misnaming the assignment key or using wrong expression syntax.
Step 5: Set “NewsAPI: Map to articles” Node
Similarly, configure another Set node to map articles from the NewsAPI JSON.
Assign articles with ={{ $json.articles }}.
This normalization facilitates merging two feeds.
Visual check: Inspect this node’s output data structure.
Common mistake: Forgetting to map both responses separately.
Step 6: Merge Both News Sources in “Merge GNews & NewsAPI” Node
Use the Merge node with default settings.
Connect the outputs of the two Set nodes here.
The merged output contains combined articles from both APIs.
Outcome: One list with unified news data for further processing.
Common mistake: Connecting inputs incorrectly or choosing wrong merge mode.
Step 7: Configure the “AI summarizer & translator” Node
This node uses the special LangChain agent type with a custom prompt.
Enter the prompt exactly as below:
=You are an AI news assistant. Your tasks:
1. Select the 15 most relevant articles on AI technology progress and applications from {{$json.articles}}.
2. Translate them to accurate Traditional Chinese; don't translate commonly used technical English terms.
3. Make sure to include the article URL for each item.
4. Begin output with today's date (e.g., '早安,這是 {{ $now.format('yyyy/MM/dd') }} 的 AI 新聞:')
Output only the summary.
This instructs GPT-4 to filter, translate, enrich, and format the news digest.
Common mistake: Typos in prompt or improper token credentials cause failed summarization.
Step 8: Add “GPT-4.1 Model” Node for Enhanced Language Model
Connect your OpenAI credentials and set the model to gpt-4.1.
This node refines the AI’s output for clarity and fluency.
The typical input is the previous node’s generated text.
Check: Ensure API connection is active.
Common mistake: Missing or invalid OpenAI key causes API errors.
Step 9: Configure “Send summary to Telegram” Node
Insert your Telegram Bot credentials.
Set the chat ID for your target recipient (user/group/channel).
Map the $json.output from AI summarizer node to the text field.
Run a manual test to see the summary delivered.
Common mistake: Incorrect chat ID or bot permissions may prevent message delivery.
5. Customizations ✏️
- Change the news topic: In both HTTP Request nodes, modify the
qparameter fromAIto any keyword likeblockchainorquantum computing. This fetches news on different subjects. - Adjust delivery time: Change the scheduled trigger’s
triggerAtHourvalue to your preferred hour (e.g., 7, 9). - Translate to another language: Edit the AI prompt in the “AI summarizer & translator” node to translate into other languages or change the tone (e.g., formal, casual).
- Increase number of articles: Modify the prompt to select more than 15 articles if you want a longer summary.
- Send to multiple Telegram chats: Duplicate the Telegram node and configure different chat IDs to broadcast news to several groups or users.
6. Troubleshooting 🔧
- Problem: “API key invalid or missing” error on HTTP Request nodes.
Cause: Credentials not set or expired.
Solution: Verify API keys in n8n Credentials section, re-enter keys carefully, and test API permissions. - Problem: “Telegram: Message not sent” error.
Cause: Incorrect chat ID or bot not added to the group.
Solution: Confirm the chat ID by messaging your bot with /start and checking updates, add bot to groups as admin if needed. - Problem: AI summarizer returns incomplete or irrelevant summaries.
Cause: Poorly formatted prompt or insufficient tokens.
Solution: Revise the prompt text exactly, ensure OpenAI token limits, and check node configuration.
7. Pre-Production Checklist ✅
- Confirm all API keys for NewsAPI, GNews, OpenAI, and Telegram are valid and active.
- Run manual tests on HTTP Request nodes to check news fetching works as expected.
- Verify AI summarizer outputs by testing with sample news dataset.
- Confirm Telegram Bot credentials and chat ID with trial messages.
- Backup your workflow configuration before deployment.
8. Deployment Guide
Activate your workflow by enabling it in n8n. The schedule trigger ensures runs at 8 AM daily.
Monitor the workflow executions tab regularly for errors or failures.
For self-hosting, ensure your server is reliable and API keys remain current.
Logs in n8n help you track message success or node errors.
This smooth deployment ensures Jason gets his news without any daily effort.
9. FAQs
- Can I use a different news API? Yes, as long as the JSON response has an
articlesarray you can map similarly. - Does this consume many API credits? Fetching 40 articles daily typically stays within free or low-tier limits, but check your API plan.
- Is my data secure? Your API keys and Telegram bot communicate over HTTPS. n8n uses secure storage for credentials.
10. Conclusion
By completing this guide, you’ve automated Jason’s tedious daily AI news routine into a seamless, accurate, and time-saving process. This workflow fetches top AI news from multiple sources, uses GPT-4.1 to translate and summarize them into Traditional Chinese, and sends it conveniently via Telegram every morning at 8 AM.
Jason now saves over 7 hours weekly and avoids translation errors, giving him more time for innovation.
Next steps to explore: automate updates for other tech topics, add sentiment analysis to summaries, or archive daily news to a database for reference.
Thanks for building this powerful automation with me — your AI news assistant is ready to serve! 📧 ⏱️ 🔑