How to keep only one item from OpenAI response in n8n?
OpenAI returns 3 items, but only one is a real match.
  • One correct match (which is good)
  • Two extra items saying "No match found" ❌
When we pass this output to the next agent, it treats all 3 items as separate inputs, causing unwanted processing 😃
I need to filter out only the correct matched item and remove the extras.
Has anyone solved a similar issue in n8n?Should I use a Function Node, OpenAI prompt modification, or something else?
1
7 comments
El maatouki Mohamed
2
How to keep only one item from OpenAI response in n8n?
AI Automation Society
skool.com/ai-automation-society
A community for mastering AI-driven automation and AI agents. Learn, collaborate, and optimize your workflows!
Leaderboard (30-day)
Powered by