Generate Enhanced AI Images via Telegram with DALL-E and GPT

Nodes

cc410a33-acd1-4c16-aba9-bd8029d93b47bd79094e-5967-4692-8dc9-207cbfbe889accc8d19f-f0b3-4730-899f-8023aeb547e45538bde0-49bb-4e2f-8501-dd5ee606606a3b9f1b78-6b80-4575-aa6c-96698700038924e3b914-15fa-444f-80e3-ca29bdacaf40

Created by

DaDavid Olusola

Last edited 10 days ago

PromptCraft AI – Telegram Image Generator

🚀 How It Works

PromptCraft AI is an n8n automation that transforms simple image ideas sent through Telegram into stunning AI-generated images using OpenAI's DALL·E (or other image models).

🔁 Workflow Overview:

  1. Telegram Trigger: Listens for messages from a user on Telegram.
  2. Prompt Expansion: The message is transformed into a rich image description using GPT (OpenAI Chat Model).
  3. Image Generation: The prompt is passed to OpenAI's image API to generate a high-quality image.
  4. Send Image: The final image is sent back to the user on Telegram.
  5. (Optional) Log image titles and links to Google Drive and Google Sheets.

⚙️ Setup Instructions

📋 Prerequisites

  • [ ] n8n installed (Self-hosted or via n8n.cloud)
  • [ ] Telegram bot token (via @BotFather)
  • [ ] OpenAI API key (platform.openai.com)
  • [ ] Google Sheets & Drive OAuth2 credentials (optional)

🧠 Step-by-Step Configuration

1. 📥 Import the Workflow

  • Go to n8n → click Import → upload PromptCraft_AI_Template.json

2. 🔐 Set Up Credentials

  • In Credentials, add the following:

    • Telegram API → Paste your bot token
    • OpenAI API → Paste your OpenAI API key
    • (Optional) Google Sheets OAuth2, Google Drive OAuth2

3. 🔄 Replace Placeholders

  • Open each node that requires credentials:

    • Replace REPLACE_OPENAI_API_KEY with your actual OpenAI API key
    • Replace REPLACE_TELEGRAM_API_ID and credential names as needed
    • (Optional) Update Google Drive Folder ID & Sheet ID in respective nodes

4. ✅ Activate the Workflow

  • Turn on the Telegram Trigger node.
  • Deploy and activate the full workflow.

5. ✉️ Test It Out

  • Send your Telegram bot a message like:

    a knight riding a robotic horse in the future

  • Receive the generated image back in Telegram!


💡 Pro Tips

  • Use detailed or imaginative inputs for better outputs.
  • Fine-tune the GPT prompt for specific visual styles.
  • Extend with Google Vision, image upscaling, or watermarking.

🛟 Support

For setup assistance or custom feature requests, feel free to contact me @dimejicole21@gmail.com


Happy Prompting! 🖼✨

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!