AI SQL Agent context

How can I add context to a SQL Agent? To explain to the model the info on all tables, and then the responses be more accurate.

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 @Canato

Can you give a little more information? You could also share your workflow here by pasting their JSON content (after you download the workflow from you workspace) in between two block quotes (```).

What exactly are you trying to achieve?

Thanks! :pray:

Hi,

I want to give more context to AI about the Database, like:
The table with the name YYYY have all the customer information
The column with the name XXXXX in the table YYYY is the created date of customer.

With this context, the AI will know more about how to do the query in the database.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.