{
  "schemaVersion": "1.0",
  "item": {
    "slug": "langchain-email-agent",
    "name": "Backend Developer",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/JawadSadiq01/langchain-email-agent",
    "canonicalUrl": "https://clawhub.ai/JawadSadiq01/langchain-email-agent",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/langchain-email-agent",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=langchain-email-agent",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "email.agent.ts"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/langchain-email-agent"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/langchain-email-agent",
    "agentPageUrl": "https://openagent3.xyz/skills/langchain-email-agent/agent",
    "manifestUrl": "https://openagent3.xyz/skills/langchain-email-agent/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/langchain-email-agent/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "The EmailAgent class provides an AI-powered email composition and sending capability using LangChain with OpenAI's GPT model. It includes human-in-the-loop middleware that requires approval before emails are sent."
      },
      {
        "title": "Environment Variables",
        "body": "VariableDefaultDescriptionOPENAI_MODELgpt-4o-miniOpenAI model to use"
      },
      {
        "title": "Usage",
        "body": "import { EmailAgent } from './email.agent';\nimport { SendEmailDto } from '../dto/send-email.dto';\n\nconst agent = new EmailAgent();\n\nconst dto: SendEmailDto = {\n  email: 'recipient@example.com',\n  name: 'John Doe',\n  subject: 'Meeting Request',      // optional\n  body: 'Initial email content',   // optional\n  instructions: 'Keep it formal'   // optional\n};\n\nconst result = await agent.sendEmail(dto);"
      },
      {
        "title": "Human-in-the-Loop Middleware",
        "body": "The agent uses humanInTheLoopMiddleware which interrupts execution on the EmailTool before sending emails. This allows for:\n\napprove - Send the email as composed\nedit - Modify the email before sending\nreject - Cancel the email operation\n\nThe readEmailTool is excluded from interruption (false), allowing read operations to proceed without approval."
      },
      {
        "title": "Parameters",
        "body": "ParameterTypeRequiredDescriptionemailstringYesRecipient email addressnamestringYesRecipient namesubjectstringNoEmail subject linebodystringNoInitial email body contentinstructionsstringNoAI instructions for composing the email"
      },
      {
        "title": "Return Value",
        "body": "Returns the final message content from the agent as a string."
      }
    ],
    "body": "EmailAgent README\nOverview\n\nThe EmailAgent class provides an AI-powered email composition and sending capability using LangChain with OpenAI's GPT model. It includes human-in-the-loop middleware that requires approval before emails are sent.\n\nConfiguration\nEnvironment Variables\nVariable\tDefault\tDescription\nOPENAI_MODEL\tgpt-4o-mini\tOpenAI model to use\nUsage\nimport { EmailAgent } from './email.agent';\nimport { SendEmailDto } from '../dto/send-email.dto';\n\nconst agent = new EmailAgent();\n\nconst dto: SendEmailDto = {\n  email: 'recipient@example.com',\n  name: 'John Doe',\n  subject: 'Meeting Request',      // optional\n  body: 'Initial email content',   // optional\n  instructions: 'Keep it formal'   // optional\n};\n\nconst result = await agent.sendEmail(dto);\n\nHuman-in-the-Loop Middleware\n\nThe agent uses humanInTheLoopMiddleware which interrupts execution on the EmailTool before sending emails. This allows for:\n\napprove - Send the email as composed\nedit - Modify the email before sending\nreject - Cancel the email operation\n\nThe readEmailTool is excluded from interruption (false), allowing read operations to proceed without approval.\n\nParameters\nParameter\tType\tRequired\tDescription\nemail\tstring\tYes\tRecipient email address\nname\tstring\tYes\tRecipient name\nsubject\tstring\tNo\tEmail subject line\nbody\tstring\tNo\tInitial email body content\ninstructions\tstring\tNo\tAI instructions for composing the email\nReturn Value\n\nReturns the final message content from the agent as a string."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/JawadSadiq01/langchain-email-agent",
    "publisherUrl": "https://clawhub.ai/JawadSadiq01/langchain-email-agent",
    "owner": "JawadSadiq01",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/langchain-email-agent",
    "downloadUrl": "https://openagent3.xyz/downloads/langchain-email-agent",
    "agentUrl": "https://openagent3.xyz/skills/langchain-email-agent/agent",
    "manifestUrl": "https://openagent3.xyz/skills/langchain-email-agent/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/langchain-email-agent/agent.md"
  }
}