{"id":22957815,"url":"https://github.com/taherfattahi/mailtrap-agent","last_synced_at":"2025-04-17T12:41:53.292Z","repository":{"id":234182060,"uuid":"788399464","full_name":"taherfattahi/mailtrap-agent","owner":"taherfattahi","description":"MailTrap Agent with LangChain","archived":false,"fork":false,"pushed_at":"2024-04-18T11:03:22.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T06:11:14.601Z","etag":null,"topics":["agent","langchain","llm","mailtrap","mailtrap-io","openai"],"latest_commit_sha":null,"homepage":"https://medium.com/@taherfattahi11/building-a-mailtrap-agent-platform-with-agent-tools-in-langchain-cc756073108a","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taherfattahi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-18T10:43:46.000Z","updated_at":"2024-06-01T10:44:13.000Z","dependencies_parsed_at":"2024-04-18T12:27:27.415Z","dependency_job_id":null,"html_url":"https://github.com/taherfattahi/mailtrap-agent","commit_stats":null,"previous_names":["taherfattahi/mailtrap-agent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taherfattahi%2Fmailtrap-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taherfattahi%2Fmailtrap-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taherfattahi%2Fmailtrap-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taherfattahi%2Fmailtrap-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taherfattahi","download_url":"https://codeload.github.com/taherfattahi/mailtrap-agent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249342131,"owners_count":21254228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","langchain","llm","mailtrap","mailtrap-io","openai"],"created_at":"2024-12-14T17:20:47.172Z","updated_at":"2025-04-17T12:41:53.274Z","avatar_url":"https://github.com/taherfattahi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MailTrap Agent with LangChain\n\n## Summary\nThis script serves as a straightforward MailTrap agent designed to interact with the Mailtrap library through prompts.\nExample Prompt: \n`Please send an email to taherfattahi11@gmail.com with the subject \"You are awesome!\" \nand the body of the email should be: \"Congratulations on successfully sending a test email with Mailtrap!\"`\n\n- \u003ca href=\"https://mailtrap.io\"\u003eMailTrap (Email Delivery Platform)\u003c/a\u003e\n\n- \u003ca href=\"https://github.com/railsware/mailtrap-python\"\u003eOfficial Mailtrap Python client\u003c/a\u003e\n\nI wrote an article that walks through how to build out the below script \u003ca href=\"https://medium.com/@taherfattahi11/building-a-mailtrap-agent-platform-with-agent-tools-in-langchain-cc756073108a\"\u003eCan read that here\u003c/a\u003e\n\n## Getting started\nClone the repository, set up the virtual environment, and install the required packages\n\n```\ngit clone git@github.com:taherfattahi/mailtrap-agent.git\ncd mailtrap-agent\npython3 -m venv .venv\n. .venv/bin/activate\npip install -r requirements.txt\n```\n\n## Store your OpenAI API key\nCopy the example env file\n\n`cp .env.example .env`\n\nNow copy your OpenAI API key - mailtrap token - mailtrap sender into the `.env` file, and save the file. It should send up looking something like\n\n`OPENAI_API_KEY=sk-`\n\n`MAILTAP_TOKEN=`\n\n`MAILTAP_SENDER=`\n\n## Start interacting with the agent\nFeel free to contribute and implement new tools for this agent.🙂\n\nPress Ctrl + C to exit the chat window at any time.\n\n```python\npython3 mailtrap-agent.py\n```\n\n![img1.png.png](./img/img1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaherfattahi%2Fmailtrap-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaherfattahi%2Fmailtrap-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaherfattahi%2Fmailtrap-agent/lists"}