@thinkingai/ae-cli 6.1.33 → 6.1.34
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 +2 -2
- package/README.zh.md +2 -6
- package/cli-installation-guide.md +14 -4
- package/dist/{ai-monitor-OHTSU6SV.js → ai-monitor-TVRFVZBH.js} +10 -9
- package/dist/ai-monitor.js +17 -16
- package/dist/{auth-2MOK4OI6.js → auth-JAXLMPBB.js} +25 -317
- package/dist/{automation-6L6IAYRK.js → automation-OQ647CSW.js} +7 -6
- package/dist/{capability-EMIHQJA3.js → capability-2Z4ZXTPD.js} +18 -16
- package/dist/chunk-2H3SFJE3.js +344 -0
- package/dist/{chunk-RC3PPCYD.js → chunk-3PZNM5KN.js} +3 -3
- package/dist/chunk-3ZQY7SLZ.js +147 -0
- package/dist/{chunk-NNK3JBH4.js → chunk-6E6HCTP2.js} +2 -2
- package/dist/{local-data-upload-client-YTWMAAGE.js → chunk-6IUTXRAD.js} +32 -4
- package/dist/{chunk-VLOGOM7N.js → chunk-CYZV5AXW.js} +8 -5
- package/dist/{chunk-O45NOIWR.js → chunk-DE5XHQQ6.js} +2 -2
- package/dist/{chunk-KD5UC33N.js → chunk-E5CJI7L3.js} +7 -5
- package/dist/{chunk-UCMO4LKL.js → chunk-EQMGH32F.js} +2 -2
- package/dist/{chunk-E3ONSFUN.js → chunk-FNACCKQR.js} +211 -12
- package/dist/{chunk-2I5SZ5DS.js → chunk-GD5JSAGV.js} +2 -2
- package/dist/{chunk-EFGUBGA6.js → chunk-GYODT7C4.js} +1 -1
- package/dist/chunk-HBI7IQH3.js +1207 -0
- package/dist/{chunk-AMURHMS3.js → chunk-IGU3R2JD.js} +4 -4
- package/dist/{chunk-YE6MJB5V.js → chunk-IWMDPHMI.js} +3 -3
- package/dist/{chunk-LFJ7N36I.js → chunk-L7MT53VM.js} +5 -3
- package/dist/{chunk-HIMOBNEY.js → chunk-LXRALNNA.js} +2 -2
- package/dist/{chunk-BQFLABJQ.js → chunk-M2OCZRVX.js} +7 -5
- package/dist/{chunk-R2SVAO4G.js → chunk-MTK4ZE7W.js} +3 -143
- package/dist/{chunk-7DHSB3FL.js → chunk-NK5PS5X7.js} +3 -3
- package/dist/{chunk-HQED4YB4.js → chunk-NPH5J65M.js} +1 -1
- package/dist/{chunk-EWVEAERM.js → chunk-Q764EZND.js} +78 -72
- package/dist/chunk-QOJXLXDJ.js +55 -0
- package/dist/{chunk-THTROEGD.js → chunk-QPUPWGZ3.js} +1 -1
- package/dist/{chunk-XZDKAR4N.js → chunk-RLPMXKDQ.js} +8921 -10119
- package/dist/{chunk-DWAG2QJM.js → chunk-S74XV3A6.js} +4 -4
- package/dist/{chunk-COOMXFUG.js → chunk-SHB7A2JE.js} +3 -3
- package/dist/{chunk-PLNS5J33.js → chunk-UWQXGF44.js} +17 -9
- package/dist/{data-integration-UNJ7EPW2.js → chunk-V6UKLIM6.js} +160 -2258
- package/dist/{chunk-4IQYPWCX.js → chunk-VPLRZSMY.js} +18 -10
- package/dist/{chunk-KA5WKR5P.js → chunk-Z6WSCIHM.js} +2 -2
- package/dist/{community-report-client-ULRNXLQV.js → community-report-client-5VNT6HCV.js} +4 -2
- package/dist/{compat-check-CADG7GND.js → compat-check-E7AQ7UCG.js} +5 -4
- package/dist/{config-PFD3KWQG.js → config-PGSUWIK5.js} +15 -11
- package/dist/{context-SOQDFZIB.js → context-Y2A6QIS3.js} +5 -4
- package/dist/conversion-4FR3RA45.js +16 -0
- package/dist/data-integration-EIF5QHYF.js +2138 -0
- package/dist/{evaluation-Q3AIGFOG.js → evaluation-OZM54MES.js} +6 -5
- package/dist/index.js +74 -51
- package/dist/local-data-upload-client-2U3LFD7Z.js +16 -0
- package/dist/{memory-HKNGUIPK.js → memory-6QMZS4HF.js} +7 -6
- package/dist/{metadata-GFWR5ZHC.js → metadata-7MZ3CJ2N.js} +10 -9
- package/dist/{model-NAKQWK4W.js → model-LEYRQKOS.js} +8 -7
- package/dist/{personal-semantic-preference-JCTKXLC3.js → personal-semantic-preference-SWOUNDWJ.js} +9 -8
- package/dist/{project-semantic-B2NWQOKK.js → project-semantic-M2DDPAMD.js} +9 -8
- package/dist/{sync-UQH4J4BD.js → sync-PWC63JCO.js} +16 -15
- package/dist/{te-agent-L6EYFQCC.js → te-agent-S7UH657Z.js} +11 -9
- package/dist/{te-analysis-U7NNOY66.js → te-analysis-BK6PE333.js} +281 -214
- package/dist/{te-community-3UQEW3KD.js → te-community-OLNTKGCW.js} +12 -10
- package/dist/{te-dataops-SUNYXF5G.js → te-dataops-XUWRIF5R.js} +12 -10
- package/dist/{te-engage-KMXZJ2KN.js → te-engage-I3I4FJOM.js} +9 -8
- package/dist/{te-experiment-IEYKP6VC.js → te-experiment-XSDUL4KH.js} +9 -8
- package/dist/{te-kb-MT3V5ZMH.js → te-kb-QFH3YLFQ.js} +15 -13
- package/dist/{te-system-F4ZU2HRQ.js → te-system-DB5Z3LLF.js} +7 -6
- package/dist/{te-team-M6E6XQ5H.js → te-team-UADF2HBO.js} +9 -8
- package/dist/{things-FRLBZV2Z.js → things-G2QFXDK7.js} +9 -8
- package/dist/{update-NULYHVE6.js → update-6I366ICW.js} +7 -8
- package/dist/web-runtime-3XFREWRF.js +2367 -0
- package/dist/{workspace-Z7L33OBQ.js → workspace-RZESYB6T.js} +7 -6
- package/package.json +4 -3
- package/skills/ae-analysis/SKILL.md +1 -1
- package/skills/ae-data-integration/references/ue-mapping.md +2 -0
- package/skills/ae-onboarding/SKILL.md +64 -0
- package/skills/ae-onboarding/references/business-sdk.md +8 -0
- package/skills/ae-onboarding/references/demo-operations.md +79 -0
- package/skills/ae-onboarding/references/import.md +19 -0
- package/skills/ae-onboarding/references/onboarding_experiment_launch.md +12 -0
- package/skills/ae-onboarding/references/onboarding_experiment_plan.md +14 -0
- package/skills/ae-onboarding/references/onboarding_growth.md +36 -0
- package/skills/ae-onboarding/references/onboarding_run.md +11 -0
- package/skills/ae-onboarding/references/onboarding_status.md +5 -0
- package/skills/ae-onboarding/scripts/experiment-preset.json +252 -0
- package/skills/ae-onboarding/scripts/experiment-requests.mjs +120 -0
- package/skills/ae-onboarding/scripts/generate.mjs +170 -0
- package/skills/ae-onboarding/scripts/resolve-experiment-preset.mjs +26 -0
- package/skills/ae-onboarding/scripts/web-journey.mjs +39 -0
- package/dist/chunk-6ZIQV5GW.js +0 -26
|
@@ -13,17 +13,18 @@ import {
|
|
|
13
13
|
workspaceResourcePath,
|
|
14
14
|
workspaceTargetFlags,
|
|
15
15
|
workspaceTargetPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SHB7A2JE.js";
|
|
17
17
|
import "./chunk-RK6GLDGI.js";
|
|
18
18
|
import {
|
|
19
19
|
getAgentBuffer
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-LXRALNNA.js";
|
|
21
|
+
import "./chunk-CYZV5AXW.js";
|
|
22
|
+
import "./chunk-UWQXGF44.js";
|
|
23
|
+
import "./chunk-IGU3R2JD.js";
|
|
24
|
+
import "./chunk-MTK4ZE7W.js";
|
|
24
25
|
import {
|
|
25
26
|
CliValidationError
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3ZQY7SLZ.js";
|
|
27
28
|
|
|
28
29
|
// src/commands/workspace/shared.ts
|
|
29
30
|
var WORKSPACE_SERVICE = "workspace";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkingai/ae-cli",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.34",
|
|
4
4
|
"description": "CLI tool for ThinkingAI (AE) analytics platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
21
|
"dev": "tsx src/index.ts",
|
|
22
|
-
"build": "tsup
|
|
22
|
+
"build": "tsup --format esm --outDir dist --clean --config tsup.config.ts && node scripts/copy-tracking-assets.mjs",
|
|
23
23
|
"generate:analysis-skill": "tsx scripts/generate-analysis-skill-index.mts",
|
|
24
24
|
"sync:skill-collaboration": "node scripts/sync-skill-collaboration.mjs",
|
|
25
25
|
"check:skill-collaboration": "node scripts/sync-skill-collaboration.mjs --check",
|
|
@@ -105,7 +105,8 @@
|
|
|
105
105
|
"verify:capability-api": "npx tsx tests/capability-api.test.ts",
|
|
106
106
|
"verify:community-ux": "npm run build && npx tsx tests/community-ux.test.ts",
|
|
107
107
|
"verify:community-evidence": "node --import tsx tests/community-evidence.test.ts",
|
|
108
|
-
"verify:businesses": "node --import tsx --test tests/business-config.test.ts tests/business-command-filter.test.ts tests/business-cli.test.ts tests/environment-refresh.test.ts tests/business-sandbox-boundary.test.ts tests/business-refresh-skills.test.ts"
|
|
108
|
+
"verify:businesses": "node --import tsx --test tests/business-config.test.ts tests/business-command-filter.test.ts tests/business-cli.test.ts tests/environment-refresh.test.ts tests/business-sandbox-boundary.test.ts tests/business-refresh-skills.test.ts",
|
|
109
|
+
"verify:plg": "tsx --test tests/onboarding-v3.test.ts tests/onboarding-website-login.test.ts tests/onboarding-growth.test.ts tests/login-device-flow.test.ts tests/auth-device-command.test.ts tests/plg-engage-replay.test.ts"
|
|
109
110
|
},
|
|
110
111
|
"repository": {
|
|
111
112
|
"type": "git",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ae-analysis
|
|
3
|
-
version: 4.2.
|
|
3
|
+
version: 4.2.76
|
|
4
4
|
description: "Use ae-cli for AE analysis-side data questions, asset operations, and asset governance: reports, analysis boards, BI dashboards, ad-hoc models, drilldown, detail data, alerts, clusters, tags, metrics, metadata discovery, project configuration, tracking plans, local input-file upload, governance asset lists/rules/lineage/impact/dependency, batch asset operations, projects, and resource links. Use when the user asks to review collected analysis questions or badcases, query data, explain a change, export evidence, inspect/create/update/govern analysis assets, recommend project assets for certification/authentication, review asset-certification recommendations, review metric recommendations, or build/update/refresh/sync a project semantic knowledge base from a governed asset package."
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -29,6 +29,8 @@ Required structure:
|
|
|
29
29
|
|
|
30
30
|
Use `distinct_id_field` when no account field exists. `mixed` requires `record_type_field`. Track requires `event_name_field` or a reviewed `default_event_name`. `source.format` is one of `csv`, `tsv`, `json`, `jsonl`, `xls`, `xlsx`, `parquet`. For a multi-file template mapping, `source.sha256` may be the wildcard `*`.
|
|
31
31
|
|
|
32
|
+
For Atlas exposure data, use a `track` mapping with `default_event_name: "te_experiment_exposure"` or an `event_name_field` when the file contains several event names. The mapping accepts the receiver-defined targets `#experiment_id` and `#experiment_group_id` as strings and `#is_control_group` as a boolean. Conversion emits these fields under `properties` only for rows resolved to `te_experiment_exposure`. Plan generation excludes them from custom property definitions.
|
|
33
|
+
|
|
32
34
|
## Record types
|
|
33
35
|
|
|
34
36
|
Every record carries a `#type`. `mode: 'mixed'` resolves the type per row via `record_type_field`; otherwise the mode fixes it (`track` or `user_set`). The `record_type_field` values are normalized case- and underscore-insensitively, with `event`→`track` and `user`/`userset`→`user_set` aliases.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ae-onboarding
|
|
3
|
+
version: 1.1.33
|
|
4
|
+
description: "Guide Demo analysis and a follow-up A/B experiment in AE onboarding, with SDK integration available in a local agent."
|
|
5
|
+
metadata:
|
|
6
|
+
internal: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Use this Skill for an explicitly started AE PLG session or the platform's active first-experience conversation. Retain the session ID returned by [`ae-cli analysis onboarding run`](references/onboarding_run.md) and use `--session-id` for all subsequent calls. To inspect progress, use [`ae-cli analysis onboarding status`](references/onboarding_status.md). Translate labels into the customer's language. For Chinese use 星屿游戏 and 星光冒险礼包 for Star Island and its item, and 赛季通行证 for the second sample.
|
|
10
|
+
|
|
11
|
+
For each user decision, show the result or context, then render the choice in the same turn. Use `interaction.options` from the last CLI result when present. In Codex, call `request_user_input` or `request_user_input_async`, whichever is available. In Claude Code, call `AskUserQuestion`. Use the equivalent native picker in other hosts. Wait for the selection. Fall back to short text choices only if the picker is unavailable or fails. Progress updates and actions that can proceed automatically require no choice.
|
|
12
|
+
|
|
13
|
+
## Web onboarding
|
|
14
|
+
|
|
15
|
+
When the platform identifies this as the active first-experience conversation, skip Login. Run onboarding from the current conversation directory with the existing sandbox CLI, omitting `--host`, `--region`, and `--website-env` from all commands. Reuse the same session ID. If the platform-provided identity or CLI is unavailable, explain that the experience cannot proceed. Do not install the CLI, open a login page, or switch credentials.
|
|
16
|
+
|
|
17
|
+
Web onboarding offers the Demo only. For an explicit start request, pass `--choice demo` and use the recommended sample. Otherwise offer **Start the demo** or **Not now**. For each choice, use the CLI result carrying `interaction` as the final tool call and end the reply with one fenced `options` block for older Web clients. Use two to five localized plain lines without numbering. When offering sample selection, first call `node <this-skill-directory>/scripts/web-journey.mjs choose-sample`. After giving follow-up recommendations, call the same script with `after-follow-up`. A choice is sent back as the user's message.
|
|
18
|
+
|
|
19
|
+
After the verified experiment report is ready to deliver, run `node <this-skill-directory>/scripts/web-journey.mjs done` from the current conversation directory and deliver the results. If the user explicitly stops the walkthrough, write `stopped` instead. The platform shows the workspace entry after the reply. Pending ingestion, unverified reports, and ordinary follow-up questions do not end the journey. Business SDK setup requires the user's local workspace. If asked about it in Web onboarding, explain that it is available in a local agent without starting that flow or offering it as a choice.
|
|
20
|
+
|
|
21
|
+
## Login
|
|
22
|
+
|
|
23
|
+
For local onboarding, confirm the customer's market if it is unclear. Website onboarding is available in Japan, Korea, and the United States. Pass `--region jp`, `--region kr`, or `--region us` for the customer's chosen market. Customers in China who already have an AE account can use their original host with `ae-cli auth login --host <url>`.
|
|
24
|
+
|
|
25
|
+
Follow `next_action` and the browser receipt. For `guide_existing_window`, direct the user to the page already opened in their system default browser. For `show_fallback_link` or a window the user cannot find, give the exact URL for that browser. For `complete_website_login`, show **I finished signing in** and **I need help signing in**. For `approve_device`, show **I approved CLI access** and **I need help authorizing the CLI**. Resume the same session when the user confirms. For `restart_website_login` or `reauthorize_cli`, show the returned recovery choice and **Not now**. If a matching older CLI returns `run_onboarding` with zero delay after claiming authorization, run once more in the same turn. On `choose_experience`, show the experience picker immediately.
|
|
26
|
+
|
|
27
|
+
After the user confirms signing in, if website authorization is `authorizing`, `approved`, or `claimed` but still settling, wait `poll_after_ms` and retry the same session within the current turn. Avoid asking them to confirm the same browser action again. Show the next picker as soon as the CLI returns it.
|
|
28
|
+
|
|
29
|
+
## Choose an experience in a local agent
|
|
30
|
+
|
|
31
|
+
Show Start the demo and Connect my business data. Pass `--choice demo` or `--choice business` only after the user chooses. For `confirm_business_project`, show the server-returned candidate name and send `--confirm-business-project-id` after confirmation. For `resolve_business_project`, direct the user to AE to resolve the registration project. Never infer an ID from the display name, current browser tab, or a Demo.
|
|
32
|
+
|
|
33
|
+
## Demo
|
|
34
|
+
|
|
35
|
+
Use the server-selected recommendation. To change samples, display `samples` and call `run --sample <sample-id>` after the user chooses. If the response says `poll_demo`, wait for `poll_after_ms` and resume `run`. Report a preparation error when the server asks for action.
|
|
36
|
+
|
|
37
|
+
When the sample is ready, open the growth picker from `interaction.options`. Offer **Find a growth opportunity**, **Win back players who started checkout but did not pay**, and **Change sample**. In Chinese use **帮我找一个增长机会**, **找回结账未支付的玩家**, and **更换样例**. For a direct request for either scenario or the purchase funnel, go straight to [growth results](references/onboarding_growth.md).
|
|
38
|
+
|
|
39
|
+
Run the selected growth scenario and retain it through follow-up and experiment planning. On `phase=ready`, show the dates, aggregate counts, and one chart using [growth presentation and links](references/onboarding_growth.md#presentation).
|
|
40
|
+
|
|
41
|
+
After presenting the growth opportunity, open the picker with **How should we follow up with these users?** and **Change sample** in that order. In Chinese use **这批用户该怎么跟进?** and **更换样例**. For checkout recovery with fewer than two eligible accounts, offer the growth picker again and explain the count. Wait for the customer to choose before presenting follow-up strategies.
|
|
42
|
+
|
|
43
|
+
When the customer asks how to follow up with these users, show the [follow-up chart and recommendation](references/onboarding_growth.md#follow-up) from the last ready growth response for the selected sample and scenario. If baseline links were missing, use one read-only `status` call to check for them and include only links returned for this sample. In Web, make this check before the `after-follow-up` call.
|
|
44
|
+
|
|
45
|
+
In that turn, make the chart visible above the picker. Then offer **Generate an A/B experiment plan** and **Change sample** in that order. In a local agent only, add **Connect my business data**. In Chinese, use these exact labels: **生成 A/B 实验方案**, **更换样例**, and **接入我的业务数据**. Wait for the customer's choice before proceeding.
|
|
46
|
+
|
|
47
|
+
### Generate an A/B experiment plan
|
|
48
|
+
|
|
49
|
+
When the customer chooses **生成 A/B 实验方案** or asks for the plan, call [experiment-plan for the selected scenario](references/onboarding_experiment_plan.md).
|
|
50
|
+
|
|
51
|
+
For every Demo experiment plan, require `approver.status=ready` before offering launch confirmation. On `failed`, report the returned reason and retry plan preparation after resolving it.
|
|
52
|
+
|
|
53
|
+
On `phase=ready`, retain `run_id` and show the [A/B comparison table](references/demo-operations.md#present-the-plan) in chat before opening the confirmation picker in the same turn. Follow the same reference for pending and blocked plans.
|
|
54
|
+
|
|
55
|
+
### Confirm and start the A/B experiment
|
|
56
|
+
|
|
57
|
+
When the customer chooses **确认并启动 A/B 实验** or confirms the displayed plan, call [experiment-launch](references/onboarding_experiment_launch.md) with its saved `run_id`. **Required for every onboarding Demo approval:** only `ae-cli analysis onboarding experiment-launch` may submit or approve the draft. This applies after creation and on every retry or resume. Never substitute standalone approval writes. For checkout recovery, use `--start-only` first. On `upload_experiment_replay`, show the link in a progress update and resume the same run to send the replay. Follow [launch handling](references/demo-operations.md#start-and-replay-the-confirmed-experiment) for other actions. After Receiver acceptance, continue [result verification](references/demo-operations.md#report-verified-results) in the same turn.
|
|
58
|
+
|
|
59
|
+
For an explicit request to launch a Demo experiment, use the requested or previously selected scenario. If neither is available, use the default. Obtain a `run_id` and launch using the existing authorization. For a draft-only request, follow [draft-only creation](references/demo-operations.md#draft-only-creation). In a local agent, if the customer chooses business data, use the same onboarding session with `--choice business` and follow Business SDK.
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## Business SDK in a local agent
|
|
63
|
+
|
|
64
|
+
On `identify_workspace_projects`, follow [plan-based SDK setup](references/business-sdk.md) with the bound registration project. Complete after the user confirms setup and show the project-specific real-time data link.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Set up business tracking with an SDK
|
|
2
|
+
|
|
3
|
+
Use the host's picker for project selection, plan confirmation, code insertion approval, and setup completion. When the tracking Skill expects `ok`, offer **Confirm and continue** and **Request changes**; collect free text only for the requested changes or missing values.
|
|
4
|
+
|
|
5
|
+
1. Read `workspace_projects`. Verify manifests and actual startup files in the current workspace, then show project choices with their platform and directory. Wait for the selection before changing code. Use the session's bound registration project and verify its AppID and receiver with `ae-cli analysis project info get`. Keep this AE target through the plan and code steps.
|
|
6
|
+
2. Load `ae-tracking-matrix` for routing. For a codebase without a plan, use `ae-generate-tracking-plan` with the selected codebase as source. For an existing plan, review a copy against the chosen entrypoints and reuse compatible events. Show the planned business events, properties and trigger locations for confirmation. If the selected SDK supports auto-collection, include its supported options in the plan review and let the user choose whether to enable them. Use the existing plan delivery flow for optional synchronization or Excel.
|
|
7
|
+
3. Hand the confirmed plan and resolved project context to `ae-generate-tracking-code`. Reuse existing initialization or add the supported SDK. Insert explicit tracking calls at the confirmed business triggers and apply the user's auto-collection choices. Preserve existing auto-collection settings unless the user confirms a change. Use one authoritative reporting location per business fact. Keep server credentials out of client code.
|
|
8
|
+
4. Run the project's normal non-deploying checks. Show the returned `realtime_data_url` and how to trigger the planned actions. In Chinese, label the link **查看实时数据**. Use the verified host and bound business project ID in `<host>/#/data/realtime?setupProjectId=<project_id>` if an older CLI omits the URL. Present **I finished setup** and **I need help testing** in a picker. After confirmation, resume `run --choice business --sdk-complete` and include the link again. Report event arrival only after observing the customer's events in AE.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Demo operations
|
|
2
|
+
|
|
3
|
+
Use the active PLG session's `demo_project_id`, sample, item, and reporting timezone throughout. Pass the project explicitly. In an external agent, use the session's verified host for commands that accept it; in Web onboarding, omit `--host` and use the platform credential. Resolve the ingestion target from the same Demo project. The PLG sample data already provides the analysis baseline.
|
|
4
|
+
|
|
5
|
+
## Fixed Demo experiment
|
|
6
|
+
|
|
7
|
+
Use the [preset catalog](../scripts/experiment-preset.json) to resolve the active sample and item to an industry, then select one of that sample's supported experiment types. Save `industry` and `experimentType` with the run and use the same selection for request creation and replay.
|
|
8
|
+
|
|
9
|
+
| Industry | Samples | Experiment type |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| `game` | `star-island`, `season-pass` | `item-coupon`, `checkout-recovery` |
|
|
12
|
+
|
|
13
|
+
Industry entries define the sample and item IDs and fixed coupon audiences. Checkout recovery uses the queried audience saved in the plan. Experiment-type entries define the Feature, hypothesis, groups, metrics, economics and replay rules. Both samples use their own project, sample and item scope.
|
|
14
|
+
|
|
15
|
+
The `item-coupon` replay exposes up to 12 accounts per arm and simulates up to eight treatment coupon claims, one control purchase and seven treatment purchases. Counts are capped by the available accounts in each arm. Report observed counts from AE.
|
|
16
|
+
|
|
17
|
+
| Setting | Value |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| Coupon audience | Accounts with at least two reporting dates of item views and no purchase for the same item |
|
|
20
|
+
| Checkout recovery audience | Accounts that viewed the item, then started checkout, and did not buy within the sample window |
|
|
21
|
+
| Randomization | Exclusive account-ID bucket, 100% of the eligible audience, split 50/50 |
|
|
22
|
+
| Coupon arms | Full-price reminder at 100 CNY vs. item coupon at 80 CNY |
|
|
23
|
+
| Checkout recovery arms | Reminder to product details vs. reminder directly to checkout, both at 100 CNY |
|
|
24
|
+
| Delivery | Same placement and timing, one exposure per account at most, stop after purchase |
|
|
25
|
+
| Cycle | Start as soon as eligible, evaluate over seven days |
|
|
26
|
+
| Metrics | Primary: distinct buyers. Secondary: sum of paid order amount. Both use `payment_success` filtered by the active sample and item |
|
|
27
|
+
| Economics | 50 CNY cost per paid order, zero other costs. Profit equals paid order revenue minus order costs |
|
|
28
|
+
|
|
29
|
+
Use the same saved preset selection and audience for plan display, targeting and replay. Reuse the sample's revenue metric and the Feature key generated for the run. Checkout recovery replays one exposure per assigned account and simulated full-price payments.
|
|
30
|
+
|
|
31
|
+
## Present the plan
|
|
32
|
+
|
|
33
|
+
Show the Demo audience, hypothesis, and evaluation period from the ready `experiment-plan` response. Insert `plan_preview_markdown` as a visible two-column Markdown table in the conversation. Translate labels and descriptions, keeping both columns, prices, and allocation values. With an older CLI, build the same **A · Control** and **B · Treatment** table from `plan.arms` and `plan.currency`. Show each group's path, price, and split side by side.
|
|
34
|
+
|
|
35
|
+
Show the metrics and cost per paid order below the table. Both groups use the same placement and timing, with at most one exposure per account and no follow-up after purchase. Localize the preview to the customer's language. Keep the local `plan_path` private.
|
|
36
|
+
|
|
37
|
+
Every ready Demo plan includes `approver`. Require `approver.status=ready` before offering launch confirmation, and report any preparation failure. When a coupon plan returns `metric_event`, report its status. If delivery is uncertain, check the saved event ID before sending another event. For `poll_demo`, resume Demo preparation. For `action_required`, follow the returned `next_action`.
|
|
38
|
+
|
|
39
|
+
After showing the preview, use the host's choice control with **Confirm and start the A/B experiment** (**确认并启动 A/B 实验**) and, if a second option is required, **Start later** (**暂不启动**). Explain that confirmation authorizes the Demo experiment, approval by the signed-in account when eligible, and replay of synthetic events. If the customer defers or dismisses the dialog, keep the plan pending.
|
|
40
|
+
|
|
41
|
+
## Start and replay the confirmed experiment
|
|
42
|
+
|
|
43
|
+
Use [`experiment-launch`](onboarding_experiment_launch.md) with the confirmed plan. It creates the Feature and metrics, saves the draft, checks readiness, approves the exact round as the signed-in approver, and verifies that the experiment is running. Replay sends exposure and payment events in one Receiver batch. The coupon scenario also sends coupon claims. Outcomes are timestamped five seconds after the account's exposure.
|
|
44
|
+
|
|
45
|
+
- Use the launch command as the sole path for approval writes, including after the draft already exists. Do not invoke standalone `experiment approval submit` or `experiment approval approve`, the corresponding raw capabilities, or a UI approval as a fallback. A read-only approval check can help diagnose a blocker.
|
|
46
|
+
- While the command is running, wait for the same process in the current turn. If the execution tool returns a process handle, keep polling that handle. The CLI already polls the approval round and retries recoverable errors. A pending round or a generic `CAPABILITY_EXECUTION_FAILED` does not justify stopping an active invocation or switching commands.
|
|
47
|
+
- When the CLI returns `experiment_url` with a running experiment, show **View experiment** as a clickable progress link. For `upload_experiment_replay`, resume the same run without `--start-only`. For `verify_experiment_results` or an older `phase=complete` response, continue to [Report verified results](#report-verified-results) in the same turn.
|
|
48
|
+
- On `wait_for_other_demo_experiment`, show the existing experiment link when present. The user can still explore either scenario. Resume the confirmed run after the other experiment has ended.
|
|
49
|
+
- On `run_checkout_recovery_growth`, refresh the baseline, generate a new proposal and get confirmation for the new plan.
|
|
50
|
+
- On `resume_experiment_launch` for a recoverable error, or if the execution tool times out or interrupts the process, resume `experiment-launch` in the same turn with the same `session_id`, `run_id`, and launch flags once the original process has exited. Keep the existing draft and original confirmation. Stop and explain the blocker if credentials, permissions, or approval state prevent continuation, or if the user asks to stop.
|
|
51
|
+
- On `reconcile_replay_delivery`, check the saved event UUIDs in AE. Continue to report verification if all events are present. Resolve uncertain delivery before submitting again.
|
|
52
|
+
|
|
53
|
+
Use a CLI build that provides both onboarding commands for this flow.
|
|
54
|
+
|
|
55
|
+
### Draft-only creation
|
|
56
|
+
|
|
57
|
+
For an explicit draft-only request, build the payloads with [experiment-requests.mjs](../scripts/experiment-requests.mjs) using the saved industry, experiment type, sample, item, and run ID. For checkout recovery, pass `checkout_cohort.account_ids` from the private plan as `accountIds` in the request builder's private input file. Save the revenue metric if needed, then save the Feature, primary metric, and draft. Return the draft ID.
|
|
58
|
+
|
|
59
|
+
## Report verified results
|
|
60
|
+
|
|
61
|
+
Use the experiment ID, run ID, and replay receipt returned by `experiment-launch`. Check the expected replay events against AE. Match exposures by experiment and group IDs, and outcomes by run ID, sample, item, and event or order IDs. If the expected events are still arriving, wait between read-only checks with bounded backoff and keep polling in the same turn. Reuse the saved receipt for each check.
|
|
62
|
+
|
|
63
|
+
Once ingestion is verified, request the experiment report reads in parallel. Pass `--project-id` and `--exp-id` to each. Refresh `ae-cli experiment report summary` with `--force-refresh true`. For `ae-cli experiment report sample-size` and `ae-cli experiment report metric-trend`, use `--start-time` and `--end-time` for the project-local replay dates and pass `--metric-id` for each trend. The sample dashboard describes the historical growth baseline. Keep replay results scoped to the experiment report.
|
|
64
|
+
|
|
65
|
+
If the sample-size query reports that the project's Atlas exposure view is missing, keep the turn open and rerun the same read-only sample-size query with the same host, project ID, experiment ID, and replay dates. Wait 2 seconds before the first retry, then 5 seconds, then 10 seconds between further checks. Continue until the query succeeds and the sample-size data is available. A repeated missing-view response is still pending. If the gateway only reports temporary report unavailability while the replay events are verified, poll it the same way. Preserve the verified event counts for progress updates while waiting. Use normal report reads throughout and leave view creation and ingestion to their existing workflows.
|
|
66
|
+
|
|
67
|
+
Use the saved assignment receipt for assigned counts, and use query results for exposure, coupon claims, purchases, and order amounts. Match outcome accounts to the verified exposure groups, keep the run and item filters, and deduplicate buyers by account and orders by `order_id`.
|
|
68
|
+
|
|
69
|
+
Use verified distinct buyers divided by exposed users for each arm's payment rate. For checkout recovery, show a compact comparison table with exposure, buyers, payment rate and paid amount. For the coupon scenario, show one A/B purchase-rate chart and the table with assigned and exposed users, coupon claims, buyers, net revenue, costs and profit. Calculate costs from verified unique orders at 50 CNY each. Mark the result as a Demo simulation. If a group has no verified exposure, show its rate as unavailable. For pending reports, read status again without forcing a new refresh. Deliver the result after ingestion and report verification for the replay dates.
|
|
70
|
+
|
|
71
|
+
### Choose the next step
|
|
72
|
+
|
|
73
|
+
Show **View experiment report** with the same `experiment_url` after verification. If an older CLI omits it, use `/#/atlas/experiment/detail?expId=<exp-id>¤tProjectId=<demo-project-id>` in Web, or prepend the verified host in an external agent. On the Web, follow the Skill's journey completion step before delivering the result. If verification stops at a blocker, report the exact blocker and retain the existing run ID and running experiment link.
|
|
74
|
+
|
|
75
|
+
On the Web, end the reply after reporting the verified result or the blocker. The workspace entry is the next step after verified results.
|
|
76
|
+
|
|
77
|
+
In a local agent, present the host's single-choice control in the same turn in either case. Offer **Connect my business data** (**接入我的业务数据** in Chinese). When a native dialog requires two options, add **Not now** (**暂不接入** in Chinese) as the second option.
|
|
78
|
+
|
|
79
|
+
Wait for the customer's selection. To connect business data, run onboarding with the same `--session-id` and `--choice business`. If the customer asks to stop, chooses **Not now**, or dismisses the dialog, retain the run ID and end the turn. Offer the same choices in chat if the host lacks a native dialog tool or the tool call fails.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Import the Demo replay
|
|
2
|
+
|
|
3
|
+
1. The confirmed Demo plan covers exposure, coupon and purchase events in the generated `replay.jsonl`. Resolve the saved Demo project's AppID and receiver from `ae-cli analysis project info get --project-id <demo-project-id>`. Use the generated JSONL and its fingerprinted mapping. Check that exposure uses the built-in event and preset fields and that outcomes use the confirmed sample, item, cohort, and event names.
|
|
4
|
+
2. Convert the combined dataset into a new directory. The generated UTC timestamps use `yyyy-MM-dd HH:mm:ss.SSS`. Conversion writes each timestamp as the top-level `#time` in the same format, with `#zone_offset=0` in the event properties.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
ae-cli data-integration convert --input-file replay.jsonl \
|
|
8
|
+
--mapping replay.mapping.json --output-dir <converted-directory>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
3. Check the manifest has the expected row count and zero quarantined records. Use the confirmed Demo's `/sync_json` Receiver endpoint. Run the command below first with `--dry-run`. Check that the dry run reports one batch and that the file, manifest and destination match the confirmed Demo. Then run the same upload without `--dry-run`. Keep the APPID out of generated files and user-visible logs.
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
ae-cli data-integration upload --ue-file <converted-directory>/valid.ue.jsonl \
|
|
15
|
+
--manifest <converted-directory>/manifest.json --endpoint <receiver-sync-json-url> \
|
|
16
|
+
--appid <appid> --batch-size 1000 --dry-run
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
4. Verify all three event types together with the tracking data tools in `ae-data-integration`. Check the exposure assignment and the five-second offset using the stored run receipt and event UUIDs. Record the verified upload by run ID and reconcile uncertain delivery before any retry. Receiver acceptance alone does not establish persistence or experiment attribution.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# analysis onboarding experiment-launch
|
|
2
|
+
|
|
3
|
+
```sh
|
|
4
|
+
ae-cli analysis onboarding experiment-launch --session-id <session-id> --run-id <run-id> --start-only --format json
|
|
5
|
+
ae-cli analysis onboarding experiment-launch --session-id <session-id> --run-id <run-id> --format json
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
Use the session and run IDs from the confirmed Demo proposal. For checkout recovery, run with `--start-only`. On `upload_experiment_replay`, show the experiment link and immediately run the second command with the same IDs. For the coupon flow, the second command can start and replay in one call. `--dry-run` previews the stages without making changes.
|
|
9
|
+
|
|
10
|
+
Show the returned `experiment_url` as soon as the command confirms running. Use it again as the report link after verification. `phase=complete` means the Receiver accepted the batch. Follow `next_action=verify_experiment_results` in the current turn to wait for ingestion and reports.
|
|
11
|
+
|
|
12
|
+
See [launch handling](demo-operations.md#start-and-replay-the-confirmed-experiment) for resuming an interrupted launch and verifying ingestion.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# analysis onboarding experiment-plan
|
|
2
|
+
|
|
3
|
+
```sh
|
|
4
|
+
ae-cli analysis onboarding experiment-plan --session-id <session-id> --upload-metric-event --format json
|
|
5
|
+
ae-cli analysis onboarding experiment-plan --session-id <session-id> --scenario checkout-recovery --format json
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
Use the active PLG Demo session. Both commands always add the signed-in account to the Demo approvers and return `approver.status` as `ready` or `failed`. The legacy `--prepare-approver` flag is accepted for compatibility. Report an approver preparation failure explicitly and resolve it by rerunning this plan command before offering launch confirmation. The first command is for the default coupon scenario. Its optional `--upload-metric-event` sends one synthetic payment and returns `metric_event`.
|
|
9
|
+
|
|
10
|
+
Use the second command for checkout recovery. It saves the verified checkout cohort and proposal locally and prepares the approver in the Demo project. If it returns `run_checkout_recovery_growth`, run [growth](onboarding_growth.md) for that scenario and retry the plan. If it returns `choose_growth_scenario`, show the returned picker and explain the minimum of two eligible accounts.
|
|
11
|
+
|
|
12
|
+
A ready response returns the proposal, `plan_preview_markdown` for display, and its `run_id` for confirmation. `--dry-run` previews the operation without changing the approver list, sending an event, or saving a plan.
|
|
13
|
+
|
|
14
|
+
See [plan handling](demo-operations.md#present-the-plan) for confirmation and other outcomes.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# analysis onboarding growth
|
|
2
|
+
|
|
3
|
+
Use this command for a growth opportunity or purchase funnel in the active PLG Demo. Reuse the `session_id` from `analysis onboarding run`.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
ae-cli analysis onboarding growth --session-id <session-id> --format json
|
|
7
|
+
ae-cli analysis onboarding growth --session-id <session-id> --scenario checkout-recovery --format json
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Use the first command for **Find a growth opportunity** or a request for the purchase funnel alone. Use the second command when the user selects checkout recovery or asks about players who started checkout and did not pay. Keep the returned `scenario` for [experiment planning](onboarding_experiment_plan.md). Both scenarios share one query and cache.
|
|
11
|
+
|
|
12
|
+
The CLI scopes the query to the session's Demo project, item and sample dates. It uses only seed events in that seven-day window to keep later experiment replay out of the baseline. On `phase=ready`, `single_day` and `multi_day` provide distinct viewers and buyers. `purchase_rates` gives ratios from 0 to 1, or `null` for an empty group. `difference_pp` is in percentage points. `funnel` gives the ordered viewer, checkout and buyer counts.
|
|
13
|
+
|
|
14
|
+
`follow_up_count` counts eligible accounts for the selected scenario. For checkout recovery, `checkout_recovery.unpaid_count` counts accounts that viewed the item, then started checkout, and had no payment for the item in the seed window. `unpaid_rate` divides this count by checkout starters and is `null` when there are none.
|
|
15
|
+
|
|
16
|
+
The account IDs are stored in the private `cohort_path` receipt for the same session and sample. The checkout experiment reads this cohort automatically. Show only aggregate counts in chat.
|
|
17
|
+
|
|
18
|
+
For `poll_demo`, resume `analysis onboarding run` to advance sample preparation. For `retry_growth`, repeat the same growth command after `poll_after_ms`. For `action_required`, report the returned blocker. Use `analysis onboarding run` to select another sample before calling `growth` for it.
|
|
19
|
+
|
|
20
|
+
Use `--dry-run` only to preview the CLI workflow without querying AE. `cached`, `query_ms`, and `elapsed_ms` report cache use and command timings.
|
|
21
|
+
|
|
22
|
+
## Presentation
|
|
23
|
+
|
|
24
|
+
Show the sample and dates with the counts. For `item-coupon`, use `charts.purchase_rate` with viewer and buyer counts and describe the difference as an observed association. For `checkout-recovery`, lead with the checkout starters, unpaid count and rate. Use `charts.funnel` as the main chart. Describe the behavior as checkout without payment.
|
|
25
|
+
|
|
26
|
+
Web uses the native `chart` fence with localized labels. External agents use short inline bars with exact values, or a Markdown table if the host cannot display the bars. Render from the current result without building a file or running another analysis query.
|
|
27
|
+
|
|
28
|
+
Place the returned `evidence.dashboard_url` and `evidence.funnel_report_url` below the chart as clickable links. Include `evidence.purchase_rate_report_url` when pointing to the comparison itself. Web uses the relative product links. If evidence is still preparing, show the result and the next choice immediately. A later normal status or growth response can supply the links once ready.
|
|
29
|
+
|
|
30
|
+
## Follow-up
|
|
31
|
+
|
|
32
|
+
Lead with `follow_up_count` and the target audience. Show one chart from `follow_up_chart` before giving the recommendation and the next choice. In Web, use the native `chart` fence with the returned `type` and `data`. In a local agent, display the returned `markdown` as visible Markdown with its bars and counts. Translate labels only. If the host cannot show the bars, show the same rows and counts in a Markdown table. Reuse the last ready growth response for this sample and scenario. Render inline without creating an asset or issuing an extra analysis query for the chart.
|
|
33
|
+
|
|
34
|
+
With an older CLI, use a Markdown table built from the existing counts. For `checkout-recovery`, show `funnel.checkout`, `funnel.buyers` (paid after checkout), and `checkout_recovery.unpaid_count`. For `item-coupon`, show multi-day unpaid, single-day unpaid, and paid viewers from `multi_day` and `single_day`. If a matching ready result is unavailable in the conversation, resume growth for the selected sample and scenario.
|
|
35
|
+
|
|
36
|
+
For `item-coupon`, compare a full-price reminder with a 20% coupon for multi-day viewers who did not buy. For `checkout-recovery`, compare a reminder leading to item details with one leading directly to checkout for the same unpaid audience. Keep the price and timing the same in that scenario. Compare distinct buyers, payment rate, and paid amount.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# analysis onboarding run
|
|
2
|
+
|
|
3
|
+
Run `ae-cli analysis onboarding run` when the customer starts or resumes AE PLG, or from the platform's active Web onboarding guide. Read the returned `skill_path` and preserve `session_id` for continuation.
|
|
4
|
+
|
|
5
|
+
In an external Agent, the CLI opens new login and authorization pages in the system default browser. If opening fails, give the user the exact returned URL. Web onboarding uses the platform identity and does not open these pages.
|
|
6
|
+
|
|
7
|
+
For local website onboarding, use the customer's production market (`jp`, `kr`, or `us`). If a saved test session cannot resume, keep its original account and start a separate session only when the customer asks to register in a supported production market.
|
|
8
|
+
|
|
9
|
+
Use `interaction.options` as the choices for a user decision and `next_action` for what to run next. A successful sign-in can return `choose_experience` immediately. If Demo evidence links are ready, `evidence` contains links for the current Demo project.
|
|
10
|
+
|
|
11
|
+
Use `ae-cli analysis onboarding run --help` to look up the available flags.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# analysis onboarding status
|
|
2
|
+
|
|
3
|
+
Use `ae-cli analysis onboarding status --session-id <session-id>` only when checking an existing PLG session. The output includes the current next action, browser receipt if applicable, and sample preparation state. To advance, follow the session Skill and run the action the user selected.
|
|
4
|
+
|
|
5
|
+
Use `ae-cli analysis onboarding status --help` to look up the available flags.
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
{
|
|
2
|
+
"industries": {
|
|
3
|
+
"game": {
|
|
4
|
+
"samples": {
|
|
5
|
+
"star-island": {
|
|
6
|
+
"itemId": "starlight-bundle",
|
|
7
|
+
"userCount": 140,
|
|
8
|
+
"experimentTypes": [
|
|
9
|
+
"item-coupon",
|
|
10
|
+
"checkout-recovery"
|
|
11
|
+
],
|
|
12
|
+
"followUpAccountIds": [
|
|
13
|
+
"star-island-user-1",
|
|
14
|
+
"star-island-user-2",
|
|
15
|
+
"star-island-user-3",
|
|
16
|
+
"star-island-user-4",
|
|
17
|
+
"star-island-user-5",
|
|
18
|
+
"star-island-user-6",
|
|
19
|
+
"star-island-user-7",
|
|
20
|
+
"star-island-user-8",
|
|
21
|
+
"star-island-user-9",
|
|
22
|
+
"star-island-user-10",
|
|
23
|
+
"star-island-user-11",
|
|
24
|
+
"star-island-user-12",
|
|
25
|
+
"star-island-user-13",
|
|
26
|
+
"star-island-user-14",
|
|
27
|
+
"star-island-user-15",
|
|
28
|
+
"star-island-user-16",
|
|
29
|
+
"star-island-user-17",
|
|
30
|
+
"star-island-user-18",
|
|
31
|
+
"star-island-user-131",
|
|
32
|
+
"star-island-user-132",
|
|
33
|
+
"star-island-user-133",
|
|
34
|
+
"star-island-user-134",
|
|
35
|
+
"star-island-user-135",
|
|
36
|
+
"star-island-user-136",
|
|
37
|
+
"star-island-user-137",
|
|
38
|
+
"star-island-user-138",
|
|
39
|
+
"star-island-user-139",
|
|
40
|
+
"star-island-user-140"
|
|
41
|
+
],
|
|
42
|
+
"netRevenueMetricId": "plg_net_revenue_star_island"
|
|
43
|
+
},
|
|
44
|
+
"season-pass": {
|
|
45
|
+
"itemId": "season-pass-item",
|
|
46
|
+
"userCount": 120,
|
|
47
|
+
"experimentTypes": [
|
|
48
|
+
"item-coupon",
|
|
49
|
+
"checkout-recovery"
|
|
50
|
+
],
|
|
51
|
+
"followUpAccountIds": [
|
|
52
|
+
"season-pass-user-1",
|
|
53
|
+
"season-pass-user-2",
|
|
54
|
+
"season-pass-user-3",
|
|
55
|
+
"season-pass-user-4",
|
|
56
|
+
"season-pass-user-5",
|
|
57
|
+
"season-pass-user-6",
|
|
58
|
+
"season-pass-user-7",
|
|
59
|
+
"season-pass-user-8",
|
|
60
|
+
"season-pass-user-9",
|
|
61
|
+
"season-pass-user-10",
|
|
62
|
+
"season-pass-user-11",
|
|
63
|
+
"season-pass-user-12",
|
|
64
|
+
"season-pass-user-101",
|
|
65
|
+
"season-pass-user-102",
|
|
66
|
+
"season-pass-user-103",
|
|
67
|
+
"season-pass-user-104",
|
|
68
|
+
"season-pass-user-105",
|
|
69
|
+
"season-pass-user-106",
|
|
70
|
+
"season-pass-user-107",
|
|
71
|
+
"season-pass-user-108",
|
|
72
|
+
"season-pass-user-109",
|
|
73
|
+
"season-pass-user-110",
|
|
74
|
+
"season-pass-user-111",
|
|
75
|
+
"season-pass-user-112",
|
|
76
|
+
"season-pass-user-113",
|
|
77
|
+
"season-pass-user-114",
|
|
78
|
+
"season-pass-user-115",
|
|
79
|
+
"season-pass-user-116",
|
|
80
|
+
"season-pass-user-117",
|
|
81
|
+
"season-pass-user-118",
|
|
82
|
+
"season-pass-user-119",
|
|
83
|
+
"season-pass-user-120"
|
|
84
|
+
],
|
|
85
|
+
"netRevenueMetricId": "plg_net_revenue_season_pass"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"experimentTypes": {
|
|
91
|
+
"item-coupon": {
|
|
92
|
+
"audience": {
|
|
93
|
+
"bucketId": "#account_id",
|
|
94
|
+
"viewEvent": "item_detail_view",
|
|
95
|
+
"minimumViewDays": 2,
|
|
96
|
+
"excludeEvent": "payment_success"
|
|
97
|
+
},
|
|
98
|
+
"durationDays": 7,
|
|
99
|
+
"allocation": 100,
|
|
100
|
+
"currency": "CNY",
|
|
101
|
+
"costPerPaidOrder": 50,
|
|
102
|
+
"otherCosts": 0,
|
|
103
|
+
"arms": {
|
|
104
|
+
"control": {
|
|
105
|
+
"featureValue": "full_price",
|
|
106
|
+
"allocation": 50,
|
|
107
|
+
"price": 100,
|
|
108
|
+
"exposureLimit": 12,
|
|
109
|
+
"couponClaims": 0,
|
|
110
|
+
"paidUsers": 1,
|
|
111
|
+
"name": "Full-price reminder"
|
|
112
|
+
},
|
|
113
|
+
"treatment": {
|
|
114
|
+
"featureValue": "coupon_20",
|
|
115
|
+
"allocation": 50,
|
|
116
|
+
"price": 80,
|
|
117
|
+
"exposureLimit": 12,
|
|
118
|
+
"couponClaims": 8,
|
|
119
|
+
"paidUsers": 7,
|
|
120
|
+
"name": "20% coupon"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"events": {
|
|
124
|
+
"exposure": "te_experiment_exposure",
|
|
125
|
+
"couponClaim": "demo_coupon_claim",
|
|
126
|
+
"payment": "payment_success"
|
|
127
|
+
},
|
|
128
|
+
"exposureProperties": [
|
|
129
|
+
[
|
|
130
|
+
"experiment_id",
|
|
131
|
+
"string",
|
|
132
|
+
"#experiment_id"
|
|
133
|
+
],
|
|
134
|
+
[
|
|
135
|
+
"experiment_group_id",
|
|
136
|
+
"string",
|
|
137
|
+
"#experiment_group_id"
|
|
138
|
+
],
|
|
139
|
+
[
|
|
140
|
+
"is_control_group",
|
|
141
|
+
"boolean",
|
|
142
|
+
"#is_control_group"
|
|
143
|
+
]
|
|
144
|
+
],
|
|
145
|
+
"metrics": [
|
|
146
|
+
{
|
|
147
|
+
"role": "primary",
|
|
148
|
+
"event": "payment_success",
|
|
149
|
+
"aggregation": "user_count",
|
|
150
|
+
"format": "integer"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"role": "secondary",
|
|
154
|
+
"event": "payment_success",
|
|
155
|
+
"aggregation": "sum",
|
|
156
|
+
"property": "amount",
|
|
157
|
+
"format": "float2"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"metricFilters": [
|
|
161
|
+
"plg_sample_id",
|
|
162
|
+
"item_id"
|
|
163
|
+
],
|
|
164
|
+
"runFilter": "demo_run_id",
|
|
165
|
+
"orderKey": "order_id",
|
|
166
|
+
"feature": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"targetPlatform": [
|
|
169
|
+
"client"
|
|
170
|
+
],
|
|
171
|
+
"keyPrefix": "plg_offer",
|
|
172
|
+
"displayName": "Demo offer"
|
|
173
|
+
},
|
|
174
|
+
"experiment": {
|
|
175
|
+
"name": "Demo offer A/B",
|
|
176
|
+
"hypothesis": "An item-specific 20% coupon increases the number of buyers.",
|
|
177
|
+
"atlasType": "feature"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"checkout-recovery": {
|
|
181
|
+
"audience": {
|
|
182
|
+
"bucketId": "#account_id",
|
|
183
|
+
"viewEvent": "item_detail_view",
|
|
184
|
+
"minimumViewDays": 1,
|
|
185
|
+
"checkoutEvent": "checkout_start",
|
|
186
|
+
"excludeEvent": "payment_success"
|
|
187
|
+
},
|
|
188
|
+
"durationDays": 7,
|
|
189
|
+
"allocation": 100,
|
|
190
|
+
"currency": "CNY",
|
|
191
|
+
"costPerPaidOrder": 50,
|
|
192
|
+
"otherCosts": 0,
|
|
193
|
+
"arms": {
|
|
194
|
+
"control": {
|
|
195
|
+
"featureValue": "product_details",
|
|
196
|
+
"allocation": 50,
|
|
197
|
+
"price": 100,
|
|
198
|
+
"paidUsers": 2,
|
|
199
|
+
"name": "Reminder to product details"
|
|
200
|
+
},
|
|
201
|
+
"treatment": {
|
|
202
|
+
"featureValue": "direct_checkout",
|
|
203
|
+
"allocation": 50,
|
|
204
|
+
"price": 100,
|
|
205
|
+
"paidUsers": 4,
|
|
206
|
+
"name": "Reminder directly to checkout"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"events": {
|
|
210
|
+
"exposure": "te_experiment_exposure",
|
|
211
|
+
"payment": "payment_success"
|
|
212
|
+
},
|
|
213
|
+
"exposureProperties": [
|
|
214
|
+
["experiment_id", "string", "#experiment_id"],
|
|
215
|
+
["experiment_group_id", "string", "#experiment_group_id"],
|
|
216
|
+
["is_control_group", "boolean", "#is_control_group"]
|
|
217
|
+
],
|
|
218
|
+
"metrics": [
|
|
219
|
+
{
|
|
220
|
+
"role": "primary",
|
|
221
|
+
"event": "payment_success",
|
|
222
|
+
"aggregation": "user_count",
|
|
223
|
+
"format": "integer"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"role": "secondary",
|
|
227
|
+
"event": "payment_success",
|
|
228
|
+
"aggregation": "sum",
|
|
229
|
+
"property": "amount",
|
|
230
|
+
"format": "float2"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"metricFilters": [
|
|
234
|
+
"plg_sample_id",
|
|
235
|
+
"item_id"
|
|
236
|
+
],
|
|
237
|
+
"runFilter": "demo_run_id",
|
|
238
|
+
"orderKey": "order_id",
|
|
239
|
+
"feature": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"targetPlatform": ["client"],
|
|
242
|
+
"keyPrefix": "plg_checkout",
|
|
243
|
+
"displayName": "Demo checkout recovery"
|
|
244
|
+
},
|
|
245
|
+
"experiment": {
|
|
246
|
+
"name": "Demo checkout recovery A/B",
|
|
247
|
+
"hypothesis": "At the same price, sending checkout abandoners directly to checkout increases the number of buyers.",
|
|
248
|
+
"atlasType": "feature"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|