← 返回
数据分析 Key 中文

Toingg Ops Toolkit

Automate Toingg ops by creating campaigns, scheduling daily analytics, converting Excel contacts, uploading lists, and sending WhatsApp template messages.
通过创建营销活动、安排每日分析、转换Excel联系人、上传列表及发送WhatsApp模板消息,实现Toingg运营自动化。
abhinavpgagi
数据分析 clawhub v1.0.1 1 版本 99884.7 Key: 需要
★ 0
Stars
📥 866
下载
💾 54
安装
1
版本
#latest

概述

Toingg Ops Toolkit

This skill bundles everything needed to manage Toingg campaigns from Claw:

  • Campaign creation via create_campaign.py
  • Optional analytics cron (7 PM daily) powered by get_campaign_analytics.py
  • Contact upload + WhatsApp broadcast using xlsx_to_contacts.py, add_contacts.py, and send_whatsapp_templates.py

All HTTP calls reuse the TOINGG_API_TOKEN bearer token.

Setup

  1. Export your token in every environment that runs these scripts (gateway, cron, terminals).

```bash

export TOINGG_API_TOKEN="tg_..."

```

  1. Install Python deps once if you will ingest Excel files:

```bash

pip install openpyxl requests

```

  1. Keep payloads (campaign JSON, analytics snapshots, contact exports) in version control or shared storage per your security rules.

Campaign creation workflow

  1. Gather campaign fields from the user (title, voice, language, script, purpose, tone,

post-call schema, notification numbers, autopilot flags, etc.).

  1. Draft a payload JSON using references/payload-template.md as the scaffold.
  2. Run the helper:

```bash

cd skills/toingg-skill

./scripts/create_campaign.py payloads/my_campaign.json > responses/create-$(date +%s).json

```

  1. Return the API response (campaign ID, status, or validation errors) to the user and log it.

Opt-in analytics cron (7 PM daily)

Only offer this when the user explicitly asks for daily analytics.

  1. Confirm desired schedule/output directory.
  2. Follow references/analytics-cron.md to create openclaw cron create toingg-analytics-digest ... with the provided command snippet. Adjust paths if needed.
  3. Double-check TOINGG_API_TOKEN is visible to the gateway before enabling the cron.
  4. After the first run, share where the JSON snapshots live and how to disable 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

Contact upload + WhatsApp templates

When a user supplies an Excel sheet (name / phone / context columns) and wants to blast a WhatsApp template:

  1. Convert Excel → JSON

```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.

  1. Upload contacts to a Toingg contact list (auto-creates if missing):

```bash

./scripts/add_contacts.py ClawTest contacts.json

```

  1. Send WhatsApp templates once the list is ready:

```bash

./scripts/send_whatsapp_templates.py \

231565687 \

bfesfbgf \

en-US \

ClawTest \

--payload template-variables.json

```

  • Omit --payload (defaults to []) if the template has no variables.
  • Pass --resend only when the user explicitly wants to re-contact existing recipients.
  1. Confirm delivery status in Toingg and report any errors back to the user (the helper prints full JSON responses for logging).

File map

ScriptPurpose
-----------------
scripts/create_campaign.pyPOST /api/v3/create_campaign with arbitrary payloads
scripts/get_campaign_analytics.pyGET /api/v3/get_campaign_analytics (cron-friendly)
scripts/xlsx_to_contacts.pyConvert Excel sheets into Toingg contact JSON
scripts/add_contacts.pyUpload contact lists via /api/v3/add_contacts
scripts/send_whatsapp_templates.pyTrigger /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 个版本

  • v1.0.1 当前
    2026-03-29 21:42 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 199 📥 65,248
developer-tools

Toingg Ops Toolkit

abhinavpgagi
通过向 toingg/make_campaign API POST 用户提供的 JSON,创建并启动 Toingg 语音呼叫活动,适用于 Codex 将活动简报...
★ 0 📥 774
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 166 📥 60,216