GithubHelp home page GithubHelp logo

taherfattahi / mailtrap-agent Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 44 KB

MailTrap Agent with LangChain

Home Page: https://medium.com/@taherfattahi11/building-a-mailtrap-agent-platform-with-agent-tools-in-langchain-cc756073108a

Python 100.00%
agent langchain llm mailtrap mailtrap-io openai

mailtrap-agent's Introduction

MailTrap Agent with LangChain

Summary

This script serves as a straightforward MailTrap agent designed to interact with the Mailtrap library through prompts. Example Prompt: Please send an email to [email protected] with the subject "You are awesome!" and the body of the email should be: "Congratulations on successfully sending a test email with Mailtrap!"

I wrote an article that walks through how to build out the below script Can read that here

Getting started

Clone the repository, set up the virtual environment, and install the required packages

git clone [email protected]:taherfattahi/mailtrap-agent.git
cd mailtrap-agent
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt

Store your OpenAI API key

Copy the example env file

cp .env.example .env

Now copy your OpenAI API key - mailtrap token - mailtrap sender into the .env file, and save the file. It should send up looking something like

OPENAI_API_KEY=sk-

MAILTAP_TOKEN=

MAILTAP_SENDER=

Start interacting with the agent

Feel free to contribute and implement new tools for this agent.๐Ÿ™‚

Press Ctrl + C to exit the chat window at any time.

python3 mailtrap-agent.py

img1.png.png

mailtrap-agent's People

Contributors

taherfattahi avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

blackwhites

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.