Deploy a powerful data analytics n8n workflow that uses a Telegram bot to instantly visualize CSV flight data into professional Bar, Pie, Doughnut, and Line charts using the QuickChart API and custom n8n code.
Download this n8n workflow template and start using it instantly.
Markdown-formatted text:
Data analysts or business users needing rapid, on-demand visualization without traditional BI tools.
Developers looking for advanced n8n templates that showcase data processing and external API integration.
Users aiming to deploy complex, data-driven Telegram bots using n8n node automation.
Anyone interested in using custom code scripting within an n8n workflow for dynamic chart generation.
This comprehensive n8n workflow transforms raw, static flight data stored in a CSV file into dynamic, visually rich charts delivered directly through Telegram. The primary goal is to provide instant data insights, making complex analytics accessible through a simple conversational interface. The automation begins with a Telegram n8n trigger and routes user requests to specific analysis paths. By utilizing custom JavaScript inside the Code n8n node, the workflow calculates essential metrics (like top airline counts or average prices) and translates them into Chart.js configurations. These configurations are then sent to the QuickChart API, which returns a professional PNG image. This setup highlights the immense potential of n8n for combining messaging platforms, custom logic, and visualization APIs into seamless, high-value data tools. This particular n8n workflow serves as an excellent example for creating powerful, user-facing applications.
Markdown-formatted text:
/start command. If so, a friendly menu with four chart options (using a reply keyboard) is delivered via a Telegram n8n node./data/flights.csv path.Markdown-formatted text:
/data/flights.csv. Ensure you create the necessary /data directory in your n8n host environment (especially if running via Docker) and place your flight data CSV file there./start to your Telegram bot to initialize the n8n trigger and test the n8n workflow.Markdown-formatted text:
Telegram Trigger: Function: The core n8n trigger that initiates the automation upon receiving a user message. Key Configuration: Configured to listen for message and callback_query updates.
Read CSV File / Extract from File: Function: These two nodes work together to locate the flight data (/data/flights.csv), load its raw content, and transform it into a collection of JSON objects for immediate processing within the n8n workflow.
Check Start (If node): Function: Provides crucial flow control by checking if the incoming Telegram message text is exactly /start, routing users to the welcome menu or the data processing pipeline.
Switch: Function: A central control flow n8n node that directs execution to one of the four chart generation branches based on the user's explicit button selection from Telegram.
Process Data & Create X Chart (Code node): Function: The heart of the analysis. Each of the four Code n8n node instances contains custom JavaScript to perform distinct aggregations (e.g., calculating top 10 airlines, grouping prices) and serialize the results into a QuickChart API URL using Chart.js JSON syntax.
HTTP Request (Fetch X Chart Image): Function: Fetches the rendered PNG image. Key Configuration: The URL is dynamically derived from the output of the preceding Code n8n node ({{ $json.quickChartUrl }}), fetching the binary image data.
Use this dynamic n8n workflow to automate currency rate uploads to SAP Business One (SAP B1) from multiple sources (JSON, SQL, Sheets). Features OpenAI for complex data transformation and date validation, making this one of the most powerful n8n templates available.

Use this powerful n8n workflow to automatically scan Gmail for delivery failures, extract bounced email addresses, and update your Google Sheets contact list instantly for better hygiene.

Fix incorrect guest order emails in Magento 2 efficiently using this n8n workflow. It combines MySQL updates and Magento REST API calls to ensure confirmations are resent correctly.

Automate sophisticated travel planning with this n8n workflow. It scrapes live flight prices, fetches destination weather data, uses GPT for complex analysis, and publishes the results automatically to WordPress and Slack. Get this n8n template today.

Generate a personalized email digest of hot Reddit posts using this advanced n8n workflow. Features multi-subreddit tracking, smart filtering, GPT-4o mini summarization, and Gmail delivery. Use this n8n template for automated content curation.

Use this comprehensive n8n workflow to integrate Fal.ai's Flux model for advanced AI image generation, automatically handling polling and securely uploading the final images to Google Drive. A perfect n8n template for creatives.








































