AI/ML API | D1m7asis
Templates by AI/ML API | D1m7asis
Automate AI video production & distribution with Veo3, YouTube & Google Suite
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Generate Veo3 Videos via AI/ML API, Save to Google Drive and Upload to YouTube Transform your content creation process by automating video generation with AI, publishing to YouTube, and logging results in Google Sheets. This workflow is ideal for content creators, marketers, and social media managers looking to streamline video production and distribution. How it works Trigger: Start the workflow manually or on a scheduled interval (e.g., every hour). Generate Video: Send a request to the AI/ML API to create video content based on predefined prompts and settings. Monitor Status: Poll the AI/ML API until the video generation is completed, with retry logic for reliability. Download & Upload: Retrieve the generated video file and upload it to your connected YouTube channel. Title Generation: Generate a YouTube title using AI to optimize for engagement. Log Results: Update a Google Sheet with video metadata and the YouTube URL for tracking and analytics. Set up steps Connect Credentials: Add OAuth2 credentials for AI/ML API, YouTube, and Google Sheets in n8n Credentials. Configure Nodes: Rename nodes for clarity (e.g., Generate Video, Upload to YouTube) and set up the HTTP Request node to use your AI/ML API credential. Sheet Preparation: Create a Google Sheet with columns for Date, Prompt, Video ID, and YouTube URL. Schedule: If using scheduling, configure the Schedule Trigger interval (e.g., every 60 minutes). Test & Deploy: Run a manual trigger, verify video generation, upload, and sheet entry, then activate the workflow for automation.
Generate videos from text prompts using GPT-5 and Google Veo-3
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. ๐ฌ GPT-5 Cinematic Video Generator (n8n + AI/ML API + Google Veo-3) This n8n workflow transforms even a single word into a fully rendered cinematic video using Google Veo-3 image-to-video and prompt expansion with GPT-5. Ideal for rapid creative prototyping, content creation, and AI-driven video production. --- ๐ Key Features Ultra-Short Input Ready โ Works with just one keyword or a short idea. AI Prompt Expansion โ GPT-5 adds cinematic elements: camera motion, mood, color palette, and composition. Automated Video Generation โ Veo-3 i2v model creates smooth, visually appealing clips. Smart Polling โ Waits until video is ready, with success/fail handling. Direct Output โ Returns ready-to-use video URL for download or publishing. --- ๐ Setup Guide Create AI/ML API Credentials Get your API key from AI/ML API Keys. In n8n > Credentials, add AI/ML account (Bearer token). (Optional) Change Image Source Edit the Set image URL node to point to your desired still image for video generation. Run from Chat Send a word or short phrase via Chat Trigger to start the process. (Optional) Extend Output Add Google Drive upload, YouTube publish, or database logging nodes for a complete content pipeline. --- ๐ก How It Works Trigger โ Receives chat input (keyword or brief). Prompt Expansion โ GPT-5 turns it into a cinematic, Veo-3-optimized description. Video Creation โ Sends prompt + image to Veo-3 image-to-video. Polling โ Checks generation status every 30 seconds until complete. Result โ Returns direct video URL, ready for your next steps.
Generate AI images in Telegram with GPT-4o enhancement and Flux Pro
๐ง AI Image Generator Bot โ Telegram + AI/ML API This n8n workflow allows users to generate AI-generated images by sending messages to a Telegram bot. Each request is logged in Google Sheets and limited by a daily quota per user. Image prompts are enhanced by LLM before generation. --- ๐ Features ๐ฉ Telegram-based input ๐ง Prompt enhancement with GPT-4o ๐จ AI image generation via flux-pro model (AIMLAPI) ๐ Auto-caption generation ๐ Usage tracked per user daily in Google Sheets ๐ Daily request limits โ Graceful UX for over-limit cases --- ๐ Setup Guide ๐ฒ Create Telegram Bot Talk to @BotFather Use /newbot โ Choose a name and username Save the bot token ๐ Set Up Credentials in n8n Telegram API: Use your bot token Google Sheets: Set up via OAuth2 or Service Account AI/ML API: Set up with your API key from aimlapi.com ๐ Prepare Google Sheet Name: Any (e.g., Image bot usage statistic) Sheet: Sheet1 Columns: userid | date | query | resulturl Share the sheet with the email of your service/OAuth2 account ๐ง Configure the Workflow Open the n8n editor and import the JSON Update: Telegram credential Google Sheets credential and Sheet ID AI/ML API credentials --- โ๏ธ Flow Summary | Node | Function | | ------------------------------ | ------------------------------------ | | ๐ฉ Receive Telegram Message | Triggered by user message | | ๐ Fetch Usage Logs | Reads today's entries from Sheet | | ๐ Count Todayโs Requests | Counts how many generations today | | ๐ข Set Daily Limit | Sets default limit (5) | | ๐ฆ Check Limit Exceeded? | If over limit โ notify | | ๐ง Enhance Prompt | Uses GPT-4o to improve user's prompt | | ๐จ Generate Image | Sends to AIMLAPI to generate | | ๐ Describe Image | Generates caption for the image | | ๐ค Send Image to User | Sends back to Telegram | | ๐ Log Successful Generation | Writes to Google Sheets | --- ๐ Data Logging Each successful generation is stored in Google Sheets: | user\id | date | query | result\url | | -------- | ---- | ----- | ----------- | --- ๐ก Example Prompt Flow User sends: astronaut cat floating in space Bot replies: > Hereโs your image: > A majestic feline astronaut drifts through a glittering cosmic void, its helmet reflecting starlight. The image is sent with the caption --- ๐ Daily Limit Default: 5 generations/day per Telegram user You can change this in the ๐ข Set Daily Limit node --- ๐งช Testing Use /execute workflow in Telegram โ not "Execute Node" in editor Log test results to sheet Add extra Set nodes for debugging as needed --- ๐ Resources ๐ AI/ML API Docs ๐ผ๏ธ flux-pro Model UI
Analyze images & extract text with GPT-4o Vision and Telegram
Whoโs it for Teams and makers who want a plug-and-play vision bot: users send a photo in Telegram, the bot returns a concise description plus OCR text. No custom servers requiredโjust n8n, a Telegram bot, and an AIMLAPI key. What it does / How it works The workflow listens for new Telegram messages, fetches the highest-resolution photo, converts it to base64, normalizes the MIME type, and calls AIMLAPI (GPT-4o Vision) via the HTTP Request node using the OpenAI-compatible messages format with an image_url data URI. The model returns a short caption and extracted text. The answer is sent back to the same Telegram chat. Requirements n8n instance (self-hosted or cloud) Telegram bot token (from @BotFather) AIMLAPI account and API key (OpenAI-compatible endpoint) How to set up Create a Telegram bot with @BotFather and copy the token. In n8n, add Telegram credentials (no hardcoded tokens in nodes). Add AIMLAPI credentials with your API key (base URL: https://api.aimlapi.com/v1). Import the workflow JSON and connect credentials in the nodes. Execute the trigger and send a photo to your bot to test. How to customize the workflow Modify the vision prompt (e.g., add brand, language, or formatting rules). Switch models within AIMLAPI (any vision-capable model using the same messages schema). Add an IF branch for text-only messages (reply with guidance). Log usage to Google Sheets or a database (user id, file id, response). Add rate limits, user allowlists, or Markdown formatting in Telegram responses. Increase timeouts/retries in the HTTP Request node for long-running images.
Send daily AI-generated quotes & images to Telegram with GPT-4o and Flux-pro
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. ๐ Daily AI Inspiration (n8n + AI/ML API + Telegram) This n8n workflow sends a short, original AIโgenerated quote and a matching cinematic image to your Telegram chat every morning. It autoโcaptures your chat ID from the first message you send to the bot, then runs on a daily schedule. ๐ Key Features ZeroโFriction Delivery โ Just send any message once; the chat ID is saved for daily drops. AI Quote Writer โ GPTโ4o crafts concise, uplifting quotes (no author, no quotes). Cinematic Visuals โ flux-pro turns each quote into a moodโrich illustration. HandsโOff Scheduling โ Runs at a set time every day via Schedule Trigger. Telegram Ready โ Sends the image + caption directly to your chat. ๐ Setup Guide Create AI/ML API Credentials Get your API key in AI/ML API. In n8n โ Credentials, add AI/ML API (Bearer token, Base URL https://api.aimlapi.com/v1). Create Telegram Credentials In Telegram, open @BotFather โ /newbot โ save the bot token. In n8n โ Credentials โ Telegram API, paste the token. Capture Chat ID Start the workflow, message your bot once (Telegram Trigger will store the chat ID automatically). Schedule & Test Set your preferred time in Schedule Trigger (e.g., 07:30). Execute once to confirm delivery, then enable the workflow. ๐ก How It Works Trigger โ Runs daily via Schedule Trigger (or manually after first chat message to capture chat ID). Quote Generation โ AI/ML API (GPTโ4o) produces a short, original, uplifting line. Image Creation โ AI/ML API (flux-pro) renders a cinematic image inspired by the quote. Telegram Delivery โ Sends the image to your chat with the quote as the caption (๐ prefix). Optional: tweak image size (1024ร1024 by default), add logging (Google Sheets), or extend with moderation, model switching, or multiโchat routing.
Answer questions with factual web search using Telegram, Tavily and GPT-5
๐ง Telegram Search Assistant โ Tavily + AI/ML API This n8n workflow lets users ask questions in Telegram and receive concise, fact-based answers. It performs a web search with Tavily, then uses AIMLAPI (GPT-5) to summarize results into a clear 3โ4 sentence reply. The flow ensures grounded, non-hallucinated answers. --- ๐ Features ๐ฉ Telegram-based input โจ๏ธ Typing indicator for better UX ๐ Web search with Tavily (JSON results) ๐ง Summarization with AIMLAPI (openai/gpt-5-chat-latest) ๐ค Replies in the same chat/thread โ Guardrails against hallucinations --- ๐ Setup Guide ๐ฒ Create Telegram Bot Talk to @BotFather Use /newbot โ choose a name and username Save the bot token ๐ Set Up Credentials in n8n Telegram API: use your bot token Tavily: add your Tavily API key AI/ML API: add your API key Base URL: https://api.aimlapi.com/v1 ๐ง Configure the Workflow Open the n8n editor and import the JSON Update credentials for Telegram, Tavily, and AIMLAPI --- โ๏ธ Flow Summary | Node | Function | |--------------------------|-----------------------------------------------| | ๐ฉ Receive Telegram Msg | Triggered when user sends text | | โจ๏ธ Typing Indicator | Shows โtypingโฆโ to user | | ๐ Web Search | Queries Tavily with userโs message | | ๐ง LLM Summarize | Summarizes search JSON into a factual answer | | ๐ค Reply to Telegram | Sends concise answer back to same thread | --- ๐ Data Handling By default: no data stored Optional: log queries & answers to Google Sheets or a database --- ๐ก Example Prompt Flow User sends: When is the next solar eclipse in Europe? Bot replies: The next solar eclipse in Europe will occur on August 12, 2026. It will be visible as a total eclipse across Spain, with partial views in much of Europe. The maximum eclipse will occur around 17:46 UTC. --- ๐ Customization Add commands: /help, /sources, /news Apply rate-limits per user Extend logging to Google Sheets / DB Add NSFW / profanity filters before search --- ๐งช Testing Test end-to-end in Telegram (not just โExecute Nodeโ) Add a fallback reply if Tavily returns empty results Use sticky notes for debugging & best practices --- ๐ Resources ๐ AI/ML API Docs ๐ Tavily Search API
Interactive Russian language tutor bot with GPT-4o and Telegram
This n8n workflow turns Telegram into a personal language tutor. Users can choose between different learning modes โ vocabulary, grammar, quiz, or mixed lessons โ simply by adding a hashtag to their message. The bot processes requests with AI/ML API and sends back structured, interactive lessons in Telegram. --- ๐ Features ๐ฉ Telegram-based input with hashtag commands ๐ง Adaptive AI responses (vocabulary, grammar, quiz) ๐ค Pronunciation support in Latin transcription ๐ Grammar explanations with examples โ Custom quizzes with auto-feedback ๐ฌ Supportive learning experience with motivational messages โณ Typing indicator for smoother UX --- ๐ Setup Guide ๐ฒ Create Telegram Bot Go to @BotFather Use /newbot โ choose a name and username Save the bot token ๐ Set Up Credentials in n8n Telegram API: Use your bot token AI/ML API: Add your API key under AI/ML account โ๏ธ Configure the Workflow Import the JSON into n8n Update credentials (Telegram + AI/ML API) Activate the workflow ๐ฌ Start Learning In Telegram, send a message with one of the supported hashtags: vocabulary โ learn new words grammar โ study rules with examples quiz โ get exercises Or just send plain text for a free-form AI response --- ๐ Node Overview Telegram Trigger โ Listens for incoming messages Show Typing Indicator โ Displays โtypingโฆโ while processing Switch Node โ Routes message by hashtag (vocabulary, grammar, quiz) Prompt Builder Nodes โ Create JSON payload for AI/ML API AI/ML API Node โ Generates the structured lesson Telegram Send โ Sends the formatted response back to the user --- ๐ก Example Flow User Input: vocabulary ะบัะบัััะทะฐ Bot Output: ะัะบัััะทะฐ (Kukurรบza) โ Corn Pronunciation: koo-koo-ROO-zah Sentence: ะฏ ะปัะฑะปั ะตััั ะบัะบัััะทั ะฝะฐ ะณัะธะปะต. I love eating grilled corn. ๐ Try to write your own sentence with โะบัะบัััะทะฐโ!
Create personalized city trip itineraries with Telegram Bot & GPT-4o
Overview This workflow transforms your Telegram bot into a smart AI-powered travel assistant that instantly creates 3-day trip plans for any city in the world. Users can personalize trips by sending hashtags such as luxury, budget, or romantic to receive itineraries aligned with their travel style โ from cozy getaways to adrenaline-filled adventures. Ideal for travel bloggers, tour operators, and AI enthusiasts looking to provide interactive trip suggestions through Telegram. --- How it Works Telegram Trigger โ Listens for new messages from users. Show Typing Indicator โ Sends a โtypingโฆโ signal for a smooth user experience. Switch Node โ Detects preset hashtags (e.g. cozy, nightlife, cultural) and routes the flow. Prompt Builder โ Creates a JSON prompt with the selected city, trip duration, and preset theme. AI/ML API (GPT-5 or GPT-4o) โ Generates a detailed 3-day itinerary including sights, restaurants, and travel tips. Telegram Message โ Sends the formatted trip plan back to the user. --- Key Features ๐ Dynamic Itinerary Generation โ Get personalized 3-day travel plans for any city. ๐ง AI-Driven Recommendations โ Sights, food, local culture, and insider tips generated via AI/ML API. ๐ฏ Preset Travel Styles โ Support for multiple hashtags: cozy โ Relaxed and charming ๐๏ธ nightlife โ Bars, concerts, and clubbing ๐๐ธ extreme โ Adventure & adrenaline ๐งโโ๏ธ family โ Kid-friendly fun ๐จโ๐ฉโ๐งโ๐ฆ budget โ Affordable travel ๐ฐ luxury โ Premium experiences โจ cultural โ Museums & history ๐จ๐๏ธ nature โ Parks & scenic hikes ๐ฒ๐๏ธ romantic โ Cozy and scenic spots ๐ ๐ฌ Interactive Telegram Experience โ Fast responses with typing indicators. โ๏ธ Plug-and-Play Setup โ Ready to import and activate. --- Setup Steps Create Telegram Bot Open @BotFather Run /newbot, set a name and username Save your bot token Add Credentials in n8n Telegram API โ Use your bot token AI/ML API โ Add your API key (GPT-4o or GPT-5 model) Import and Configure Import this JSON workflow into n8n Link credentials for Telegram and AI/ML API Activate the workflow Test the Bot Send: luxury Paris or nature Bali Receive your detailed AI-generated itinerary instantly --- Example Interaction User: /romantic Florence Bot: โจ 3-Day Romantic Getaway in Florence โจ Day 1 โ Artistic Beginnings โข Visit: Uffizi Gallery, Ponte Vecchio โข Eat: Trattoria ZaZa ๐ โข Tip: Sunset walk along Arno River ๐ Day 2 โ Tuscan Charm โข Visit: Boboli Gardens, Piazzale Michelangelo โข Eat: Wine tasting in Chianti region ๐ท โข Tip: Rent a Vespa for the full Italian vibe ๐ฎ๐น Day 3 โ Hidden Gems โข Visit: Fiesole hilltop village โข Eat: Local bakery for morning cappuccino โ โข Tip: Avoid peak crowds by starting early ๐ --- Resources ๐ AI/ML API Documentation
Convert Gmail emails to Telegram voice messages with GPT-5 and Inworld TTS
Whoโs it for For makers, founders, and productivity nerds who want to listen to their inbox instead of reading it. No servers, no hosting โ all done with n8n, a Telegram bot, and AI/ML API (LLM + TTS). What it does / How it works This workflow listens for new Gmail emails, extracts the sender, subject, date, and snippet, generates a 2โ3 sentence natural summary using GPT-5 via AI/ML API, then converts the text into a lifelike voice message using Inworld TTS-1-Max. The final audio file is downloaded and instantly delivered to your Telegram via a bot. A separate auxiliary flow captures your Telegram chat_id once, stores it in a Data Table, and the main flow reuses it every time โ no hardcoding required. High-level flow: Gmail Trigger detects new incoming email Code node builds a clean emailData block AI/ML API (GPT-5) generates a natural spoken summary AI/ML API (Inworld TTS-1-Max) converts summary โ voice Audio file is downloaded Voice message is sent to the same Telegram chat Requirements A working n8n instance (self-hosted or cloud) Gmail OAuth2 credentials Telegram bot token from @BotFather AI/ML API key Base URL: https://api.aimlapi.com/v1 Supports GPT-5 and Inworld TTS-1-Max Set up steps Create a Telegram bot via @BotFather and add Telegram API credentials in n8n Create an AI/ML API credential using your API key Add Gmail OAuth2 credentials for inbox access Import the workflow JSON Open nodes and attach the correct credentials (no hardcoded tokens inside nodes) Run the Telegram Trigger once and send any message to your bot โ this saves your chat_id Activate your workflow and receive your first voice-summary How to customize Replace GPT-5 with another LLM from AI/ML API (same schema) Change prompt style: tone, structure, language, or verbosity Add language selection or multi-voice support Add filters (e.g., only important emails, only starred emails) Log all activity to Google Sheets or a database Add IF conditions: voice only during certain hours, weekday vs weekend rules Add rate-limits or user allowlists Change the voice model for different notification styles: corporate, friendly, narrator