You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rotates hourly; wpcom accepts both the current and previous hour's token to handle clock skew.
23
+
24
+
**Logged-in users**: Standard Jetpack AI JWT from `/jetpack/v4/jetpack-ai-jwt`.
25
+
26
+
## Request Format
27
+
28
+
JSON-RPC 2.0 with `message/stream` method. The search query goes in the `text` part; site context (site ID, active filters, locale) goes in the `data` part:
29
+
30
+
```json
31
+
{
32
+
"jsonrpc": "2.0",
33
+
"id": "req-1",
34
+
"method": "message/stream",
35
+
"params": {
36
+
"message": {
37
+
"role": "user",
38
+
"parts": [
39
+
{ "type": "text", "text": "how do I reset my password" },
|`chunk`|`{"type":"chunk","text":"…"}`| Answer tokens, appended as they arrive |
65
+
|`done`|`{"type":"done","citations":[{"title":"…","url":"…","excerpt":"…"}]}`| Stream complete; citations as structured list |
66
+
|`error`|`{"type":"error","code":"quota_exceeded","message":"…"}`| Terminal error; overlay hides AI panel |
67
+
68
+
## Quota
69
+
70
+
500 requests per calendar month per site (all plans). Returns `error` with `code: quota_exceeded` when exceeded; overlay falls back to standard search results.
Copy file name to clipboardExpand all lines: projects/packages/search/docs/plans/search-ai-answers-plugin-design.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
The WordPress plugin side of Jetpack Search AI Answers adds two custom post types for site-owner customization, syncs them to wpcom, embeds the auth token for anonymous visitors in the search overlay options, connects the overlay to the wpcom streaming endpoint, and provides an admin UI for managing search behavior and topics.
9
9
10
-
The companion spec for the wpcom API side is `2026-04-21-search-ai-answers-api-design.md`.
10
+
The companion spec for the wpcom API side is `search-ai-answers-api-design.md`.
0 commit comments