🚀 GreyBrain AI Pulse - Deployment Guide
Lists environment variables, deployment commands for Vercel/Netlify/GitHub Pages, and integration steps for embedding a newsletter and Discord bot.
What this file does
Lists environment variables, deployment commands for Vercel/Netlify/GitHub Pages, and integration steps for embedding a newsletter and Discord bot.
When to use it
- Deploying an AI newsletter app with Discord auto-posting
- Embedding a live newsletter widget or iframe into an existing site
- Setting up Brevo email automation and weekly digests
- Configuring topic-specific Discord channels for content routing
Assumes this stack
🚀 GreyBrain AI Pulse - Deployment Guide
📋 Pre-Deployment Checklist
✅ Current Features Ready for Production:
- 🧠 AI-Powered Newsletter Generation (Gemini API with Google Search)
- 📧 Email Newsletter Automation (Brevo integration)
- 🤖 Discord Community Integration (Auto-posting to topic channels)
- 📊 RSS Feed Generation
- 🔖 Bookmark System
- 📱 Responsive Design
- 🔄 Auto-refresh every 30 minutes
🔧 Environment Variables Required:
# API Keys
VITE_GEMINI_API_KEY=your_gemini_api_key
VITE_BREVO_API_KEY=your_brevo_api_key
# Discord Configuration
VITE_DISCORD_BOT_TOKEN=your_discord_bot_token
VITE_DISCORD_GUILD_ID=your_discord_guild_id
VITE_DISCORD_WEBHOOK_URL=your_discord_webhook_url
VITE_DISCORD_SERVER_INVITE=https://discord.gg/your-invite
# Telegram (Optional - can be added later)
VITE_TELEGRAM_BOT_TOKEN=your_telegram_bot_token
VITE_TELEGRAM_CHAT_ID=your_telegram_chat_id
🌐 Deployment Options
Option 1: Vercel (Recommended)
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel
# Set environment variables in Vercel dashboard
# vercel.com → Project → Settings → Environment Variables
Option 2: Netlify
# Install Netlify CLI
npm i -g netlify-cli
# Build and deploy
npm run build
netlify deploy --prod --dir=dist
Option 3: GitHub Pages
# Build for production
npm run build
# Deploy to gh-pages branch
npm i -g gh-pages
gh-pages -d dist
🔗 Embedding in GreyBrain.ai
Option 1: Full Page Integration
Add a new page/route to your main website:
<!-- Add to your main site -->
<iframe
src="https://your-deployed-pulse.vercel.app"
width="100%"
height="100vh"
frameborder="0">
</iframe>
Option 2: Widget Integration
Create a newsletter widget for your homepage:
<!-- Newsletter widget -->
<div id="greybrain-pulse-widget"></div>
<script>
// Embed latest newsletter content
fetch('https://your-deployed-pulse.vercel.app/api/latest')
.then(response => response.json())
.then(data => {
// Render newsletter preview
});
</script>
Option 3: Subdomain
Set up a subdomain: pulse.greybrain.ai
- Point DNS to your deployment
- Update CNAME records
📧 Email Newsletter Automation
Current Setup:
- ✅ Subscription Form (Brevo integration)
- ✅ Weekly Digest Generation (HTML + Text)
- ✅ Automated Campaigns (Brevo API)
- ✅ RSS Feed for email clients
To Enable Auto-Sending:
- Set up Brevo Campaign Automation
- Configure Weekly Schedule (Sundays at 9 AM)
- Test with Small List first
🤖 Discord Integration Status
✅ Fully Configured:
- Professional Discord server created
- 6 topic-specific channels matching newsletter categories
- Auto-posting when new content is generated
- Professional roles and community guidelines
- Webhook integration for manual posting
Channels Created:
#llm-announcements→ "New LLM Announcements & Releases"#productivity-hacks→ "LLM Productivity Hacks & Tips"#ai-tool-of-the-day→ "AI Tool/Tip of the Day"#deep-agents-tools→ "Emerging Deep Agents & AI Tools"#academic-research→ "Academic Research & Papers"#healthcare-llm→ "Healthcare LLM Advancements"
🔄 Automation Features
Auto-Posting (Every 30 minutes):
- Generate Newsletter (Gemini API + Google Search)
- Post to Discord Channels (Topic-specific routing)
- Update RSS Feed
- Refresh Website Content
Weekly Email Digest:
- Automated HTML email generation
- Subscriber management via Brevo
- Professional email templates
📱 Mobile & Performance
Optimizations:
- ✅ Responsive design for all devices
- ✅ Lazy loading for images
- ✅ Optimized bundle size
- ✅ Fast loading with Vite
🔐 Security & Privacy
Implemented:
- ✅ Environment variable protection
- ✅ API key security
- ✅ CORS configuration
- ✅ No sensitive data in client
📊 Analytics & Monitoring
Ready for:
- Google Analytics integration
- Newsletter engagement tracking
- Discord community metrics
- Email open/click rates (Brevo)
🚀 Quick Deploy Commands
# 1. Build for production
npm run build
# 2. Test production build locally
npm run preview
# 3. Deploy to Vercel
vercel --prod
# 4. Set environment variables in Vercel dashboard
🔧 Post-Deployment Tasks
- Update Discord Invite Link in .env
- Test Email Subscriptions
- Verify Auto-Posting
- Set up Custom Domain (if needed)
- Configure Analytics
📞 Support & Maintenance
Monitoring:
- Check Discord auto-posting daily
- Monitor email delivery rates
- Review API usage limits
- Update content categories as needed
Future Enhancements:
- 📱 Telegram integration
- 🔍 Search functionality
- 📈 Analytics dashboard
- 🎨 Custom themes
- 🔔 Push notifications
Ready to deploy! 🚀
What's inside
12 sections: pre-deployment checklist, 3 deployment options, 3 embedding methods, Discord channels, automation schedule, post-deployment tasks.
Change this for your project
- Replace
VITE_GEMINI_API_KEY=your_gemini_api_keywith your own Gemini key - Replace
VITE_DISCORD_GUILD_ID=your_discord_guild_idwith your Discord server ID - Replace
https://your-deployed-pulse.vercel.appwith your actual deployment URL - Replace
https://discord.gg/your-invitewith your server invite link
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Worth borrowing
- Auto-posting newsletter content to topic-specific Discord channels every 30 minutes
- Using an iframe or fetch-based widget to embed live content into an existing site
- Separating environment variables for optional integrations like Telegram
Related Documents
OpenCode Agents
Provides a collection of specialised Markdown agent files for OpenCode, each with a distinct role and thinking algorithm.
🌟 GitHub MCP Server - Feature Showcase
Showcases eight GitHub MCP server tools with example inputs, outputs, and real-world use cases for AI agents.
Chloe 部署文档
Guides you through deploying an enhanced SillyTavern fork with direct, Docker, and reverse-proxy setups, plus security hardening and troubleshooting.
Software License Compliance Report
Documents that all dependencies in an early cancer prediction project are FOSS and OSI-approved, confirming commercial use is permitted.