Skip to content

MoSalem149/inbox-summarizer-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Inbox Summarizer

Paste a long email and get bullet points, action items, and deadlines using the OpenAI API.

Prerequisites

Setup

cd backend
cp .env.example .env
# Edit .env and set OPENAI_API_KEY
npm install

cd ../frontend
npm install

Run the app

Use two terminals.

Terminal 1 — API

cd backend
npm run dev

Terminal 2 — UI

cd frontend
npm start

Open http://localhost:4200. The UI calls the API at http://localhost:3000.

Environment variables

Variable Description
OPENAI_API_KEY Required for summarization
OPENAI_MODEL Model name (default: gpt-4o-mini)
PORT API port (default: 3000)

Email Summarizer Agent

Email Summarizer AI Agent built with Angular frontend and Node.js/Express backend in TypeScript. The app sends long emails to an OpenAI‑powered agent that returns a concise bullet‑point summary, action items, and key deadlines.

Stack

  • Frontend: Angular (TypeScript)
  • Backend: Node.js + Express (TypeScript)
  • AI: OpenAI Agents SDK (GPT model)
  • Architecture: SPA + REST API

Project structure

  • frontend/ – Angular app with summary form and service
    • src/app/components/summary-form
    • src/app/services/summary.service
  • backend/ – Express TypeScript API
    • src/app.ts – main server file
    • src/controllers/summarizer.controller.ts
    • src/routes/summarizer.routes.ts

Installation

1. Backend (Node/Express TypeScript)

cd backend
npm install

Create .env in backend/ with your OpenAI key:

OPENAI_API_KEY=sk-...
PORT=3000

2. Frontend (Angular)

cd frontend
npm install

Running the app

1. Start backend

cd backend
npm run dev  # or npx tsx src/app.ts

2. Start frontend

cd frontend
ng serve

Then open http://localhost:4200 in your browser.


Note: Make sure the backend is running on http://localhost:3000 so the Angular app can send emails to the summarizer API.

License

MoSalem149

About

Email Summarizer AI Agent built with Angular frontend and Node.js/Express backend in TypeScript. The app sends long emails to an OpenAI‑powered agent that returns a concise bullet‑point summary, action items, and key deadlines. Designed as a simple, reusable AI agent pattern for future projects.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors