upsert_page_context
Create or fully replace a page playbook.
`context` is the page background the **server** injects for the agent — write "who lands on
this page, what they are deciding, what they usually worry about"; do NOT write facts like
prices or quotas (those belong in a knowledge base, which also ranks higher in authority).
`url_pattern` is a glob (`*/pricing`, `*/solutions/*`), matches the path only, ignores query
strings and trailing slashes; without it the page must report the key explicitly. Resolution
order: explicit key > url_pattern > default.
`greeting_mode="generated"` produces the greeting and suggested questions on the fly in the
visitor's language (recommended); `"static"` uses your fixed `greeting` / `questions`.
**This is a full replace**: fields you don't pass fall back to defaults rather than staying
as they are. To change one field, `list_page_contexts` first, merge, then send.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| label | No | ||
| context | No | ||
| greeting | No | ||
| position | No | ||
| questions | No | ||
| is_default | No | ||
| url_pattern | No | ||
| greeting_mode | No | generated |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |