GenAiHub

Last checked 24 November 2026 — responded normally.

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.

Live
Open / InstallLast updated November 24, 2026

Description

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. An n8n automation workflow template by Jimleuk.

Community Metrics

Views
4,893
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Jimleuk

Platform

web

Pricing model

free

Categories

  • Automation
  • AI

Tags

  • n8n
  • workflow
  • code
  • ai-agent
  • openai-chat-model
  • simple-memory
  • code-tool

Capabilities

  • 5 nodes
  • 4,893 views

Information

TypeWorkflow
Sourcen8n
AddedSeptember 3, 2026

Comments

?

Others in the same category, ranked by how often they are opened.