n8n

How to Automate Telegram Marketing Content?

Turn Telegram into a simple AI content assistant for your team. Send a message to get a written answer or use a special command to generate an image. Great for marketing teams that need fast copy and visuals on mobile or desktop.

Incoming Telegram messages start the flow. A switch checks the prompt and routes it to either a text model or an image model. The bot shows a typing indicator and a short status message while work is in progress. Text requests go to the NeurochainAI REST API and return a reply back into the chat. Image requests go to a Flux model, the workflow cleans the prompt, extracts the image URL, downloads the file, and sends the photo back with the original prompt as a caption. It also validates prompt length, handles empty results, and offers a retry button when errors occur.

You will need a Telegram bot token and a NeurochainAI API key. Set the preferred models in the HTTP Request nodes and add your keys in the headers. Expect faster content drafting, quicker mockups, and less context switching. Use it for ad copy ideas, product visuals, social posts, and quick creative tests without leaving Telegram.

What are the key features?

  • Telegram Trigger listens for new chat messages and commands in real time.
  • Switch logic routes prompts to text or image generation paths.
  • Typing and status messages show progress, then get auto deleted for a clean chat.
  • NeurochainAI REST API returns AI text that is sent back to the same chat.
  • NeurochainAI Flux generates images; the workflow cleans the prompt and extracts the image URL.
  • HTTP Request downloads the image file and Telegram sendPhoto returns it with a caption.
  • Prompt length check blocks too short inputs and sends a helpful notice.
  • Error handling replies with the API message and includes a Retry button.

What are the benefits?

  • Reduce content drafting from 10 minutes to under 1 minute
  • Automate up to 80 percent of repetitive copy and image requests
  • Handle many chats at once without extra team effort
  • Connect Telegram and NeurochainAI in one place
  • Lower context switching by keeping work inside Telegram

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. Create a Telegram bot: In Telegram, open BotFather, run /newbot, follow the prompts, and copy the bot token.
  4. In n8n, open the Credentials manager and create a Telegram credential using your bot token. Name it clearly so you can reuse it across all Telegram nodes.
  5. Open each Telegram node in the workflow and select your Telegram credential in the Credential to connect with field.
  6. Get a NeurochainAI API key from your NeurochainAI dashboard. Make sure you have credits for inference.
  7. Open the NeurochainAI REST API node and set the model name. Add your API key in the authentication or headers section as instructed in the node. If unsure, add a header for your API key using the provided field.
  8. Open the NeurochainAI Flux node and set the image model. Add the same API key in the headers or authentication fields as required.
  9. Check the Code node that removes the image command prefix to ensure it matches the command you plan to use. Adjust if you use a different prefix.
  10. Save and activate the workflow. In Telegram, send a normal prompt to receive text. Send a prompt with the image command to receive a generated image.
  11. Validation: Confirm you see a typing indicator and a temporary status message. Make sure the status message is removed after the final reply.
  12. Troubleshooting: If you see a prompt too short message, send a longer prompt. If errors return from the API, use the Retry button. If no image appears, verify the model name and API key in both HTTP nodes.

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.