Cannot merge data from different nodes

- n8n version: 1.58.2
- running locally (npm)

*My webhook receives TWO inputs: url + requestId. *
*Based on the domain, there is some AI processing (using perplexity API + info extractor). In the last node, I would like to send a response to my backend with the JSON object from info extractor AS WELL AS the requestId. However I can’t seem to achieve that (having issues combining/merging the items). I tried in a dozen different ways. *

If anyone can help me at all, it would be greatly appreciated!!!

Thank you.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Vittorio_Halfon ,

Welcome to the community :stadium:

If I understood correctly, your issue is in successfully passing both outputs when using the merge node?
What is the output that you’re getting from the merge node now?

Hey @mariana-na! Thank you for the reply! Here is the JSON output from the merge node.

[

{

"output": {

"company_name": "UK Planet Tools Ltd",

"contact_email": "",

"industry_sector": "Tools and Building Supplies",

"company_overview": "UK Planet Tools is one of the largest independent suppliers in the UK offering a wide variety of high-quality tools, fixings, and building supplies from leading brands.",

"core_products_or_services": "Provides a range of tools including garden blowers, vacuums, power tools, lasers, and outdoor equipment from brands like Makita and DeWalt.",

"unique_selling_proposition": "Known for high-quality tools and fixings, with competitive pricing and excellent customer service.",

"company_vision": "To be the leading provider of quality tools and building supplies, ensuring high standard products and customer satisfaction.",

"research_development_activities": "",

"target_audience": "",

"key_clients_or_partners": "",

"market_reach": "United Kingdom"

}

},

{

"headers": {

"content-type": "application/json",

"user-agent": "PostmanRuntime/7.36.0",

"accept": "*/*",

"cache-control": "no-cache",

"postman-token": "5ac5e452-61b2-4561-b14e-9d8c3d8a0eee",

"host": "localhost:5678",

"accept-encoding": "gzip, deflate, br",

"connection": "keep-alive",

"content-length": "70"

},

"params": {

},

"query": {

},

"body": {

"domain": "https://www.ukplanettools.co.uk/",

"requestId": 123

},

"webhookUrl": "http://localhost:5678/webhook-test/8756b09a-1e66-4c45-a08d-f11851db23e0",

"executionMode": "test",

"request": 123

}

]

Note it’s two different ‘items’ but I can’t select which item in the final node?

You can add an aggregate node after the merge node, to combine the output into one single JSON: