# Whatsapp

> Gestire un bot WhatsApp (Baileys + Pairing Code) con agente AI esterno via HTTP API.

- Skill: `ruggerocadamuroita/whatsapp` (Agent Skill, multi-file: 7 files)
- Install (CLI): `npx get-skill add ruggerocadamuroita/whatsapp`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ruggerocadamuroita/whatsapp/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: RuggeroCadamuroITA (https://skillmd.com/u/ruggerocadamuroita)
- Updated: 2026-12-05
- Page: https://skillmd.com/skills/ruggerocadamuroita/whatsapp

---

---
name: whatsapp
description: Gestire un bot WhatsApp (Baileys + Pairing Code) con agente AI esterno via HTTP API.
---

# WhatsApp Agent Bridge — SKILL.md

## Overview

Bridge WhatsApp che espone un'API HTTP locale. Un agente AI esterno (es. OpenClaw, Claude, GPT) polla i messaggi e risponde.

## Comandi

### Avvio
```bash
cd <path>/whatsapp-agent-bridge
node index.mjs
```

### Fermare
`Ctrl+C`

### Reset sessione
```bash
rm -rf auth_info
```

## HTTP API

- `GET http://127.0.0.1:3099/api/pending` — messaggi in attesa
- `POST http://127.0.0.1:3099/api/reply` — invia risposta (body: `{"jid":"...","text":"..."}`)
- `GET http://127.0.0.1:3099/api/status` — stato connessione

## Configurazione

Vedi `config.js` — serve impostare `PHONE_NUMBER` (E.164 senza +).

