This is a lightweight wrapper around Perplexity's web search API that you can interact with via email.
PERPLEXITY_API_KEY
: Go to https://www.perplexity.ai/account/api/keys -> Create Key
-> Copy
emailHandler
and the purple Email
icon on the top right. This will show you a drop down with the email address, this is the address you can send test emails to, or route emails through. The code in emailHandler
determines what to do upon receiving an email at that address.There are 2 files in this val:
emailHandler
: Send a question via 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.