@awesomate/hosting-mcp 0.171.49 → 0.171.67

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.
@@ -47,6 +47,12 @@ once (plus `awesomate_get_limits` before any create/change) and cache:
47
47
  ("two of your automations failed this week — want me to look?") before the
48
48
  asked task, then get on with the task. `null` means unknown, never zero —
49
49
  say nothing on null.
50
+ `attention.firstWeek` (only for a new business on its first week path, read
51
+ by the account itself: the owner, or Awesomate staff working in it): `{next: {key, label, line, url} | null, done, of,
52
+ complete}`. When `next` is set, name that step and its `url` ONCE this
53
+ session, after the asked task ("Next on your first week: Your enquiry agent,
54
+ at <url>"), never instead of it. Never start the step for them: each one is
55
+ the owner's own choice in the hub. Absent means no path: say nothing.
50
56
  - **`patExpiresAt`** — within ~7 days, or any 401: re-run the setup prompt at
51
57
  **hub.awesomate.ai/claude → Connect Claude Code** to refresh the token.
52
58
  - **`skill.updateAvailable`** — covers all nine skills; the local files are
@@ -188,6 +194,9 @@ Before you build anything people will see, find the business's brand design syst
188
194
  5. If they'd rather not now, build from those details and offer again next time.
189
195
 
190
196
  What makes a good one, and the tokens to start from: the awesomate-app-builder skill's `references/design-system.md`.
197
+ Designing the pages, motion, and the critique to run before the owner sees a page: that skill's
198
+ `references/design-craft.md`, `references/motion.md` and `references/design-critique.md`. They apply to
199
+ WordPress and Elementor builds too.
191
200
 
192
201
  ## Map the business before automating it
193
202
 
@@ -321,12 +330,13 @@ MCP, so say that rather than stopping.
321
330
  | `awesomate_rollback_site` | Restore a snapshot after something went wrong (confirm first) |
322
331
  | `awesomate_site_staging_create` / `_promote` / `_discard` | Private full copy on awesomate.dev to review changes; publish or throw away (§5a) |
323
332
  | `awesomate_run_wp_cli` | **Account owner and Owner-level people only** (anyone else gets 403 `owner_only`: tell them to ask the account owner). The 10 allowlisted WP-CLI verbs only (see below) — plugin/theme list, activate, install-by-slug, update; `cache flush`; `option get`; `post`/`media`/`menu`/`comment`/`user list` |
324
- | `awesomate_wp_settings` | Site title, tagline, timezone, date/time format, posts-per-page, search-engine visibility — THE path for any multi-word value, and it flushes the cache (Support Plus+) |
333
+ | `awesomate_wp_flush` | **Account owner and Owner-level people only.** Clears Elementor's CSS (`what: 'elementor_css'`) or every active page cache plugin's cache (`what: 'page_cache'`), run as the site's user with plugins loaded. Use it when a page still shows an old version after a template, theme or settings change; a post written with `awesomate_wp_post_change` already clears its own cache. A step answering `no_cli` means that plugin has no command here: tell the user to press its Clear cache button in wp-admin. |
334
+ | `awesomate_wp_settings` | Site title, tagline, timezone, date/time format, posts-per-page, search-engine visibility: THE path for any multi-word value, and it flushes the cache (needs `site_manage`) |
325
335
  | `awesomate_elementor_mcp_connect` | A site uses Elementor and pages need building or editing: connects this Claude Code to Elementor's own MCP server on that site (see **Elementor sites** above). Mints an application password; Support Plus+ |
326
336
  | `awesomate_wp_post` | List or search WP posts and pages (`list`, to find an id), read one (`get`). Read-only |
327
- | `awesomate_wp_post_change` | Create/update a WP post or page: drafts by default (Support Plus+) |
328
- | `awesomate_wp_media_import` | Pull an image/file into the WP media library from an https URL (Support Plus+) |
329
- | `awesomate_uninstall_site` | Remove a WordPress install (destructive — confirm explicitly) |
337
+ | `awesomate_wp_post_change` | Create/update a WP post or page (drafts by default) with its author, categories, tags, featured image, SEO title and description, JSON-LD, custom fields, date, parent and template; move a draft to the bin (`trash`). Needs `site_manage` |
338
+ | `awesomate_wp_media_import` | Pull an image/file into the WP media library from an https URL (needs `site_manage`) |
339
+ | `awesomate_uninstall_site` | Remove a WordPress install (destructive: confirm explicitly; Support Plus and above) |
330
340
  | `awesomate_privacy_settings` | Read which privacy/consent toggles are on — explain a 403 `consent_required` precisely (the user flips toggles themselves under Settings → Privacy at hub.awesomate.ai/settings?tab=privacy) |
331
341
  | `awesomate_tasks` | What is waiting on the owner and their team (`list`), a task's record (`history`), and `decisions` (plus one decision's `decision_record`), read only: a person decides them in the hub |
