API pipeline: Have AI read groups in batches, post an overview to your channel and hand picks to a radar

Index: API pipelines — index · Lifecycle: API pipeline: Create, configure, start, stop, measure and delete a Telegram campaign of any kind

Goal: AI reads what is said in your groups in batches, posts an overview with its picks to a Telegram channel of yours, and can hand the picks to a radar for first contact.

Steps

1. Create (Paused).

POST /v0/my/campaigns
Idempotency-Key: scout-bali-1
{"title": "Bali rentals scout", "kind": "mtproto_ai_scout", "project_nonce": "<Pro project>",
 "agenda": "<swappable agenda>", "oracles": ["<oracle nonce>"], "tg_groups": ["<preset nonce>"],
 "batch_window": "6h", "batch_messages": 500, "outreach_campaign": "<your radar nonce>"}
→ {"nonce": "470390000000000001", "kind": "mtproto_ai_scout", "status": "Paused", …}

2. Start. POST /v0/my/campaigns/470390000000000001/start → {"success": true, "status": "Active", "is_active": true}. On the first start one of your oracles creates a Telegram channel « · AI Scout»; its invite link is on the card as overview_chat_link.

3. Read. Each batch posts an overview with its picks (reason + link to the message) to that channel and keeps it in the campaign's overviews_workspace: GET /v0/my/workspaces/<overviews_workspace>.

4. Stop. POST …/stop. It runs until you stop it.

Behind

Rules

API surface

Endpoint Purpose FE AI / oracle
POST /v0/my/campaigns (kind: mtproto_ai_scout) Create yes yes
PATCH /v0/my/campaigns/{nonce} Agenda, groups, oracles, batch, hand-off radar yes yes
POST /v0/my/campaigns/{nonce}/start, /stop Run / stop yes yes
GET /v0/my/campaigns/{nonce} overview_chat_link, overviews_workspace yes yes
GET /v0/my/workspaces/{overviews_workspace} Read the overviews yes yes

Mentioned