Back to articles
AI & Cloud

Complete Guide to Installing and Optimizing Open WebUI as a Multi-Channel AI Customer Support Desk on VPS

A detailed guide on installing, configuring, and optimizing Open WebUI on a VPS to deploy a multi-channel AI customer support desk, supporting integration with LLMs, APIs, and CRM...

DPTCloud Engineering4 min read
Complete Guide to Installing and Optimizing Open WebUI as a Multi-Channel AI Customer Support Desk on VPS

Introduction to Open WebUI and Its Use in AI Customer Support Desks

Open WebUI is an open-source web interface for large language models (LLMs), enabling users to interact with models such as LLaMA, Mistral, and other AI platforms through a visual interface. With its API integration capabilities, multi-channel support, and automation features, Open WebUI is an ideal platform for building a multi-channel AI customer support desk on a VPS.

In this guide, we’ll walk through the detailed process of installing, configuring, and optimizing Open WebUI on a VPS to deploy a multi-channel AI customer support system that supports chat, email, and other communication channels. The system can integrate with CRM platforms, automate requests, and deliver fast responses.

Prerequisites and Installing Open WebUI on VPS

To deploy Open WebUI on a VPS, you need:

  • A VPS with at least 8GB RAM and 4 CPU cores (preferably with GPU support for CUDA).
  • Linux operating system (Ubuntu 20.04/22.04 or CentOS 8).
  • Docker and Docker Compose installed.
  • Stable internet connection.

Follow these installation steps:

# Update the system
sudo apt update && sudo apt upgrade -y

# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

# Install Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

# Create project directory
mkdir openwebui && cd openwebui

# Create docker-compose.yml file
cat < docker-compose.yml
version: '3.8'
services:
  openwebui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: openwebui
    ports:
      - "8080:8080"
    volumes:
      - ./data:/app/data
    environment:
      - OPENWEBUI_HOST=0.0.0.0
      - OPENWEBUI_PORT=8080
      - OPENWEBUI_API_KEY=your_api_key_here
    restart: unless-stopped
EOF

Run the command to start Open WebUI:

docker-compose up -d

Performance Optimization and Multi-Channel Configuration

To optimize performance, consider the following:

  • Limit CPU and RAM resources for the Docker container.
  • Set up caching for used LLM models (e.g., LLaMA, Mistral).
  • Integrate with CRM systems such as HubSpot, Zoho, or custom APIs.
  • Set up a reverse proxy with Nginx for security and load balancing.

Configure Nginx using the file /etc/nginx/sites-available/openwebui:

server {
    listen 80;
    server_name your-domain.com;

    location / {
        proxy_pass http://localhost:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Run the following commands to enable Nginx:

sudo ln -s /etc/nginx/sites-available/openwebui /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx

Testing and System Maintenance

To verify system operation:

  • Open a browser and access http://your-domain.com.
  • Log in using the default credentials (if not changed).
  • Test integration with LLM models and check responses.

For maintenance:

  • Regularly update Open WebUI versions.
  • Back up data directories periodically.
  • Monitor performance using tools like htop or docker stats.

Troubleshooting and References

Common issues and solutions:

  • Cannot access Open WebUI: Check if port 8080 is open and Docker is running.
  • API not working: Verify the OPENWEBUI_API_KEY environment variable and LLM connection.
  • Low performance: Reduce the number of running models or upgrade the VPS.

References:

DPTCloud Tier III Infrastructure

High-RAM Cloud VPS Plans Optimized for AI, Databases & Cache

Enterprise RAID 10 NVMe SSDs, CMC & FPT District 9 uplinks with Anycast Anti-DDoS and 99.99% SLA.

View 22 VPS Plans
ECO · vn-02Recommended

VPS-4E

297.000 ₫ / mo

10% VAT included

  • CPU: 4 vCPU
  • RAM: 8 GB
  • SSD: 50 GB NVMe
ECO · vn-02

VPS-5E

614.900 ₫ / mo

10% VAT included

  • CPU: 8 vCPU
  • RAM: 16 GB
  • SSD: 100 GB NVMe
ADVANCED · vn-03Recommended

VPS-4T

548.900 ₫ / mo

10% VAT included

  • CPU: 4 vCPU
  • RAM: 8 GB
  • SSD: 50 GB NVMe

Related Articles

View all
ZaloZalo SupportDiscord0384 753 478