Querying n8n Workflow Credentials with AI Agent

Ever wondered which of your n8n workflows are using which credentials?
Just getting started with AI agents and want to use them for everything?

Well, you’ll in luck! Here’s a neat little trick which uses an AI agent as a search interface over your n8n workflows and their credentials. In this example, you’ll learn:

  • Utilising the n8n API with HTTP node pagination example
  • Creating ephemeral SQLite databases with Code node
  • Building AI Agent with tools - in particular, an SQL tool which uses an SQLite database.

If you like n8n & AI, be sure to check out my other AI posts in the forum!

Workflow

3 Likes

Love this idea, Jim! People often use n8n to make up for missing features in other tools, and you’re doing it with n8n itself. Very meta :slight_smile:

This would be amazing as a workflow template if you haven’t submitted one already.

1 Like

Thanks @sirdavidoff. Ha I didn’t initially look at it that way but now you mentioned it… yes, it is all very meta! Really enjoying using the AI nodes btw - makes it really easy to test out things like this.

Yes, I’m definitely looking to submit a few templates soon :crossed_fingers: