Query n8n Credentials with AI SQL Agent

🚨Required You'll need an n8n API key. Note: available workflows will be scoped to your key.

Workflow Structure (9 nodes)
100%
Manual Trigger
When clicking "Test workflow"
N8n
n8n
Set
Map Workflows & Credentials
Code
Save to Database
Langchain.chat Trigger
Chat Trigger
Langchain.agent
Workflow Credentials Helper Agent
Langchain.lm Chat Open Ai
OpenAI Chat Model
Langchain.memory Buffer Window
Window Buffer Memory
Langchain.tool Code
Query Workflow Credentials Database
Node Types:
trigger
transform
code
default
Requires credentials

Prerequisites

Required Credentials (2)

N8n

Used by: n8n

Docs

OpenAI

Used by: OpenAI Chat Model

Docs

Complexity

Complex

Advanced features used. Requires n8n experience.

Setup time: ~35 min
Score: 44/100
Custom Code

When to Use This Workflow

AI-Powered Content Creation

Automate content generation, summarization, or analysis using AI capabilities.

Save hours of manual work while maintaining quality and consistency.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "meta": {
    "instanceId": "26ba763460b97c249b82942b23b6384876dfeb9327513332e743c5f6219c2b8e"
  },
  "nodes": [
    {
      "id": "382dddd4-da50-49fa-90a2-f7d6d160afdf",
      "name": "When clicking \"Test workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        920,
        280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "efa8f415-62f7-43b3-a76a-a2eabf779cb8",
      "name": "Map Workflows & Credentials",
      "type": "n8n-nodes-base.set",
...

Workflow Details

Nodes
13
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Chat with GitHub OpenAPI Specification using RAG (Pinecone and OpenAI)

Indexing content in the vector database This part of the workflow is responsible for extracting content, generating embe...

Http-request
Vectorstorepinecone
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
17 nodesEvent
Curated

Build a Tax Code Assistant with Qdrant, Mistral.ai and OpenAI

Step 1. Download the Tax Code PDF [Read more about handling Zip Files](https://docs.n8n.io/integrations/builtin/core-nod...

Embeddingsmistralcloud
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
Http-request
38 nodesEvent
Curated

Building RAG Chatbot for Movie Recommendations with Qdrant and Open AI

Tool, calling Qdrant's recommendation API based on user's request, transformed by AI agent

Github
Embeddingsopenai
Documentdefaultdataloader
Textsplittertokensplitter
27 nodesEvent
Curated

AI Agent : Google calendar assistant using OpenAI

Chat trigger - When a message is received This node is the entry point of the workflow. It triggers the workflow wheneve...

Chat
Lmchatopenai
Memorybufferwindow
Googlecalendartool
13 nodesEvent
Curated

Complete Youtube

Main Workflow

Agent
Chat
Toolworkflow
Lmchatopenai
15 nodesEvent
Curated

AI-powered WooCommerce Support-Agent

Find WooCommerce User-ID User-ID is required to query past orders

Memorybufferwindow
Executeworkflow
Woocommerce
Http-request
40 nodesEvent
Curated