← All N8N workflows
AI & researchAgentChat TriggerCodeOpenAI Chat ModelManual Trigger

receive chat events and query workflow credentials database and workflow credentials helper agent

Configured with Agent, Chat Trigger, OpenAI Chat Model, Memory Buffer Window, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWhen clicking "Testworkflow"Manual TriggerTransformMap Workflows &CredentialsEdit FieldsCodeSave to DatabaseCodeTriggerChat TriggerChat TriggerCodeQuery WorkflowCredentials DatabaseTool CodeAI & modelsOpenAI Chat ModelOpenAI Chat ModelData storeWindow Buffer MemoryMemory Buffer WindowAI & modelsWorkflow CredentialsHelper AgentAgentIntegrationn8nN8N

Node categories in this workflow

  • Trigger
  • Transform
  • Code
  • AI & models
  • Data store
  • Integration

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When clicking "Test workflow"TriggerManual TriggerSee node parameters
Map Workflows & CredentialsTransformEdit FieldsSee node parameters
Save to DatabaseCodeCodeSee node parameters
Chat TriggerTriggerChat TriggerSee node parameters
Query Workflow Credentials DatabaseCodeTool CodeSee node parameters
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
Window Buffer MemoryData storeMemory Buffer WindowSee node parameters
Workflow Credentials Helper AgentAI & modelsAgentSee node parameters
n8nIntegrationN8NSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • n8nApi
  • openAiApi

Workflow notes

🚨Required

🚨Required

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

Step 1. Store Workflows Credential Mappings to Database

Step 1. Store Workflows Credential Mappings to Database

We'll achieve this by querying n8n's built-in API to query all workflows, extract the credentials list from the nodes within and then store them in a SQLite database. Don't worry, the actual credential data won't be exposed! For the database, we'll abuse the fact that the code node is able to create Sqlite databases - however, this is created in memory and will be wiped if the n8n instance is restarted.

Step 2. Use Agent as Search Interface

Step 2. Use Agent as Search Interface

Instead of building a form interface like a regular person, we'll just use an AI tools agent who is given aaccess to perform queries on our database. You can ask it things like "which workflows are using slack + airtable + googlesheets?"

Try It Out!

Try It Out!

This workflow let's you query workflow credentials using an AI SQL agent. Example use-case could be:

  • "Which workflows are using Slack and Google Calendar?"
  • "Which workflows have AI in their name but are not using openAI?"

Run the Steps separately!

  • Step 1 populates a local database
  • Step 2 engages with the chatbot
receive chat events and query workflow credentials database and workflow credentials helper agent

receive chat events and query workflow credentials database and workflow credentials helper agent

Purpose and structure

This folder contains the receive chat events and query workflow credentials database and workflow credentials helper agent workflow. Its executable nodes use agent, chatTrigger, code, lmChatOpenAi, manualTrigger, memoryBufferWindow, n8n, set, toolCode. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When clicking "Test workflow", Chat Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Manual/0543_Manual_N8N_Export_Triggered.json MIT; preserve source notices.

More in AI & research