Skip to content
Share
Explore
Selfhosted n8n
Steps
Create DO account - with VPN
Create droplet
Add domain
Setup domain in provider
Run commands in console
Commands
Install n8n
adduser <username>
usermod -aG sudo <username>
su - <username>
cd n8n-docker-caddy
chmod +x setup-n8n.sh
./setup-n8n.sh
Setup password
Setup domain
nano .env
Setup domain
chmod +x compose-n8n.sh
./compose-n8n.sh
sudo docker compose logs n8n
Check n8n status
Install additional JS Libraries
sudo docker compose exec -u root n8n npm install -g <library_name>
sudo docker compose down
sudo docker compose up -d
How to update n8n
Pull latest version
sudo docker compose pull
Stop and remove older version
sudo docker compose down
In case of errors --remove-orphans
Start the container
sudo docker compose up -d
Simple chat bot
Logic
User write bot and get response
User send audio and get audio response
Simple Flow
Telegram webhook
Find user in Supabase
Check if Thread exist
Create thread and save id to Supabase
Send message to thread
Run assistant
Get result
Send result to Telegram
Simple Flow
Telegram webhook
Find user in Supabase
Check if Thread exist
Create thread and save id to Supabase
Download audio from Telegram
Send to OpenAI for transcribition
Send message to thread
Run assistant
Get result
Generate voice with 11labs
Send file to Telegram
Steps
Create Telegram bot - @botfather + get API key
Create Supabase - users table
Create N8N - check video
Create OpenAI - get API key
Create 11labs - get API key
Setup all connections
Backlog ideas
Functions
Content creation:
Create N8N templates - provide notes, naming, description, link to video
Analyze and repeat others ideas

Ideas:
Автоматическое создание базы знаний по чату
Бот ассистент с разными функциями
Whitelabel bot
Realtime advices for zoom
Buttons - ideas
Summary button
Goal setup before call



Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.