Public
Like
researchAgent
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: v19View latest version
This is a lightweight wrapper around Perplexity's web search API that you can interact with via email.
- Before you can run this cron, you must add the following Environment Variables (via left sidebar of this val):
PERPLEXITY_API_KEY
: Go to https://www.perplexity.ai/account/api/keys ->Create Key
->Copy
- Every val with an email trigger comes with its own email address - which you can find by clicking on
emailHandler
and the purpleEmail
icon on the top right, this will show you a drop down with the email address. The code inemailHandler
determines what to do upon receiving an email at that address.
There are 2 files in this val:
emailHandler
: Send an email to your val's email address to get a response back via emailmorningAiNewsletter
: A cron that sends you an email every morning (or whatever cadence you choose) telling you about the latest AI news.