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.
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.
| Node | Category | Type | Operation |
|---|---|---|---|
| When clicking "Test workflow" | Trigger | Manual Trigger | See node parameters |
| Map Workflows & Credentials | Transform | Edit Fields | See node parameters |
| Save to Database | Code | Code | See node parameters |
| Chat Trigger | Trigger | Chat Trigger | See node parameters |
| Query Workflow Credentials Database | Code | Tool Code | See node parameters |
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| Window Buffer Memory | Data store | Memory Buffer Window | See node parameters |
| Workflow Credentials Helper Agent | AI & models | Agent | See node parameters |
| n8n | Integration | N8N | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- 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
n8nApiopenAiApi
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.