whatsapp-send

$npx mdskill add aAAaqwq/AGI-Super-Team/whatsapp-send

Send personalized WhatsApp messages using Baileys.

  • Delivers custom text messages to specific phone numbers.
  • Requires an active WhatsApp Web session and Node.js.
  • Executes based on hardcoded recipient lists in the script.
  • Outputs messages instantly with a 60-second delay between sends.

SKILL.md

.github/skills/whatsapp-sendView on GitHub ↗
---
name: whatsapp-send
description: Baileys WhatsApp message sending
---
# WhatsApp Send

> Sending messages via WhatsApp Web (Baileys)

## When to use

- "send via whatsapp"
- "write through whatsapp"
- When `preferred_channel = WhatsApp` in data

## Dependencies

- Node.js, @whiskeysockets/baileys
- Active WhatsApp Web session

## Paths

| What | Path |
|------|------|
| Script | `$SALES_PATH/whatsapp/send_whatsapp.js` |
| Session | `$SALES_PATH/whatsapp/baileys_session/` |
| Check chats | `$SALES_PATH/whatsapp/check_chats.js` |

## How to run

```bash
cd $SALES_PATH/whatsapp
node send_whatsapp.js
```

## Recipient configuration

Recipients are hardcoded in the script (`RECIPIENTS` array):

```javascript
const RECIPIENTS = [
    { phone: '380XXXXXXXXX', name: 'Bob', row: 3 },
    { phone: '380YYYYYYYYY', name: 'Carol', row: 4 },
    // ...
];
```

To change -- edit the array in the script.

## Message template

```javascript
const MESSAGE_TEMPLATE = (name) => `Hello, ${name}! This is Ivan from WeLabelData.
...
`;
```

## How it works

1. Connects via Baileys
2. Checks if the number is on WhatsApp (`onWhatsApp`)
3. If yes -- sends a personalized message
4. **60 sec delay** between messages

## Check chats

```bash
node check_chats.js
```

Shows recent chats, but **NOT the full history**.

## Limitations (IMPORTANT!)

- **Baileys does NOT sync message history**
- New incoming messages are visible only in real time
- To check replies -- look at WhatsApp on the phone
- Active session required (QR code on first launch)
- WhatsApp may ban for aggressive sending

## Creating a new session

If the session is stale:

```bash
cd $SALES_PATH/whatsapp
rm -rf baileys_session
node index.js    # will show QR code
# Scan QR from the phone
```

## Troubleshooting

| Problem | Solution |
|---------|----------|
| Connection closed | Restart, rescan QR |
| Logged out | Delete session, create a new one |
| Number not on WhatsApp | Try another channel (Telegram/Email) |
| Ban/Restrict | Reduce frequency, change number |

## Related skills

- `telegram-send` -- alternative channel
- `email-send-direct` -- single email
- `email-send-bulk` -- mass email sending

More from aAAaqwq/AGI-Super-Team

SkillDescription
a-fund-monitor监控 A 股基金实时估值与盘后净值,自动判断交易日并生成提醒或分析。
add-leadAdd company/person/relationship to CRM
ads-agentAI-агент для управления Facebook рекламой. Вызывай для анализа, оптимизации, создания кампаний и отчётов.
afrexai-compliance-auditRun internal compliance audits against major governance and security
afrexai-personal-financeComplete personal finance system — budgeting, debt payoff, investing, tax optimization, net worth tracking, and financial independence planning. Use when managing money, building wealth, paying off debt, planning retirement, or optimizing taxes. Zero dependencies.
after-salesUse when managing post-purchase experience, building customer loyalty, or increasing repeat purchases
agent-contactsAI agent contacts — add, list, remove MCP contacts. Use when someone gives an agent URL, or when you need to view/remove contacts.
agent-model-switcher批量查看和切换子 agent 的模型配置,用于统一调整多 agent 的 provider/model 设置。
agent-patternsFormat SPAWN REQUEST messages to launch parallel agents, generate structured agent status reports, and define communication protocols within the sprint system. Use when the user needs to coordinate multiple agents, format spawn requests, produce agent reports, or establish inter-agent communication patterns.
agent-task-confirmUse when confirming whether a dispatched agent task was actually received, activated, and progressing after sessions_send or other task handoff actions.