Trả lời trực tiếp và hỗ trợ khách hàng
Bộ ứng dụng liên kết khách hàng mã nguồn mở. Đối tác thay thế cho Intercom, Zendesk. Tính năng chat trực tiếp, email, tích hợp mạng xã hội, và hợp tác nhóm.
Quản lý hội thoại từ widget chat trên website, email, WhatsApp, Facebook, Twitter, Telegram và SMS trong cùng một giao diện
Widget chat mang thương hiệu riêng, hỗ trợ đa ngôn ngữ, giờ làm việc, biểu mẫu trước khi chat và thiết kế thích ứng với thiết bị di động
Ghi chú riêng tư, @mention, phân công hội thoại, hộp thư nhóm và các tính năng cộng tác theo thời gian thực
Bot tùy chỉnh, câu trả lời có sẵn, macro, tự động hóa quy trình và định tuyến thông minh theo điều kiện
Theo dõi thời gian phản hồi, thời gian giải quyết, điểm CSAT, khối lượng hội thoại và các chỉ số hiệu suất nhóm
API RESTful, webhook, hỗ trợ SSO và tích hợp với các công cụ phổ biến như Slack, Salesforce và nhiều công cụ khác
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Install Docker Compose
sudo apt install docker-compose -y
# Add user to docker group
sudo usermod -aG docker $USER
newgrp docker2. Clone repository Chatwoot:cd /opt
sudo git clone https://github.com/chatwoot/chatwoot.git
cd chatwoot3. Cấu hình môi trường:# Copy environment template
cp .env.example .env
# Edit configuration
nano .envĐặt các biến bắt buộc:# Rails configuration
SECRET_KEY_BASE=$(openssl rand -hex 64)
FRONTEND_URL=https://chat.yourdomain.com
# Database
POSTGRES_HOST=postgres
POSTGRES_USERNAME=chatwoot
POSTGRES_PASSWORD=your_secure_password
POSTGRES_DATABASE=chatwoot_production
# Redis
REDIS_URL=redis://redis:6379
# Email (SMTP)
SMTP_ADDRESS=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your-email@gmail.com
SMTP_PASSWORD=your-app-password
SMTP_DOMAIN=yourdomain.com
SMTP_ENABLE_STARTTLS_AUTO=true4. Triển khai bằng Docker Compose:# Start services
docker-compose up -d
# Check status
docker-compose ps
# View logs
docker-compose logs -f5. Tạo người dùng quản trị:# Access Rails console
docker-compose exec rails bundle exec rails console
# Create admin account
user = User.create!(
name: 'Admin',
email: 'admin@yourdomain.com',
password: 'secure_password',
password_confirmation: 'secure_password'
)
user.confirm
AccountUser.create!(user: user, account_id: 1, role: :administrator)6. Cấu hình Nginx làm reverse proxy:sudo nano /etc/nginx/sites-available/chatwootThêm cấu hình:server {
server_name chat.yourdomain.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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;
proxy_read_timeout 90;
}
}7. Kích hoạt site và lấy chứng chỉ SSL:sudo ln -s /etc/nginx/sites-available/chatwoot /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
# Install Certbot and get SSL
sudo apt install certbot python3-certbot-nginx -y
sudo certbot --nginx -d chat.yourdomain.com8. Truy cập Chatwoot:SECRET_KEY_BASE: Tạo bằng openssl rand -hex 64FRONTEND_URL: URL công khai của ChatwootFORCE_SSL: Đặt thành true trên môi trường productionRAILS_ENV: Đặt thành productionNODE_ENV: Đặt thành productionMAILER_SENDER_EMAIL cho các email gửi điMAILER_INBOUND_EMAIL_DOMAIN cho kênh email# Use S3 for file uploads
ACTIVE_STORAGE_SERVICE=amazon
S3_BUCKET_NAME=your-bucket-name
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-key
AWS_REGION=us-east-14. Cài đặt widget chat trực tiếp:<!-- Add to your website's <head> or before </body> -->
<script>
(function(d,t) {
var BASE_URL="https://chat.yourdomain.com";
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=BASE_URL+"/packs/js/sdk.js";
g.defer = true;
g.async = true;
s.parentNode.insertBefore(g,s);
g.onload=function(){
window.chatwootSDK.run({
websiteToken: 'YOUR_WEBSITE_TOKEN',
baseUrl: BASE_URL
})
}
})(document,"script");
</script>5. Thuộc tính tùy chỉnh để có thêm ngữ cảnh:plan_type, signup_date, lifetime_valueShortcode: /greeting
Message: Hello {{contact.name}}! How can I help you today?
Shortcode: /hours
Message: Our support hours are Monday-Friday, 9 AM - 6 PM EST.
Shortcode: /ticket
Message: I've created ticket #{{conversation.id}} for your issue.8. Quản lý nhóm:# Get API access token from Settings → Integrations → API
curl -H "api_access_token: YOUR_TOKEN" \
-H "Content-Type: application/json" \
https://chat.yourdomain.com/api/v1/accounts/1/conversations10. Tối ưu hiệu năng:Bắt đầu trong vài phút với quá trình triển khai VPS đơn giản của chúng tôi
Được triển khai trong khoảng 2 phút • Truy cập root đầy đủ • Hỗ trợ bằng vé và email