← 返回
开发者工具 Key 中文

Toingg Ops Toolkit

Create and launch Toingg voice-calling campaigns by POSTing user-supplied JSON to the toingg/make_campaign API. Use when Codex needs to turn campaign briefs...
通过向 toingg/make_campaign API POST 用户提供的 JSON,创建并启动 Toingg 语音呼叫活动,适用于 Codex 将活动简报...
abhinavpgagi
开发者工具 clawhub v1.1.0 2 版本 99868.9 Key: 需要
★ 0
Stars
📥 762
下载
💾 2
安装
2
版本
#latest

概述

Toingg Ops Toolkit

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

  • Campaign creation via create_campaign.py
  • Campaign discovery via fetch_campaigns.py when you need to list active IDs for users
  • On-demand calls via make_call.py (after collecting name, phone, and campaign)
  • 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 discovery workflow

Use this whenever the user wants to see active campaigns or needs a campaign ID before launching a call.

  1. Ask whether they already know the campaign ID. If not, offer to fetch the latest list (default pagination is fine unless they request a different page size).
  2. Run:

```bash

./scripts/fetch_campaigns.py --skip 0 --limit 10 --sort -1 > responses/campaigns-$(date +%s).json

```

Adjust --skip/--limit/--sort if the user needs deeper pages or a different ordering.

  1. Summarize the response back to the user: surface at least campID, name, status, and any relevant dates so they can choose confidently.
  2. Store the JSON output when ongoing work depends on the snapshot.

On-demand call workflow

When the user asks you to place a call, gather three pieces of information before touching the API:

  1. Caller name (string shown in Toingg logs).
  2. Phone number in international format.
  3. Campaign selection. If they do not supply a campaign, ask whether they want the latest list. Use the campaign discovery workflow above to provide options, then confirm their pick.

Once those details are confirmed, trigger the API:

./scripts/make_call.py "Recipient Name" +919999999999 64fd3f9...

The helper always sends asr=AZURE, startMessage=true, clearMemory=false, and extraParams={} per the product team’s defaults. Echo the API response (success or failure) back to the user so they know the call status.

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-create-campaign

./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/fetch_campaigns.pyGET /api/v3/get_campaigns for quick campaign listings
scripts/make_call.pyPOST /api/v3/make_call once you have name/phone/campaign
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.

版本历史

共 2 个版本

  • v1.1.0 当前
    2026-03-29 22:45 安全 安全
  • v1.0.0
    2026-03-07 01:57

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Toingg Ops Toolkit

abhinavpgagi
通过创建营销活动、安排每日分析、转换Excel联系人、上传列表及发送WhatsApp模板消息,实现Toingg运营自动化。
★ 0 📥 882
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,449
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,411