Skip to content
AI Agents

Data analyst agent querying a NocoDB table via chat

10 nodes 25 1 Manual trigger
Download

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. 1.The Chat Trigger creates the session and passes the user's chat input.
  2. 2.The Settings node sets the NocoDB table ID m7c7lrw7n0bne4j.
  3. 3.An HTTP Request node calls api/v2/meta/tables to fetch table metadata.
  4. 4.A Set node extracts column titles into a JSON string.
  5. 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

  1. Activate the workflow and open the n8n chat interface.
  2. Ask which columns the table has and verify they appear in the reply.
  3. Request a filter like (Column,eq,Value) and check the tool returns matching rows.
  4. 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

Chat Trigger Memory Set Tool HTTP Request AI Agent OpenAI

Details

Trigger Manual trigger
Nodes 10
Apps 7
Views 25
Downloads 1

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (10)

/

Chat Trigger

Chat Trigger

#1

Window Buffer Memory

Memory Buffer Window

#2

Extract_Columns

Set

#3

NocoDB

Noco Db Tool

#4

Settings

Set

#5

nocodb_extract_table

HTTP Request

#6

Data Analyst Agent

Agent

#7

Sticky Note

Sticky Note

#8

OpenAI Chat Model

OpenAI

#9

Sticky Note6

Sticky Note

#10

Source and license

Sticky Note

#11
Stay in the loop

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

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime