Skip to content
FlowHubFluxonLab
A
AI Automationfree

Visualize your SQL Agent queries with OpenAI and Quickchart.io

by Agent Studioadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentHTTP RequestHTTP RequestInformation ExtractorInformation ExtractorOpenAI Chat ModelOpenAI Chat ModelSSimple MemoryText ClassifierText Classifier
Share Post Share
OpenAI Chat ModelOpenAI Chat Mod…EWExecute WorkflowEWExecute "Generate a chart" toolExecute "Genera…HROpenAI - Generate Chart definition with Structured OutputOpenAI - Genera…SeSet responseChWhen chat message receivedWhen chat messa…SeSet Text outputSeSet Text + Chart outputSet Text + Char…AgAI AgentMBWindow Buffer MemoryWindow Buffer M…OpenAI Chat Model ClassifierOpenAI Chat Mod…TCText Classifier - Chart required?Text Classifier…SeUser question + Agent initial responseUser question +…IEInformation Extractor - User questionInformation Ext…1234567891011
1/5
FLOWS
STEPS · 11
Starts from a chat message

Overview This workflow aims to provide data visualization capabilities to a native SQL Agent. Together, they can help foster data analysis and data visualization within a team. It uses the native SQL Agent that works well and adds visualization capabilities thanks to OpenAI’s Structured Output and Quickchart.io. How it works Information Extraction: The Information Extractor identifies and extracts the user's question. If the question includes a visualization aspect, the SQL Agent alone may not respond accurately. SQL Querying: It leverages a regular SQL Agent: it connects to a database, queries it, and translates the response into a human-readable format. Chart Decision: The Text Classifier determines whether the user would benefit from a chart to support the SQL Agent's response. Chart Generation: If a chart is needed, the sub-workflow dynamically generates a chart and appends it to the SQL Agent’s response. If not, the SQL Agent’s response is output as is. Calling OpenAI for Chart Definition: The sub-workflow calls OpenAI via the HTTP Request node to retrieve a chart definition.

Tags

n8nreference-onlyagentinformation-extractorlm-chat-open-aimemory-buffer-windowtext-classifier
Connects
AAI AgentWHTTP RequestinformationextractorInformation ExtractoropenaichatmodelOpenAI Chat ModelSSimple MemorytextclassifierText Classifier
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes14
AddedNov 20, 2024

Related workflows

See all AI Automation
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

Slack chatbot powered by AI

This workflow offers an effective way to handle a chatbot's functionality, making use of multiple tools for information retrieval, conversation context storage, and message sending. It's a setup tailored for a Slack environment, aiming to offer an interactive, AI-driven chatbot experience. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
AopenaichatmodelS
free

Run a Telegram voice and chat assistant with OpenAI, Gmail, Calendar, and Notion

Quick overview This workflow turns a Telegram bot into a personal assistant that understands text or voice notes (transcribed with OpenAI), can read Gmail and Google Calendar, look up Notion tasks and contacts, and can draft and send emails with an approval step in Telegram. How it works Triggers when a new Telegram message arrives. Loads assistant settings (name, OpenAI model, languages, memory window) and checks whether the message is a voice note or plain text. If it is a voice note, downloads the audio from Telegram and transcribes it with OpenAI; otherwise it uses the message text as the user input. Sends the user input to an OpenAI-powered agent that keeps short-term chat memory and decides whether to call Gmail, Google Calendar, or Notion tools to answer the request. If the agent decides to send an email via Gmail, it asks for explicit approval in Telegram before proceeding. Sends the agent’s final response back to the user in Telegram. Setup Create a Telegram bot with @BotFather, add your Telegram credentials in n8n, and start a chat with the bot so it can reply to you. Add an OpenAI API credential and set the desired chat model and transcription language in the Configurati

by Dr. Firas