i use AI agent to connect the tool to add data to realtime database. i use fromAI to add data.
it show “Bad request - please check your parameters”. How to solve the error?
thank you very much.
Share the output returned by the last node
Information on your n8n setup
- **n8n version: 1.97.1
- **Database (default: SQLite): no
- **n8n EXECUTIONS_PROCESS setting (default: own, main): own
- **Running n8n via (Docker, npm, n8n cloud, desktop app): npm
- **Operating system: windows10
Hey @tytom2003,
Have you checked running this using static information , instead of using fromAI expression.
Is it working like that?
- I am asking this because, it will help us to debug this more easily.
1 Like
i tried this way to add data to google cloud realtime database. It can add data to database successfully.
But i tried use fromAI to add data unsuccessfully. i tried to look for some tutorial in the internet, but i is no n8n google cloud realtime database tutorial.
i used subwork flow to solve the problem.
Hey @tytom2003 , Good to know that you solved your problem using sub workflow…
But I believe what problem you were facing earlier is due to wrong formatting and thus it was showing the error “check your parameters”.
In the tool node for Column & Attributes
field you are adding the following:-
"item" : {{ $fromAI('takeawayitem', 'customer order takeaway item', string) }},
"name" : {{ $fromAI('cusomtername', 'customer name', string) }},
"mobile" : {{ $fromAI('customermobile', 'customer mobile', string) }}
where as in the sub workflow node you are adding the parameters like this,
id, item
both the formattings are different…
So when you are using $fromAI expression you need to ask AI to give output in form of comma separated attributes…
It should work…
The things I have shared is as per my understanding, but not sure if it okay or not…as I have not worked with this specific node earlier.
Once Again…Kudos…at the end you solved your problem that is most important.!!