Back to .md Directory
🚀 GreyBrain AI Pulse - Deployment Guide
- 🧠 **AI-Powered Newsletter Generation** (Gemini API with Google Search)
ai llm gemini automation
View source🚀 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! 🚀
Related Documents
DEPLOYMENT.md
🌟 GitHub MCP Server - Feature Showcase
> **💡 AI Optimization Tip**: For AI agents, use `response_format: "compact"` to save 80-97% tokens. Examples below show `markdown` for human readability, but `compact` is recommended for programmatic use. See [Token Efficiency Guide](TOKEN_EFFICIENCY.md) for details.
aiagentmcp
0
16
crypto-ninjaDEPLOYMENT.md
OpenCode Agents
<a href="README.md">🇷🇺 Русский</a> · <a href="README.en.md">🇬🇧 English</a> · <a href="README.zh.md">🇨🇳 中文</a>
aiagentrag
0
12
veschinDEPLOYMENT.md
msitarzewski/agency-agents
date: 2026-03-15T13:27:54+08:00
aiagentprompt
0
5
dxdytDEPLOYMENT.md
SunCube AI - Comprehensive Documentation
- [Overview](#overview)
aiworkflowsafety
0
4
SunenaB3504