← 返回 Skills 市场
support-greenapi

GREEN-API

作者 Green API · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
122
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install green-api
功能描述
Send and receive WhatsApp messages, manage groups, contacts, and instances via GREEN-API MCP gateway.
使用说明 (SKILL.md)

\r \r

GREEN-API WhatsApp Skill\r

\r Use this skill when the user wants to send or receive WhatsApp messages, manage contacts, groups, or WhatsApp instances via GREEN-API.\r \r

Connection\r

\r Before using any tools, connect an instance with whatsapp_connect by providing instance_id and api_token (from console.green-api.com). This validates credentials and stores them for the session.\r \r Call whatsapp_disconnect when done.\r \r

Chat ID format\r

\r

Tools\r

\r

Session\r

\r | Tool | Description |\r |---|---|\r | whatsapp_connect | Connect instance (required first). Params: instance_id, api_token, optional api_url |\r | whatsapp_disconnect | Disconnect instance and clear credentials |\r \r

Messaging\r

\r | Tool | Description |\r |---|---|\r | whatsapp_send_message | Send text message. Params: instance_id, chat_id, message, optional quoted_message_id, link_preview |\r | whatsapp_send_file | Send file by URL. Params: instance_id, chat_id, url, optional file_name, caption |\r | whatsapp_upload_file | Upload file to GREEN-API storage, returns URL. Params: instance_id, file_base64, filename. Use returned URL with whatsapp_send_file |\r | whatsapp_send_file_by_upload | Send file directly via base64 (no separate upload step). Params: instance_id, chat_id, file_base64, filename, optional caption |\r | whatsapp_send_location | Send location. Params: instance_id, chat_id, latitude, longitude, optional name, address |\r | whatsapp_send_contact | Send contact card. Params: instance_id, chat_id, phone_number, optional first_name, last_name, company |\r | whatsapp_send_poll | Send poll. Params: instance_id, chat_id, message (question), options (string array, 2–12), optional multiple_answers |\r | whatsapp_forward_messages | Forward messages between chats. Params: instance_id, chat_id (destination), chat_id_from (source), messages (ID array) |\r | whatsapp_edit_message | Edit a sent message. Params: instance_id, chat_id, id_message, message (new text) |\r | whatsapp_delete_message | Delete a message. Params: instance_id, chat_id, id_message |\r \r

Instance management\r

\r | Tool | Description |\r |---|---|\r | whatsapp_get_state | Get instance state: authorized, notAuthorized, blocked, sleepMode, starting, yellowCard |\r | whatsapp_get_settings | Get instance settings (webhooks, delays, flags) |\r | whatsapp_set_settings | Update instance settings. Params: optional webhook_url, webhook_url_token, outgoing_webhook, incoming_webhook, state_webhook, mark_incoming_messages_readed, delay_message, etc. |\r | whatsapp_get_qr | Get QR code for authorization (instance must be unauthorized) |\r | whatsapp_get_authorization_code | Get auth code by phone number (alternative to QR). Params: instance_id, phone_number |\r | whatsapp_get_wa_settings | Get WhatsApp account info (avatar, phone, state, device ID) |\r | whatsapp_reboot | Reboot instance |\r | whatsapp_logout | Log out instance (required before re-authorizing) |\r \r

Contacts & history\r

\r | Tool | Description |\r |---|---|\r | whatsapp_check_whatsapp | Check if a phone number has WhatsApp. Params: instance_id, phone_number |\r | whatsapp_get_contacts | Get all contacts |\r | whatsapp_get_contact_info | Get info about a contact or group. Params: instance_id, chat_id |\r | whatsapp_get_contact_avatar | Get avatar of contact or group. Params: instance_id, chat_id |\r | whatsapp_get_chat_history | Get chat message history. Params: instance_id, chat_id, optional count (default 100) |\r | whatsapp_get_message | Get a specific message. Params: instance_id, chat_id, id_message |\r | whatsapp_last_incoming_messages | Get recent incoming messages. Params: instance_id, optional minutes (default 1440) |\r | whatsapp_last_outgoing_messages | Get recent outgoing messages. Params: instance_id, optional minutes (default 1440) |\r | whatsapp_read_chat | Mark messages as read. Params: instance_id, chat_id, optional id_message |\r \r

Notifications (manual polling)\r

\r | Tool | Description |\r |---|---|\r | whatsapp_receive_notification | Get one notification from the queue |\r | whatsapp_delete_notification | Acknowledge/delete a notification. Params: instance_id, receipt_id |\r \r

Groups\r

\r | Tool | Description |\r |---|---|\r | whatsapp_create_group | Create a group. Params: instance_id, group_name, chat_ids (participant array) |\r | whatsapp_get_group_data | Get group info (members, name, link). Params: instance_id, group_id |\r | whatsapp_add_group_participant | Add member. Params: instance_id, group_id, participant_chat_id |\r | whatsapp_remove_group_participant | Remove member. Params: instance_id, group_id, participant_chat_id |\r | whatsapp_set_group_admin | Promote member to admin. Params: instance_id, group_id, participant_chat_id |\r | whatsapp_remove_group_admin | Demote admin. Params: instance_id, group_id, participant_chat_id |\r | whatsapp_leave_group | Leave a group. Params: instance_id, group_id |\r \r

Partner API (instance provisioning)\r

\r These require a partner_token from the GREEN-API partner dashboard.\r \r | Tool | Description |\r |---|---|\r | whatsapp_create_instance | Create a new instance |\r | whatsapp_delete_instance | Delete an instance. Params: partner_token, instance_id |\r | whatsapp_get_instances | List all partner instances |\r \r

Resources\r

\r

  • whatsapp://instance/{id}/state — read current instance authorization state\r
  • whatsapp://instance/{id}/settings — read instance settings\r \r

Prompts\r

\r

  • whatsapp_customer_support — system prompt template for a customer support agent. Args: instance_id, language\r
  • whatsapp_broadcast — template for planning and executing broadcast messaging. Args: instance_id, message_template\r \r

Important notes\r

\r

  • Always whatsapp_connect before calling any other tool.\r
  • Use whatsapp_check_whatsapp to verify a phone number has WhatsApp before sending.\r
  • For broadcasts, add delays between messages to avoid rate limiting.\r
  • File uploads use base64 encoding. Max file size: 100 MB.\r
  • Poll options must be unique, 2–12 items, max 100 chars each.\r
  • Message quoting only works within the same chat.\r
安全使用建议
This skill appears to do what it says: integrate OpenClaw with GREEN-API. Before installing or using it, (1) confirm you trust green-api.com and the specific MCP URL you add to ~/.openclaw/openclaw.json; (2) only provide instance_id/api_token/partner_token when you understand how they are stored and how to revoke them — ask the skill author where session credentials are persisted and how to clear them; (3) be cautious when configuring webhook_url/webhook_url_token (these will send incoming messages/events to that endpoint); (4) rotate tokens if you test the skill with real credentials and remove the MCP entry when no longer needed. If you need higher assurance, request the author to declare required config paths in metadata and to document credential storage/retention explicitly.
功能分析
Type: OpenClaw Skill Name: green-api Version: 1.0.0 The green-api skill is a legitimate integration for the GREEN-API WhatsApp service. It provides tools for messaging, instance management, and contact handling via an MCP gateway. The skill requires standard API credentials (instance_id and api_token) and communicates with official endpoints (green-api.com). No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
The skill is described as a GREEN-API WhatsApp integration and its tools (connect, send messages, manage groups, instance provisioning with partner_token) match that purpose. One small inconsistency: the README instructs adding an MCP server URL to the OpenClaw config (~/.openclaw/openclaw.json), but the skill metadata states no required config paths. Asking for instance_id/api_token/partner_token as tool params is expected for this purpose.
Instruction Scope
SKILL.md stays within the WhatsApp/GREEN-API domain: it instructs connecting an instance, using message/group/instance APIs, and optionally setting webhooks. Two items to flag for attention: (1) it says credentials are validated and "stored for the session" but does not specify storage location or retention — that should be clarified before trusting long-lived credentials; (2) the skill includes settings to configure webhook_url/webhook_url_token which, if set to arbitrary external endpoints, could forward incoming messages or events outside the user's control (this is a normal feature of webhook-capable integrations but is a data-exfiltration vector if misused).
Install Mechanism
Instruction-only skill with no install spec and no code files — lowest install risk. Nothing is downloaded or written by an automated installer as part of the skill package.
Credentials
No environment variables or system credentials are requested in the metadata. Credentials (instance_id, api_token, partner_token) are supplied as tool parameters, which is proportionate. The README's instruction to modify an OpenClaw config file is expected for adding an MCP server but is not declared in required config paths — a minor metadata omission.
Persistence & Privilege
The skill is not marked always:true and uses normal autonomous invocation. The only persistence implications in the docs are (a) adding an MCP server entry to the user's OpenClaw config (explicit setup step in README) and (b) unspecified session storage of credentials. Neither is inherently malicious, but you should confirm where credentials are persisted and how to remove them.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install green-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /green-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Release of the skill
元数据
Slug green-api
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

GREEN-API 是什么?

Send and receive WhatsApp messages, manage groups, contacts, and instances via GREEN-API MCP gateway. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 122 次。

如何安装 GREEN-API?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install green-api」即可一键安装,无需额外配置。

GREEN-API 是免费的吗?

是的,GREEN-API 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

GREEN-API 支持哪些平台?

GREEN-API 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GREEN-API?

由 Green API(@support-greenapi)开发并维护,当前版本 v1.0.0。

💬 留言讨论