ライブチャット
オープンソースの顧客関係管理スイート。Intercom、Zendeskの代替品。ライブチャット、メール、ソーシャルメディア統合、チームコラボレーションを特徴とする。
Webサイトのチャット、メール、WhatsApp、Facebook、Twitter、Telegram、SMSからの会話を、一つのインターフェースで管理します
多言語対応、営業時間の設定、チャット開始前のフォーム、モバイル対応デザインを備えた、ブランドに合わせられるチャットウィジェット
非公開メモ、@メンション、会話の割り当て、チーム受信箱、リアルタイムの共同作業機能
カスタムボット、定型回答、マクロ、ワークフローの自動化、条件に基づくインテリジェントな振り分け
応答時間、解決時間、CSAT、会話件数、チームの成果指標を追跡
RESTful API、Webhook、SSO対応、Slack、Salesforceなど主要ツールとの連携
# 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. Chatwootリポジトリのクローン:cd /opt
sudo git clone https://github.com/chatwoot/chatwoot.git
cd chatwoot3. 環境の設定:# Copy environment template
cp .env.example .env
# Edit configuration
nano .env必要な変数を設定します:# 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. Docker Composeでのデプロイ:# Start services
docker-compose up -d
# Check status
docker-compose ps
# View logs
docker-compose logs -f5. 管理者ユーザーの作成:# 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. Nginxリバースプロキシの設定:sudo nano /etc/nginx/sites-available/chatwoot設定を追加します: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. サイトの有効化と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. Chatwootへのアクセス:SECRET_KEY_BASE: openssl rand -hex 64 で生成しますFRONTEND_URL: Chatwootの公開URLFORCE_SSL: 本番環境では true に設定しますRAILS_ENV: production に設定しますNODE_ENV: production に設定しますMAILER_SENDER_EMAIL を設定しますMAILER_INBOUND_EMAIL_DOMAIN を設定します# 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. ライブチャットウィジェットの導入:<!-- 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. 文脈を豊かにするカスタム属性:plan_type、signup_date、lifetime_value などの属性を追加しますShortcode: /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. チーム管理:# 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. パフォーマンスの最適化:簡単なVPSデプロイメントプロセスで数分で始める
Deploy in about 2 minutes • Full root access • Support by ticket and email