This skill bundles everything needed to manage Toingg campaigns from Claw:
create_campaign.pyget_campaign_analytics.pyxlsx_to_contacts.py, add_contacts.py, and send_whatsapp_templates.pyAll HTTP calls reuse the TOINGG_API_TOKEN bearer token.
```bash
export TOINGG_API_TOKEN="tg_..."
```
```bash
pip install openpyxl requests
```
post-call schema, notification numbers, autopilot flags, etc.).
references/payload-template.md as the scaffold.```bash
cd skills/toingg-skill
./scripts/create_campaign.py payloads/my_campaign.json > responses/create-$(date +%s).json
```
Only offer this when the user explicitly asks for daily analytics.
references/analytics-cron.md to create openclaw cron create toingg-analytics-digest ... with the provided command snippet. Adjust paths if needed.TOINGG_API_TOKEN is visible to the gateway before enabling the cron.openclaw cron delete ...).get_campaign_analytics.py can also be run ad-hoc for on-demand pulls:
./scripts/get_campaign_analytics.py > analytics.json
When a user supplies an Excel sheet (name / phone / context columns) and wants to blast a WhatsApp template:
```bash
./scripts/xlsx_to_contacts.py ~/Downloads/leads.xlsx contacts.json
```
See references/contact-workflow.md for the exact column expectations and troubleshooting. The script skips blank rows and normalizes phone numbers.
```bash
./scripts/add_contacts.py ClawTest contacts.json
```
```bash
./scripts/send_whatsapp_templates.py \
231565687 \
bfesfbgf \
en-US \
ClawTest \
--payload template-variables.json
```
--payload (defaults to []) if the template has no variables.--resend only when the user explicitly wants to re-contact existing recipients.| Script | Purpose |
|---|---|
| -------- | --------- |
scripts/create_campaign.py | POST /api/v3/create_campaign with arbitrary payloads |
scripts/get_campaign_analytics.py | GET /api/v3/get_campaign_analytics (cron-friendly) |
scripts/xlsx_to_contacts.py | Convert Excel sheets into Toingg contact JSON |
scripts/add_contacts.py | Upload contact lists via /api/v3/add_contacts |
scripts/send_whatsapp_templates.py | Trigger /api/v3/send_whatsapp_templates |
Keep this toolkit lightweight: update the references when Toingg adds new fields or workflows so other operators can follow the same patterns.
共 1 个版本