Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Compose and send emails using AI with human approval for sending, allowing edits or rejection before delivery.
Compose and send emails using AI with human approval for sending, allowing edits or rejection before delivery.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
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.
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.
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.
VariableDefaultDescriptionOPENAI_MODELgpt-4o-miniOpenAI model to use
import { EmailAgent } from './email.agent'; import { SendEmailDto } from '../dto/send-email.dto'; const agent = new EmailAgent(); const dto: SendEmailDto = { email: 'recipient@example.com', name: 'John Doe', subject: 'Meeting Request', // optional body: 'Initial email content', // optional instructions: 'Keep it formal' // optional }; const result = await agent.sendEmail(dto);
The agent uses humanInTheLoopMiddleware which interrupts execution on the EmailTool before sending emails. This allows for: approve - Send the email as composed edit - Modify the email before sending reject - Cancel the email operation The readEmailTool is excluded from interruption (false), allowing read operations to proceed without approval.
ParameterTypeRequiredDescriptionemailstringYesRecipient email addressnamestringYesRecipient namesubjectstringNoEmail subject linebodystringNoInitial email body contentinstructionsstringNoAI instructions for composing the email
Returns the final message content from the agent as a string.
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.