332
342
  | `awesomate_tasks_change` | Giving someone a task (`add`: emailed, and to their linked chats within their quiet hours and daily limit; `urgent: true` only when the user says it can't wait, such as a hot lead or a fault), changing one (`edit`), marking a task done (`done`, only what the user has done), dropping one (`drop`, confirm first), bringing a closed one back (`bring_back`), putting a card off (`not_now` / `cancel_not_now`) and passing a card on (`pass_on`); quotes and approvals stay on their own hub pages |
@@ -371,7 +381,7 @@ A 400 is a policy answer, not a transport hiccup: don't rephrase and retry.
371
381
 
372
382
  | Plan | WP sites | Hosted apps | Custom domains | Shell / Claude Code | Notes |
373
383
  |---|---|---|---|---|---|
374
- | **Essentials** | 1 | 0 | 1 | **No** | read/status + upgrade nudges only |
384
+ | **Essentials** | 1 | 0 | 1 | **No** | read/status; WordPress changes from Claude once `site_manage` is on |
375
385
  | **Support Plus** | 2 | 5 | 5 | **Yes** | shell, WP-CLI, snapshot/rollback, deploy, app builder |
376
386
  | **Pro** | 10 | 20 | 20 | **Yes** | + higher limits |
377
387
  | **Embedded** | 100 | 100 | 100 | **Yes** | agency tier, not generally available |
@@ -384,7 +394,7 @@ recommended plan instead.
384
394
 
385
395
  ## 2. Branch by capability
386
396
 
387
- ### Essentials (no shell) — read, report, nudge
397
+ ### Essentials (no shell): read, report, and change WordPress when `site_manage` is on
388
398
 
389
399
  Allowed: `awesomate_get_context`, `_get_hosting_status` (hosting stats),
390
400
  `_get_hosting_account`, `_list_sites`, `_list_domains`, `_get_limits` (plan
@@ -393,22 +403,33 @@ ladder), the other reads (`_dns_check`, `_site_uptime`, `_notifications`,
393
403
  `_dashboard_metrics`, `_account_report`, `_privacy_settings`), and 1-click
394
404
  WP-admin / cPanel SSO links. Billing/plan changes: §4.
395
405
 
396
- Never attempt SSH, WP-CLI, snapshot/rollback, staging, deploy, multi-site —
397
- those tools will 403. Instead, surface the specific limit and what
398
- Support Plus/Pro unlocks (§4), and link the hub billing page.
399
-
400
- **The plan table's "1 site / 1 custom domain" is not a Claude allowance.**
401
- On Essentials, a PAT is read-and-advise: `awesomate_site_create`,
402
- `awesomate_domain_add` and every WordPress write (`awesomate_wp_post_change`,
403
- `awesomate_wp_media_import`, `awesomate_wp_settings`,
404
- `awesomate_run_wp_cli`, `awesomate_elementor_mcp_connect`) return **403 `upgrade_required`** — the server
405
- enforces it, so no phrasing gets past it. That site and that domain are
406
- real; they are created and changed **in the hub UI at
407
- hub.awesomate.ai/sites**, by the user, with deliberate clicks. Say exactly
408
- that rather than letting them discover it as a failure: *"Your plan lets me
409
- read and advise on your hosting. Creating the site itself is a couple of
410
- clicks at hub.awesomate.ai/sites — I'll walk you through it — or Support
411
- Plus lets me do it from here."*
406
+ Never attempt SSH, deploy, multi-site, hosted apps,
407
+ `awesomate_elementor_mcp_connect` or `awesomate_uninstall_site`: those are
408
+ Support Plus and above and will 403, whatever `site_manage` says. Surface the specific limit and what Support Plus/Pro unlocks (§4), and
409
+ link the hub billing page.
410
+
411
+ **WordPress changes from Claude follow `features.site_manage`** in
412
+ `awesomate_get_context`. When it is available on Essentials (Awesomate turns
413
+ it on account by account), you may create the site and add the domain within
414
+ the plan's counts, and use `awesomate_wp_post_change`,
415
+ `awesomate_wp_media_import`, `awesomate_wp_settings` and `awesomate_run_wp_cli`
416
+ (account owner only) with the same guardrails as every plan. Snapshots and
417
+ staging follow `capabilities.shell`: when it is false, do not call them; say
418
+ you cannot take a restore point from here and get the owner's yes before
419
+ changing the live site.
420
+
421
+ **When `site_manage` is not available, the plan table's "1 site / 1 custom
422
+ domain" is not a Claude allowance.** A PAT is then read-and-advise:
423
+ `awesomate_site_create`, `awesomate_domain_add` and every WordPress write
424
+ are refused (403 `upgrade_required`, or `feature_unavailable` with its own
425
+ message): the server enforces it, so no phrasing gets past it. That site and that domain are real; they are created and changed
426
+ **in the hub UI at hub.awesomate.ai/sites**, by the user, with deliberate
427
+ clicks. Say exactly that rather than letting them discover it as a failure:
428
+ *"Your plan lets me read and advise on your hosting. Creating the site itself
429
+ is a couple of clicks at hub.awesomate.ai/sites (I'll walk you through it),
430
+ or Support Plus lets me do it from here."* That line is for
431
+ `upgrade_required`; for `feature_unavailable`, say its message instead and
432
+ never pitch an upgrade.
412
433
 
413
434
  ### Support Plus and above (shell) — full workflow
414
435
 
@@ -439,10 +460,22 @@ at it. Their dev copy is invisible to Google and AI crawlers by policy.
439
460
  `awesomate_wp_post_change` creates DRAFTS by default — never pass
440
461
  `status: 'publish'` unless the user has seen the content or explicitly said
441
462
  to publish.
442
- - **Scripts in page content don't last.** `awesomate_wp_post_change` writes as
443
- WP-CLI with no WordPress user, which skips WordPress's HTML filter, so a
444
- `<script>` survives that write; the next save by anyone without permission
445
- to add scripts (an Author, a site that bans them) silently removes it. For an
463
+ - **Publish checklist.** Draft first with everything the post needs in one
464
+ call (author, categories, featuredImage, `seo {title, description}`, and
465
+ `jsonLd` when it has structured data), show the owner the draft, publish
466
+ only on their yes, then read the answer's `live` block: canonical and
467
+ og:url should be the post's own address and it should be in the sitemap.
468
+ Pass on any `warnings` (an author fallback, no SEO plugin on, the site's
469
+ own Cloudflare caching the page). Set a site's usual author once with
470
+ `awesomate_wp_settings {defaultAuthor}` rather than on every post.
471
+ `trash` moves a draft (or a post waiting for review) to the bin, where it
472
+ can be restored: still ask the owner first, naming the post, as with any
473
+ deleting.
474
+ - **Scripts in page content don't last.** `awesomate_wp_post_change` saves as
475
+ the post's author (the site's first administrator when none is set), with
476
+ the site's plugins loaded; an author without permission to add scripts has
477
+ `<script>`, iframes and embeds stripped on that save, and the next save by
478
+ anyone without that permission removes a script that did survive. For an
446
479
  Awesomate form use `[awesomate_form key="fk_..."]` (the hub adds the plugin
447
480
  that draws it); for anything else, a plugin or the theme, never a pasted script.
448
481
  - **Confirm before destructive actions** — `awesomate_rollback_site`,
@@ -485,8 +518,11 @@ confirm that one explicitly before setting it.
485
518
  Before any create action (install a site, add a domain, a heavy build) call
486
519
  `awesomate_get_limits`. On `approaching`/`exceeded`, or a plan-reason 403:
487
520
 
488
- 1. Explain plainly what they've hit and what the next plan unlocks (the
489
- nudge's `recommendedPlan`; `awesomate_get_plan_features` has the live ladder).
521
+ 1. Explain plainly what they've hit, in one line, as it happens. What the
522
+ next plan unlocks (the nudge's `recommendedPlan`; `awesomate_get_plan_features`
523
+ has the live ladder) follows the "Plans and upgrades" rules in the
524
+ awesomate-support skill: once a session, at a natural stop, with the price,
525
+ what it does not do and the cheaper path first.
490
526
  2. To change plan, deep-link `https://hub.awesomate.ai/billing`
491
527
  (`?upgrade=<plan>` preselects). No billing tool exists in this MCP —
492
528
  **never** trigger a charge, downgrade, or cancellation yourself; upgrades,
@@ -87,7 +87,8 @@ it runs.
87
87
  If the action reaches a customer (`effect: customer`) or spends money (`effect: money`), the business
88
88
  may hold it for a person's OK before it runs (see [decisions.md](decisions.md)). Claude Code can
89
89
  tighten an action's authority but never loosen it: a loosening is held as it was and becomes the
90
- owner's suggestion in Tasks.
90
+ owner's suggestion in Tasks. Switching off the read-back (`requireApproval: false`) and changing or
91
+ clearing the message input a person deciding reads (`draftInput`) count as loosenings too.
91
92
 
92
93
  ## A workflow your website agent can run
93
94
 
@@ -98,7 +99,10 @@ the user expects a visitor to book something through the chat.
98
99
  With them, an action runs on the website only when it is **ticked** for it (`channels` includes
99
100
  `website`); an empty list still means the phone and the app, never the website. Check where an agent
100
101
  stands with `awesomate_agent_website {agentId}`: each action's `may_run` and, when it may not,
101
- `why_not`, plus `draft_problem` for a tick the owner could not make live.
102
+ `why_not`, plus `draft_problem` for a tick the owner could not make live. You can tick it from
103
+ `awesomate_agents_change` (`update_action` with `channels: ["phone", "website"]`); the tick widens
104
+ what the agent may do, so it is held as it was and the owner gets a suggestion in Tasks. An action on
105
+ the website only is refused (`owner_only_website`), and a skill never takes `website`.
102
106
 
103
107
  - **Inputs from the conversation** (`mode: session`): `conversation_id` (also `call_id`),
104
108
  `contact_id` (the Contacts person saved in this chat), `visitor_email` (set ONLY when the visitor
@@ -120,6 +124,14 @@ stands with `awesomate_agent_website {agentId}`: each action's `may_run` and, wh
120
124
  - An action that reaches a customer may still be held for a person's OK before it runs (see
121
125
  [decisions.md](decisions.md)), so write `say` for the moment it does run.
122
126
 
127
+ The website chat's own settings (actions on, the privacy link, photos, the records it may save, who
128
+ a visitor is handed to) are `set_settings` on `awesomate_agents_change` with `channelSettings.website`.
129
+ Records and the photo field name only fields AI may read in Contacts: `get` and
130
+ `awesomate_agent_website` show only those, `website_fields_hidden` counts the owner's others (they
131
+ stay as they are when you save), and naming any other field is refused as missing. Switching actions
132
+ on, a new saved field, photos, the privacy link and the hand-off widen what the chat may do, so they
133
+ are held as they were and the owner gets a suggestion in Tasks; narrowing applies.
134
+
123
135
  ## Skills
124
136
 
125
137
  A **skill** is written steps for one kind of request ("Booking a service", "Price questions"), with
@@ -30,37 +30,49 @@ social links), titles and meta descriptions must use the owner's confirmed
30
30
  details, never guesses. Leave out anything marked *suggestion* until the owner
31
31
  confirms it, and list what's missing rather than inventing it.
32
32
 
33
- ### Plan gate — check before promising any WordPress change
33
+ ### Plan gate: check before promising any WordPress change
34
34
 
35
- **Every PAT-authenticated hosting WRITE is Support Plus and above**:
35
+ **Every hosting WRITE from Claude follows `site_manage`**:
36
36
  `awesomate_run_wp_cli`, `awesomate_wp_post_change`, `awesomate_wp_media_import`,
37
37
  `awesomate_wp_settings`, plus `awesomate_site_create` and
38
- `awesomate_domain_add`. On **Essentials** they all return **403
39
- `upgrade_required`** — the server enforces it, so no retry or rewording gets
40
- through.
38
+ `awesomate_domain_add`. Read `features.site_manage` and `plan` from
39
+ `awesomate_get_context` at the start. It is always available on Support Plus
40
+ and above; on **Essentials** it is available only once Awesomate turns it on
41
+ for the account. Without it these are refused (**403 `upgrade_required`**,
42
+ or `feature_unavailable` with its own message, which is not an upgrade
43
+ pitch): the server enforces it, so no retry or rewording gets through.
41
44
 
