• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We‘re hiring!
Log inSign up
Lesiekim

Lesiekim

researchAgent

Remix of charmaine/researchAgent
Public
Like
researchAgent
Home
Code
3
README.md
E
emailHandler
C
morningAiNewsletter
Branches
1
Pull requests
Remixes
History
Environment variables
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
8/3/2025
README.md

Research Agent over email

This is a lightweight wrapper around Perplexity's web search API that you can interact with via email. Screenshot 2025-06-06 at 11.42.44 AM.png

Set up instructions

  1. Before you can run this val, 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, 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.

Usage instructions

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 email
  • morningAiNewsletter: A cron that sends you an email every morning (or whatever cadence you choose) telling you about the latest AI news.
Get started with a template:
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.