Most people who need to follow a subject do it by skimming headlines, usually too fast or too late. This workflow does the skimming for you. Twice a day it searches Google News for the topic you set, keeps the 25 newest headlines, and asks a small OpenAI model to score the overall mood from 1 to 10, name the main signal and suggest one thing to watch. A score of 7 or more posts to Slack as an alert. Anything lower posts as a quiet update.
Any subject with news coverage will do: a market you invest in, a sector you sell into, a set of competitors, a regulation you are waiting on. The topic, the search terms and the companies to name sit in one node, so pointing the workflow at something else means changing three fields. [Dev: one line on what you would point it at, or delete]
The idea first ran in the 7 January Daily Briefing, when SanDisk had risen 871% in under a year and NAND contract prices were climbing 40% in a quarter, so the worked example here is the same one: memory and storage chips. The JSON we printed that day would not have run as written, and it only watched storage. This is the full build, made general, fixed and tested on live news.
As a rough estimate, reading a day's news on one subject properly takes ten to fifteen minutes. The workflow does the reading in about five seconds and hands you a score you can glance at. The scores are a model's reading of headlines, not research, and nothing here is financial advice.
This is a short build of seven main nodes plus the AI model and an output parser. Expect to spend 30 to 40 minutes on it.

The whole workflow in 30 seconds, from setting the topic to the alert in Slack.
What you need
n8n, either n8n Cloud or the free self-hosted Community Edition. As of 26 November 2026 the Starter cloud plan is listed at €20 a month billed annually, with 2,500 workflow executions a month. Running twice a day uses about 60 executions a month.
An OpenAI API account with billing set up. We use
gpt-6-luna, which OpenAI lists at $0.05 per million input tokens and $0.25 per million output tokens as of 26 November 2026. OpenAI counts text in tokens, each about three-quarters of an English word. Twenty-five headlines and the instructions come to roughly a thousand tokens, so a month of twice-daily runs should cost well under one US cent.A Slack workspace with a channel for the messages. We use
#news-alerts; any channel will do, and a free workspace is fine.Google News, which needs no account or key. Its search results are available as an RSS feed, a plain list of headlines that any program can read.
Two credentials in n8n, one for OpenAI (paste your API key) and one for Slack (sign in, or paste a bot token). n8n stores each login encrypted and lets every workflow reuse it.
The flow at a glance
A node is one step in an n8n workflow, and each passes its results, called items, to the next. The canvas below shows the nodes in the order they run.

