Data analyst agent querying a NocoDB table via chat
Loading workflow…
Workflow Description
An n8n chat-triggered workflow that sets a fixed NocoDB table ID, fetches the table schema (column names) through the NocoDB meta API, and injects them into the system message of a GPT-4o data analyst agent. The agent has a NocoDB tool to retrieve rows using an AI-generated where filter, plus a 10-message window memory keyed by the chat session ID.
How it works
- 1.The Chat Trigger creates the session and passes the user's chat input.
- 2.The Settings node sets the NocoDB table ID m7c7lrw7n0bne4j.
- 3.An HTTP Request node calls api/v2/meta/tables to fetch table metadata.
- 4.A Set node extracts column titles into a JSON string.
- 5.The agent receives the question plus column names and uses the NocoDB getAll tool with a $fromAI-generated where formula to fetch and analyze rows.
Use cases
- Answering natural-language questions about a specific NocoDB table.
- Filtering rows by conditions such as a column value or numeric range.
- Exploring a table's columns and contents interactively.
Requirements
- A valid NocoDB API token credential connected to app.nocodb.com.
- An OpenAI credential with access to the gpt-4o model.
- The table m7c7lrw7n0bne4j and project ppltdbh6c0a30cj must exist for the account, or values must be edited manually.
Setup and testing in n8n
- Activate the workflow and open the n8n chat interface.
- Ask which columns the table has and verify they appear in the reply.
- Request a filter like (Column,eq,Value) and check the tool returns matching rows.
- Inspect the execution to review the HTTP call, the NocoDB tool call, and the final answer.
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (10)
Chat Trigger
Chat Trigger
Window Buffer Memory
Memory Buffer Window
Extract_Columns
Set
NocoDB
Noco Db Tool
Settings
Set
nocodb_extract_table
HTTP Request
Data Analyst Agent
Agent
Sticky Note
Sticky Note
OpenAI Chat Model
OpenAI
Sticky Note6
Sticky Note
Source and license
Sticky Note
Fresh workflows, straight to your inbox
Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.
- New workflows
- Clear overviews
- Setup guides