wingman-ai
v1.1.2
Published
WhatsApp listener component for Wingman AI - connects to WhatsApp Web using Baileys
Maintainers
Readme
wingman-ai (Node.js Listener)
WhatsApp listener component for Wingman AI - an AI-powered personal chat agent.
This package connects to WhatsApp Web using the Baileys library and communicates with the Wingman Python orchestrator via IPC.
Installation
This package is typically installed automatically by the Wingman CLI:
pip install wingman-ai
wingman initFor manual installation:
npm install wingman-aiUsage
This package is designed to be used as a subprocess managed by the Wingman Python orchestrator. It communicates via stdin/stdout using JSON messages.
Standalone Usage
# Build
npm run build
# Run (requires auth_state directory)
npm startMessage Protocol
The listener communicates with the orchestrator using newline-delimited JSON:
Incoming (to orchestrator):
{
"type": "message",
"chat": "[email protected]",
"sender": "[email protected]",
"text": "Hello!",
"isGroup": false,
"timestamp": 1699999999,
"messageId": "ABC123"
}Outgoing (from orchestrator):
{
"type": "send",
"chat": "[email protected]",
"text": "Hi there!"
}Events
qr- QR code for authenticationconnected- Successfully connected to WhatsAppdisconnected- Disconnected from WhatsAppmessage- New message received
Requirements
- Node.js 18+
- WhatsApp account
Related
- wingman-ai on PyPI - Main Wingman package
- Wingman GitHub - Full documentation
License
MIT
