• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
sboesen

sboesen

r1

Remix of simplescraper/aiEmailAssistant
Public
Like
r1
Home
Code
2
README.md
E
main.tsx
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
/
Code
/
Search
README.md

R1 Email AI Assistant

Chat with R1 (with PDF attachment support)

What It Does

This script allows you to:

  • Send emails to R1. The text will be treated as the prompt
  • Parse PDF attachments and include their contents in the AI's analysis.
  • Get response directly to your inbox. Thinking response is included below the reply.

Setup guide

  1. Copy this Val and save it as an Email Val (choose Val type in top-right corner of editor)

  2. Add your Fireworks (or openai API compatible) API key to line 8 (or use an environment variable: https://docs.val.town/reference/environment-variables/)

  3. Copy the email address of the Val (click 3 dots in top-right > Copy > Copy email address)

  4. Write your email, include any attachments, and send it to the Val email address. The AI will respond after a few seconds.

Email
  • main.tsx
Code
README.md
E
main.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI 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.