Get Winston up and running in 3 easy steps!
cd /mnt/c/Users/qntm5/legal-slack-bot/app
# Make script executable (if not already)
chmod +x setup-github.sh
# Run the setup script
./setup-github.shWhat it does:
- ✅ Installs GitHub CLI (if needed)
- ✅ Authenticates with GitHub (interactive login)
- ✅ Creates "Winston" repository
- ✅ Adds repository topics
- ✅ Pushes all code to GitHub
- ✅ Displays repository URL
Total time: ~3-5 minutes
If the script doesn't work or you prefer manual setup:
# Ubuntu/Debian/WSL
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh -ygh auth loginFollow the prompts:
- Choose: GitHub.com
- Protocol: HTTPS
- Authenticate: Login with web browser
# Create repository
gh repo create Winston \
--public \
--source=. \
--description="AI Legal Defense System with 805,000+ legal documents" \
--remote=origin
# Push code
git push -u origin main
# Add topics
gh repo edit --add-topic ai,legal-tech,slack-bot,rag,vector-database,claude,openai,typescript,vercel,n8ngh repo view --web- Go to: https://github.com/new
- Repository name:
Winston - Description:
AI Legal Defense System with 805,000+ legal documents - Visibility: Public
- DO NOT initialize with README
- Click Create repository
cd /mnt/c/Users/qntm5/legal-slack-bot/app
# Add remote (replace YOUR_USERNAME)
git remote add origin https://github.com/YOUR_USERNAME/Winston.git
# Push
git push -u origin mainGo to your repository → Settings → Topics → Add:
ai, legal-tech, slack-bot, rag, vector-database, claude, openai,
typescript, vercel, n8n, automation, legal-assistant
- Go to: https://vercel.com/new
- Click Import Git Repository
- Select your Winston repository
- Configure:
- Framework: Other
- Build Command:
npm run build - Output Directory:
dist
- Add Environment Variables (see .env.template)
- Click Deploy
Your Winston will be live at: https://winston-xxx.vercel.app
# Check health
curl https://your-winston.vercel.app/health
# Check metrics
curl https://your-winston.vercel.app/metricsCopy from .env.template and add in Vercel dashboard:
Required:
SLACK_BOT_TOKENSLACK_SIGNING_SECRETANTHROPIC_API_KEYOPENAI_API_KEYPINECONE_API_KEYREDIS_URL(use Upstash free tier)
Optional:
SLACK_APP_TOKENN8N_WEBHOOK_URLLOG_LEVEL=info
After Vercel deployment, process data locally (one-time setup):
# Install dependencies
npm install
# Option A: Process base data only (~15 min)
npm run data:process-all
# Option B: Process ALL legal data (~3-5 hours)
npm run data:all-lawThis uploads embeddings to Pinecone. The bot then has access to all 805,000 documents.
- Go to: https://api.slack.com/apps
- Click Create New App → From scratch
- Name: "Winston Legal AI"
- Add OAuth scopes (see DEPLOYMENT-GUIDE.md)
- Create 31 slash commands (all point to your Vercel URL)
- Enable event subscriptions
- Install to workspace
/legal-help What is habeas corpus?
/constitutional 4th amendment
/traffic-stop pulled over for speeding
/tax-strategy minimize my taxes
Send audio message → Winston transcribes and responds
curl https://your-winston.vercel.app/health- Try Option 3 (Web Interface)
- Or install manually: https://cli.github.com/manual/
# Re-authenticate
gh auth logout
gh auth login# Check remote
git remote -v
# Remove and re-add
git remote remove origin
git remote add origin https://github.com/YOUR_USERNAME/Winston.git
git push -u origin main- Check build logs in Vercel dashboard
- Verify all environment variables are set
- Ensure
npm run buildworks locally
- GitHub Setup: See GITHUB-SETUP.md
- Vercel Deployment: See DEPLOYMENT-GUIDE.md
- Full Documentation: See README.md
- N8N Integration: See n8n-workflows/README.md
- Create GitHub Repo: https://github.com/new
- Deploy to Vercel: https://vercel.com/new
- Slack Apps: https://api.slack.com/apps
- Upstash Redis: https://upstash.com
- Pinecone: https://www.pinecone.io
Built with Agent OS + Claude-Flow + Claude Code
The Ultimate Coding Agent System 🚀⚖️