update_gtm_profile, then call this. If a model already exists it’s left alone unless you pass force: true. If it reports no GTM context yet, record some first, then call again.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
force | boolean | Rebuild even if a model already exists — use when the GTM context has changed. |
Returns
When to call it
- After recording the GTM context with
update_gtm_profile, to create the scoring model. - With
force: truewhen the GTM context has changed and the model should be rebuilt.
Backed by
POST /v2/workspace/scoring-model — the agent setup surface. Shares its implementation with the web GTM Context page. Logged to the Ops page.