Generate Enhanced AI Images via Telegram with DALL-E and GPT
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:
Telegram Trigger: Listens for messages from a user on Telegram. Prompt Expansion: The message is transformed into a rich image description using GPT (OpenAI Chat Model). Image Generation: The prompt is passed to OpenAI's image API to generate a high-quality image. Send Image: The final image is sent back to the user on Telegram. (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
- π₯ Import the Workflow
Go to n8n β click Import β upload PromptCraft_AI_Template.json
- π 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
- π 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
- β Activate the Workflow
Turn on the Telegram Trigger node. Deploy and activate the full workflow.
- βοΈ 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! πΌβ¨
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
π€ Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments