Setup
Rich627/whatsapp-claude-plugin
Interactive WhatsApp channel onboarding — guides through device linking, phone number config, and access control setup
Write correct Python code with the official GREEN-API SDK whatsapp-api-client-python (package whatsappapiclientpython).
$ npx skills add green-api/whatsapp-api-client-python --skill greenapi-client-python -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install green-api/whatsapp-api-client-python greenapi-client-python --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/green-api/whatsapp-api-client-python.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills .claude/skills/greenapi-client-python && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "greenapi-client-python" agent skill from https://github.com/green-api/whatsapp-api-client-python/tree/master/skills into .claude/skills/greenapi-client-python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "greenapi-client-python", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/green-api/whatsapp-api-client-python/tree/master/skillsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add green-api/whatsapp-api-client-python --skill greenapi-client-python -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install green-api/whatsapp-api-client-python greenapi-client-python --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/green-api/whatsapp-api-client-python.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills .agents/skills/greenapi-client-python && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "greenapi-client-python" agent skill from https://github.com/green-api/whatsapp-api-client-python/tree/master/skills into .agents/skills/greenapi-client-python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "greenapi-client-python", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add green-api/whatsapp-api-client-python --skill greenapi-client-python -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install green-api/whatsapp-api-client-python greenapi-client-python --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/green-api/whatsapp-api-client-python.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills .cursor/skills/greenapi-client-python && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "greenapi-client-python" agent skill from https://github.com/green-api/whatsapp-api-client-python/tree/master/skills into .cursor/skills/greenapi-client-python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "greenapi-client-python", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/green-api/whatsapp-api-client-python.git --path skills--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add green-api/whatsapp-api-client-python --skill greenapi-client-python -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install green-api/whatsapp-api-client-python greenapi-client-python --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/green-api/whatsapp-api-client-python.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills .gemini/skills/greenapi-client-python && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "greenapi-client-python" agent skill from https://github.com/green-api/whatsapp-api-client-python/tree/master/skills into .gemini/skills/greenapi-client-python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "greenapi-client-python", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install green-api/whatsapp-api-client-python greenapi-client-pythonInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add green-api/whatsapp-api-client-python --skill greenapi-client-python -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/green-api/whatsapp-api-client-python.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills .github/skills/greenapi-client-python && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "greenapi-client-python" agent skill from https://github.com/green-api/whatsapp-api-client-python/tree/master/skills into .github/skills/greenapi-client-python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "greenapi-client-python", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add green-api/whatsapp-api-client-python --skill greenapi-client-python -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install green-api/whatsapp-api-client-python greenapi-client-python --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/green-api/whatsapp-api-client-python.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills .opencode/skills/greenapi-client-python && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "greenapi-client-python" agent skill from https://github.com/green-api/whatsapp-api-client-python/tree/master/skills into .opencode/skills/greenapi-client-python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "greenapi-client-python", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
greenapi-client-pythonWrite correct Python code with the official GREEN-API SDK whatsapp-api-client-python (package whatsappapiclientpython).
Greenapi Client Python is an agent skill from green-api/whatsapp-api-client-python. Write correct Python code with the official GREEN-API SDK whatsapp-api-client-python (package whatsappapiclientpython). Use when sending/receiving WhatsApp messages, files, polls, groups, journals, queues, statuses, contacts, partner instances, polling notifications, or configuring a GREEN-API instance in Python. Triggers: GREEN-API, green-api, whatsapp-api-client-python, GreenAPI, GreenApi, sendMessage, receiveNotification.
Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files, including reference files (for example `references/account.md`, `references/contacts.md` and `references/device.md`).
It sits in Productivity & Automation, covering Messaging and chat bots. It works with Python and WhatsApp. The repository describes itself as: This library helps you easily create a Python application with WhatsApp API. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f84f9ab. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
api.green-api.commedia.green-api.comdownload.samplelib.comAlso links to:
green-api.comconsole.green-api.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
PARTNER_TOKENFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Greenapi Client Python loads about 3.3k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 114 tokens; SKILL.md has 947 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from green-api/whatsapp-api-client-python at commit f84f9ab, republished under its MIT licence (© green-api). 947 words, ~3,280 tokens.
.claude/skills/greenapi-client-python/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.whatsapp-api-client-python)Use this skill whenever the task is to call GREEN-API from Python via the official
SDK. Do not invent HTTP paths or method names from memory: only methods listed in
references/inventory.md exist in this SDK. Semantics of
parameters, chatId formats, delays, and notification types come from the official docs
linked in each method section — not from other repos.
For webhook HTTP server libraries in other languages, use a language-specific
webhook skill if present. This SDK receives notifications via polling
(webhooks.startReceivingNotifications / receiving.receiveNotification) or you can
build your own HTTP endpoint for webhook-endpoint technology.
chatId, delays, notification formats.If a method exists in the docs but not in the inventory → do not use it in code.
python -m pip install whatsapp-api-client-pythonRequires Python >= 3.10. Credentials: idInstance and apiTokenInstance from
console.green-api.com.
from whatsapp_api_client_python import API
greenAPI = API.GreenAPI(
"1101000001", # idInstance (string)
"d75b3a66374942c5b3c019c698abc2067e151558acbd412345", # apiTokenInstance
)Optional constructor kwargs (from GreenApi.__init__ in API.py):
| Kwarg | Default | Meaning |
|---|---|---|
debug_mode | False | Verbose request logging |
raise_errors | False | Raise GreenAPIError on failures |
host | https://api.green-api.com | API host (apiUrl) |
media | https://media.green-api.com | Media host for uploads |
host_timeout | 180 | Seconds per host request retry |
media_timeout | 10800 | Seconds per media request |
Aliases: API.GreenAPI is the same class as API.GreenApi.
Partner API (separate client):
partner = API.GreenApiPartner(partnerToken="PARTNER_TOKEN")
# then: partner.partner.getInstances() / createInstance / deleteInstanceAccountEvery API method returns whatsapp_api_client_python.response.Response:
| Attribute | When | Content |
|---|---|---|
code | always | HTTP status, or None on transport failure |
data | code == 200 | Parsed JSON (dict / list) |
error | non-200 | Response body text |
Always check response.code == 200 before reading response.data.
Most groups expose *Async twins (sendMessageAsync, receiveNotificationAsync, …).
Call them with await inside asyncio.
Docs: https://green-api.com/en/docs/api/chat-id/
| Kind | Format | Example |
|---|---|---|
| Personal chat | <phone>@c.us | 79876543210@c.us |
| Group chat | ...@g.us | 120363043968066561@g.us |
| Lid | ...@lid | returned by API; do not invent |
+, spaces, or leading zeros tricks.createGroup, journals, or notifications.chatId → validation 400: must be phone_number@c.us or group_id@g.us.Docs: https://green-api.com/en/docs/api/account/GetStateInstance/
Before sending, verify:
state = greenAPI.account.getStateInstance()
print(state.data) # expect {"stateInstance": "authorized"}Important states: authorized, notAuthorized, blocked, starting, suspended.
Authorize via console QR / account.qr() / account.getAuthorizationCode(phoneNumber).
Messages sit in the send queue up to 24 hours until the instance is authorized.
Docs: https://green-api.com/en/docs/api/send-messages-delay/
Outgoing messages go through a FIFO queue. Delay is controlled by instance setting
delaySendMessagesMilliseconds (min 500 ms, max 600000 ms; recommend ≤ 300000):
greenAPI.account.setSettings({"delaySendMessagesMilliseconds": 5000})Note: setSettings reboots the instance; settings apply within ~5 minutes.
Docs: https://green-api.com/en/docs/api/sending/SendMessage/
from whatsapp_api_client_python import API
greenAPI = API.GreenAPI(id_instance, api_token)
response = greenAPI.sending.sendMessage(
"79876543210@c.us",
"Hello from GREEN-API",
typingTime=3000, # optional: 1000–20000 ms typing indicator
)
if response.code == 200:
print(response.data["idMessage"])
else:
print(response.error)Required: chatId, message (max 20000 chars). Optional in SDK: quotedMessageId,
archiveChat, linkPreview, typingTime, typePreview, customPreview.
Response: { "idMessage": "..." }.
Docs: https://green-api.com/en/docs/api/sending/SendFileByUrl/
response = greenAPI.sending.sendFileByUrl(
"79876543210@c.us",
"https://download.samplelib.com/png/sample-clouds2-400x300.png",
"sample-clouds2-400x300.png",
"Caption text",
)Required: chatId, urlFile, fileName (with extension). Max file size 100 MB.
Docs: https://green-api.com/en/docs/api/sending/SendFileByUpload/
Uses media host (SDK sets this automatically).
response = greenAPI.sending.sendFileByUpload(
"79876543210@c.us",
"data/logo.jpg",
"logo.jpg",
"Available rates",
)
# response.data: idMessage, urlFile (link valid 15 days)SDK signature: sendFileByUpload(chatId, path, fileName=None, caption=None, ...).
The local path is the second argument (path), not a raw file object.
Docs: https://green-api.com/en/docs/api/receiving/technology-http-api/ReceiveNotification/
Requirement: instance webhookUrl must be empty. If a custom webhook URL is set,
receiveNotification returns an error telling you to clear it.
from whatsapp_api_client_python import API
greenAPI = API.GreenAPI(id_instance, api_token)
def on_event(type_webhook: str, body: dict) -> None:
if type_webhook == "incomingMessageReceived":
chat_id = body["senderData"]["chatId"]
msg = body["messageData"]
if msg.get("typeMessage") == "textMessage":
text = msg["textMessageData"]["textMessage"]
print(chat_id, text)
# Blocks; Ctrl+C to stop. Internally: receiveNotification → handler → deleteNotification
greenAPI.webhooks.startReceivingNotifications(on_event)Handler signature is fixed: (typeWebhook: str, body: dict).
After handling, the SDK deletes the notification by receiptId (do not skip this
if you poll manually).
Manual poll loop:
resp = greenAPI.receiving.receiveNotification(receiveTimeout=5)
if resp.code == 200 and resp.data:
receipt_id = resp.data["receiptId"]
body = resp.data["body"]
# ... process body["typeWebhook"] ...
greenAPI.receiving.deleteNotification(receipt_id)receiveTimeout: 5–60 seconds (API default 5). Empty queue → empty body / no data.
Notifications live in the queue 24 hours, FIFO.
Docs: https://green-api.com/en/docs/api/receiving/technology-webhook-endpoint/
This SDK does not ship a webhook HTTP server. Configure the instance, then run your own endpoint that accepts POST JSON and returns 200:
greenAPI.account.setSettings({
"webhookUrl": "https://your.public.host/webhook",
"webhookUrlToken": "Bearer your-secret", # optional; see docs for Basic/Bearer
"incomingWebhook": "yes",
"outgoingWebhook": "yes",
"outgoingAPIMessageWebhook": "yes",
"stateWebhook": "yes",
})GREEN-API POSTs notification JSON to webhookUrl. Retries every ~1 minute; guaranteed
within 24 hours. While webhookUrl is set, polling will not receive those notifications.
Common typeWebhook values: incomingMessageReceived, outgoingMessageReceived,
outgoingAPIMessageReceived, outgoingMessageStatus, stateInstanceChanged,
statusInstanceChanged, incomingCall, outgoingCall, quotaExceeded, …
Full list: https://green-api.com/en/docs/api/receiving/notifications-format/type-webhook/
Docs: https://green-api.com/en/docs/api/groups/CreateGroup/
created = greenAPI.groups.createGroup("Group Name", ["79876543210@c.us"])
if created.code == 200 and created.data.get("created"):
chat_id = created.data["chatId"] # ...@g.us
greenAPI.sending.sendMessage(chat_id, "Hello group")Do not create groups faster than about 1 per 5 minutes (anti-spam). Invalid numbers can get the sender blocked.
Access as greenAPI.<group>.<method>(...).
| Attribute | Class | Reference |
|---|---|---|
account | Account | references/account.md |
sending | Sending | references/sending.md |
receiving | Receiving | references/receiving.md |
webhooks | Webhooks | references/receiving.md |
groups | Groups | references/groups.md |
journals | Journals | references/journals.md |
queues | Queues | references/queues.md |
serviceMethods | ServiceMethods | references/service-methods.md |
marking | Marking | references/marking.md |
contacts | Contacts | references/contacts.md |
statuses | Statuses | references/statuses.md |
device | Device | references/device.md |
partner | Partner | only on GreenApiPartner — references/partner.md |
Full method list + signatures: references/inventory.md.
chatId format — personal phone@c.us, group id@g.us. No + in the phone part.getStateInstance must be authorized for delivery.webhookUrl
for HTTP API polling; set webhookUrl for push.deleteNotification after processing a polled notification, or the same
event will be returned forever.delaySendMessagesMilliseconds ≥ 500 ms; bulk blasts without
delay risk limits / bans.sendFileByUpload goes to media.green-api.com.response.data only when response.code == 200.sendButtons,
sendTemplateButtons, sendListMessage, sendLink — prefer
sendInteractiveButtons / sendInteractiveButtonsReply / sendMessage.serviceMethods attribute name — camelCase serviceMethods, not service.GreenApiPartner, not GreenAPI.api.green-api.com / media.green-api.com; some accounts use
instance-specific hosts from console — pass host= / media= if console shows them.When writing code for the user:
from whatsapp_api_client_python import APIAPI.GreenAPI(idInstance, apiTokenInstance) with real or env credentialschatId as @c.us / @g.usresponse.code before response.datastartReceivingNotifications / manual receive+delete)
or webhook endpoint + setSettings, not a fictional SDK methodreferences/*.md file for parameters before coding© green-api, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 13 other files (references) in skills of green-api/whatsapp-api-client-python.
Open the folder on GitHubat commit f84f9ab
Greenapi Client Python next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Greenapi Client Python this skillgreen-api/whatsapp-api-client-python | 209 | — | ~3.3k | Automated safety check: Pass | MIT | |
| SetupRich627/whatsapp-claude-plugin | 101 | — | ~1.4k | Automated safety check: Notes | Apache-2.0 | |
| Discord Bot Architectdavila7/claude-code-templates | 32k | 6 repos | ~2k | Automated safety check: Pass | MIT | |
| Instagramsickn33/agentic-awesome-skills | 47k | 2 repos | ~3.4k | Automated safety check: Pass | MIT | |
| Create Experkfly/ex-skill | 2.5k | — | ~3.7k | Automated safety check: Notes | MIT | |
| Integrate Whatsappgokapso/agent-skills | 175 | — | ~4.8k | Automated safety check: Pass | None |
Rich627/whatsapp-claude-plugin
Interactive WhatsApp channel onboarding — guides through device linking, phone number config, and access control setup
davila7/claude-code-templates
Specialized skill for building production-ready Discord bots.
sickn33/agentic-awesome-skills
Integracao completa com Instagram via Graph API. An agent skill from sickn33/agentic-awesome-skills.
perkfly/ex-skill
Distill an ex-girlfriend into an AI Skill. An agent skill from perkfly/ex-skill.
gokapso/agent-skills
Connect WhatsApp to your product with Kapso: onboard customers with setup links, detect connections, receive events via webhooks, and send messages/templates/media.
LAVARONG/wechat-automation-api
微信发信能力:通过 Windows 桌面微信发送文本、图片URL或本地文件。适合各类 Agent 在本机直接发送一次性消息。触发词:给[某人]发微信、通知[某人]、把这个用微信发给[某人]、用微信发个图片、把本地文件发给[某人]
Categories
Write correct Python code with the official GREEN-API SDK whatsapp-api-client-python (package whatsappapiclientpython). Greenapi Client Python is an agent skill from green-api/whatsapp-api-client-python. Write correct Python code with the official GREEN-API SDK whatsapp-api-client-python (package whatsappapiclientpython).
Greenapi Client Python fits situations like: sending/receiving WhatsApp messages; partner instances; polling notifications; configuring a GREEN-API instance in Python.
Run `npx skills add green-api/whatsapp-api-client-python --skill greenapi-client-python -a claude-code`. Or copy the skill folder (skills in green-api/whatsapp-api-client-python) into .claude/skills/greenapi-client-python in your project. Claude Code loads it when a task matches its description.
Run `npx skills add green-api/whatsapp-api-client-python --skill greenapi-client-python -a codex`. Or copy the skill folder (skills in green-api/whatsapp-api-client-python) into .agents/skills/greenapi-client-python in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add green-api/whatsapp-api-client-python --skill greenapi-client-python -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/greenapi-client-python, .gemini/skills/greenapi-client-python, .github/skills/greenapi-client-python and .opencode/skills/greenapi-client-python in your project.
Going by SKILL.md and its folder, Greenapi Client Python needs the command-line tools its instructions call (python) and credentials named PARTNER_TOKEN. Our summary lists: Python 3; A credential in PARTNER_TOKEN.
SKILL.md names 5 domains. In commands or code: api.green-api.com, media.green-api.com and download.samplelib.com; the agent is likely to contact these when it follows the instructions. As links in the text: green-api.com and console.green-api.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Greenapi Client Python is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.3k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Greenapi Client Python: Setup (Rich627/whatsapp-claude-plugin, 101 stars), Discord Bot Architect (davila7/claude-code-templates, 32k stars), Instagram (sickn33/agentic-awesome-skills, 47k stars) and Create Ex (perkfly/ex-skill, 2.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
green-api (a GitHub organization) maintains it in green-api/whatsapp-api-client-python, which has 209 GitHub stars. The repository was last updated on October 1, 2026.
Source: green-api/whatsapp-api-client-python on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.