n8n

How to Automate Telegram AI Content for Marketing?

Turn a Telegram chat into an on demand AI studio for words and images. Team members type a message to get copy or use the /flux command to get an image. This is great for social posts, product ideas, and quick drafts, and can cut content turnaround from 30 minutes to about 2 minutes.

An event from Telegram starts the flow. A Switch checks if the text starts with /flux. For text, the bot shows typing, calls the NeurochainAI REST endpoint, and replies with the AI message. For images, the bot sends a short status message, calls the NeurochainAI Flux model, cleans the prompt, pulls the image URL, downloads the file, and sends the photo with the prompt as a caption. Error paths catch short prompts or empty replies and post a retry button. Status messages are removed after the result to keep the chat clean.

You need a Telegram bot token and a NeurochainAI API key. Pick your preferred models in the two API nodes and add your credentials to every Telegram node. Expect faster content turns, fewer back and forth steps, and a simple way for non technical staff to request assets from their phone. Works well for agencies, online stores, and community teams.

What are the key features?

  • Telegram event trigger listens for messages sent to your bot
  • Switch logic routes plain text to writing and /flux messages to image generation
  • Typing and status messages show progress and are removed after completion
  • NeurochainAI REST call returns AI text for fast copywriting
  • NeurochainAI Flux call creates images from prompts cleaned by a Code node
  • Code extracts the image URL from the API response for download
  • HTTP Request downloads the image and the bot sends it with a caption
  • Inline keyboard adds a Retry button on errors for quick recovery
  • Dedicated paths handle short prompts or empty responses to guide users

What are the benefits?

  • Reduce manual work from 30 minutes to 2 minutes per content request
  • Handle up to 10 times more content requests without extra staff
  • Connect Telegram and NeurochainAI in one flow
  • Cut chat clutter by auto removing status messages after replies
  • Lower errors with prompt length checks and a one tap retry option

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Telegram and NeurochainAI. See the Tools Required section above for links to create accounts with these services.
  3. In Telegram, talk to BotFather and create a new bot. Copy the bot token.
  4. In n8n, open any Telegram node, click the Credential to connect with dropdown, select Create new credential, and paste your bot token. Save the credential and reuse it on every Telegram node in this workflow.
  5. In the NeurochainAI dashboard, create an API key. Keep it ready for the API calls.
  6. Open the NeurochainAI REST API node in n8n. Enter your preferred text model as shown in the notes and add the API key in the headers field. Save.
  7. Open the NeurochainAI Flux node. Choose the image model mentioned in the notes and add the same API key in the node configuration. Save.
  8. Review the Switch node after the Telegram Trigger. Confirm that /flux routes to image generation and other text routes to writing.
  9. Check the Code nodes. One cleans the /flux prefix and one extracts the image URL from the API result. Leave them as is unless you need custom rules.
  10. Test in Telegram. Send a normal prompt for text. Then try /flux followed by an image idea. Confirm you see a progress message, then the final reply. The status message should be removed afterward.
  11. If you see a short prompt warning, add more words. If you get no response, verify your credits and API key. For 401 or 429 errors, recheck the key and rate limits in your NeurochainAI account.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

NeurochainAI

Sign up

$10 for 10,000 inference instances (NCN credits)

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.