A pipe that summarizes content and make it less wordy
live
homepage
summarizer
ai-email-agent
Meta
ON
Tools
Add
No tools added to the Pipe.
Readme
Build an AI Email Agent with Pipes — ⌘ Langbase
An AI powered email agent to help you analyze sentiment, summarize content, decides whether a response is needed or not, and generates replies for your emails. This agent is built by using multiple AI Pipes on Langbase which work with 30+ LLMs (OpenAI, Gemini, Mistral, Llama, Gemma, etc), any Data (10M+ context with Memory sets), and any Framework (standard web API you can use with any software).
Go to the API tab of each pipe to copy the pipe's API key (to be used on server-side only).
Download the example project folder from here or clone the repository.
cd into the project directory and open it in your code editor.
Duplicate the .env.example file in this project and rename it to .env.local.
Add the following environment variables:
sh
DownloadCopy code
1# Fork https://langbase.com/examples/email-sentiment pipe to get the API key
2# Replace `PIPE_API_KEY` with the copied API key of Code Alchemist Pipe.
3LANGBASE_AI_PIPE_SENTIMENT_API_KEY="PIPE_API_KEY"
45# Fork https://langbase.com/examples/summarizer pipe to get the API key
6# Replace `PIPE_API_KEY` with the copied API key of Code Alchemist Pipe.
7LANGBASE_AI_PIPE_SUMMARIZER_API_KEY="PIPE_API_KEY"
89# Fork https://langbase.com/examples/decision-maker pipe to get the API key
10# Replace `PIPE_API_KEY` with the copied API key of Code Alchemist Pipe.
11LANGBASE_AI_PIPE_DECISION_MAKER_API_KEY="PIPE_API_KEY"
1213# Fork https://langbase.com/examples/pick-email-writer pipe to get the API key
14# Replace `PIPE_API_KEY` with the copied API key of Code Alchemist Pipe.
15LANGBASE_AI_PIPE_PICK_EMAIL_WRITER_API_KEY="PIPE_API_KEY"
1617# Fork https://langbase.com/examples/email-writer pipe to get the API key
18# Replace `PIPE_API_KEY` with the copied API key of Code Alchemist Pipe.
19LANGBASE_AI_PIPE_EMAIL_WRITER_API_KEY="PIPE_API_KEY"
Now execute the following commands in your terminal to run the project:
sh
DownloadCopy code
1# Install the dependencies using the following command:
2pnpm install
34# OR if you are using npm, run the following command:
5npm install
67# Run the project using the following command:
8npm run dev
Your app template should now be running on localhost:3000
NOTE:
This is a Next.js project, so you can build and deploy it to any platform of your choice, like Vercel, Netlify, Cloudflare, etc.
Authors
This project is created by Langbase team members, with contributions from: