Hello everyone,
I’m trying to insert and update data on Postgres tables automatically using Postgres tools by AI agent, but I can’t set the input.
I wrote the prompt described my DB schema and asked the AI agent use tools to update, insert and select data in my DB. It works great for select operations, but for other operations the output from AI agent contents only parameters that determined as " Defined automatically by the model", for example:
{
“Table”: “employees”,
“Output_Columns”: “id, first_name, last_name, surname, telegram_id, telegram_url, phone, email, created_at, updated_at”,
“Skip_on_Conflict”: false,
“Replace_Empty_Strings_with_NULL”: false
}
And of course I have an error “Column ‘Table’ does not exist in selected table”. Other words it doesn’t contain the data that have to be insert or update.
Here’s my pipeline:
What I have to set up else to solve the problem?
- n8n version: 1.80.3
- Database (default: SQLite): Postgres
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Linux