Automate X-Ray Analysis with VLM-agent-1 and Distribute to Gmail, Telegram & Drive
📌 Overview
This workflow provides an automated pipeline for processing medical X-ray images using VLM Run (model: vlm-agent-1), and distributing the AI-generated analysis to multiple channels—email, Telegram, and Google Drive.
⚙️ How It Works
- Upload X-Ray Image
A Form Trigger allows the user to upload an X-ray file. Once the image is submitted, the workflow immediately starts processing.
- Automated X-Ray Analysis
The uploaded X-ray image is sent to VLM Run (vlm-agent-1) via an OpenAI-compatible endpoint.
The model returns:
A text-based interpretation or description A disease-highlighted output image (if detected) A URL pointing to the annotated result image stored in Google Cloud
- Extract Output Image URL
A Code node scans the model response and extracts the first valid https://storage.googleapis.com/... image link.
This clean URL is passed downstream for:
File downloads Storage Email and Telegram distribution
- Generate Report File
The Convert to File node transforms the analysis text into a shareable .txt report. This file is used both for email and Drive storage.
- Send Notifications to Gmail & Telegram
The workflow automatically:
📧 Emails the doctor (or configured staff email):
The diagnostic description The generated report file The annotated X-ray image
📨 Sends a Telegram message containing:
The same report The disease-highlighted X-ray image
This ensures instant notification and cross-platform availability.
- Upload to Google Drive
The final step uses Google Drive OAuth2 to store:
The report file The annotated medical image
These files are uploaded to a designated Drive folder for archiving and future reference.
🧩 Key Features
✔️ Automated X-ray processing using VLM Run ✔️ Structured extraction of annotated medical images ✔️ Multi-channel notification (Email + Telegram) ✔️ Centralized archive via Google Drive ✔️ Zero manual intervention after upload ✔️ Works with OpenAI-compatible VLM endpoints
🔧 Requirements
VLM Run API Credentials** Required to call vlm-agent-1 for image analysis.
Gmail OAuth2 Credentials** Needed to automatically email the diagnostic report.
Telegram Bot Token** Sends analysis results to a Telegram chat or group.
Google Drive OAuth2** Stores reports and annotated images in Google Drive.
📎 Notes
This workflow automates image handling and communication. All AI-generated content must be reviewed by a qualified medical professional before any clinical use.
Related Templates
Instagram Full Profile Scraper with Apify and Google Sheets
📸 Instagram Full Profile Scraper with Apify and Google Sheets This n8n workflow automates the process of scraping ful...
Technology News Workflow Explanation with Key Services
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Auto-Publish Techn...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments