360 Secure SkillHub
360 安全技能中心

Legalgo Mail Assistant

该技能在用户确认需要真实投递且收件人、主题、正文齐全时,通过 LegalGo 邮件接口发送邮件;需配置 API 基础地址与发送密钥,调用前可检查凭据有效性,调用后返回收件人、发送状态与记录 ID。

xieziqing
xieziqing
热度 18.58
最近更新 2026-03-25 10:56:51
分类:协作依赖:代码执行 / 读写文件 / 第三方 API应用场景:邮件起草 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add legalgo-mail-assistant
Metadata
name
legalgo-mail-assistant
description
Send emails through the LegalGo OpenClaw-compatible API with a user-created `mail_send` API key. Use when Codex or OpenClaw needs to deliver an already-approved email through a verified LegalGo mail account.

LegalGo Mail Assistant

Use this skill to send emails through LegalGo.

Read only what you need:

  • Read references/api.md for request and response formats.
  • Read references/mail-constraints.md for sending prerequisites and safety checks.
  • Read references/error-handling.md when the API returns a send failure.

Required configuration

Require these environment variables:

  • LEGALGO_API_BASE_URL
  • LEGALGO_MAIL_SEND_KEY

LEGALGO_MAIL_SEND_KEY must be sent as an HTTP header on every runtime request:

X-LegalGo-Key: {LEGALGO_MAIL_SEND_KEY}

Do not assume OpenClaw will automatically transform this environment variable into an auth header. If this skill is implemented through direct HTTP requests instead of bundled scripts, explicitly inject the header when calling:

  • /openclaw/credential/me
  • /openclaw/mail/send

Run scripts/check_credential.py --skill mail_send if the credential may be missing or invalid.

Use this skill when

  • the user clearly wants actual delivery
  • recipient, subject, and final body content are already known
  • the send should go through a bound LegalGo mail account

Do not use this skill for:

  • trade lead search
  • email generation or rewriting
  • sending when key facts are still missing

Input requirements

Require all of:

  • account_id
  • recipient email
  • subject
  • final email body

If any of these are missing, stop and ask for the missing send-critical field rather than sending.

Execution flow

  1. Confirm the user wants actual delivery.
  2. Ensure send-critical fields are present.
  3. Run scripts/send_mail.py, or make an equivalent HTTP request that includes X-LegalGo-Key.
  4. Report send result clearly.

Never imply an email was sent unless the API confirms success.

Output style

Return:

  • recipient
  • send status
  • record id or message id if present

Keep the explanation short and practical.