Welcome to Inbox Zero
Relevant source files
The following files were used as context for generating this wiki page:
Inbox Zero is an open-source AI email assistant designed to help users spend less time in their inbox by organizing emails, pre-drafting replies, and tracking follow-ups. The project's mission is to allow users to focus on what matters by automating email management. The "Welcome to Inbox Zero" experience serves as the initial entry point for new users, guiding them through an onboarding and setup process to configure the application's core features.
This document outlines the user's journey from the initial welcome page to the feature setup checklist, detailing the components and logic involved. It also provides a high-level overview of the key features introduced during this onboarding phase.
Sources: README.md:1-17, apps/web/app/(landing)/welcome/page.tsx:1-45, apps/web/app/(app)/[emailAccountId]/setup/SetupContent.tsx:1-218
Project Overview
Inbox Zero is a full-stack application built with Next.js, Tailwind CSS, Prisma, and Upstash. It functions alongside a user's existing email client (like Gmail or Outlook) and is not a replacement.
Sources: README.md:33-39, apps/web/app/(landing)/home/FAQs.tsx:11-13
Key Features
The application offers a suite of features aimed at achieving "inbox zero."
| Feature | Description |
|---|---|
| AI Personal Assistant | Organizes the inbox and pre-drafts replies in the user's tone and style. |
| Cursor Rules for email | Allows users to define in plain English how the AI should handle their inbox. |
| Reply Zero | Tracks emails that need a reply and those awaiting responses. |
| Smart Categories | Automatically categorizes every sender. |
| Bulk Unsubscriber | Provides one-click unsubscribe and archive functionality for unread emails. |
| Cold Email Blocker | Automatically blocks cold emails. |
| Email Analytics | Tracks email activity and trends over time. |
Sources: README.md:20-28
Supported Providers
| Provider | Supported |
|---|---|
| Gmail | Yes |
| Google Workspace | Yes |
| Microsoft Outlook | Yes |
Sources: apps/web/app/(landing)/home/FAQs.tsx:5-7
High-Level Architecture
The project is a monorepo containing the main web application (apps/web), a separate unsubscriber service, and several shared packages. The core logic resides within apps/web, which is a Next.js application using the App Router.
This diagram illustrates the main components of the Inbox Zero monorepo.
Sources: ARCHITECTURE.md:5-29
User Onboarding and Setup Flow
The user's first experience with Inbox Zero is a guided flow that starts from a welcome page and transitions into a setup checklist. This process is designed to introduce the core features and encourage configuration for optimal use.
This flowchart shows the user's path from the welcome page to completing the setup.
1. Welcome Page
The journey begins at /welcome. The WelcomePage component is the main entry point.
- Purpose: To greet the user and initiate the onboarding process.
- Component:
apps/web/app/(landing)/welcome/page.tsx - Key Elements:
- A
PageHeadingthat displays "Welcome to Inbox Zero". - The
OnboardingFormcomponent, which likely collects initial user information or preferences. - A call to
fetchUserAndStoreUtmsto capture UTM parameters for analytics, which runs after the page has rendered.
- A
// file: apps/web/app/(landing)/welcome/page.tsx:32-43
export default async function WelcomePage(props: {
// ...
}) {
// ...
return (
<div className="flex flex-col justify-center px-6 py-20 text-gray-900">
<SquaresPattern />
<CardBasic className="mx-auto flex max-w-2xl flex-col justify-center space-y-6 p-10 duration-500 animate-in fade-in">
<div className="flex flex-col text-center">
<PageHeading>Welcome to Inbox Zero</PageHeading>
<TypographyP className="mt-2">Let{"'"}s get you set up!</TypographyP>
<div className="mt-4">
<Suspense>
<OnboardingForm questionIndex={questionIndex} />
</Suspense>
</div>
</div>
</CardBasic>
</div>
);
}
Sources: apps/web/app/(landing)/welcome/page.tsx:1-45
2. Setup Page
After the initial welcome, the user is directed to the setup page, managed by the SetupContent component. This page is central to user onboarding, presenting a checklist of tasks to complete.
- Purpose: Guide the user through configuring the main features of Inbox Zero.
- Component:
apps/web/app/(app)/[emailAccountId]/setup/SetupContent.tsx - Data Fetching: The component uses the
useSetupProgresshook to fetch the user's current setup status. This determines whether to show the checklist or the feature grid.
Sources: apps/web/app/(app)/[emailAccountId]/setup/SetupContent.tsx:188-196
Setup Checklist
If the setup is not complete, a checklist is displayed. It guides the user through enabling and configuring key features.
The state of the setup UI is determined by the isSetupComplete flag.
The checklist items are rendered using the StepItem component.
| Step | Description | Time Estimate | Associated Feature |
|---|---|---|---|
| Set up your Personal Assistant | Configure the AI assistant. | 5 minutes | AI Assistant |
| Unsubscribe from emails | Clean the inbox by unsubscribing from newsletters. | 5 minutes | Bulk Unsubscribe |
| View emails needing replies | See which emails are pending a response. | 30 seconds | Reply Zero |
| Install the Inbox Zero Tabs extension | (Google only) Install the Chrome extension. | 1 minute | Chrome Extension |
Sources: apps/web/app/(app)/[emailAccountId]/setup/SetupContent.tsx:146-186
Feature Grid
Once all setup steps are completed, the checklist is replaced by a FeatureGrid. This grid provides direct links to the configured features, serving as a dashboard for the user.
FeatureCardComponent: Each item in the grid is aFeatureCardthat links to a specific feature page, such as/automationor/bulk-unsubscribe.
The features displayed are:
- AI Assistant
- Bulk Unsubscribe
- Reply Zero
- Cold Email Blocker
Sources: apps/web/app/(app)/[emailAccountId]/setup/SetupContent.tsx:49-77, apps/web/app/(app)/[emailAccountId]/setup/SetupContent.tsx:209-211
AI System Integration
The setup process introduces the user to the core AI capabilities of Inbox Zero. The AI assistant is a central part of the application, and its architecture involves several layers of logic.
AI Personal Assistant
The AI assistant operates based on a set of rules. These rules can be defined by the user in a prompt file, which are then synchronized with rules stored in the database. The LLM uses these database rules to decide on actions. This design allows for precise action definition and tracking, but introduces complexity with a two-way data sync between the prompt file and the database.
Sources: ARCHITECTURE.md:120-136
AI Chat Assistant
Users can interact with an AI chat assistant to manage their rules. The assistant uses a set of tools to perform actions like creating, updating, and retrieving rules and user settings.
This sequence diagram shows how the AI chat assistant processes a user request to create a rule.
Conclusion
The "Welcome to Inbox Zero" experience is a crucial onboarding funnel that introduces new users to the application's powerful, AI-driven features. It begins with a simple welcome page and progresses to a structured setup checklist. This guided process ensures users configure essential features like the AI Assistant, Bulk Unsubscriber, and Reply Zero, thereby maximizing the value they get from the tool right from the start. The transition from a checklist to a feature grid upon completion provides a clear path from setup to daily use.