Public
Like
2
research-newsletter-bot
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v97View latest version
This bot will email you and whoever else you want daily with a summary of the most important news for you.
If you click the Remix button, this bot will start working for you immediately – no changes required.
You can easily customize the following properties:
- When this bot runs. The schedule is currently set on main.ts to
run at 12am UTC, 7am ET. Click the
Cronbutton above main.ts to change it.
The current prompt in PROMPT.txt instructs it to get 15 enterprise tech news items, but it's quite easy for you to customize it to your liking.
- PROMPT.txt - System prompt instructing the agent to find 15 recent enterprise tech stories and return JSON
- dashboard.tsx - Web UI for viewing past newsletter runs stored in blob storage
- main.ts - Interval job that kicks off the OpenAI agent, parses results, generates HTML, and sends the email
- newsletter-template.tsx - React component that renders news items into an HTML email template
- shell.ts - If you want to manually run the newsletter outside of the schedule, go to this file and click Run