NeurochainAI Basic API Integration n8n Workflow Template

n8n workflow template · 20 nodes · Telegram

NeurochainAI Basic API Integration is a free n8n workflow template that starts from the Telegram Trigger node and works with Telegram. It has 20 nodes and no AI nodes. To run it, you add your own credentials for Telegram Bot API.

At a glance

Trigger
Telegram Trigger (Telegram Trigger)
Nodes
20
Apps
Telegram
AI nodes
None
Credentials
1 type
Category
Chatbots and messaging

Apps and integrations

  • Telegram

Node types used

  • Telegram Trigger
  • Code
  • HTTP Request
  • Telegram
  • Switch

How it works

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

This node removes the /flux prefix.

This node sends an emoji to indicate that the prompt is being processed.

SUCCESS

This node will send the AI response directly to the Telegram chat.

SUCCESS

This node will send the AI response directly to the Telegram chat.

Setup notes

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

Instructions for Using the Template

Follow these steps to set up and use this template

Create a Telegram Bot

  • Open Telegram and search for BotFather.
  • Use the /newbot command to create your bot.
  • Follow the prompts and copy the Token provided at the end.

Obtain a NeurochainAI API Key

  • Log in to the NeurochainAI Dashboard.
  • Generate an API Key under the Inference As Service section.
  • Ensure your account has sufficient credits for usage.

Configure Telegram Nodes

  • Locate all Telegram nodes in the workflow and add your Telegram Bot Token to each node's credentials.

Configure HTTP Request Nodes

  • Identify the NeurochainAI - Rest API and NeurochainAI - Flux nodes in the workflow.

In each node

  • Enter your desired model in the Model field.
  • Replace YOUR-API-KEY-HERE with your API Key in the headers or configuration section.

Save and Test

  • Save the workflow in N8N.
  • Test the workflow by interacting with your Telegram bot to trigger text and image generation tasks.

HTTP REQUEST

Replace MODEL with the desired AI model from the NeurochainAI dashboard.

Replace YOUR-API-KEY-HERE with your actual NeurochainAI API key.

Models: Meta-Llama-3.1-8B-Instruct-Q8_0.gguf Meta-Llama-3.1-8B-Instruct-Q6_K.gguf Mistral-7B-Instruct-v0.2-GPTQ-Neurochain-custom-io Mistral-7B-Instruct-v0.2-GPTQ-Neurochain-custom Mistral-7B-OpenOrca-GPTQ Mistral-7B-Instruct-v0.1-gguf-q8_0.gguf Mistral-7B-Instruct-v0.2-GPTQ [redacted].1-gguf-q8_0.gguf

HTTP REQUEST

Replace MODEL with the desired AI model from the NeurochainAI dashboard.

Replace YOUR-API-KEY-HERE with your actual NeurochainAI API key.

Models: super-flux1-schnell-gguf flux1-schnell-gguf

Nodes in this workflow

The 20 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:

  1. Telegram Trigger (Telegram Trigger)
  2. Code (Code)Extract the URL from the previous node
  3. HTTP Request3 (HTTP Request)
  4. Telegram2 (Telegram)
  5. Telegram1 (Telegram)
  6. Telegram4 (Telegram)
  7. Telegram3 (Telegram)
  8. Telegram5 (Telegram)
  9. Telegram6 (Telegram)
  10. Telegram7 (Telegram)
  11. NeurochainAI - REST API (HTTP Request)
  12. TYPING - ACTION (Telegram)
  13. AI Response (Telegram)
  14. No response (Telegram)
  15. Prompt too short (Telegram)
  16. Switch2 (Switch)
  17. Code1 (Code)
  18. Switch (Switch)
  19. NeurochainAI - Flux (HTTP Request)
  20. Switch1 (Switch)

Credentials you need

  • Telegram Bot API – used by AI Response, No response, Prompt too short and TYPING - ACTION and others

Configure your own credentials after importing. Create each credential in n8n, then select it in the node.

How to import into n8n

  1. Download the JSON file with the button above.
  2. In n8n, open a new workflow, select the ... menu and choose Import from File. You can also paste the JSON straight into the editor canvas.
  3. Open each node that shows a warning and select or create its credential.
  4. Read the notes on the canvas, test the workflow with sample data, then activate it.

Do you need somewhere to run it? Read our guide to self-hosted n8n.

Need this customised?

We can adapt this workflow to your apps, data and process, then deploy and support it.

Contact Us