Hi,
I want to create a simple AI agent with two json inputs that need to be compared and find any discrepancies
While I am able to pass as input the one json file, I am not able to pass the other one. I get “undefined”
it is like the other node is not there in the workflow, either if I drag n drop the field or write it explicitly.
Please share your workflow
Information on your n8n setup
- n8n version: 1.98.1
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): npm
- Operating system: macOS Sequoia 15.5
Hi there, i think you can use a merge node before putting it to the AI Agent
If you can give me the full JSON of the workflow, maybe i can give you a full example of how you would implement it
but it should be something like this
Hi @fahmiiireza ,
thanks. I used merge node but again the available input to ai agent is only the ranges one. The pda does not exist. The available field when I enter the merge node in the expression it the ranges.
I did an append in the merge between the two jsons
If the field name is different.
You can choose merge → combine → by position.
They should be in one item.
1 Like
oh yes I see the issue. This solved the problem and now the merge result is in one object