Email service integration and notification system for the VaultoAI platform. Part of VaultoAI's internal tooling.
This Next.js application generates and sends daily market overview emails to configured recipients. It combines a TradingView market heatmap screenshot (via Puppeteer), prestock token performance data, and AI-generated market insights from Perplexity into a single HTML email sent through Resend. Scheduling is supported via Netlify cron or Vercel Cron. It is maintained by VaultoAI for internal and optional user-facing notifications.
- Daily market overview email — Scheduled send (e.g. 10 AM UTC) with heatmap, token performance, and AI insights
- Preview and manual send — API routes to generate preview or send to custom recipients
- Resend integration — Reliable email delivery
- Perplexity integration — AI-generated market commentary
- Puppeteer — Screenshot capture for heatmap inclusion
- Languages: TypeScript
- Frameworks / libraries: Next.js 14, React, Resend, Puppeteer, Netlify Functions
- Node.js and npm
- Resend API key and Perplexity API key (see EMAIL_SETUP.md)
npm install- Set environment variables (e.g. in
.env.local):RESEND_API_KEY,PERPLEXITY_API_KEY; optionalEMAIL_FROM,EMAIL_FROM_NAME,CRON_SECRET. - Run the development server:
npm run dev- Use
GET /api/email/market-overviewfor preview,POST /api/email/sendto send, orGET /api/cron/send-daily-emailfor the cron-triggered send (protect withCRON_SECRETin production).
See EMAIL_SETUP.md and NETLIFY_CRON_SETUP_PROMPT.md for Resend, Perplexity, cron, and deployment configuration.
See CONTRIBUTING.md for guidelines, or contact VaultoAI engineering.
See LICENSE file.
VaultoAI Engineering. For support or questions, see the repository or organization documentation.