Mindket

Chat agent that lists which workflows use which credentials

Newversion 1 · updated

Overview

An n8n workflow in two steps. One saves which credentials each workflow uses, the other is a chat where an agent answers with SQL. It reads types, ids and names, never secrets.

Chat agent that lists which workflows use which credentials is an n8n workflow in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

At a glance

Runs in
  • Your own n8n server: allow the two modules in the runner’s settings, then import the file
  • n8n Cloud: only if your plan lets Python code import those two modules
  • More facts about workflows: keep more fields in Map Workflows & Credentials and add columns in Save to Database

Platform

Connects 2 apps

How it works

Trigger

Chat window

The chat starts when you press Chat on the canvas and send a message with:

  • A question about which workflows use which credentials

Actions

  1. Beforehand, one manual run lists your workflows through n8n’s API and saves each one’s credential types, ids and names in a SQLite file
  2. The agent reads your question
  3. It writes a SELECT query for the saved table
  4. The tool runs the query and returns the rows
  5. The agent answers from the rows, and gives a link to a workflow when you ask

Result

A chat answer that names the workflows using the credentials you asked about

Integrations

What you need before you start.

n8n

Workflow list

Returns every workflow the API key can see, with each node’s credential type, id and name.

NeedsAn n8n API key and the API address of your instance

OpenAI

Language model

Runs the agent that writes the SQL and the answer.

NeedsOpenAI API key

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
6 steps, starting by hand or on a chat message
AI
1 step calls an AI model: Workflow Credentials Helper Agent
Sign-ins
Signs in to: OpenAI
API keys
No API key is left in the file
Step types
Mindket’s checker reads 3 of its 6 step types. It does not read: N8n, Code and AI Agent

Read from the workflow’s file, not from a run.

About

What it is

This n8n workflow lets you ask which of your workflows use which credentials. Step one lists your workflows through n8n’s own API and saves each one’s id, name and credential list in a SQLite database. Step two is a chat. An AI agent turns your question into a SQL query, runs it and answers. It reads credential types, ids and names only. No secret is read. Nine nodes do the work, beside four sticky notes.

Who it suits

n8n admins, agencies and teams with many workflows who need to know what breaks when a credential is rotated or removed. It also suits anyone learning how an agent can use a database as a tool. Skip it if your host has no Python runner that allows sqlite3, because both steps depend on it.

Who uses it, and how
IndustryWho uses itHow they use itExample
IT operationsn8n administratorsFind every workflow that uses a credential before they rotate itAn admin asks which workflows use the Slack account named Support.
AgenciesAutomation agenciesAudit a client’s instance and list the apps it touchesAn agency asks which workflows use Google Sheets and Airtable together.
SecurityReviewersCheck where a sensitive account is usedA reviewer asks which workflows use an OpenAI credential.
SoftwareDevelopersStudy how a chat agent can query a small databaseA developer swaps the table for their own and keeps the agent.

You need a little n8n and the right to change one setting of its Python runner. Nothing in the file states a setup time.

Where to use it

Any n8n whose Python runner allows json and sqlite3 will run it.

  • Your own n8n server: allow the two modules in the runner’s settings, then import the file
  • n8n Cloud: only if your plan lets Python code import those two modules
  • More facts about workflows: keep more fields in Map Workflows & Credentials and add columns in Save to Database

Setup

Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Two accounts and one runner setting cover every step.

What you need first
NeedDetail
n8nWith a Python task runner
Runner settingN8N_RUNNERS_STDLIB_ALLOW allowing json and sqlite3
n8n APIAn API key and the API address of your instance, which ends in /api/v1
OpenAIAn API key for the chat model
  1. In n8n, create a workflow, open its menu, choose Import from File and pick workflow.json.
  2. Allow json and sqlite3 in the Python runner.
  3. Add an n8n API credential with your key and API address, and select it in n8n.
  4. Add an OpenAI credential and select it in OpenAI Chat Model.
  5. In the system message of Workflow Credentials Helper Agent, replace <YOUR_N8N_ADDRESS> with the address of your n8n.
  6. Press Test workflow on the manual trigger. Save to Database reports how many workflows it stored.
  7. Open the chat and ask a question.

How to use it

Run step one whenever your workflows change, then chat. Ask in plain words and the agent writes the SQL for you.

What to change for a different result
To changeWhere
Which workflows are readThe options of n8n
Which fields are keptThe three assignments in Map Workflows & Credentials
What the agent knowsThe system message and the description of the tool
The modelOpenAI Chat Model

Example

You ask which workflows use Slack and Google Calendar.

The agent writes a query that looks for both app names in the credentials column, since the table keeps them as JSON text. It runs the query through the tool and lists the matching workflows by name. Ask for a link, and it builds one from the address you set in its system message.

For newcomers and experts

If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. The top row is a one time import. The row below is the chat. SQL is a language for asking a table questions, and the agent writes it for you.

For experts. The table is a SQLite file that two Python steps share, and the tool accepts SELECT queries only.

Where to look closer
NodeWhat it doesWhat to know
n8nLists workflows, all of themIt sees the workflows your API key can see
Map Workflows & CredentialsVersion 3.3 with three assignments, the credentials built from each node’s entryEach entry holds a credential’s type, id and name
Save to DatabaseA Code node in Python (Native)It imports json and sqlite3, which the runner must allow
Query Workflow Credentials DatabaseA Custom Code Tool 1.1 in PythonIt reads the query from _query and refuses anything that does not start with select
Workflow Credentials Helper AgentA Tools Agent, version 1.6Its system message holds your n8n address, for links

Good to know