42
45
  This matters more here than anywhere else: **Essentials is the plan that
43
46
  gets exactly one WordPress site**, so it is the most likely plan for someone
44
- asking about SEO. Get `plan` from `awesomate_get_context` at the start and
45
- branch honestly.
47
+ asking about SEO. Branch honestly on what `site_manage` says.
46
48
 
47
- **On Essentials, assume no tool touches their WordPress at all.** Note that
49
+ **`site_manage` available (any plan): apply the changes.** Snapshot first
50
+ with `awesomate_snapshot_site` before the session's first change to a live
51
+ site. When `capabilities.shell` is false (Essentials, or a team member's own
52
+ key), you cannot take a restore point from here: do not call it; say so
53
+ plainly and get the owner's yes before you
54
+ change the live site. Posts land as drafts; publish nothing the owner has
55
+ not seen.
56
+
57
+ **`site_manage` not available: assume no tool touches their WordPress.**
48
58
  `awesomate_run_wp_cli` is gated even for its READS (`option get`,
49
- `plugin list`) — the whole route is behind the write gate, so "just reading
59
+ `plugin list`): the whole route is behind the write gate, so "just reading
50
60
  the options" is not a way round it. The account-level reads do work
51
61
  (`awesomate_get_context`, `awesomate_list_sites`, `awesomate_list_domains`,
52
- `awesomate_dns_check`, `awesomate_site_uptime`, and **`awesomate_site_audit`** —
62
+ `awesomate_dns_check`, `awesomate_site_uptime`, and **`awesomate_site_audit`**:
53
63
  the full gate sweep works on every plan, because it reads the public page).
54
64
 
55
- **What Essentials CAN do — which is most of the value:** audit and advise
56
- from the outside. Start with `awesomate_site_audit` — it runs the whole sweep
57
- in one call and is NOT plan-gated, so an Essentials user gets exactly the same
58
- findings as anyone else. Then produce the exact changes —
59
- the titles and descriptions to paste, the JSON-LD block, the llms.txt
60
- content, which plugin to install and where its settings live. They apply
61
- them in wp-admin; you verify by fetching the live page again. Say that up
62
- front — *"I can audit the site and write every change out for you to paste
63
- in; me making them directly needs Support Plus"* — not after a 403.
65
+ **What every account CAN do, which is most of the value:** audit and advise
66
+ from the outside. Start with `awesomate_site_audit`: it runs the whole sweep
67
+ in one call and is NOT plan-gated, so everyone gets exactly the same
68
+ findings. Then produce the exact changes: the titles and descriptions to
69
+ paste, the JSON-LD block, the llms.txt content, which plugin to install and
70
+ where its settings live. Without `site_manage` they apply them in wp-admin;
71
+ you verify by fetching the live page again. Say that up front (*"I can audit
72
+ the site and write every change out for you to paste in; me making them
73
+ directly needs Support Plus"*), not after a 403. That line is for
74
+ `upgrade_required`; when the refusal is `feature_unavailable`, say its
75
+ message instead and never pitch an upgrade.
64
76
 
65
77
  ## 1. Static / Node — write these
66
78
 
@@ -98,13 +110,14 @@ affected `<head>` tags, `sitemap.xml` `<lastmod>`, and `llms.txt`.
98
110
  attached to which. Ask only when the answer is genuinely ambiguous (more
99
111
  than one site, and the user hasn't said which).
100
112
 
101
- **Snapshot before you change a live site.** `awesomate_snapshot_site` first,
113
+ **Snapshot before you change a live site** (when `capabilities.shell` is
114
+ true; otherwise see the plan gate above). `awesomate_snapshot_site` first,
102
115
  and tell the user the `snapshotId` — the hosting skill requires this and SEO
103
116
  work is exactly the kind of change that touches the whole site at once (a
104
117
  plugin, a theme option, an indexing flag). `awesomate_rollback_site` is the
105
118
  undo.
106
119
 
107
- Then, on Support Plus and above:
120
+ Then, when `site_manage` is available:
108
121
 
109
122
  - **Install + activate an SEO plugin** — `awesomate_run_wp_cli` with args
110
123
  `['plugin','install','wordpress-seo','--activate']` for Yoast, or the
@@ -119,8 +132,12 @@ Then, on Support Plus and above:
119
132
  Don't burn attempts discovering this at runtime.
120
133
  - Confirm the sitemap is live (`/sitemap_index.xml` or `/sitemap.xml`) and
121
134
  `robots.txt` references it — `curl` the live URLs.
122
- - **Posts and pages** via `awesomate_wp_post_change` (drafts first — the user
123
- approves publishing). Useful for the content pages that back up
135
+ - **Posts and pages** via `awesomate_wp_post_change` (drafts first: the user
136
+ approves publishing). Send the SEO title and meta description as
137
+ `seo {title, description}` (saved for Yoast SEO or Rank Math, whichever is
138
+ on), structured data as `jsonLd`, and the featured image as
139
+ `featuredImage`, in the same call; after publishing, check the answer's
140
+ `live` block (canonical, og:url, sitemap). Useful for the content pages that back up
124
141
  `llms.txt` — a services overview, an FAQ, an about page — when the site is
125
142
  thin on machine-readable substance.
126
143
  - **The og:image / logo** goes in via `awesomate_wp_media_import` — one https
@@ -87,6 +87,14 @@ carries `outsidePlan: true` and a `note`. Tell the user what the note says
87
87
  (our team will read it and reply with their options, which include Support
88
88
  Plus), and offer an answer from §1 while they wait.
89
89
 
90
+ **One exception: Essentials with `site_manage`.** When `awesomate_get_context`
91
+ shows plan Essentials and `features.site_manage` available (Claude manages
92
+ their site), a ticket about USING the products is not filed: `create_ticket`
93
+ answers 403 `outside_plan`. Relay its message in one line with the link in `upgradeUrl`, answer from
94
+ §1, and stop. The three
95
+ every-plan categories still file as normal. Do not resend it under another
96
+ category: the same never-relabel rule applies.
97
+
90
98
  Choose the category that is actually true. **Never relabel a workflow
91
99
  question as an outage to move it inside the plan.** That is lying to your
92
100
  own support team about the state of the platform, and it puts a false fault
@@ -168,24 +176,55 @@ to the Awesomate team, who scope, build, test, and deliver it.
168
176
  builds it; progress is visible at hub.awesomate.ai/my-workflows, and
169
177
  the team follows up if anything needs clarifying.
170
178
 
171
- ## 4. Plans and billing — honest, never pushy
179
+ ## 4. Plans and upgrades: honest, at the moment it helps
172
180
 
173
181
  - "What plan am I on?" / "what do I get?" → `awesomate_get_context` for the
174
- live plan (never `awesomate_whoami` — its plan is a cached file that goes
182
+ live plan (never `awesomate_whoami`: its plan is a cached file that goes
175
183
  stale the moment they upgrade), `awesomate_get_plan_features` for what it
176
- includes — report as facts.
177
- - "How much to upgrade?" / "what would X plan give me?" →
178
- `awesomate_get_plan_features` for what the plan includes, then point them
179
- at hub.awesomate.ai/billing to see the price and upgrade. Name the plan once, link, move on.
180
- All purchases happen
181
- in the BROWSER at those links — never take payment details in chat.
184
+ includes. Report as facts.
185
+ - All purchases happen in the BROWSER at the hub's billing page. Never take
186
+ payment details in chat, and never change a plan for the user.
182
187
  - Credits: one currency, $100 each, spendable on an automation or build
183
- request and on Knowledge Base ingestion packs. Say "credits", never "free
188
+ request, a session booked on /book (the hands-on 1:1 support session needs
189
+ Support Plus; any plan can book an onboarding session), and Knowledge Base
190
+ ingestion packs. Say "credits", never "free
184
191
  workflows". If they ask about anything else a credit might buy, check
185
- rather than assume — those are the spend paths that exist.
186
- - If a feature the user wants is on a higher plan, say so once, honestly
187
- ("that's on Support Plus — here's the link if you want it"), then help
188
- fully within what their plan allows. Never manufacture urgency.
192
+ rather than assume.
193
+
194
+ **Explaining a refusal is not a suggestion.** When a call is refused for the
195
+ plan, say so in one line as it happens (what was refused and that the plan
196
+ does not include it). The fuller suggestion follows the rules below.
197
+
198
+ **Never suggest a plan to a team member** (a team member's key, where
199
+ `planFit` is never sent): the plan is the owner's to change.
200
+
201
+ **When to suggest an upgrade:**
202
+
203
+ 1. **Only at a moment of need**: a refusal, a limit at 80% or more, a
204
+ question outside their plan, "can you build this for me" or "who can help",
205
+ you stuck after two honest attempts, or the user asking about plans.
206
+ `awesomate_get_context` carries `planFit` when the account's own usage says
207
+ a plan would help; each reason names its source and fact. A reason whose
208
+ `plan` is null is a cheaper path only: say its `why` and suggest no plan.
209
+ No `planFit` and no moment means no mention.
210
+ 2. **Once a session, at a natural stop.** Unprompted, at most once, never in
211
+ the middle of a task. If their site is down, fix it or raise an our-side
212
+ ticket first.
213
+ 3. **One or two sentences**: the price, what the plan adds for THIS need, and
214
+ what it does not do (`doesNotDo`: Support Plus does not build things for
215
+ you; builds are Pro, quoted in credits). Give the cheaper path first when
216
+ there is one (`cheaperFirst`): you can do it on their plan, an add-on covers
217
+ it, or, on Support Plus and above, a single 1:1 support session on /book would.
218
+ 4. **They decide.** Give the link: `upgradeUrl` from `planFit` or
219
+ `awesomate_get_plan_features`, else the hub's billing page
220
+ (hub.awesomate.ai/billing). Never pressure, never repeat it after a no in
221
+ the same session, never manufacture urgency.
222
+ 5. **Only when asked: "is my plan right for me?"** Review their usage (`awesomate_get_limits`,
223
+ `awesomate_get_context`) and answer honestly: they may be on the right plan,
224
+ or a lower one may do. Only suggest a lower plan when they ask.
225
+
226
+ Never promise failure alerts on any plan: Pro's line is AI error watch, our
227
+ team proposing, reviewing and applying fixes, not an alert.
189
228
 
190
229
  ## 5. Things only these tools can tell you
191
230
 
@@ -216,9 +255,10 @@ to the Awesomate team, who scope, build, test, and deliver it.
216
255
  ## 5b. Writing the business's own help centre
217
256
 
218
257
  Some accounts have a public help centre: help pages for THEIR customers.
219
- `awesomate_help_centre` reads it (`centre`, `articles`, `article`) and
220
- `awesomate_help_centre_change` writes it (`create_topic`, `create_article`,
221
- `update_article`, `publish`, `unpublish`, `archive`). This is not
258
+ `awesomate_help_centre` reads it (`centre`, `articles`, `article`,
259
+ `search`, `ask`) and `awesomate_help_centre_change` writes it
260
+ (`create_topic`, `update_topic`, `create_article`, `update_article`,
261
+ `publish`, `unpublish`, `archive`). This is not
222
262
  Awesomate's help (that is §1), and not the support inbox.
223
263
 
224
264
  - **It needs a key with `help:write`.** No plan gives it; the account
@@ -237,6 +277,17 @@ Awesomate's help (that is §1), and not the support inbox.
237
277
  explicit yes, then `publish` with `confirm: true`. Taking one down
238
278
  (`unpublish`) or archiving it needs a yes and `confirm: true` too. An
239
279
  edit to a published article is not public until it is published again.
280
+ - **Check how it answers.** `search` {q} shows what a visitor typing those
281
+ words finds (published articles only); `ask` {q} shows the centre's
282
+ assistant's answer and sources. `ask` spends one of the business's
283
+ Knowledge answers: say so first, and use it to check answers, not to
284
+ answer the user's own questions. A wrong or missing answer usually means
285
+ an article to write or fix.
286
+ - **Topics can carry an icon** (`create_topic` or `update_topic` with
287
+ `icon`, one of the listed names), drawn beside the topic on the pages.
288
+ - **Help pages a business builds itself** read the centre through the SDK's
289
+ `createHelpClient` (no key; `centre` gives `publicApi` and says whether
290
+ the new design `v2` is on, which it needs).
240
291
  - The centre's settings, its address, topic order and restoring an
241
292
  archived article stay in the hub.
242
293