Professional email writing assistant with tone adjustment, template library, grammar checking, and response suggestions. Supports formal, casual, persuasive, and empathetic tones for business communication.
Professional email composition assistant that helps you write clear, effective, and impactful emails for any situation.
const writer = new EmailWriter();
const email = await writer.compose({
type: 'meeting-request',
tone: 'professional',
recipient: '客户',
purpose: '预约产品演示会议',
keyPoints: [
'介绍新产品功能',
'演示实际效果',
'讨论合作方案'
],
preferredTime: '下周一下午或周二上午',
duration: '30 分钟'
});
console.log(email.subject);
console.log(email.body);
// 将邮件从随意改为正式
const formalEmail = await writer.adjustTone({
originalEmail: casualDraft,
targetTone: 'formal',
context: '发送给 CEO 的汇报'
});
// 自动生成回复
const reply = await writer.generateReply({
receivedEmail: incomingEmail,
intent: 'accept-meeting',
additionalInfo: {
availableTime: ['周一下午 2-4 点', '周三上午 10-12 点']
}
});
// 查找合适的模板
const templates = await writer.findTemplates({
category: 'sales',
purpose: 'cold-outreach',
industry: 'technology'
});
Subject: [公司名] 合作机会 - [你的公司]
尊敬的 [姓名],
我是 [你的公司] 的 [你的职位] [你的名字]。
我注意到 [对方公司] 在 [领域] 取得了令人瞩目的成就,特别是 [具体成就]。
我们帮助过类似公司 [取得的成果],例如:
- [案例 1:具体数据]
- [案例 2:具体数据]
不知道您下周是否有 15 分钟时间,我想分享一下我们如何帮助 [对方公司] 实现类似成果。
期待您的回复。
此致
敬礼
[你的名字]
[你的职位]
[联系方式]
Subject: Re: [原主题]
尊敬的 [姓名],
希望您一切顺利。
我上周发送了关于 [主题] 的邮件,不知道您是否有机会查看?
我知道您很忙,如果您对这个话题感兴趣,我很乐意:
1. 提供更多详细信息
2. 安排一个简短的通话
3. 发送相关案例研究
如果您目前不感兴趣,也请告诉我,我会暂时不再打扰。
感谢您的时间。
此致
敬礼
[你的名字]
Subject: 会议邀请:[会议主题] - [日期]
尊敬的 [姓名],
希望您这周过得愉快。
我想邀请您参加一个关于 [会议主题] 的会议,具体信息如下:
📅 日期:[建议日期]
⏰ 时间:[建议时间]
📍 地点:[地点/线上会议链接]
⏱️ 时长:[时长]
会议议程:
1. [议程项 1]
2. [议程项 2]
3. [议程项 3]
如果上述时间不合适,请告诉我您方便的时间,我会配合您的日程。
期待您的确认。
此致
敬礼
[你的名字]
const variants = await writer.generateSubjectLines({
emailContent: emailBody,
variations: 5,
style: 'professional'
});
// 返回 5 个不同的主题行供测试
// 1. 合作机会 - 某某公司
// 2. 某某总,有个想法想和您分享
// 3. 关于 [具体话题] 的讨论邀请
// 4. 下周有空聊聊吗?
// 5. [你的公司] x [对方公司] 合作可能性
const suggestions = await writer.checkQuality({
email: draftEmail,
checks: ['grammar', 'clarity', 'tone', 'conciseness']
});
// 返回:
// {
// grammar: { score: 95, issues: [...] },
// clarity: { score: 88, suggestions: [...] },
// tone: { detected: 'professional', target: 'professional', match: true },
// conciseness: { wordCount: 150, suggested: 120, reduction: '20%' }
// }
const analytics = await writer.trackPerformance({
emailId: 'email-123',
metrics: ['openRate', 'clickRate', 'responseRate']
});
console.log(`打开率:${analytics.openRate}%`);
console.log(`回复率:${analytics.responseRate}%`);
const insights = await writer.getInsights({
period: 'last-30-days',
emailType: 'cold-outreach'
});
// 返回:
// - 最佳发送时间
// - 最佳主题行风格
// - 最佳邮件长度
// - 最佳 Call-to-Action
Email Request
↓
Intent Analysis Agent
├─ Identify email type
├─ Determine tone
└─ Extract key points
↓
Content Generation Agent
├─ Select template
├─ Generate draft
└─ Personalize content
↓
Quality Check Agent
├─ Grammar check
├─ Tone verification
├─ Clarity score
└─ CTA optimization
↓
Subject Line Generator
├─ Generate variants
├─ A/B test suggestions
└─ Spam score check
↓
Final Email
├─ Formatted content
├─ Subject line
└─ Sending recommendations
clawhub install ai-email-master
MIT
AI-Agent
1.1.0
2026-04-02
2026-04-02 (Enhanced with templates, examples, and best practices)