NeurochainAI No-Code Workshop Day 2: Building Your First Workflow

Welcome to Day 2 of the NeurochainAI No-Code Workshop! Now that you’ve prepared your API keys from Telegram and NeurochainAI (as covered in Day 1), it’s time to take the next step: setting up N8N and building your workflow.
Today’s focus is on creating the foundation for your AI-powered Telegram bot. We’ll guide you through:
- Deploying N8N using DigitalOcean.
- Build an end-to-end workflow using the N8N template.
- Understanding how N8N, Telegram, and NeurochainAI work together.
Step 1: Deploying N8N on DigitalOcean
Using a Virtual Private Server (VPS) ensures that your workflows run continuously without execution limits. For this workshop, we recommend using DigitalOcean, which simplifies the process with its N8N One-Click Droplet.
How to Create Your N8N Droplet
- Log in to DigitalOcean
- Visit the DigitalOcean Marketplace and log in or create an account.
- Find the N8N One-Click App
- Use the search bar to locate "N8N One-Click App."
- Create a Droplet
- Select the app and configure your VPS. For this workshop, a server with 1GB RAM, 1vCPU, and 20GB SSD is sufficient.
- Choose a region close to your location for optimal performance.
- Click Create Droplet to launch your instance.
- Access Your N8N Dashboard
- Once your Droplet is active, note the provided IP address.
- Open your browser and navigate to http://<your-droplet-ip>:5678 to access your N8N instance.
Your N8N environment is now live and ready for action!
Step 2: Importing the Pre-Built Workflow Template
To save time, we’ve created a pre-configured workflow template that integrates Telegram with NeurochainAI’s inference capabilities. This template handles both text and image tasks, so you only need to add your API keys.

Using the Template
- Access the Workflow Template
- Visit the N8N Workflow Template page.
- Import the Template into N8N
- Open your N8N dashboard.
- Click on Workflows > Import Workflow and paste the template JSON code or use the direct link.
- Add Your API Keys
- Open the imported workflow in N8N.
- Add your API Key to Telegram nodes.
- Locate the HTTP Request Node and add:
- NeurochainAI API Key in the Authorization header field.
- Test the Workflow
- Send a message to your Telegram bot to trigger the workflow. The bot will process your input using NeurochainAI and respond with the generated result.
That’s it - your bot is ready to go!
How N8N, Telegram, and NeurochainAI Work Together
Understanding the workflow’s inner workings will help you customize it for your needs. Here’s how the components interact:
- Trigger: An event (like a message sent to your Telegram bot) starts the workflow in N8N.
- Request: The workflow captures the event data and uses an HTTP Request Node to send it to NeurochainAI’s API.
- Inference Processing: NeurochainAI processes the request using its advanced AI models, whether for text summarization, creative prompts, or image generation.
- Response: NeurochainAI returns the processed result, such as a summary or an AI-generated image, back to N8N.
- Action: N8N completes the workflow by using the response—for example, sending the result back to the Telegram user.
This seamless integration allows you to leverage NeurochainAI’s intelligence in real time, automating interactions and enhancing efficiency.
Optional: Creating Your Workflow Manually
For users who prefer to build their workflow from scratch, here’s a quick guide:
1. Set Up a Trigger
- Add a Telegram Trigger Node to your workflow.
- Configure it to capture messages sent to your bot using your Telegram Bot Token.
2. Add an HTTP Request Node
- Add an HTTP Request Node to process the message.
- Configure it as follows:
- Method: POST
- URL: https://ncmb.neurochain.io/tasks/message
- Headers:
- Authorization: Bearer YOUR-API-KEY-HERE
- Content-Type: application/json

Body (Raw JSON):
{
"model": "Meta-Llama-3.1-8B-Instruct-Q6_K.gguf",
"prompt": "Summarize this message: {{ $json.message.text }}",
"max_tokens": 1024,
"temperature": 0.6,
"top_p": 0.95,
"frequency_penalty": 0,
"presence_penalty": 1.1
}
3. Add a Telegram Send Message Node
- Use this node to send the processed result back to the user.
- Configure it as follows:
- Chat ID: {{ $('Telegram Trigger').item.json.message.chat.id }}
- Text: {{ $json.choices[0].text }}
Test the Workflow with Our Demo Bot
Want to see it in action before diving into your setup? Test the workflow by interacting with our demo bot:
➡️ @NCN_showcasebot
This bot showcases the power of NeurochainAI’s inference, from summarizing text to generating AI-powered images.
What’s Next?
With your N8N environment set up and the workflow configured, you’re now ready to take full advantage of AI automation. Tomorrow, we’ll focus on deploying and optimizing your bot for real-world use cases.