evolution-api
Evolution API integration for WhatsApp messaging, instance management, webhooks, and chatbot orchestration. Use when: (1) Creating or managing WhatsApp instances via Evolution API, (2) Sending messages (text, media, audio, lists, buttons, reactions), (3) Configuring webhooks or event listeners, (4) Managing groups or contacts, (5) Integrating with Typebot, Chatwoot, Dify, or OpenAI through Evolution API. Triggers on: evolution-api, evolution api, whatsapp api, baileys, whatsapp integration, send whatsapp, whatsapp webhook.
What this skill does
# Evolution API
Open-source WhatsApp integration API supporting Baileys (WhatsApp Web) and official WhatsApp Business API (Cloud API). Built with Node.js + TypeScript + Express.js + Prisma.
## Authentication
All requests use the `apikey` header. Two levels of keys exist:
- **Global API Key**: Set via `AUTHENTICATION_API_KEY` env var. Has full access to all instances.
- **Instance Token**: Per-instance key returned on creation. Scoped to that instance only.
```
apikey: YOUR_API_KEY
```
Every request follows this pattern:
```bash
curl --request <METHOD> \
--url https://<SERVER_URL>/<path>/{instanceName} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '<json-body>'
```
## Instance Lifecycle
### Create Instance
```bash
POST /instance/create
{
"instanceName": "my-instance",
"integration": "WHATSAPP-BAILEYS",
"token": "optional-custom-token",
"qrcode": true,
"number": "5511999999999",
"rejectCall": true,
"msgCall": "I can't answer calls",
"groupsIgnore": true,
"alwaysOnline": true,
"readMessages": true,
"readStatus": true,
"syncFullHistory": true,
"webhook": {
"url": "https://your-server.com/webhook",
"byEvents": false,
"base64": true,
"headers": { "authorization": "Bearer token" },
"events": ["MESSAGES_UPSERT", "CONNECTION_UPDATE"]
}
}
```
Response (201):
```json
{
"instance": {
"instanceName": "my-instance",
"instanceId": "af6c5b7c-ee27-4f94-9ea8-192393746ddd",
"status": "created"
},
"hash": { "apikey": "generated-instance-token" },
"qrcode": { "base64": "data:image/png;base64,..." }
}
```
The `integration` field accepts:
- `WHATSAPP-BAILEYS` — Free, based on WhatsApp Web (Baileys library)
- `WHATSAPP-BUSINESS` — Official Meta Cloud API (requires Facebook App setup)
### Connect Instance (get QR code)
```
GET /instance/connect/{instanceName}
```
Returns QR code as base64 for scanning with WhatsApp mobile app.
### Check Connection State
```
GET /instance/connectionState/{instanceName}
```
Returns: `open`, `close`, or `connecting`.
### Other Instance Operations
| Method | Endpoint | Description |
| ------ | ---------------------------------- | ------------------------- |
| GET | `/instance/fetchInstances` | List all instances |
| PUT | `/instance/restart/{instance}` | Restart instance |
| DELETE | `/instance/logout/{instance}` | Logout (keep instance) |
| DELETE | `/instance/delete/{instance}` | Delete instance entirely |
| POST | `/instance/setPresence/{instance}` | Set online/offline status |
## Sending Messages
### Text Message
```bash
POST /message/sendText/{instanceName}
{
"number": "5511999999999",
"text": "Hello from Evolution API!",
"delay": 1200,
"linkPreview": true,
"mentionsEveryOne": false,
"mentioned": ["[email protected]"]
}
```
Response (201):
```json
{
"key": {
"remoteJid": "[email protected]",
"fromMe": true,
"id": "BAE594145F4C59B4"
},
"message": { "extendedTextMessage": { "text": "Hello from Evolution API!" } },
"messageTimestamp": "1717689097",
"status": "PENDING"
}
```
**Number format**: Use full international format without `+` sign. For groups, use the group JID (e.g., `[email protected]`).
### Reply / Quote a Message
Add `quoted` to any send payload:
```json
{
"number": "5511999999999",
"text": "This is a reply",
"quoted": {
"key": { "id": "ORIGINAL_MESSAGE_ID" },
"message": { "conversation": "Original message text" }
}
}
```
### Media Message
```bash
POST /message/sendMedia/{instanceName}
{
"number": "5511999999999",
"mediatype": "image",
"mimetype": "image/png",
"caption": "Check this out",
"media": "https://example.com/image.png"
}
```
`mediatype` options: `image`, `video`, `document`.
`media` accepts a URL or base64-encoded string.
### Audio Message
```bash
POST /message/sendWhatsAppAudio/{instanceName}
{
"number": "5511999999999",
"audio": "https://example.com/audio.mp3"
}
```
Audio is automatically converted to WhatsApp PTT (push-to-talk) format.
### Other Message Types
| Endpoint | Body fields | Notes |
| --------------------------------------- | -------------------------------------------------------------------------- | -------------------------- |
| `POST /message/sendLocation/{instance}` | `number`, `latitude`, `longitude`, `name`, `address` | |
| `POST /message/sendContact/{instance}` | `number`, `contact: [{fullName, wuid, phoneNumber}]` | |
| `POST /message/sendReaction/{instance}` | `key: {remoteJid, fromMe, id}`, `reaction` | Use empty string to remove |
| `POST /message/sendPoll/{instance}` | `number`, `name`, `values[]`, `selectableCount` | |
| `POST /message/sendList/{instance}` | `number`, `title`, `description`, `buttonText`, `footerText`, `sections[]` | |
| `POST /message/sendButtons/{instance}` | `number`, `title`, `description`, `buttons[]`, `footer` | |
| `POST /message/sendSticker/{instance}` | `number`, `sticker` (URL or base64) | |
| `POST /message/sendStatus/{instance}` | `type`, `content`, `statusJidList[]`, `caption` | Post to WhatsApp Status |
## Webhook Configuration
### Set Webhook via API
```bash
POST /webhook/set/{instanceName}
{
"webhook": {
"enabled": true,
"url": "https://your-server.com/webhook",
"webhookByEvents": false,
"webhookBase64": true,
"events": [
"MESSAGES_UPSERT",
"MESSAGES_UPDATE",
"CONNECTION_UPDATE",
"SEND_MESSAGE"
]
}
}
```
When `webhookByEvents` is `true`, events are sent to `{url}/{EVENT_NAME}` (e.g., `/webhook/MESSAGES_UPSERT`).
### Get Webhook Config
```
GET /webhook/find/{instanceName}
```
For the complete list of available events, see [references/events.md](references/events.md).
## Chat Operations
| Method | Endpoint | Body | Description |
| ------ | ------------------------------------------- | --------------------------------- | -------------------------- |
| POST | `/chat/checkIsWhatsApp/{instance}` | `numbers: ["5511..."]` | Verify numbers on WhatsApp |
| POST | `/chat/findMessages/{instance}` | `where: {key: {remoteJid}}` | Search messages |
| POST | `/chat/findChats/{instance}` | `{}` | List all chats |
| POST | `/chat/findContacts/{instance}` | `where: {id}` | Search contacts |
| POST | `/chat/markMessageAsRead/{instance}` | `readMessages: [{remoteJid, id}]` | Mark as read |
| POST | `/chat/archiveChat/{instance}` | `chat, archive: true` | Archive/unarchive chat |
| DELETE | `/chat/deleteMessageForEveryone/{instance}` | `key: {remoteJid, fromMe, id}` | Delete for everyone |
| POST | `/chat/updateMessage/{instance}` | `number, text, key: {id}` | Edit sent message |
| POST | `/chat/sendPresence/{instance}` | `number, presence` | Show typing/recording |
| POST | `/chat/getBase64/{instance}` | `message: {key}` | Get media as base64 |
`presence` values: `composing`, `recording`, `paused`.
## Group Management
| Method | Endpoint | Body / Params | DescRelated in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.