FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
charmaine
charmaineresearchAgent
Ask Perplexity anything via email
Remix of thesephist/researchAgent
Public
Like
researchAgent
Home
Code
4
helpers
README.md
E
emailHandler
C
morningAiNewsletter
Branches
1
Pull requests
Remixes
1
History
Environment variables
1
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/6/2025
Viewing readonly version of main branch: v8
View latest version
README.md

Research Agent over email

This is a lightweight wrapper around Perplexity's web search API that you can interact with via email.

Set up instructions

  1. Before you can run the 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
  1. Every val with an email trigger comes with its own email address - which you can find by clicking on emailHandler and the purple Email icon on the top right, this will show you a drop down with the email address. The code in emailHandler determines what to do upon receiving an email at that address.

You can do 1 of 2 things:

  • Send an email to that email address and it'll respond based on whatever you ask it
  • Run the morningAiNewsletter cron and it will send you an email every morning telling you about the latest AI news.
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.