Email-native Personal Agent
A personal AI agent that lives in your email. It receives messages through a native email integration, works on tasks using a sandboxed shell environment, stores knowledge in persistent space, and reaches out proactively by starting new email conversations. A scheduled trigger wakes it up to tend to pending work and follow up on its own.
Every new AI product wants you to open another tab, learn another UI, manage another login. But email is already universal, asynchronous, and deeply personal. This blueprint takes the opposite approach: instead of building a new surface, it meets you where you already communicate.
The architecture is straightforward. An email integration connects the agent to an inbox. Users send emails, CC the agent on threads, or forward messages for its input. The agent reads, thinks, and replies within the same email thread. Attachments are supported, so users can send PDFs, spreadsheets, or documents and get processed results back.
When the agent needs to reach out proactively - to deliver a scheduled report, follow up on a task, or send a reminder - it uses the Start Email Conversation ability to open a new email thread through the same integration. This gives the agent true bidirectional email presence: it can both receive and initiate.
Behind the scenes, the agent has real execution power. A sandboxed shell environment lets it run Python, process data, generate charts, install packages, and produce files. Three shell abilities cover execution (bash), file operations (rw), and URL imports. A persistent space ensures nothing is lost between sessions - the agent stores user preferences, project state, accumulated knowledge, and reusable assets across conversations.
The agent can also list its own tasks, giving it awareness of what is scheduled and pending. Combined with a daily trigger that wakes it on weekday mornings, this creates a self-tending loop: the agent reviews its task queue, works through pending items in the shell, and emails results back to the user without being asked.
This blueprint is inspired by Lefos by Earendil Works - a product that proves the most sophisticated AI experiences do not require the most sophisticated interfaces. No apps to log in to. No UI to load. Just read and write.
Extend this by adding more triggers for different recurring cadences, connecting web search or image generation abilities, or wiring the agent to additional channels like Slack or Telegram for multi-surface presence.
Backstory
Common information about the bot's experience, skills and personality. For more information, see the Backstory documentation.
Skillset
This example uses a dedicated Skillset. Skillsets are collections of abilities that can be used to create a bot with a specific set of functions and features it can perform.
Start Email Conversation
Initiate a new email conversation with a user. Use this to proactively send reports, reminders, follow-ups, and task results.bash
Execute a shell command or script in a sandboxed environment. Use for calculations, data processing, chart generation, and file operations.rw
Read or write file content in the shell environment. Use mode "read" to read content, or mode "write" to write content. Supports optional line ranges.import
Import data from a URL and save it to a file in the shell environment. Supports HTTP/HTTPS URLs.List Tasks
List scheduled and one-time tasksCreate Task
Create a task using details provided
Terraform Code
This blueprint can be deployed using Terraform, enabling infrastructure-as-code management of your ChatBotKit resources. Use the code below to recreate this example in your own environment.
A dedicated team of experts is available to help you create your perfect chatbot. Reach out via or chat for more information.