@flowapt/flowiq-cli 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/TEAM-GUIDE.md +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -379,6 +379,12 @@ flowiq seg untag <org_id> repeat-60d --commit --confirm # ROLLBACK (its own ta
|
|
|
379
379
|
tagged cohorts" one-liner — no id file, no database access.
|
|
380
380
|
- Apply is **append-only** — it never touches a contact's other tags, names,
|
|
381
381
|
or anything else, and never double-adds.
|
|
382
|
+
- **Large cohorts are chunked server-side** (fixed 3 Aug 2026): the tagging RPC
|
|
383
|
+
writes every batch inside one statement, so a ~90k apply used to hit the
|
|
384
|
+
database timeout and roll back with nothing written. Apply now splits into
|
|
385
|
+
calls of ≤8000 contacts. Safe to re-run at any size — if a chunk ever does
|
|
386
|
+
fail, the error names how many landed and a re-run finishes the job
|
|
387
|
+
(append-only ⇒ idempotent).
|
|
382
388
|
- Point-in-time warning: the plan snapshots the cohort at plan time; re-run
|
|
383
389
|
`plan` to refresh it (someone who ordered since won't auto-drop, criteria
|
|
384
390
|
mode included).
|
package/TEAM-GUIDE.md
CHANGED
|
@@ -92,6 +92,7 @@ When you see it, run `npm i -g @flowapt/flowiq-cli` — a stale version also mea
|
|
|
92
92
|
| Split your whole broadcast list into N even cohorts (e.g. 3 for A/B/C or waves) | `flowiq seg plan <org_id> --tag-prefix bcast --from-attribute allow_broadcast_true --split 3` → `flowiq seg apply <org_id> bcast --commit` (makes `bcast-batch-01/02/03`, ~even, shuffled) |
|
|
93
93
|
| Combine existing tags → a batched send list (include some tags, drop others, split into batches of N) | `flowiq seg plan <org_id> --tag-prefix clearance-bc --from-tag "loyalty-list" --exclude "recent-campaign" --batch-size 1000` → `flowiq seg apply <org_id> clearance-bc --commit` (makes `clearance-bc-batch-01/02/…`) |
|
|
94
94
|
| Split a big id-list cohort into send-safe batch tags | `flowiq seg plan <org_id> --tag-prefix … --ids-file …` → `flowiq seg apply … --commit` |
|
|
95
|
+
| Split a whole tagged audience into batches of N (e.g. 90k → 7000s) | `flowiq seg plan <org_id> --tag-prefix 3-aug-bc --from-tag "3-aug-bc" --batch-size 7000` → `flowiq seg apply <org_id> 3-aug-bc --commit --yes` (makes `…-batch-01…13`; works at any size — big applies are chunked internally) |
|
|
95
96
|
| Send to one batch tag | `flowiq bc send <org_id> --tag <batch-tag> --template … --body param1="Hi {{first_name}}" --commit` (per-contact tokens: the 6 contact fields + `{{attributes.<key>}}`) |
|
|
96
97
|
| Send a broadcast whose template has an IMAGE/VIDEO/DOCUMENT header | Same as above — the media is automatic (the template's own stored header). Override with `--header-media <public-url>` if needed. The CLI verifies the resolved media's actual type against the header format — `header video (video ✓ video/mp4)` means verified; a mismatch (e.g. a video template whose stored default is secretly a png — templates made before 3 Aug 2026 can carry this) ABORTS and tells you to pass `--header-media` with the real file. |
|
|
97
98
|
| Send via the SAME engine as the dashboard's "Python" toggle | add `--python` to a `bc send --tag …` (fire-and-forget; python resolves the tag + sends + tracks; no CLI resume for this engine). **Any tag send over 10 recipients uses python automatically.** |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowapt/flowiq-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Command-line tool for FlowIQ staff: round-trip agent prompts, questionnaires, fine-tuning, pin-board tasks, webhooks, templates, agent-updates, chat exports, and live agent testing without ever touching service-role credentials.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|