This bot delivers a daily, personalized briefing of the most important news for you and anyone you choose to include. It runs automatically, sends a clean email summary, and gives you a simple dashboard to review past updates.
- Click Remix
- Set
OPENAI_API_KEYin this val's environment variables - Done! You will get an email tomorrow morning.
Ready to test it instantly? Open main.ts and click Run. After a couple minutes, you will receive the email and see the results on your dashboard. Check this val’s logs in the left sidebar if something looks off.
You can tailor it in a few quick ways:
-
Schedule the run time
The default schedule in main.ts runs at 12am UTC (7am ET). Open the Cron editor above the file to adjust it. -
Customize what the bot collects
The prompt in PROMPT.txt asks for 15 enterprise tech stories. Change the wording to focus on different topics, formats, or story counts. -
Choose who gets the newsletter
By default, main.ts emails the val’s owner. If you use Val Town Pro, you can add more recipients.
- PROMPT.txt - Defines how the agent selects news and how the response should be formatted.
- dashboard.tsx – Displays previous newsletter runs from blob storage in a simple web UI.
- main.ts – The scheduled job that calls the OpenAI agent, processes the results, renders the email, and sends it.
- newsletter-template.tsx – React component that turns news items into a polished HTML email.