Describe the problem/error/question
So I have a work flow that fetches a bunch of websites from a google news rss feed, then filters them down to the 3 most relevant, and finally picks one article that a LLM classifies as news, not sales promo. Problem is I can’t then reference data points from previous nodes, which is the article title and the decoded URL. I can’t really get my head around how I would reference the index for item’s after I’ve done filtering to the data in a code node.
What is the error message (if any)?
Using the item method doesn’t work with pinned data in this scenario. Please unpin ‘Rank Article Sentiment’ and try again.
An expression here won’t work because it uses .item
and n8n can’t figure out the matching item. You can either:
- Add the missing information to the node ‘Rank Article Sentiment’
- Or use
.first()
,.last()
or.all()[index]
instead of.item
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- **n8n version: 1.82.2,
- **Database (default: SQLite): default
- **n8n EXECUTIONS_PROCESS setting (default: own, main): default
- **Running n8n via (Docker, npm, n8n cloud, desktop app): docket
- Operating system: mac os 15