Agent skill
whatsapp-evo
Manage WhatsApp via Evolution API (v2.x): list chats with unread messages and reply.
Install this agent skill to your Project
npx add-skill https://github.com/antoniolg/agent-kit/tree/main/skills/whatsapp-evo
SKILL.md
WhatsApp (Evolution API)
Requirements
- Environment variables:
EVOLUTION_API_URL(optional if config)EVOLUTION_API_TOKENEVOLUTION_INSTANCE(optional if config)
- Configure
api_urlandinstancein~/.config/skills/config.jsonunderwhatsapp_evo(recommended). The token must be set via env var.
Example:
{
"whatsapp_evo": {
"api_url": "https://evo.example.com",
"instance": "MyInstance"
}
}
Commands (from the skill folder)
1) Inbox (unread)
scripts/whatsapp-inbox --json-out /tmp/whatsapp-inbox.json
- Shows a clean numbered list.
- Saves metadata for later actions.
- Note: the inbox is computed from the last incoming message without
READstatus in the API (it may not match "mark as unread" in the app). - Saves local state in
~/.cache/whatsapp-evo/inbox-state.jsonto avoid repeating chats (override with--stateorWHATSAPP_EVO_STATE_PATH). - Use
--no-update-stateif you want to list the same chats again. - Use
--since-days Nto ignore old messages in the first pass (default 7). - Use
--pending-replyto list conversations from the last N days where the latest message is not yours (ignores local state).
2) Reply (with user confirmation)
scripts/whatsapp-reply --index <n> --text "reply"
- Replies to the chat at the given index using
message/sendText. - For direct chats use the number; for groups use
remote_jidif needed. - Optional:
--delay <ms>,--link-preview,--instance,--url.
3) Conversation history
scripts/whatsapp-history --index <n> --limit 50
- Use
--jidor--numberif you don’t have an index. - Filter by date with
--since 2025-01-01or--since 2025-01-01T10:00:00Zand--until. - Use
--incoming-onlyto show only inbound messages.
Metadata format
/tmp/whatsapp-inbox.json contains:
indexnameremote_jidnumberunread_countlast_message_idlast_message_from_melast_message_textlast_message_timestamplast_message_sender
Rules
- Show the user only the clean list; never show tokens.
- Before replying, ask for confirmation.
- If the JSON is stale or missing, re-run inbox.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gen-pdf
Converts a Markdown file to a styled PDF with DevExpert branding (logo in bottom-right corner). Use when asked to generate a PDF from a Markdown document, or when any DevExpert proposal/document needs to be exported as PDF.
cloudflared-tunnel
Create temporary public URLs for localhost apps using Cloudflare Quick Tunnels with tmux-based process management. Use when you need to preview a local app externally (mobile device, remote collaborator, QA), including host-allowlist fixes when a dev server blocks external hosts.
Manage inbox email. Uses the inbox script and stores metadata (ids) to open or archive messages later.
create-cli
Design command-line interface parameters and UX: arguments, flags, subcommands, help text, output formats, error messages, exit codes, prompts, config/env precedence, and safe/dry-run behavior. Use when you’re designing a CLI spec (before implementation) or refactoring an existing CLI’s surface area for consistency, composability, and discoverability.
academy-enrollments
Manage academy enrollments by appending rows to a Google Sheet (used by Zapier/n8n to grant LearnWorlds access).
monthly-content-report
Genera el informe mensual de correlación entre contenido publicado en X, visitas a /cursos/expert/ai en Umami y ventas de AI Expert. Cruza métricas para identificar qué contenido impulsa conversiones. Úsalo cuando Antonio pida el informe mensual, el análisis de ventas del mes, o quiera saber qué posts funcionan mejor para vender.
Didn't find tool you were looking for?