It reads credential names, and Python must be allowed to import two modules.

  • What it reads: credential types, ids and names, and no secret. A name is free text, so it can hold an email address or a client’s name
  • A snapshot: the table holds what the workflows looked like on the last run of step one, so run it again after changes
  • Python: both Python steps need json and sqlite3 allowed, which a stock n8n turns off
  • The file: the SQLite file is created in the folder the Python runner works from, so that folder must be writable
  • Your data: the agent’s answers, which can include workflow and credential names, go to OpenAI
  • Billing: each question costs at least one model call, and two when the agent queries the database
  • Models: the original copy left the model out, so n8n would use gpt-5-mini, which OpenAI shuts down on 11 December 2026. Mindket’s copy names gpt-5.6-terra
  • Repairs: the original copy’s Python steps were written for an older runner, and its link line used a browser object that n8n’s expressions do not have. Mindket’s copy fixes both and limits the tool to SELECT
  • Where it runs: from n8n’s Chat window in the editor. Nothing in the file opens a public chat
  • Credentials: the JSON holds none

README and files

README

Chat agent that lists which workflows use which credentials

An n8n workflow in two steps. Step one asks your own n8n for all its workflows, keeps each workflow's id, its name and the
credentials its nodes point to, and saves them in a small SQLite database. Step two is a chat. An AI agent turns your
question into a SQL query and answers from what comes back.

What it reads, plainly

It reads credential types, ids and names. Nothing else about a credential is read. The workflow takes the credentials
entry of each node from n8n's list of workflows, and that entry holds a type, an id and a name. It never calls n8n's
credential endpoints, so no secret, password or token is read or saved. A credential's name is free text, though, and can
carry an email address or a client's name.

What is inside

  • workflow.json: the workflow as n8n exports it, 9 nodes beside 4 sticky notes. It holds no credential.
  • README.md: these notes.

What we changed from the original copy

The copy was written for an older Python runner. Mindket made these changes so it runs on n8n's current one:

  • Both Python steps read _input and used item.json and .to_py(). The current runner gives code only _items and, for a
    tool, _query. Mindket rewrote both steps to match, and set Save to Database to Python (Native).
  • The tool ran any SQL the model wrote. It now answers only a query that starts with select, which is what its own
    description asks for.
  • The agent's system message built the workflow link from window.location. n8n's expressions give a window with nothing
    in it, so the message could not be built. The message now holds <YOUR_N8N_ADDRESS>.
  • The chat model named no model, so n8n would fill in gpt-5-mini, which OpenAI shuts down on 11 December 2026. Mindket's
    copy names gpt-5.6-terra, the replacement OpenAI gives for it.
  • A sticky note said the database lives in memory and is wiped when n8n restarts. The Python step creates a file, so the
    note now says that.
  • No credential is inside.

Before you start

  • An n8n instance with a Python task runner. Its Python code can import nothing by default, so json and sqlite3 must be
    allowed through the runner's variable N8N_RUNNERS_STDLIB_ALLOW, for example json,sqlite3. For an external runner, n8n's
    docs, read on 12 November 2026, say to set it in the runner's config file as an env override.
  • An n8n API key and the API address of your instance, which ends in /api/v1.
  • An OpenAI API key.

Set it up

  1. In n8n, create a workflow, open its menu and choose Import from File. Pick workflow.json.
  2. Allow json and sqlite3 in the Python runner, as above.
  3. In n8n, create an API key. Add an n8n API credential with that key and your API address, and select it in n8n.
  4. Add an OpenAI credential and select it in OpenAI Chat Model.
  5. Open Workflow Credentials Helper Agent and replace <YOUR_N8N_ADDRESS> in its system message with the address of
    your n8n, such as https://n8n.example.com.
  6. Press Test workflow on the manual trigger. Save to Database should report how many workflows it stored.
  7. Open the chat and ask a question.

How a run goes

Step one runs when you press Test workflow:

  1. When clicking "Test workflow" starts the run.
  2. n8n lists every workflow the API key can see.
  3. Map Workflows & Credentials keeps three fields for each one: workflow_id, workflow_name and credentials, a list
    of the type, id and name of every credential its nodes use.
  4. Save to Database makes the table n8n_workflow_credentials if it is missing, then inserts or replaces one row for each
    workflow.

Step two runs when you send a chat message:

  1. Chat Trigger starts a run.
  2. Workflow Credentials Helper Agent is a Tools Agent, version 1.6, with OpenAI Chat Model and Window Buffer Memory.
  3. Query Workflow Credentials Database is its tool, query_workflow_credentials_database. It runs the SELECT the agent
    writes. Its description tells the agent the table and that the credentials column is a JSON string, so a LIKE search
    works best.
  4. The agent answers, and gives a link to a workflow when you ask for one.

Change the look

  • Which workflows are read: the options of n8n.
  • Which fields are kept: the three assignments in Map Workflows & Credentials.
  • What the agent knows and how it answers: the system message and the tool's description.
  • The model: OpenAI Chat Model.

Good to know

  • The database is a snapshot. Press Test workflow again after your workflows change.
  • Python gives each run a fresh process, so the steps share one SQLite file that the runner creates in the folder it works
    from. That folder must be writable, and whether the file survives a restart depends on it.
  • The agent's answers, which can include credential names and workflow names, go to OpenAI.
  • The workflows you can list depend on your API key.
  • Each question costs at least one model call, and two when the agent queries the database.
  • It runs from n8n's Chat window in the editor. Nothing in the file opens a public chat.
  • The JSON holds no credential.
Files
NOTICE.md  608 B
README.md  5 KB
workflow.json  9 KB

3 files, 15 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Developer

See all in Developer

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k

open-code-review

alibaba · Kit

Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…

New50.7k