Use this powerful n8n workflow to automate image segmentation and object detection using VLM Run, then automatically upload results to Google Drive and share via Telegram. A robust n8n automation.
Download this n8n workflow template and start using it instantly.
This comprehensive n8n workflow demonstrates how to build resilient, asynchronous automations around computationally intensive AI tasks. When a user uploads an image via the initial form n8n trigger, the file is immediately dispatched to two separate VLM Run agents—one for segmentation and one for object detection. The use of multiple webhook n8n nodes allows the core flow to continue without waiting for the lengthy AI processing, achieving parallelism.
Once the AI task is complete, the VLM Run service calls back to the specified webhook n8n trigger, providing a securely signed Google Cloud Storage URL. A critical component of this n8n workflow is the custom code n8n node, which ensures the full signed URL (including authentication parameters) is extracted correctly. Finally, the processed image is downloaded and automatically archived to Google Drive and shared instantly via Telegram. This setup is a prime example of leveraging the power of n8n for complex data pipelines.
chatId in the Send Image n8n node where you want the processed images to be delivered. Upload Image (Form Trigger n8n node): The primary n8n trigger for the workflow. It provides a simple form for users to upload files (configured to accept .pdf, .csv, though used here for images).
VLM Run (Segmentation / Detection): Custom n8n node for interacting with VLM Run AI agents. It sends the input image and specifies an agentPrompt (e.g., "Segment all objects"). Crucially, it defines agentCallbackUrl to tell VLM Run where to send the results back.
Webhook for Segmented/Detected Image (Webhook n8n trigger): These asynchronous n8n nodes listen for the callback responses from VLM Run. They use unique paths (imagesegmentation, imagedetection).
Code (n8n node): A custom scripting block essential for this n8n workflow. It uses a regex (https?:\/\/[^\s"]+) to locate and extract the full, query-parameter-inclusive signed URL necessary for authenticated download.
Download Image (HTTP Request n8n node): Fetches the processed image binary data using the signed URL provided by the Code n8n node (={{ $json.url }}). This brings the image back into the n8n execution context.
Upload File (Google Drive n8n node): Archives the processed image to Google Drive, using the test_data folder ID specified in the parameters.
sendDocument operation and utilizing the binary data output from the Download Image n8n node.Use this powerful n8n workflow to automatically remove backgrounds from uploaded images using AI services, track results, and manage temporary download links in Google Sheets.

Implement a robust n8n workflow for Retrieval-Augmented Generation (RAG) using recursive chunking. Integrate Google Drive, OpenAI, and Supabase Vector Store for powerful knowledge base automation.

A robust n8n workflow template for processing documents (PDF, Word, Images) from Google Drive, generating detailed performance analytics and quality scores using the PDF Vector n8n node.

Use this powerful n8n workflow to triage Gmail messages, auto-reply using AI, extract structured data from PDF invoices, and send alerts via Telegram. Great for technical teams and accounts payable.

Securely automate Ko-fi payments using this robust n8n workflow. Route donations, subscriptions, and shop orders through a verified n8n trigger webhook, ensuring data integrity before processing.









































