The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Get Postgres Tables",
"nodes": [
{
"parameters": {
"options": {}
},
"id": "74a8e48c-c13f-450c-835e-1702d87f894c",
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
880,
60
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT table_name \nFROM information_schema.tables\nWHERE table_schema = 'public'\n AND table_type = 'BASE TABLE'\nORDER BY table_name;",
"options": {}
},
"id": "2cd15801-ea79-4a53-b1be-c0470429966a",
"name": "Postgres",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.5,
"position": [
400,
60
],
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"fieldsToSummarize": {
"values": [
{
"aggregation": "concatenate",
"field": "table_name"
}
]
},
"options": {}
},
"id": "8b66e814-e553-451c-818a-fc93699b341c",
"name": "Summarize",
"type": "n8n-nodes-base.summarize",
"typeVersion": 1,
"position": [
640,
60
]
},
{
"parameters": {
"path": "d8db9fa3-04fe-43c8-9acf-e1912463477f",
"authentication": "headerAuth",
"responseMode": "responseNode",
"options": {}
},
"id": "3eb54a82-034c-4f3f-aa99-3b6aeb744ce2",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
180,
60
],
"credentials": {
"httpHeaderAuth": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Postgres": {
"main": [
[
{
"node": "Summarize",
"type": "main",
"index": 0
}
]
]
},
"Summarize": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "Postgres",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "bd8d96b6-53e1-4cb9-8ee7-0c8be9b86dc9",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "t15NIcuhUMXOE8DM",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
httpHeaderAuthpostgres
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Get Postgres Tables. Uses respondToWebhook, postgres, summarize. Webhook trigger; 4 nodes.
Source: https://github.com/daboi2331/ai-agents-masterclass/blob/main/local-ai-packaged/n8n-tool-workflows/Get_Postgres_Tables.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This template is for developers, teams, and automation enthusiasts who want a private, PIN-protected Telegram chatbot that answers questions from their own documents — without relying on external AI A
HVAC Event Generator v1.0 - INSERT OPERATIONS. Uses postgres. Webhook trigger; 16 nodes.
Question Answering Workflow. Uses httpRequest, postgres. Webhook trigger; 8 nodes.
Command Processing Workflow. Uses postgres. Webhook trigger; 4 nodes.
Eu Clara – Funil Kiwify Completo. Uses postgres, openAi, httpRequest, gmail. Webhook trigger; 70 nodes.