This n8n workflow seamlessly integrates SQL querying, an AI language model, and chart generation to create an intelligent data analysis tool. It begins with an input from a user, extracting their question and determining if a visual aid, such as a chart, is needed. The workflow then queries a database via a SQL agent to retrieve relevant data. A text classifier assesses whether a chart will enhance understanding based on the user’s request. If required, the workflow dynamically generates a chart definition through OpenAI’s GPT-4, using structured prompts to create accurate, visually appealing charts. The result is a comprehensive response that combines textual data with custom charts, delivered to users. This workflow is ideal for data-driven teams needing interactive and automated data insights, making complex data easily understandable and shareable.
Dynamic Data Visualization with AI and Chart Generation
Node Count | 11 – 20 Nodes |
---|---|
Nodes Used | @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.chatTrigger, @n8n/n8n-nodes-langchain.informationExtractor, @n8n/n8n-nodes-langchain.lmChatOpenAi, @n8n/n8n-nodes-langchain.memoryBufferWindow, @n8n/n8n-nodes-langchain.textClassifier, executeWorkflow, executeWorkflowTrigger, httpRequest, set, stickyNote |
Reviews
There are no reviews yet.