跳到正文
TakoAPI
返回技能列表

langchain-email-agent

由 jawadsadiq01 提供

Coding Agents & IDEs
730下载量由 clawskills.sh 提供
3浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

The `EmailAgent` class provides an AI-powered email composition and sending capability using LangChain.

描述

该技能的功能

An AI agent that composes and sends emails using LangChain with OpenAI's GPT model. Before any email is sent, a human-in-the-loop middleware step requires explicit approval, edit, or rejection.

The built-in approval gate prevents accidental sends, making it safer than fully autonomous email agents.

何时使用

  • Drafting outreach emails with tone instructions
  • Sending meeting requests with AI-written copy
  • Reviewing AI-composed emails before delivery
  • Composing follow-up emails from minimal input
  • Automating email drafts while keeping human oversight

示例工作流

输入

User asks: 'Send a formal meeting request to john@example.com'

智能体
  1. 1

    Agent receives recipient email, name, subject, body, and instructions

  2. 2

    GPT model composes a formal email based on the provided parameters

  3. 3

    humanInTheLoopMiddleware intercepts before the EmailTool executes

  4. 4

    User reviews the composed email and chooses to approve, edit, or reject

  5. 5

    Agent sends the email if approved and returns the result

输出

Confirmation string from the agent indicating the email was sent

前置要求

  • OPENAI_API_KEY environment variable
  • Email account credentials or SMTP configuration for the underlying email tool

安装

clawhub install jawadsadiq01/langchain-email-agent

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接