Query n8n credentials with AI SQL agent
This n8n workflow is a fun way to query and search over your credentials on your n8n instance. Good to know Your credentials should remain safe as this workf...
🔌 Nodes & Integrations Used (6)
📖 Implementation & Setup Guide
This n8n workflow is a fun way to query and search over your credentials on your n8n instance.
**Good to know** Your credentials should remain safe as this workflow does not decrypt or use any decrypted data.
Example Usage * "Which workflows are using Slack and Google Calendar?" * "Which workflows have AI in their name but are not using openAI?"
How it works * Using the n8n API, it fetches all workflow data on the instance. Workflow data contains references to credentials used so this will be extracted. * With some necessary reformatting, the workflows and their credentials metadata are stored to a SQLite database. * Next, an AI agent is used with a custom SQL tool that reads the SQLite database created in the previous step. * The AI agent is instructed to perform SQL queries against our workflow credential table when asked about credentials by the user.
Requirements * You'll need an n8n API key. Please note that only workflows will be scoped to your API key.
Customising the workflow
Add extra table fields to the SQLite database to answer even more complex queries such as: * workflow status to differentiate between active and inactive workflows.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Query n8n credentials with AI SQL agent.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related AI Agents Workflows
View All in AI Agents →5 ways to process images PDFs with Gemini AI in n8n
How it works Many users have asked in the support forum about different methods to analyze images and PDF documents with Google Gemini AI in n8n. This workfl...
7 AI Sales Assistant
Production-ready n8n automation template for 7 AI Sales Assistant built by AhiXLight. Seamlessly connects Airtop Tool, Slack, Airtop with 24 configured nodes.
AAVE portfolio professional AI agent Telegram Email GPT 4o
A next-generation AI-powered DeFi health monitor that tracks wallet positions across Aave V3 using GPT-4o and LangChain. It delivers human-readable reports v...
Access control for AI agents RBAC using Airtable and Telegram
Purpose This workflow allows granular control over the access to tools connected to AI Agents (including Multi-Agent setups) using Role Based Access Control....