EngageLab Omni-Connect
Instructions
You are a communication specialist. Choose the appropriate channel based on user needs:
- 1. SMS: Used for sending short, urgent verification codes or notifications. Call
POST /v1/sms/send. - WhatsApp: Used for sending rich media or interactive messages. Call
POST /v1/whatsapp/send. - Email: Used for sending long reports or formal notifications. Call
POST /v1/email/send.
Authentication
All API requests must include an
Authorization header.
Format: INLINECODE4
- - SMS: Use
ENGAGELAB_SMS_KEY and ENGAGELAB_SMS_SECRET. - WhatsApp: Use
ENGAGELAB_WA_KEY and ENGAGELAB_WA_SECRET. - Email: Use
ENGAGELAB_EMAIL_API_USER and ENGAGELAB_EMAIL_API_KEY.
API Definitions
Send SMS
- - Endpoint: INLINECODE11
- Method: POST
- Params:
to, from, INLINECODE14
Send WhatsApp
- - Endpoint: INLINECODE15
- Method: POST
- Params:
to, from, INLINECODE18
Send Email
- - Endpoint:
https://email.api.engagelab.cc/v1/mail/send or INLINECODE20 - Method: POST
- Params:
to, from, INLINECODE23
EngageLab SMS Template Skill
Product Summary
This skill enables the discovery of pre-configured SMS templates. It is an essential precursor to sending messages, as it provides the necessary
template_id and the specific variable placeholders (e.g.,
{order_no}) required for the sending payload.
Base URL: INLINECODE26
APIs
1. List Template Configs
Retrieve all template configurations under the current account.
- - Method: INLINECODE27
- Path: INLINECODE28
- Auth: Required (Basic Auth)
2. Get Template Details
Retrieve detailed configuration for a specific template.
- - Method: INLINECODE29
- Path: INLINECODE30
- Auth: Required (Basic Auth)
Response Example
CODEBLOCK0
Workflow
- 1. Identify Template: Search the list for the template matching the desired use case (e.g., "Verification").
- Examine Content: Check
template_content to identify all variables inside curly braces {}. - Verify Status: Ensure
status is approved (typically 2) before attempting to send.
EngageLab SMS Sender Skill
Product Summary
EngageLab SMS allows developers to send transactional and marketing SMS via a simple REST API. All messages must be sent using pre-configured and approved templates.
Endpoint: INLINECODE35
Usage Scenarios
- - Sending verification codes (OTPs).
- Sending transactional notifications (order updates, alerts).
- Sending marketing messages.
API Reference
Headers
CODEBLOCK1
Request Body (JSON)
{
"to": [
"923700056581"
],
"template": {
"id": "1233",
"params": {
"code": "039487"
}
}
}
| Parameter | Type | Required | Description |
|---|
| INLINECODE36 | Array[String] | ✅ | Recipient phone numbers in E.164 format (e.g., ["+8618701235678"]). |
| INLINECODE38 |
String | ✅ | The approved template ID. |
|
template.params | Object | ❌ | Variables to substitute in the template (e.g.,
{"code": "1234"}). |
Response (200 OK)
CODEBLOCK3
Workflow
- 1. Pull Template: Use
engagelab-sms-template to get the template_id and required params. - Collect Data: Get recipient numbers and variable values.
- Send: Construct the JSON payload and POST to the endpoint.
- Verify: Check
accepted_count to ensure delivery acceptance.
Common Gotchas
- - Format: Always use E.164 format for
to numbers. - Partial Success: 200 OK can still mean some recipients failed. Compare
accepted_count with total_count. - Variables: If a variable is missing in
params, the placeholder (e.g., {{name}}) is sent literally.
EngageLab WhatsApp Template Skill
Product Summary
This skill enables the management and discovery of pre-configured WhatsApp templates. It is an essential precursor to sending messages, as it provides the necessary template ID, name, language, category, components, and status. Templates must be approved before use.
Base URL: INLINECODE50
APIs
1. List Templates
Retrieve all templates under the current WhatsApp Business Account.
- - Method: INLINECODE51
- Path: INLINECODE52
- Auth: Required (Basic Auth)
- Params:
name (optional, fuzzy match), language_code (optional), category (optional: AUTHENTICATION, MARKETING, UTILITY), status (optional: APPROVED, PENDING, REJECTED, etc.)
2. Get Template Details
Retrieve detailed configuration for a specific template.
- - Method: INLINECODE57
- Path: INLINECODE58
- Auth: Required (Basic Auth)
3. Create Template
Add a new template for approval.
- - Method: INLINECODE59
- Path: INLINECODE60
- Auth: Required (Basic Auth)
- Body: JSON with
name, language, category, components (array of HEADER, BODY, FOOTER, BUTTONS objects)
4. Update Template
Modify an existing template's components.
- - Method: INLINECODE65
- Path: INLINECODE66
- Auth: Required (Basic Auth)
- Body: JSON with updated INLINECODE67
5. Delete Template
Remove a template (all language versions).
- - Method: INLINECODE68
- Path: INLINECODE69
- Auth: Required (Basic Auth)
Response Example
CODEBLOCK4
Workflow
- 1. Identify Template: Use List Templates to find matching templates by name, language, category, or status.
- Examine Content: Check
components to identify placeholders (e.g., {{1}}) and required parameters. - Verify Status: Ensure
status is "APPROVED" before using for sending. - Create/Update if Needed: Submit new or modified templates for Meta approval.
- Delete Unused: Remove templates to manage limits.
EngageLab WhatsApp Sender Skill
Product Summary
EngageLab WhatsApp allows developers to send transactional and marketing messages via a simple REST API. Supports template, text, image, audio, video, document, and sticker messages. Proactive sends limited to approved templates.
Endpoint: INLINECODE73
Usage Scenarios
- - Sending verification codes (OTPs) using templates.
- Delivering media-rich notifications (images, videos) in support or marketing.
- Interactive replies (text, stickers) within 24-hour window.
API Reference
Headers
CODEBLOCK5
Request Body (JSON)
| Parameter | Type | Required | Description |
|---|
| INLINECODE74 | String | ❌ | Sender WhatsApp number (e.g., "+8613800138000"). Defaults to console setting. |
| INLINECODE75 |
Array[String] | ✅ | Recipient WhatsApp numbers (e.g., ["+447911123456"]). |
|
body | Object | ✅ | Message content with
type (template, text, image, etc.) and details. |
|
request_id | String | ❌ | Custom tracking ID. |
|
custom_args | Object | ❌ | Key-value pairs for callbacks. |
Response (200 OK)
CODEBLOCK6
Workflow
- 1. Pull Template: Use WhatsApp template skill for ID and components.
- Collect Data: Get recipients, variables/media.
- Send: Construct payload and POST to endpoint.
- Verify: Check message_id for tracking.
Common Gotchas
- - Use approved templates for proactive sends.
- Include international codes in numbers.
- Media must meet format/size limits.
- Variables must match template placeholders.
EngageLab Email Sender Skill
Product Summary
EngageLab Email allows developers to send transactional and marketing emails via a REST API. Supports regular sends, templates, calendar invites, and MIME formats. Personalization via variables and Handlebars.
Endpoint: POST https://email.api.engagelab.cc/v1/mail/send (or Turkey: https://emailapi-tr.engagelab.com)
Usage Scenarios
- - Sending personalized transactional emails (confirmations, alerts).
- Bulk marketing campaigns with tracking.
- Calendar invitations for events.
API Reference
Headers
CODEBLOCK7
Request Body (JSON)
| Parameter | Type | Required | Description |
|---|
| INLINECODE82 | String | ✅ | Sender (e.g., "Team <support@engagelab.com>"). |
| INLINECODE83 |
Array[String] | ✅ | Recipients (max 100). |
|
subject | String | ✅ | Email subject. |
|
body | Object | ✅ | Content with
html,
text, etc. |
|
vars | Object | ❌ | Variables for substitution. |
For templates: Use /v1/mail/sendtemplate with template_invoke_name.
Response (200 OK)
CODEBLOCK8
Workflow
- 1. Prepare Content: Define subject, body, variables.
- Add Options: Attachments, tracking, sendmode.
- Send: POST to endpoint.
- Verify: Check emailids/task_id.
EngageLab Omni-Connect
说明
您是一名沟通专家。根据用户需求选择合适的渠道:
- 1. 短信:用于发送简短、紧急的验证码或通知。调用 POST /v1/sms/send。
- WhatsApp:用于发送富媒体或互动消息。调用 POST /v1/whatsapp/send。
- 电子邮件:用于发送长篇报告或正式通知。调用 POST /v1/email/send。
身份验证
所有API请求必须包含 Authorization 标头。
格式:Basic ${Base64(devkey:devsecret)}
- - 短信:使用 ENGAGELABSMSKEY 和 ENGAGELABSMSSECRET。
- WhatsApp:使用 ENGAGELABWAKEY 和 ENGAGELABWASECRET。
- 电子邮件:使用 ENGAGELABEMAILAPIUSER 和 ENGAGELABEMAILAPIKEY。
API定义
发送短信
- - 端点:https://smsapi.engagelab.com/v1/messages
- 方法:POST
- 参数:to、from、template
发送WhatsApp消息
- - 端点:https://wa.api.engagelab.cc/v1/messages
- 方法:POST
- 参数:to、from、body
发送电子邮件
- - 端点:https://email.api.engagelab.cc/v1/mail/send 或 https://emailapi-tr.engagelab.com
- 方法:POST
- 参数:to、from、body
EngageLab短信模板技能
产品概述
此技能支持发现预配置的短信模板。它是发送消息的重要前提,因为提供了发送负载所需的 template
id 和特定变量占位符(例如 {orderno})。
基础URL:https://smsapi.engagelab.com
API
1. 列出模板配置
检索当前账户下的所有模板配置。
- - 方法:GET
- 路径:/v1/template-configs
- 认证:必需(基本认证)
2. 获取模板详情
检索特定模板的详细配置。
- - 方法:GET
- 路径:/v1/template-configs/{templateId}
- 认证:必需(基本认证)
响应示例
json
{
template_id: 123456789,
template_name: 订单通知,
template
content: 您的订单 {orderno} 已发货。,
status: 2,
sign_name: 公司名称
}
工作流程
- 1. 识别模板:在列表中搜索匹配所需用例的模板(例如“验证”)。
- 检查内容:查看 template_content 以识别花括号 {} 内的所有变量。
- 验证状态:在尝试发送前确保 status 已批准(通常为 2)。
EngageLab短信发送技能
产品概述
EngageLab短信允许开发者通过简单的REST API发送事务性和营销类短信。所有消息必须使用预配置且已批准的模板发送。
端点:POST https://smsapi.engagelab.com/v1/messages
使用场景
- - 发送验证码(OTP)。
- 发送事务性通知(订单更新、提醒)。
- 发送营销消息。
API参考
标头
http
Content-Type: application/json
Authorization: Basic ${base64(dev
key:devsecret)}
请求体(JSON)
json
{
to: [
923700056581
],
template: {
id: 1233,
params: {
code: 039487
}
}
}
| 参数 | 类型 | 必需 | 描述 |
|---|
| to | 数组[字符串] | ✅ | 收件人电话号码,采用E.164格式(例如 [+8618701235678])。 |
| template.id |
字符串 | ✅ | 已批准的模板ID。 |
| template.params | 对象 | ❌ | 模板中要替换的变量(例如 {code: 1234})。 |
响应(200 OK)
json
{
plan_id: 1972...,
total_count: 1,
accepted_count: 1,
message_id: 1972...
}
工作流程
- 1. 拉取模板:使用 engagelab-sms-template 获取 templateid 和所需的 params。
- 收集数据:获取收件人号码和变量值。
- 发送:构建JSON负载并POST到端点。
- 验证:检查 acceptedcount 以确保投递被接受。
常见陷阱
- - 格式:始终对 to 号码使用E.164格式。
- 部分成功:200 OK仍可能意味着部分收件人失败。比较 acceptedcount 与 totalcount。
- 变量:如果 params 中缺少变量,占位符(例如 {{name}})将按原样发送。
EngageLab WhatsApp模板技能
产品概述
此技能支持管理和发现预配置的WhatsApp模板。它是发送消息的重要前提,因为提供了必要的模板ID、名称、语言、类别、组件和状态。模板必须在使用前获得批准。
基础URL:https://wa.api.engagelab.cc/v1
API
1. 列出模板
检索当前WhatsApp商业账户下的所有模板。
- - 方法:GET
- 路径:/templates
- 认证:必需(基本认证)
- 参数:name(可选,模糊匹配)、language_code(可选)、category(可选:AUTHENTICATION、MARKETING、UTILITY)、status(可选:APPROVED、PENDING、REJECTED等)
2. 获取模板详情
检索特定模板的详细配置。
- - 方法:GET
- 路径:/templates/{template_id}
- 认证:必需(基本认证)
3. 创建模板
添加新模板以供审批。
- - 方法:POST
- 路径:/templates
- 认证:必需(基本认证)
- 请求体:JSON,包含 name、language、category、components(HEADER、BODY、FOOTER、BUTTONS对象的数组)
4. 更新模板
修改现有模板的组件。
- - 方法:PUT
- 路径:/templates/{templateId}
- 认证:必需(基本认证)
- 请求体:JSON,包含更新后的 components
5. 删除模板
删除模板(所有语言版本)。
- - 方法:DELETE
- 路径:/templates/{template_name}
- 认证:必需(基本认证)
响应示例
json
[
{
id: 406979728071589,
name: code,
language: zh_CN,
status: APPROVED,
category: OTP,
components: [
{
type: HEADER,
format: text,
text: 注册验证码
},
{
type: BODY,
text: 您的验证码是 {{1}},请在5分钟内输入。
}
]
}
]
工作流程
- 1. 识别模板:使用列出模板功能,按名称、语言、类别或状态查找匹配模板。
- 检查内容:查看 components 以识别占位符(例如 {{1}})和所需参数。
- 验证状态:在用于发送前确保 status 为“APPROVED”。
- 按需创建/更新:提交新模板或修改后的模板供Meta审批。
- 删除未使用的:删除模板以管理限制。
EngageLab WhatsApp发送技能
产品概述
EngageLab WhatsApp允许开发者通过简单的REST API发送事务性和营销类消息。支持模板、文本、图片、音频、视频、文档和贴纸消息。主动发送仅限于已批准的模板。
端点:POST https://wa.api.engagelab.cc/v1/messages
使用场景
- - 使用模板发送验证码(OTP)。
- 在支持或营销中发送富媒体通知(图片、视频)。
- 在24小时窗口内进行互动回复(文本、贴纸)。
API参考
###