Illustration of the n8n canvas, drawn from the built and tested workflow.
In words: a schedule starts the run every 12 hours, an Edit Fields node holds the topic, the search terms and the companies you care about, and an HTTP Request node downloads the Google News results. A Code node pulls the 25 newest headlines out of the feed. A Basic LLM Chain sends them to OpenAI, and a Structured Output Parser makes the model answer with exactly three fields. An If node checks the score, and one of two Slack nodes posts the result.
Build it step by step
Create a new workflow, name it after what it does (ours is Check the news on any topic, score it with AI and post to Slack) and add the nodes below in order.
Step 1: Twice a day (Schedule Trigger)
A trigger starts the workflow, in this case on a timer. Add a Schedule Trigger and rename it.
Trigger Interval: Hours
Hours Between Triggers: 12
The two runs land 12 hours apart, counted from when you switch the workflow on. If you would rather have fixed times, say 8am and 8pm, set the interval to Days and add a second rule for the evening.
Step 2: Set the topic, search terms and companies (Edit Fields)
The Edit Fields node, which n8n also calls Set, creates fields by hand. This is the only node you change to watch a different subject; every other node reads from it. Add one, set Mode to Manual Mapping, switch off Include Other Input Fields, and add three string fields. The values below are our worked example:
topic:memory and storage chipssearch_queries:NAND flash pricing 2026, SSD supply shortage, memory supercycle, AI storage demandcompanies:SNDK, MU, WDC, STX, POET
The topic is a short phrase the AI and the Slack heading both use, so write it as you would say it. Separate the search terms with commas; the next step splits them. The companies are only printed in the alert, as names or tickers, to remind you who the news touches, and the workflow does not look up any prices. Leave the field empty if you are not following companies.
Step 3: Fetch the Google News feed (HTTP Request)
The HTTP Request node fetches a web address, the same way a browser does before it draws the page. Add one and set:
Method: GET
URL:
https://news.google.com/rss/searchSend Query Parameters: on, Using Fields Below, with four parameters:
q {{ $json.search_queries.split(",").map(s => "(" + s.trim() + ")").join(" OR ") }}
hl en-US
gl US
ceid US:enOptions > Response: Response Format Text, Put Output in Field
dataOptions > Timeout: 20000 (milliseconds)
Settings tab: Retry On Fail on
The q value is an expression, a small piece of code inside double curly brackets that n8n fills in as it runs. It splits your search terms at the commas, wraps each in brackets and joins them with OR, so Google News returns stories that match any of them rather than only stories that mention every term at once. The other three parameters fix the language and country of the results. Response Format Text keeps the feed as one long string, which the next node reads.
Step 4: Pull out the latest headlines (Code)
A Code node runs a little JavaScript. The feed arrives as XML, a tagged text format, with a link and a description for every story, far more than the model needs. This node keeps the 25 newest headlines with their dates. Add a Code node, set Mode to Run Once for All Items and Language to JavaScript, and paste:
const xml = String($input.first().json.data || '');
const items = xml.split('<item>').slice(1, 26);
const clean = s => s.replace(/<!\[CDATA\[|\]\]>/g, '').replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, "'").trim();
const headlines = items.map((block, i) => {
const title = clean((block.match(/<title>([\s\S]*?)<\/title>/) || [])[1] || '');
const date = clean((block.match(/<pubDate>([\s\S]*?)<\/pubDate>/) || [])[1] || '');
return (i + 1) + '. ' + title + (date ? ' (' + date.slice(5, 16) + ')' : '');
}).filter(line => line.length > 4);
const settings = $('Set the topic, search terms and companies').first().json;
return [{ json: { topic: settings.topic, companies: settings.companies, headlineCount: headlines.length, headlines: headlines.join('\n') } }];The first line takes the feed text from the previous node. Splitting at <item> gives one block per story, and slice(1, 26) keeps the first 25, skipping the part before the first story. clean strips the CDATA wrappers and turns the common HTML entities back into ordinary characters. The loop takes each story's title and publication date and numbers them, so the model sees a tidy list such as “1. NAND Flash Prices to Decline as DRAM Supercycle Persists (26 Nov 2026)”. The last lines fetch the settings from Step 2 and return a single item with the topic, the companies, the count and the list, which the AI and the Slack nodes read later.
Step 5: Analyse the headlines with AI (Basic LLM Chain)
The Basic LLM Chain passes a single prompt to a language model and hands back the reply. It keeps no conversation history and calls no tools, and a narrow job like this needs neither. Add one and set:
Source for Prompt (User Message): Define below
Prompt (User Message): the first text below
Require Specific Output Format: on
Chat Messages: add one message of type System, with the second text below
Settings tab: Retry On Fail on
Analyze these headlines about {{ $json.topic }}:
{{ $json.headlines }}You are an analyst who covers {{ $json.topic }}. Analyze these headlines for: 1) Pricing trends (bullish/bearish), 2) Supply-demand signals, 3) Key company moves, 4) Investment implications. Return a brief JSON summary with 'sentiment' (1-10), 'key_signal', and 'action_item'.Both texts follow the prompts published in January. Where the original said storage industry and semiconductor analyst, they now read the topic from Step 2, so the same chain works for any subject. The system message names four things to look for and asks for the three fields the rest of the workflow uses.
Click the Model connector under the chain and add an OpenAI Chat Model:
Credential to connect with: your OpenAI account
Model: By ID,
gpt-6-lunaOptions: leave empty
Then click the Output Parser connector and add a Structured Output Parser, with Schema Type set to Generate From JSON Example and this example:
{ "sentiment": 7, "key_signal": "Prices rose again this week as supply stays tight", "action_item": "Watch for supplier earnings guidance" }The parser shows the model the shape of the answer and checks the reply against it, so the chain hands on a clean output object with a number and two strings rather than a paragraph that merely mentions them. The If node in the next step depends on that number being a real number.
Step 6: Is sentiment 7 or higher? (If)
An If node sends each item down one of two branches. Add one and set a single condition:
Value 1:
{{ $json.output.sentiment }}Operation: Number, is greater than or equal to
Value 2:
7
A score of 7 or more leaves by the true output and anything lower by the false output. Seven is the threshold from the original; if you find yourself drowning in alerts, raise it to 8.
Step 7: Post a Slack alert (Slack)
Connect a Slack node to the true output and set:
Credential to connect with: your Slack account
Resource: Message. Operation: Send
Send Message To: Channel, By Name,
#news-alertsor your own channelMessage Type: Simple Text Message
Message Text: the text below
Options: add Include Link to Workflow and switch it off
📈 *News alert: {{ $("Pull out the latest headlines").first().json.topic }}*
Sentiment: {{ $json.output.sentiment }}/10
Key Signal: {{ $json.output.key_signal }}
Action: {{ $json.output.action_item }}
Companies: {{ $("Pull out the latest headlines").first().json.companies }}The three $json.output fields come straight from the parser. The topic and the companies reach back to the Code node by name with $("Pull out the latest headlines"), because by this point the item only holds the AI's answer.
Step 8: Post a Slack update (Slack)
Add a second Slack node on the false output with the same settings and this text:
📊 *No major movement: {{ $("Pull out the latest headlines").first().json.topic }}*
Sentiment: {{ $json.output.sentiment }}/10
Key Signal: {{ $json.output.key_signal }}The update leaves out the action line on purpose. On a quiet day you only need to know the score and the gist, and a suggested action every twelve hours soon turns into noise.
Test it
Click Execute workflow and watch the nodes turn green. We ran the finished build on live data on 29 November 2026 with the storage example, with no sample data at any step. The whole run took about five seconds.
The Code node kept 25 headlines, from a forecast that NAND flash prices will fall while the DRAM supercycle continues, to SanDisk shares rising 16% as memory stocks rebounded. The model scored the mood at 7, so the run took the true branch, and this arrived in Slack:
📈 News alert: memory and storage chips
Sentiment: 7/10
Key Signal: Memory outlook is split: AI server and HBM demand keeps DRAM supply tight and supports pricing, while consumer weakness and NAND supply growth point to softer NAND prices and easing constraints into 2027. Kioxia’s sold-out 2026 supply highlights near-term tightness; SanDisk’s sharp swings and gains for Micron and SK hynix show high investor enthusiasm but volatility.
Action: Favor diversified exposure to DRAM/HBM leaders such as Micron and SK hynix, while treating NAND-focused names like SanDisk and Kioxia more selectively. Monitor contract prices, consumer demand, and 2027 NAND supply additions; avoid chasing sharp rallies.
Companies: SNDK, MU, WDC, STX, POET
A 7 sits right on the threshold, and an earlier run the same morning scored 6.5 and posted the quiet update instead. To see the other path on demand, raise or lower the threshold in Step 6, run it again, then put it back.
Once a run looks right, switch the workflow on with the publish toggle at the top of the editor, and the schedule takes over.
Common problems and fixes
Four of these come from the version printed on 7 January, which looked importable but would not have run. Each fix is already in the build above.
The feed request fails or returns nothing. In the January JSON the address had lost a character, and
&gl=USappeared as≷=US, an HTML symbol that crept in during publishing. Putting the search terms in query parameters, as in Step 3, avoids hand-typed addresses altogether.The model gets a wall of XML. The original passed the whole feed to the AI. That wastes tokens on links and markup and can push the request past the model's limit. The Code node in Step 4 sends 25 clean headlines instead.
The If node never sees a score. The original asked for JSON but never unpacked it, so
$json.sentimentwas always empty and every run went the same way. The Structured Output Parser in Step 5 turns the reply into real fields, read as$json.output.sentiment.“Model not found” or a retired model. January used
gpt-4o-mini, which has since been superseded. Any current small OpenAI model works; we usegpt-6-luna.“Unsupported parameter: 'temperature'”. Newer OpenAI models reject a temperature setting. Leave the model's Options empty.
“channel_not_found” from Slack. The bot has to be a member of the channel. In Slack, open the channel and type
/invite @your-bot-name, then run the workflow again.
Make it yours
Watch a different subject. Change the three fields in Step 2. A topic of shipping rates with searches for container freight and port congestion, or a topic of your competitors with their names as search terms, needs no other change.
Change what the AI looks for. The four points in the system message suit markets. For a subject without prices, such as a regulation or a rival company, swap them for what matters there, say new rulings or product launches.
Skip the quiet updates. Delete the Slack update node and you will hear from the workflow only when the score crosses your threshold.
Keep a history. Add a Data Table or Google Sheets node after the chain to log each score with the date, and after a month you have a chart of the mood rather than two snapshots a day.
Send it somewhere else. Swap either Slack node for Gmail, Telegram or Microsoft Teams; the message text works unchanged.
Download the workflow
The workflow lives in the HackrLife Automations repo on GitHub, where you can download workflow.json directly. To import it, open a blank workflow in n8n and paste the JSON below straight onto the canvas, or save it as a file and use Import from File. Credentials are not included, so you will be asked to pick your own OpenAI and Slack accounts. Then change the channel in both Slack nodes if you are not using #news-alerts, and set your own topic, search terms and companies in Step 2.
{"name":"Check the news on any topic, score it with AI and post to Slack","nodes":[{"name":"Twice a day","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.3,"position":[0,112],"parameters":{"rule":{"interval":[{"field":"hours","hoursInterval":12}]}}},{"name":"Set the topic, search terms and companies","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[224,112],"parameters":{"mode":"manual","includeOtherFields":false,"assignments":{"assignments":[{"id":"topic","name":"topic","value":"memory and storage chips","type":"string"},{"id":"q","name":"search_queries","value":"NAND flash pricing 2026, SSD supply shortage, memory supercycle, AI storage demand","type":"string"},{"id":"c","name":"companies","value":"SNDK, MU, WDC, STX, POET","type":"string"}]}}},{"name":"Fetch the Google News feed","type":"n8n-nodes-base.httpRequest","typeVersion":4.4,"position":[448,112],"parameters":{"method":"GET","url":"https://news.google.com/rss/search","sendQuery":true,"specifyQuery":"keypair","queryParameters":{"parameters":[{"name":"q","value":"={{ $json.search_queries.split(\",\").map(s => \"(\" + s.trim() + \")\").join(\" OR \") }}"},{"name":"hl","value":"en-US"},{"name":"gl","value":"US"},{"name":"ceid","value":"US:en"}]},"options":{"timeout":20000,"response":{"response":{"responseFormat":"text","outputPropertyName":"data"}}}},"retryOnFail":true},{"name":"Pull out the latest headlines","type":"n8n-nodes-base.code","typeVersion":2,"position":[672,112],"parameters":{"mode":"runOnceForAllItems","language":"javaScript","jsCode":"const xml = String($input.first().json.data || '');\nconst items = xml.split('<item>').slice(1, 26);\nconst clean = s => s.replace(/<!\\[CDATA\\[|\\]\\]>/g, '').replace(/&/g, '&').replace(/"/g, '\"').replace(/'/g, \"'\").trim();\nconst headlines = items.map((block, i) => {\n const title = clean((block.match(/<title>([\\s\\S]*?)<\\/title>/) || [])[1] || '');\n const date = clean((block.match(/<pubDate>([\\s\\S]*?)<\\/pubDate>/) || [])[1] || '');\n return (i + 1) + '. ' + title + (date ? ' (' + date.slice(5, 16) + ')' : '');\n}).filter(line => line.length > 4);\nconst settings = $('Set the topic, search terms and companies').first().json;\nreturn [{ json: { topic: settings.topic, companies: settings.companies, headlineCount: headlines.length, headlines: headlines.join('\\n') } }];"}},{"name":"Analyse the headlines with AI","type":"@n8n/n8n-nodes-langchain.chainLlm","typeVersion":1.9,"position":[896,112],"parameters":{"promptType":"define","text":"=Analyze these headlines about {{ $json.topic }}:\n\n{{ $json.headlines }}","hasOutputParser":true,"messages":{"messageValues":[{"type":"SystemMessagePromptTemplate","message":"=You are an analyst who covers {{ $json.topic }}. Analyze these headlines for: 1) Pricing trends (bullish/bearish), 2) Supply-demand signals, 3) Key company moves, 4) Investment implications. Return a brief JSON summary with 'sentiment' (1-10), 'key_signal', and 'action_item'."}]}},"retryOnFail":true},{"name":"OpenAI Chat Model","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","typeVersion":1.3,"position":[912,336],"parameters":{"model":{"__rl":true,"mode":"id","value":"gpt-6-luna"},"options":{}}},{"name":"Return sentiment, signal and action","type":"@n8n/n8n-nodes-langchain.outputParserStructured","typeVersion":1.3,"position":[1040,336],"parameters":{"schemaType":"fromJson","jsonSchemaExample":"{ \"sentiment\": 7, \"key_signal\": \"Prices rose again this week as supply stays tight\", \"action_item\": \"Watch for supplier earnings guidance\" }"}},{"name":"Is sentiment 7 or higher?","type":"n8n-nodes-base.if","typeVersion":2.3,"position":[1248,112],"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"loose"},"conditions":[{"leftValue":"={{ $json.output.sentiment }}","operator":{"type":"number","operation":"gte"},"rightValue":7}],"combinator":"and"}}},{"name":"Post a Slack alert","type":"n8n-nodes-base.slack","typeVersion":2.4,"position":[1472,16],"parameters":{"resource":"message","operation":"post","select":"channel","channelId":{"__rl":true,"mode":"name","value":"#news-alerts"},"messageType":"text","text":"=📈 *News alert: {{ $(\"Pull out the latest headlines\").first().json.topic }}*\n\nSentiment: {{ $json.output.sentiment }}/10\nKey Signal: {{ $json.output.key_signal }}\nAction: {{ $json.output.action_item }}\n\nCompanies: {{ $(\"Pull out the latest headlines\").first().json.companies }}","otherOptions":{"includeLinkToWorkflow":false}}},{"name":"Post a Slack update","type":"n8n-nodes-base.slack","typeVersion":2.4,"position":[1472,208],"parameters":{"resource":"message","operation":"post","select":"channel","channelId":{"__rl":true,"mode":"name","value":"#news-alerts"},"messageType":"text","text":"=📊 *No major movement: {{ $(\"Pull out the latest headlines\").first().json.topic }}*\nSentiment: {{ $json.output.sentiment }}/10\nKey Signal: {{ $json.output.key_signal }}","otherOptions":{"includeLinkToWorkflow":false}}}],"connections":{"Twice a day":{"main":[[{"node":"Set the topic, search terms and companies","type":"main","index":0}]]},"Fetch the Google News feed":{"main":[[{"node":"Pull out the latest headlines","type":"main","index":0}]]},"Pull out the latest headlines":{"main":[[{"node":"Analyse the headlines with AI","type":"main","index":0}]]},"Analyse the headlines with AI":{"main":[[{"node":"Is sentiment 7 or higher?","type":"main","index":0}]]},"OpenAI Chat Model":{"ai_languageModel":[[{"node":"Analyse the headlines with AI","type":"ai_languageModel","index":0}]]},"Return sentiment, signal and action":{"ai_outputParser":[[{"node":"Analyse the headlines with AI","type":"ai_outputParser","index":0}]]},"Is sentiment 7 or higher?":{"main":[[{"node":"Post a Slack alert","type":"main","index":0}],[{"node":"Post a Slack update","type":"main","index":0}]]},"Set the topic, search terms and companies":{"main":[[{"node":"Fetch the Google News feed","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"}}If I were setting this up tomorrow, I'd pick one subject and leave it alone for a fortnight, because the scores only start to mean something once you have seen a few dozen of them and know what a 6 feels like.

