[{"data":1,"prerenderedAt":478},["ShallowReactive",2],{"workflow-automate-telegram-ai-chat-image-generation-neurochainai-en":3},{"locale_id":4,"workflow_id":5,"title":6,"locale":7,"seo_meta_title":8,"seo_meta_description":9,"seo_keywords":10,"seo_fields":11,"category":12,"tools":15,"tags":29,"variants":30,"status":33,"slug":34,"pricing":35,"created_at":36,"updated_at":37,"outcome":38,"outcome_msg":39,"static":40,"description":43,"documentation":44,"steps":124,"faq":125,"n8n_workflow":126,"created_by":20,"packages":416,"_ssrCustomizations":20},722049,1092,"Automate Telegram AI Chat & Image Generation with NeurochainAI","en","Automate Telegram AI Chat Image Generation Neurochainai","Automate automate telegram AI chat image generation neurochainai using this n8n template. Deploy instantly and customize workflows to fit your needs.","n8n, Telegram, NeurochainAI, AI bot, text generation, image generation, automation, chat automation, AI assistant",{"meta_title":8,"meta_description":9,"keywords":10},{"id":13,"name":14},5,"Productivity",[16,23],{"content_id":17,"locale_id":18,"locale":7,"name":19,"description":20,"display_dropdown":21,"id":18,"parent_id":17,"workflow_count":22},7,17460,"n8n",null,false,811,{"content_id":24,"locale_id":25,"locale":7,"name":26,"description":20,"display_dropdown":27,"id":25,"parent_id":24,"workflow_count":28},8,16547,"Telegram",true,116,[],[31],{"variant_type":19,"variant_type_label":19,"version":32,"is_active":27},"1.0.0","published","automate-telegram-ai-chat-image-generation-neurochainai","29.00","2025-11-11T11:15:49.794000Z","2026-01-19T07:44:34.326000Z","Instantly generate AI text and images directly within Telegram, cutting content creation latency by over 90% and boosting user interaction.","",{"feature":41,"output":42},[],[],"Managing multiple AI platforms for text and image generation can disrupt your workflow. This n8n workflow integrates NeurochainAI directly into your Telegram bot, providing seamless AI-powered chat and instant image creation.",{"root":45},{"type":46,"format":39,"indent":47,"version":48,"children":49,"direction":58},"root",0,1,[50,59,64,69,98,102,106],{"tag":51,"type":52,"format":39,"indent":47,"version":48,"children":53,"direction":58},"h2","heading",[54],{"mode":55,"text":56,"type":57,"style":39,"detail":47,"format":48,"version":48},"normal","NeurochainAI Telegram AI Assistant","text","ltr",{"type":60,"format":39,"indent":47,"version":48,"children":61,"direction":58},"paragraph",[62],{"mode":55,"text":63,"type":57,"style":39,"detail":47,"format":47,"version":48},"This powerful n8n workflow transforms your Telegram bot into an intelligent AI assistant, capable of generating both insightful text responses and captivating images on demand using the NeurochainAI platform. Perfect for automating support, enhancing community engagement, or simply boosting your personal productivity.",{"tag":65,"type":52,"format":39,"indent":47,"version":48,"children":66,"direction":58},"h3",[67],{"mode":55,"text":68,"type":57,"style":39,"detail":47,"format":48,"version":48},"Key Features",{"type":70,"format":39,"indent":47,"version":48,"children":71,"listType":97,"direction":58},"list",[72,77,85,89,93],{"type":73,"format":39,"indent":47,"version":48,"children":74,"direction":58},"listitem",[75],{"mode":55,"text":76,"type":57,"style":39,"detail":47,"format":47,"version":48},"Dynamic AI Text Generation: Instantly receive intelligent responses to questions, summaries, or creative prompts using advanced NeurochainAI language models like Meta-Llama-3.1.",{"type":73,"format":39,"indent":47,"version":48,"children":78,"direction":58},[79,81,83],{"mode":55,"text":80,"type":57,"style":39,"detail":47,"format":47,"version":48},"On-Demand AI Image Creation: Generate unique images from text descriptions with the ",{"mode":55,"text":82,"type":57,"style":39,"detail":47,"format":48,"version":48},"/flux",{"mode":55,"text":84,"type":57,"style":39,"detail":47,"format":47,"version":48}," command, powered by NeurochainAI's text-to-image capabilities.",{"type":73,"format":39,"indent":47,"version":48,"children":86,"direction":58},[87],{"mode":55,"text":88,"type":57,"style":39,"detail":47,"format":47,"version":48},"Seamless Telegram Integration: Interact with the AI directly through private messages, group mentions, or specific commands within your Telegram chat.",{"type":73,"format":39,"indent":47,"version":48,"children":90,"direction":58},[91],{"mode":55,"text":92,"type":57,"style":39,"detail":47,"format":47,"version":48},"Real-time Feedback & Error Handling: Users receive instant \"typing\" indicators and clear messages for processing, short prompts, or API errors.",{"type":73,"format":39,"indent":47,"version":48,"children":94,"direction":58},[95],{"mode":55,"text":96,"type":57,"style":39,"detail":47,"format":47,"version":48},"Customizable AI Models: Easily switch between various NeurochainAI text and image models to suit your specific needs (e.g., flux1-schnell-gguf for images).","bullet",{"tag":65,"type":52,"format":39,"indent":47,"version":48,"children":99,"direction":58},[100],{"mode":55,"text":101,"type":57,"style":39,"detail":47,"format":48,"version":48},"How It Works",{"type":60,"format":39,"indent":47,"version":48,"children":103,"direction":58},[104],{"mode":55,"text":105,"type":57,"style":39,"detail":47,"format":47,"version":48},"The workflow begins when your Telegram bot receives a message. It intelligently routes the message based on its content:",{"type":70,"format":39,"indent":47,"version":48,"children":107,"listType":97,"direction":58},[108,112,120],{"type":73,"format":39,"indent":47,"version":48,"children":109,"direction":58},[110],{"mode":55,"text":111,"type":57,"style":39,"detail":47,"format":47,"version":48},"For AI Text Responses: If the message is a direct message or mentions the bot in a group, the workflow sends a \"typing...\" action. It then forwards the user's prompt to the NeurochainAI REST API (e.g., Meta-Llama-3.1-8B-Instruct-Q6_K.gguf model) for text generation. The AI's response is then sent back to the user in Telegram.",{"type":73,"format":39,"indent":47,"version":48,"children":113,"direction":58},[114,116,118],{"mode":55,"text":115,"type":57,"style":39,"detail":47,"format":47,"version":48},"For AI Image Generation: If the message starts with ",{"mode":55,"text":117,"type":57,"style":39,"detail":47,"format":48,"version":48},"/flux [prompt]",{"mode":55,"text":119,"type":57,"style":39,"detail":47,"format":47,"version":48},", the command prefix is removed. A temporary \"⌛\" message is sent to indicate processing. The cleaned prompt is sent to the NeurochainAI Flux API for text-to-image generation (e.g., flux1-schnell-gguf model). Once the image URL is received, the workflow downloads the image and sends it back to the user in Telegram with the original prompt as a caption. The temporary \"⌛\" message is then deleted.",{"type":73,"format":39,"indent":47,"version":48,"children":121,"direction":58},[122],{"mode":55,"text":123,"type":57,"style":39,"detail":47,"format":47,"version":48},"Robust Error Management: Both text and image generation paths include specific error handling to inform the user about issues like short prompts or worker unavailability, providing actionable feedback.","1. **Create a Telegram Bot:**\n   - Open Telegram and search for `@BotFather`.\n   - Use the `/newbot` command to create your bot.\n   - Follow the prompts and copy the provided Bot Token.\n2. **Obtain a NeurochainAI API Key:**\n   - Log in to the NeurochainAI Dashboard.\n   - Generate an API Key under the \"Inference As Service\" section.\n   - Ensure your account has sufficient credits for AI usage.\n3. **Configure Telegram Nodes in n8n:**\n   - In your n8n workflow, locate all `Telegram Trigger` and `Telegram` nodes.\n   - For each of these nodes, add your Telegram Bot Token to its credentials. If a `TEMPLATE` credential exists, edit it with your token.\n4. **Configure NeurochainAI HTTP Request Nodes:**\n   - Locate the `NeurochainAI - REST API` (for text) and `NeurochainAI - Flux` (for images) nodes.\n   - **For `NeurochainAI - REST API`:**\n     - In the `JSON Body` section, replace `\"model\": \"Meta-Llama-3.1-8B-Instruct-Q6_K.gguf\"` with your desired NeurochainAI text generation model.\n     - In the `Header Parameters`, replace `YOUR-API-KEY-HERE` with your actual NeurochainAI API Key in the `Authorization` header (`Bearer YOUR-API-KEY-HERE`).\n   - **For `NeurochainAI - Flux`:**\n     - In the `JSON Body` section, replace `\"model\": \"flux1-schnell-gguf\"` with your desired NeurochainAI text-to-image model.\n     - In the `Header Parameters`, replace `YOUR-API-KEY-HERE` with your actual NeurochainAI API Key in the `Authorization` header (`Bearer YOUR-API-KEY-HERE`).\n5. **Save and Activate:**\n   - Save the workflow in n8n.\n   - Activate the workflow to start processing messages.\n6. **Test Your Bot:**\n   - Open your Telegram bot.\n   - Send a direct message or mention the bot in a group chat to test text generation.\n   - Send a message starting with `/flux [your image prompt]` (e.g., `/flux a futuristic city skyline`) to test image generation.",[],[127],{"variant":19,"preview":128,"version":32,"notes":130,"workflow":131},[129],"prod/1092/preview/n8n/1684_HTTP_Telegram_Automation_Webhook.png","Initial release with core automation features",{"id":132,"meta":133,"name":135,"tags":136,"nodes":137,"active":21,"pinData":342,"settings":343,"versionId":345,"connections":346},"RLWjEhY8L4TORAIj",{"instanceId":134,"templateCredsSetupCompleted":27},"36399efc72267ed21ee0d3747f5abdd0ee139cb67749ff919ff09fcd65230079","NeurochainAI Basic API Integration",[],[138,146,155,162,170,175,180,185,190,195,199,206,211,217,223,228,240,248,258,268,279,287,296,301,309,315,320,330,336],{"id":139,"name":140,"type":141,"position":142,"typeVersion":145},"da34bd1a-4e4e-4133-acad-939d0cc96596","Telegram Trigger","n8n-nodes-base.telegramTrigger",[143,144],-1740,880,1.1,{"id":147,"name":148,"type":149,"notes":150,"position":151,"notesInFlow":27,"typeVersion":154},"3b3f4b00-6b3b-4346-8fcc-7ab75bcfe838","Code","n8n-nodes-base.code","Extract the URL from the previous node",[152,153],80,260,2,{"id":156,"name":157,"type":158,"position":159,"typeVersion":161},"ccb91a15-96b5-42aa-a6ae-ff7ae79d1e8f","HTTP Request3","n8n-nodes-base.httpRequest",[160,153],240,4.2,{"id":163,"name":164,"type":165,"position":166,"typeVersion":169},"588899b6-a68e-407e-b12f-f05c205674c5","Telegram2","n8n-nodes-base.telegram",[167,168],-520,500,1.2,{"id":171,"name":172,"type":165,"position":173,"typeVersion":169},"e1534b69-d93d-4e8b-a3c4-adbc17c1dacd","Telegram1",[174,153],440,{"id":176,"name":177,"type":165,"position":178,"typeVersion":169},"88ba4ced-bdd0-408e-94e1-9e54ed4d1b5d","Telegram4",[179,153],620,{"id":181,"name":182,"type":165,"position":183,"typeVersion":169},"251a026e-ebfa-44f5-9c80-f30e5c142e23","Telegram3",[153,184],700,{"id":186,"name":187,"type":165,"position":188,"typeVersion":169},"fb71a62a-9cf8-4abf-baa4-885ae4b1a290","Telegram5",[189,184],480,{"id":191,"name":192,"type":165,"position":193,"typeVersion":169},"0f9bcdf0-0008-447a-900c-6afe5b9d53fe","Telegram6",[153,194],520,{"id":196,"name":197,"type":165,"position":198,"typeVersion":169},"d805548a-7379-456c-9bc3-f5fafeb86aed","Telegram7",[189,194],{"id":200,"name":201,"type":158,"onError":202,"position":203,"typeVersion":161,"alwaysOutputData":21},"a3e521a3-aff0-4d31-9a69-626f70f86ae2","NeurochainAI - REST API","continueErrorOutput",[204,205],-680,1280,{"id":207,"name":208,"type":165,"position":209,"typeVersion":169},"5fea3a8b-3e1b-4c69-b734-3f9dc7647e4b","TYPING - ACTION",[210,205],-1100,{"id":212,"name":213,"type":165,"position":214,"typeVersion":169},"ca183e3d-2bef-4d80-bbb7-c712a0290b2b","AI Response",[215,216],-360,1000,{"id":218,"name":219,"type":165,"position":220,"typeVersion":169},"27e65f30-e58e-457d-b3b7-2b74267554e1","No response",[221,222],-140,1240,{"id":224,"name":225,"type":165,"position":226,"typeVersion":169},"02cf4dfa-558f-4968-ad09-19f1e40735b0","Prompt too short",[221,227],1400,{"id":229,"name":230,"type":231,"position":232,"parameters":235,"typeVersion":48},"943d31e4-3745-49ea-9669-8a560a486cc4","Sticky Note","n8n-nodes-base.stickyNote",[233,234],-400,1220,{"color":236,"width":237,"height":238,"content":239},3,460.4333621829785,347.9769162173868,"## ERROR",{"id":241,"name":242,"type":243,"position":244,"typeVersion":247},"6b5d142f-8d8c-493f-81e7-cedb4e95cd31","Switch2","n8n-nodes-base.switch",[245,246],-380,1380,3.2,{"id":249,"name":250,"type":231,"position":251,"parameters":253,"typeVersion":48},"77651cb7-2530-46b2-89eb-7ac07f39a3ba","Sticky Note1",[233,252],860,{"color":254,"width":255,"height":256,"content":257},4,459.0810102677459,350.68162004785273,"## SUCCESS\nThis node will send the AI ​​response directly to the Telegram chat.",{"id":259,"name":260,"type":231,"position":261,"parameters":264,"typeVersion":48},"5dce8414-fe7a-450a-a414-553d3e5e01cd","Sticky Note2",[262,263],-830.8527430805248,861.5987888475245,{"color":13,"width":265,"height":266,"content":267},411.78262099325127,705.0354263931183,"## HTTP REQUEST\n\nReplace **MODEL** with the desired AI model from the NeurochainAI dashboard.\n\nReplace YOUR-API-KEY-HERE with your actual NeurochainAI API key.\n\n**Models:**\nMeta-Llama-3.1-8B-Instruct-Q8_0.gguf\nMeta-Llama-3.1-8B-Instruct-Q6_K.gguf\nMistral-7B-Instruct-v0.2-GPTQ-Neurochain-custom-io\nMistral-7B-Instruct-v0.2-GPTQ-Neurochain-custom\nMistral-7B-OpenOrca-GPTQ\nMistral-7B-Instruct-v0.1-gguf-q8_0.gguf\nMistral-7B-Instruct-v0.2-GPTQ\ningredient-extractor-mistral-7b-instruct-v0.1-gguf-q8_0.gguf",{"id":269,"name":270,"type":231,"position":271,"parameters":274,"typeVersion":48},"3540e1fa-01f8-4b5e-ad7a-1b1c5cd90d08","Sticky Note3",[272,273],-840,220,{"color":275,"width":276,"height":277,"content":278},6,236.80242230495116,535.7153791682382,"## This node removes the /flux prefix.",{"id":280,"name":281,"type":231,"position":282,"parameters":284,"typeVersion":48},"6720b734-c0ae-4c88-adb6-3931467c780d","Sticky Note4",[273,283],444,{"color":236,"width":285,"height":286,"content":239},593.1328365275054,403.9345258807414,{"id":288,"name":289,"type":231,"position":290,"parameters":292,"typeVersion":48},"30332278-399d-4c8f-8470-dfb967764455","Sticky Note5",[291,273],-320,{"color":13,"width":293,"height":294,"content":295},384.60321058533617,538.7613862505775,"## HTTP REQUEST\n\nReplace **MODEL** with the desired AI model from the NeurochainAI dashboard.\n\nReplace YOUR-API-KEY-HERE with your actual NeurochainAI API key.\n\n**Models:**\nsuper-flux1-schnell-gguf\nflux1-schnell-gguf",{"id":297,"name":298,"type":149,"position":299,"typeVersion":154},"09f17d6a-6229-49ad-b77b-243712552f2b","Code1",[300,189],-780,{"id":302,"name":303,"type":231,"position":304,"parameters":306,"typeVersion":48},"0c809796-9776-4238-94b8-0779ad390bc6","Sticky Note6",[305,273],-580,{"height":307,"content":308},535.7153791682384,"## This node sends an emoji to indicate that the prompt is being processed.",{"id":310,"name":311,"type":231,"position":312,"parameters":313,"typeVersion":48},"19043710-a61a-46d0-9ab9-bcdf9c94f800","Sticky Note7",[273,152],{"color":254,"width":314,"height":256,"content":257},596.5768511548468,{"id":316,"name":317,"type":243,"position":318,"typeVersion":247},"e5715001-75a3-4da3-84bb-9aad193fe680","Switch",[319,144],-1420,{"id":321,"name":322,"type":231,"position":323,"parameters":326,"typeVersion":48},"0ebdea59-8518-4078-b07a-9aa24c5e79b5","Sticky Note8",[324,325],-1840,200,{"width":327,"height":328,"content":329},623.6530631885605,648.96526541807,"## Instructions for Using the Template\nFollow these steps to set up and use this template:\n\n**Create a Telegram Bot**:\n- Open Telegram and search for BotFather.\n- Use the ``/newbot`` command to create your bot.\n- Follow the prompts and copy the Token provided at the end.\n-------------\n**Obtain a NeurochainAI API Key:**\n\n- Log in to the NeurochainAI Dashboard.\n- Generate an **API Key** under the Inference As Service section.\n- Ensure your account has sufficient credits for usage.\n-------------\n **Configure Telegram Nodes:**\n- Locate all Telegram nodes in the workflow and add your Telegram Bot Token to each node's credentials.\n-------------\n**Configure HTTP Request Nodes:**\n\n- Identify the NeurochainAI - Rest API and NeurochainAI - Flux nodes in the workflow.\nIn each node:\n- Enter your desired model in the Model field.\n- Replace ``YOUR-API-KEY-HERE`` with your API Key in the headers or configuration section.\n-------------\n**Save and Test:**\n- Save the workflow in N8N.\n- Test the workflow by interacting with your Telegram bot to trigger text and image generation tasks.",{"id":331,"name":332,"type":158,"onError":202,"position":333,"typeVersion":161,"alwaysOutputData":21},"06642d6b-f8e2-48b6-87e3-5f51af75d357","NeurochainAI - Flux",[334,335],-180,540,{"id":337,"name":338,"type":243,"position":339,"typeVersion":247},"92820069-3e65-4385-8b79-9b04dd1d3b03","Switch1",[340,341],100,600,{},{"executionOrder":344},"v1","ef6d73c3-5256-4bc0-9e10-1daf674c083e",{"Code":347,"Code1":352,"Switch":356,"Switch1":364,"Switch2":370,"Telegram1":376,"Telegram2":380,"Telegram3":384,"Telegram6":388,"HTTP Request3":392,"TYPING - ACTION":396,"Telegram Trigger":400,"NeurochainAI - Flux":404,"NeurochainAI - REST API":410},{"main":348},[349],[350],{"node":157,"type":351,"index":47},"main",{"main":353},[354],[355],{"node":164,"type":351,"index":47},{"main":357},[358,360,362],[359],{"node":298,"type":351,"index":47},[361],{"node":208,"type":351,"index":47},[363],{"node":208,"type":351,"index":47},{"main":365},[366,368],[367],{"node":192,"type":351,"index":47},[369],{"node":182,"type":351,"index":47},{"main":371},[372,374],[373],{"node":219,"type":351,"index":47},[375],{"node":225,"type":351,"index":47},{"main":377},[378],[379],{"node":177,"type":351,"index":47},{"main":381},[382],[383],{"node":332,"type":351,"index":47},{"main":385},[386],[387],{"node":187,"type":351,"index":47},{"main":389},[390],[391],{"node":197,"type":351,"index":47},{"main":393},[394],[395],{"node":172,"type":351,"index":47},{"main":397},[398],[399],{"node":201,"type":351,"index":47},{"main":401},[402],[403],{"node":317,"type":351,"index":47},{"main":405},[406,408],[407],{"node":148,"type":351,"index":47},[409],{"node":338,"type":351,"index":47},{"main":411},[412,414],[413],{"node":213,"type":351,"index":47},[415],{"node":242,"type":351,"index":47},[417,440,462],{"id":418,"name":419,"description":420,"pricing":421,"currency":422,"stripe_pricing":423,"is_active":27,"hosting":21,"revision_count":48,"tool_tips":424,"items":427,"created_dt":438,"last_updated_dt":439,"is_basic_package":21},"5258e380-032b-4394-a362-7fe9a81c8918","Customize","Template + tailored configuration",199,"USD",19900,{"title":425,"description":426},"Most popular choice","We'll configure the template for you -- adjusting prompts, keywords, and rules.",[428,430,432,434,436],{"text":429},"Complete workflow template",{"text":431},"Setup documentation",{"text":433},"Minor customization (prompts & configuration)",{"text":435},"Personalized keyword rules",{"text":437},"Priority email support","2025-12-14T14:56:53.877943Z","2025-12-14T14:56:53.878010Z",{"id":441,"name":442,"description":443,"pricing":444,"currency":422,"stripe_pricing":445,"is_active":27,"hosting":27,"revision_count":154,"tool_tips":446,"items":449,"created_dt":460,"last_updated_dt":461,"is_basic_package":21},"2bf66945-2e37-4ae8-a16c-3701198b0e25","Manage","2 rounds of revision, and hosting setup",499,49900,{"title":447,"description":448},"Hands-off solution","Complete setup and hosting. Includes 2 revision rounds plus a year of support.",[450,452,454,456,458],{"text":451},"Everything in Custom Setup",{"text":453},"2 rounds of revisions to tailor workflow to your needs",{"text":455},"Complete hosting setup",{"text":457},"Integration testing",{"text":459},"1 month warranty","2025-12-14T14:56:25.015547Z","2025-12-14T14:56:25.015580Z",{"id":463,"name":464,"description":465,"pricing":466,"currency":422,"stripe_pricing":467,"is_active":27,"hosting":21,"revision_count":47,"tool_tips":468,"items":471,"created_dt":476,"last_updated_dt":477,"is_basic_package":27},"f5dfbd54-5d04-4ae1-85ef-007db52e88f7","Workflow","Ready-to-use workflow template",29,2900,{"title":469,"description":470},"Perfect for DIY users","Get the template and set it up yourself with our guide.",[472,473,474],{"text":429},{"text":431},{"text":475},"Community support","2025-12-14T14:55:49.328495Z","2025-12-14T14:55:49.328523Z",1776680524886]