This n8n workflow creates an intelligent chatbot system that interacts with a PostgreSQL or Supabase database, enabling users to query data and generate visual charts dynamically. It leverages AI models for handling natural language prompts, querying data, and creating chart configurations, which are then rendered using QuickChart.io.
Starting with a webhook trigger, the chatbot receives user prompts and routes commands through a decision point. Depending on the user’s request, the workflow can query the database to fetch specific records or generate visual charts based on the data.
Key nodes include AI language models (GPT-based) for interpreting user inputs, a set of specialized tools for database interaction (SQL query execution, schema analysis), and chart generation assistants that format data into Chart.js configurations. The workflow employs a router node to direct tasks accordingly, facilitating efficient data handling and visualization.
Practical use cases include real-time data inquiry for real estate listings, sales performance charts, or any scenario where data visualization improves decision-making, all managed through natural language interaction with AI assistance.
Reviews
There are no reviews yet.