Skip to main content

Send daily AI-generated quotes & images to Telegram with GPT-4o and Flux-pro

Workflow preview

Send daily AI-generated quotes & images to Telegram with GPT-4o and Flux-pro preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

Overview

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

  1. 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).
  1. Create Telegram Credentials
  • In Telegram, open @BotFather β†’ /newbot β†’ save the bot token.
  • In n8n β†’ Credentials β†’ Telegram API, paste the token.
  1. Capture Chat ID
  • Start the workflow, message your bot once (Telegram Trigger will store the chat ID automatically).
  1. 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

  1. Trigger β€” Runs daily via Schedule Trigger (or manually after first chat message to capture chat ID).
  2. Quote Generation β€” AI/ML API (GPT‑4o) produces a short, original, uplifting line.
  3. Image Creation β€” AI/ML API (flux-pro) renders a cinematic image inspired by the quote.
  4. 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.