Big Tony is a WhatsApp Agent powered by Wassist. It handles community member management, membership verification, and demo submissions.
The production Big Tony agent is available on WhatsApp at: +44 7488 895960
git clone https://github.com/unicorn-mafia/big-tony.git
cd big-tony
npm installCopy the environment template and configure your variables:
cp .env.template .envRequired environment variables:
| Variable | Description |
|---|---|
API_KEY |
API key to access the big tony - used to authenticate requests from Wassist |
RESEND_API_KEY |
API key from Resend for sending emails |
GITHUB_TOKEN |
GitHub Personal Access Token (see GitHub Access) |
npm run devThe server runs on http://localhost:3000.
Start ngrok to get a public URL for your local server:
ngrok http 3000Copy the generated https://*.ngrok.io URL - you'll need this for Wassist.
- Create an account at wassist.app
- Create a new agent
- Copy the contents of
wassist/system_prompt.txtand paste it into the agent's system prompt field - For each tool in the
wassist/tools/directory:- Open the JSON file (
checkMember.json,submitDemo.json,submitMember.json) - In Wassist, upload/create an API tool using the JSON configuration
- Replace
<url>in the tool config with your ngrok URL - Replace
Bearer big-tony-api-keyin the tool config with the API key from your.envfile - generate this
- Open the JSON file (
- Click Start Testing to connect your WhatsApp for testing
To test email functionality:
- Create an account at resend.com
- Generate an API key
- Add the key to your
.envfile asRESEND_API_KEY
The bot requires GitHub access to manage the members database in the members0db repository.
- Go to GitHub → Settings → Developer settings → Personal access tokens
- Generate a new token (classic) with the
reposcope - Ensure your account has access to the
members0dbrepository - Add the token to your
.envfile asGITHUB_TOKEN
| Endpoint | Description |
|---|---|
POST /api/checkMember |
Verify if a phone number belongs to a registered member |
POST /api/submitMember |
Register a new community member |
POST /api/submitDemo |
Submit a demo for review |
big-tony/
├── app/
│ ├── api/
│ │ ├── checkMember/ # Member verification endpoint
│ │ ├── submitDemo/ # Demo submission endpoint
│ │ └── submitMember/ # Member registration endpoint
│ └── ...
├── lib/
│ ├── authorization.ts # Request authorization helpers
│ ├── github.ts # GitHub API integration
│ └── validation.ts # Input validation
├── types/
│ └── membersdb.ts # TypeScript types for member data
└── wassist/
├── system_prompt.txt # Agent system prompt for Wassist
└── tools/ # Wassist tool configurations (JSON)
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint