360 Secure SkillHub
360 安全技能中心

alimail

该 Skill 通过 Python 脚本调用阿里邮箱接口,按姓名(支持部分匹配)查询企业员工的邮箱、工号与姓名,并以 JSON 返回用户列表和总数。需配置阿里云 OAuth2 凭据,仅提供查询能力,不读写或发送邮件。

colin-megan
colin-megan
热度 83.15
最近更新 2026-05-11 17:30:28
分类:搜索依赖:代码执行 / 第三方 API应用场景:API 集成

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add alimail
Metadata
name
alimail
title
阿里邮箱企业助手
description
快速查询企业内部员工邮箱、工号及部门信息。
version
1.0.6
author
Colin
entrypoint
main.py
metadata
{"clawdbot":{"requires":{"env":["ALIMAIL_CLIENT_ID","ALIMAIL_CLIENT_SECRET"]}}}
secrets
[{"name":"ALIMAIL_CLIENT_ID","description":"阿里云 OAuth2 Client ID"},{"name":"ALIMAIL_CLIENT_SECRET","description":"阿里云 OAuth2 Client Secret"}]

Configuration

Configure in ~/.openclaw/openclaw.json:

{
    "skills": {
      "entries": {
        "alimail": {
          "enabled": true,
          "env": {
            "ALIMAIL_CLIENT_ID": "your_CLIENT_ID",
            "ALIMAIL_CLIENT_SECRET": "your_CLIENT_SECRET"
          }
        }
      }
    }
}

Core Features

  • Precise Lookup: Enter a name to retrieve the full email address.
  • Fuzzy Search: Supports partial name searches, automatically handling (name=*xxx) logic.
  • Detailed Information: Returns employee ID (employeeNo), email (email), and name (name).

User Guide

AI automatically recognizes and searches for names mentioned by users. For example:

  • “查一下张三的邮箱”

Agent instructions

SearchAlimailUser:Run the script under workspace (do not use the path under node_modules):

   python3 ~/.openclaw/workspace/skills/alimail/main.py "张三"

Output Examples

error result1:

{"status": "error", "message": "Parameter 'name' is required"}

error result:

{"status": "api_failed", "details": "403 Client Error: Forbidden for url: "}

error result:

{
    "users": [
        {
            "name": "总部IT开发-张三",
            "email": "zhangsan@test.com",
            "employeeNo": "zhangsan"
        }
    ],
    "total": 1
}

Privacy Statement

This skill only calls the query interface and does not have the permissions to read, delete, or send emails, ensuring the security of enterprise data.