๐Ÿ“– Chat with a database using AI

โšก 252,885 views ยท ๐Ÿ“– Internal Wiki & Knowledge Base

Description

This workflow allows you to ask questions about data stored in a database using AI.

To use it, youโ€™ll need an OpenAI API key (although you could also swap in a model from another service).

Supported databases:

The workflow uses n8nโ€™s embedded chat, but you could also modify it to work with a chat service such as Slack, MS Teams or WhatsApp.

Note that to use this template, you need to be on n8n version 1.19.4 or later.

๐Ÿ”— Nodes Used

AI Agent, OpenAI Chat Model, Chat Trigger

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup