EngageLab Email
Overview
This skill allows an agent to send emails via EngageLab's REST API. It encapsulates complex API call details, making it simple and efficient to send emails, manage recipients, handle email content (HTML/plain text), perform variable replacement, and add attachments. Additionally, it supports configuring advanced sending settings such as sandbox mode and email tracking.
Core Features
1. Sending Regular Emails
Send basic emails by specifying the sender, recipients, subject, and email content (HTML or plain text). Supports Carbon Copy (CC) and Blind Carbon Copy (BCC).
Use Case: Sending notifications, confirmation emails, simple messages, etc.
2. Email Content and Variable Replacement
Supports using variables in email subjects and content, and replacing them via vars or dynamic_vars parameters to personalize email content.
- -
vars: Suitable for simple text replacement, such as Dear %name%. dynamic_vars: Suitable for variable replacement in dynamic template engines, such as Dear {{name}}.
Use Case: Sending marketing emails, bulk personalized notifications, etc.
3. Attachment Handling
Supports adding attachments to emails. Attachment content needs to be Base64 encoded. You can set the attachment's filename, type, and disposition (inline or attachment). inline mode is often used to embed images within the email body.
Use Case: Sending reports, images, documents, etc.
4. Advanced Sending Settings
Various sending behaviors can be configured via the settings parameter, including:
- -
send_mode: Sending mode (0: regular, 1: template, 2: address list). sandbox: Whether to enable sandbox mode for testing; emails will not be actually sent.open_tracking, click_tracking, unsubscribe_tracking: Tracking for email opens, clicks, and unsubscribes.
Use Case: Testing email sending functionality, analyzing email marketing effectiveness.
Resources
scripts/
- -
send_email.py: This is a Python script that encapsulates the EngageLab email sending API call logic. It handles authentication, request body construction, API calls, and error handling. You can directly call this script to send emails.
references/
- -
api_spec.md: Contains detailed parameter descriptions, request examples, and response formats for the EngageLab email sending REST API. Refer to this file when you need to understand the specific details of the API.
templates/
This skill currently does not have specific template files, as email content is usually generated dynamically. If needed, email content templates can be added based on specific scenarios.
EngageLab 邮件服务
概述
本技能允许智能体通过EngageLab的REST API发送邮件。它封装了复杂的API调用细节,使发送邮件、管理收件人、处理邮件内容(HTML/纯文本)、执行变量替换以及添加附件变得简单高效。此外,还支持配置沙箱模式和邮件追踪等高级发送设置。
核心功能
1. 发送常规邮件
通过指定发件人、收件人、主题和邮件内容(HTML或纯文本)发送基本邮件。支持抄送(CC)和密送(BCC)。
使用场景:发送通知、确认邮件、简单消息等。
2. 邮件内容与变量替换
支持在邮件主题和内容中使用变量,并通过 vars 或 dynamic_vars 参数进行替换,实现邮件内容的个性化。
- - vars:适用于简单文本替换,如 尊敬的%name%。
- dynamic_vars:适用于动态模板引擎中的变量替换,如 尊敬的{{name}}。
使用场景:发送营销邮件、批量个性化通知等。
3. 附件处理
支持向邮件添加附件。附件内容需进行Base64编码。可设置附件的文件名、类型和处置方式(inline 或 attachment)。inline 模式常用于在邮件正文中嵌入图片。
使用场景:发送报告、图片、文档等。
4. 高级发送设置
可通过 settings 参数配置多种发送行为,包括:
- - sendmode:发送模式(0:常规,1:模板,2:地址列表)。
- sandbox:是否启用沙箱模式进行测试,邮件将不会实际发送。
- opentracking、clicktracking、unsubscribetracking:邮件打开、点击和退订追踪。
使用场景:测试邮件发送功能、分析邮件营销效果。
资源
scripts/
- - send_email.py:这是一个Python脚本,封装了EngageLab邮件发送API的调用逻辑。它处理身份验证、请求体构建、API调用和错误处理。您可以直接调用此脚本来发送邮件。
references/
- - api_spec.md:包含EngageLab邮件发送REST API的详细参数说明、请求示例和响应格式。当您需要了解API的具体细节时,请参考此文件。
templates/
本技能目前没有特定的模板文件,因为邮件内容通常是动态生成的。如有需要,可根据具体场景添加邮件内容模板。