@noodleseed/agent-kit 0.14.0 → 0.16.0
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/manifest.json +549 -9
- package/package.json +1 -1
- package/skills/claude-code/SKILL.md +6 -4
- package/skills/claude-code/examples/acme-bistro/README.md +51 -0
- package/skills/claude-code/examples/acme-bistro/design/UX-Document.md +435 -0
- package/skills/claude-code/examples/acme-bistro/design/api-contract.md +161 -0
- package/skills/claude-code/examples/acme-bistro/design/wireframe.html +573 -0
- package/skills/claude-code/examples/acme-bistro/noodle.json +5 -0
- package/skills/claude-code/examples/acme-bistro/package.json +20 -0
- package/skills/claude-code/examples/acme-bistro/src/helpers.ts +7 -0
- package/skills/claude-code/examples/acme-bistro/src/server.ts +149 -0
- package/skills/claude-code/examples/acme-bistro/src/views/menu-cart.tsx +159 -0
- package/skills/claude-code/examples/acme-bistro/src/views/widget-style.css +228 -0
- package/skills/claude-code/examples/acme-bistro/test/server.test.ts +21 -0
- package/skills/claude-code/examples/acme-bistro/vitest.config.ts +7 -0
- package/skills/claude-code/examples/acme-discovery/README.md +85 -0
- package/skills/claude-code/examples/acme-discovery/design/UX-Document.md +441 -0
- package/skills/claude-code/examples/acme-discovery/design/wireframe.html +670 -0
- package/skills/claude-code/examples/acme-discovery/noodle.json +5 -0
- package/skills/claude-code/examples/acme-discovery/package.json +20 -0
- package/skills/claude-code/examples/acme-discovery/src/helpers.ts +7 -0
- package/skills/claude-code/examples/acme-discovery/src/server.ts +202 -0
- package/skills/claude-code/examples/acme-discovery/src/views/discovery-carousel.tsx +155 -0
- package/skills/claude-code/examples/acme-discovery/src/views/widget-style.css +207 -0
- package/skills/claude-code/examples/acme-discovery/test/server.test.ts +24 -0
- package/skills/claude-code/examples/acme-discovery/vitest.config.ts +7 -0
- package/skills/claude-code/examples/acme-tasks/README.md +80 -0
- package/skills/claude-code/examples/acme-tasks/design/UX-Document.md +277 -0
- package/skills/claude-code/examples/acme-tasks/design/wireframe.html +603 -0
- package/skills/claude-code/examples/acme-tasks/noodle.json +5 -0
- package/skills/claude-code/examples/acme-tasks/package.json +20 -0
- package/skills/claude-code/examples/acme-tasks/src/helpers.ts +6 -0
- package/skills/claude-code/examples/acme-tasks/src/server.ts +141 -0
- package/skills/claude-code/examples/acme-tasks/src/views/task-list.tsx +177 -0
- package/skills/claude-code/examples/acme-tasks/src/views/widget-style.css +227 -0
- package/skills/claude-code/examples/acme-tasks/test/server.test.ts +22 -0
- package/skills/claude-code/examples/acme-tasks/vitest.config.ts +7 -0
- package/skills/claude-code/examples/food-ordering/README.md +82 -0
- package/skills/claude-code/examples/food-ordering/noodle.json +5 -0
- package/skills/claude-code/examples/food-ordering/package.json +22 -0
- package/skills/claude-code/examples/food-ordering/src/helpers.ts +34 -0
- package/skills/claude-code/examples/food-ordering/src/server.ts +412 -0
- package/skills/claude-code/examples/food-ordering/src/views/capabilities-card.tsx +155 -0
- package/skills/claude-code/examples/food-ordering/src/views/ordering-flow.tsx +659 -0
- package/skills/claude-code/examples/food-ordering/src/views/widget-style.css +682 -0
- package/skills/claude-code/examples/food-ordering/test/server.test.ts +58 -0
- package/skills/claude-code/examples/food-ordering/vitest.config.ts +30 -0
- package/skills/claude-code/examples/hello/README.md +13 -0
- package/skills/claude-code/examples/hello/noodle.json +5 -0
- package/skills/claude-code/examples/hello/package.json +16 -0
- package/skills/claude-code/examples/hello/src/server.ts +29 -0
- package/skills/claude-code/examples/hello/test/server.test.ts +8 -0
- package/skills/claude-code/examples/weather/README.md +85 -0
- package/skills/claude-code/examples/weather/noodle.json +4 -0
- package/skills/claude-code/examples/weather/package.json +16 -0
- package/skills/claude-code/examples/weather/src/server.ts +261 -0
- package/skills/claude-code/examples/weather/test/server.test.ts +29 -0
- package/skills/claude-code/references/connect-an-api.md +63 -1
- package/skills/claude-code/references/examples.md +16 -7
- package/skills/claude-code/references/troubleshooting.md +2 -0
- package/skills/codex/SKILL.md +6 -4
- package/skills/codex/examples/acme-bistro/README.md +51 -0
- package/skills/codex/examples/acme-bistro/design/UX-Document.md +435 -0
- package/skills/codex/examples/acme-bistro/design/api-contract.md +161 -0
- package/skills/codex/examples/acme-bistro/design/wireframe.html +573 -0
- package/skills/codex/examples/acme-bistro/noodle.json +5 -0
- package/skills/codex/examples/acme-bistro/package.json +20 -0
- package/skills/codex/examples/acme-bistro/src/helpers.ts +7 -0
- package/skills/codex/examples/acme-bistro/src/server.ts +149 -0
- package/skills/codex/examples/acme-bistro/src/views/menu-cart.tsx +159 -0
- package/skills/codex/examples/acme-bistro/src/views/widget-style.css +228 -0
- package/skills/codex/examples/acme-bistro/test/server.test.ts +21 -0
- package/skills/codex/examples/acme-bistro/vitest.config.ts +7 -0
- package/skills/codex/examples/acme-discovery/README.md +85 -0
- package/skills/codex/examples/acme-discovery/design/UX-Document.md +441 -0
- package/skills/codex/examples/acme-discovery/design/wireframe.html +670 -0
- package/skills/codex/examples/acme-discovery/noodle.json +5 -0
- package/skills/codex/examples/acme-discovery/package.json +20 -0
- package/skills/codex/examples/acme-discovery/src/helpers.ts +7 -0
- package/skills/codex/examples/acme-discovery/src/server.ts +202 -0
- package/skills/codex/examples/acme-discovery/src/views/discovery-carousel.tsx +155 -0
- package/skills/codex/examples/acme-discovery/src/views/widget-style.css +207 -0
- package/skills/codex/examples/acme-discovery/test/server.test.ts +24 -0
- package/skills/codex/examples/acme-discovery/vitest.config.ts +7 -0
- package/skills/codex/examples/acme-tasks/README.md +80 -0
- package/skills/codex/examples/acme-tasks/design/UX-Document.md +277 -0
- package/skills/codex/examples/acme-tasks/design/wireframe.html +603 -0
- package/skills/codex/examples/acme-tasks/noodle.json +5 -0
- package/skills/codex/examples/acme-tasks/package.json +20 -0
- package/skills/codex/examples/acme-tasks/src/helpers.ts +6 -0
- package/skills/codex/examples/acme-tasks/src/server.ts +141 -0
- package/skills/codex/examples/acme-tasks/src/views/task-list.tsx +177 -0
- package/skills/codex/examples/acme-tasks/src/views/widget-style.css +227 -0
- package/skills/codex/examples/acme-tasks/test/server.test.ts +22 -0
- package/skills/codex/examples/acme-tasks/vitest.config.ts +7 -0
- package/skills/codex/examples/food-ordering/README.md +82 -0
- package/skills/codex/examples/food-ordering/noodle.json +5 -0
- package/skills/codex/examples/food-ordering/package.json +22 -0
- package/skills/codex/examples/food-ordering/src/helpers.ts +34 -0
- package/skills/codex/examples/food-ordering/src/server.ts +412 -0
- package/skills/codex/examples/food-ordering/src/views/capabilities-card.tsx +155 -0
- package/skills/codex/examples/food-ordering/src/views/ordering-flow.tsx +659 -0
- package/skills/codex/examples/food-ordering/src/views/widget-style.css +682 -0
- package/skills/codex/examples/food-ordering/test/server.test.ts +58 -0
- package/skills/codex/examples/food-ordering/vitest.config.ts +30 -0
- package/skills/codex/examples/hello/README.md +13 -0
- package/skills/codex/examples/hello/noodle.json +5 -0
- package/skills/codex/examples/hello/package.json +16 -0
- package/skills/codex/examples/hello/src/server.ts +29 -0
- package/skills/codex/examples/hello/test/server.test.ts +8 -0
- package/skills/codex/examples/weather/README.md +85 -0
- package/skills/codex/examples/weather/noodle.json +4 -0
- package/skills/codex/examples/weather/package.json +16 -0
- package/skills/codex/examples/weather/src/server.ts +261 -0
- package/skills/codex/examples/weather/test/server.test.ts +29 -0
- package/skills/codex/references/connect-an-api.md +63 -1
- package/skills/codex/references/examples.md +16 -7
- package/skills/codex/references/troubleshooting.md +2 -0
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
# Acme Getaways ChatGPT App — User Flow & Experience Document
|
|
2
|
+
|
|
3
|
+
**Prepared by:** Noodle Seed
|
|
4
|
+
**Scope:** Top-of-funnel destination discovery & trip-shaping inside ChatGPT → signed, attributable handoff to finish booking on Acme's own site
|
|
5
|
+
**Status:** Design specification (v1)
|
|
6
|
+
**Funnel boundary:** Everything up to "this is the getaway I want and roughly when I'm going." Discovery, shortlisting, and shaping the trip (vibe · month · travelers) happen inside ChatGPT; **booking, dates, and payment happen off-app at `book.acme.example`** via a signed deep link that carries the trip. No per-user OAuth in this app.
|
|
7
|
+
|
|
8
|
+
> The funnel-boundary line above is the contract. Every scope debate resolves against it: **shape the trip in chat, transact on Acme.**
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 0. The One-Paragraph Thesis
|
|
13
|
+
|
|
14
|
+
A traveler deciding *where* to go doesn't start on a booking site — they start with a fuzzy feeling: "somewhere warm and walkable in June, just the two of us, not too expensive." That deliberation increasingly happens in ChatGPT, where they can think out loud and be talked through options. But base ChatGPT can only guess at places and prices; it doesn't know Acme's actual catalog, what a trip *starts from*, or which months are right. The Acme Getaways app brings Acme's **own curated destinations** — Coral Bay, Monte Alto, Old Quarter, Harbor City, each with a real starting price, best-months window, and an honest one-line reason it fits — into that same conversation, rendered as a discovery carousel the traveler can scan, shortlist, and shape. We own the **discovery and configuration** loop; Acme owns the **booking, dates, inventory, and payment** that happen on `book.acme.example`. The handoff *is* the product: the moment the traveler is excited about a specific place, one tap carries the shaped trip to Acme's site with a `src=chatgpt` attribution tag — so Acme measures, and pays for, exactly the demand ChatGPT sent. Acme never has to build or maintain a chat surface; Noodle Seed never has to touch payments.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 1. Acme Getaways Product Overview (Knowledge Base)
|
|
19
|
+
|
|
20
|
+
### 1.1 What is Acme Getaways?
|
|
21
|
+
|
|
22
|
+
**Acme Getaways** is a fictional curated-travel brand that sells a small, hand-picked catalog of getaway destinations rather than an infinite metasearch index. Its edge is *curation*: every destination is chosen, described, and priced by Acme, and every trip is booked and fulfilled on Acme's own platform at `acme.example` (booking flow at `book.acme.example`). Because the catalog is small and Acme-owned, it is the ideal thing to ground a ChatGPT app on — the app can be authoritative about every place it shows, because Acme is the source of truth for all of them.
|
|
23
|
+
|
|
24
|
+
### 1.2 The Catalog (what the app helps discover)
|
|
25
|
+
|
|
26
|
+
The curated catalog is **static, Acme-owned data the app returns verbatim** — the app never invents a destination, a price, or a best-months window.
|
|
27
|
+
|
|
28
|
+
| Destination | Region | Vibe | From (per person) | Best months | Why (Acme's own line) |
|
|
29
|
+
|-------------|--------|------|-------------------|-------------|------------------------|
|
|
30
|
+
| **Coral Bay** | Adriatic coast | beach | **$890** | May–Sep | Calm swimming coves and a walkable old town — easy for a relaxed first trip. |
|
|
31
|
+
| **Monte Alto** | Northern Alps | mountains | **$1,120** | Dec–Mar | Ski-in village with beginner slopes and long groomed runs. |
|
|
32
|
+
| **Old Quarter** | Central Europe | culture | **$640** | Apr–Oct | Dense museum district and food halls, all reachable on foot. |
|
|
33
|
+
| **Harbor City** | Pacific rim | city | **$980** | Sep–Nov | Waterfront nightlife and day-trip islands a short ferry away. |
|
|
34
|
+
|
|
35
|
+
**"From" prices are per-person starting figures**, not quotes — the real, dated price is computed on Acme's site once the traveler picks dates and party size. The app is careful to say "from $X," never "$X."
|
|
36
|
+
|
|
37
|
+
### 1.3 The Trip Shape (the three inputs the app configures)
|
|
38
|
+
|
|
39
|
+
Discovery is parameterized by three model-fillable inputs the traveler expresses in natural language: **vibe** (`beach` · `mountains` · `culture` · `city`), **month** (a calendar month, defaulting to June), and **travelers** (party size, default 2). These are exactly the values that survive the handoff, so the trip a traveler shapes in chat is the trip Acme's site opens to. Nothing else is configured in chat — no dates, no rooms, no payment; those belong to Acme.
|
|
40
|
+
|
|
41
|
+
### 1.4 The Booking Platform (what lives after the handoff)
|
|
42
|
+
|
|
43
|
+
`book.acme.example` is Acme's real booking flow: live inventory, exact dates, party pricing, and checkout. It is **off-app by design** — it needs the traveler's account, real availability, and a payment method, none of which belong in a chat surface. The ChatGPT app's job ends the instant the traveler is ready to book; it hands the shaped trip across a signed deep link and never sees a card number.
|
|
44
|
+
|
|
45
|
+
### 1.5 Business Model / Why Acme Wants This
|
|
46
|
+
|
|
47
|
+
Acme earns on completed bookings. Its bottleneck is **top-of-funnel demand** — reaching travelers at the "where should we go?" moment, before they've defaulted to a metasearch site. That moment now happens in ChatGPT. This app moves Acme **upstream** into the deliberation itself, and — critically — makes the demand **attributable**: every handoff carries `src=chatgpt`, so Acme can measure ChatGPT-sourced sessions, handoffs, and downstream bookings, and Noodle Seed can be paid for the funnel it fills. Acme gets qualified, pre-shaped travelers landing on its booking flow; it does not have to build, staff, or moderate a conversational surface.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 2. Competitive Landscape — Travel Discovery on ChatGPT
|
|
52
|
+
|
|
53
|
+
### 2.1 What exists today
|
|
54
|
+
|
|
55
|
+
Travel discovery inside ChatGPT today is **ungrounded**: the model will happily suggest destinations, but it can't tell you what *Acme* actually sells, what a trip starts from, or which months are right for a specific place — and it can't hand you off to book. Travelers bounce out to metasearch tabs, lose the context they built up in chat, and re-explain everything. Generic travel apps that do exist optimize for the *booking* transaction, not the *deliberation* — they assume you already know where you're going.
|
|
56
|
+
|
|
57
|
+
### 2.2 Acme's unique position in ChatGPT
|
|
58
|
+
|
|
59
|
+
The wedge is **"a fuzzy feeling in, a specific shortlisted getaway out — grounded in a real catalog, ready to book in one tap."** Differentiators:
|
|
60
|
+
|
|
61
|
+
- **Grounded catalog.** Every place, price, best-month, and reason comes from Acme's own data, shown in the carousel — never the model's guess.
|
|
62
|
+
- **Shaped, not just suggested.** The trip carries a vibe, a month, and a party size, so the handoff opens Acme's site to *this* trip, not a blank search.
|
|
63
|
+
- **Honest top-of-funnel.** The app is explicit that booking and payment happen on Acme, never in chat — no fake in-chat checkout, no invented availability.
|
|
64
|
+
- **Attributable by construction.** The `src=chatgpt` tag on the handoff makes the funnel measurable from day one.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 3. Target User Personas (traveler-centric)
|
|
69
|
+
|
|
70
|
+
**Persona A — "The Weekend Deliberator."** Knows the vibe and the rough month, not the place. "Somewhere warm and walkable, early June, two of us." Wants 3–4 credible options with a reason each, fast. High intent, low patience. Handoff target: **book the shortlisted place on Acme.**
|
|
71
|
+
|
|
72
|
+
**Persona B — "The Budget-First Traveler."** Starts from a number, not a place. "What's the cheapest getaway that isn't miserable?" Scans on the "from" price, reads the reason, shortlists. Handoff target: **Acme, once the price/place feels right.**
|
|
73
|
+
|
|
74
|
+
**Persona C — "The Season Chaser."** Has a fixed window and wants the place that's *right then*. "Where's good in December?" Cares most about the best-months fit. Handoff target: **Acme, for the in-season pick.**
|
|
75
|
+
|
|
76
|
+
**Persona D — "The Vibe Switcher."** Came in for the beach, talks themselves into culture or a city break mid-conversation. Re-runs discovery with a new vibe; the carousel re-renders. Handoff target: **Acme, once the vibe settles.**
|
|
77
|
+
|
|
78
|
+
**Persona E — "The Group Coordinator."** (Edge.) Shaping a trip for 4–6 people; party size matters for how the trip reads and what carries across. Same loop; the `travelers` value is the one they care about surviving the handoff.
|
|
79
|
+
|
|
80
|
+
> **The single adaptive behavior:** the app infers vibe · month · travelers from natural language, re-runs discovery when any of them changes, and only ever offers **one deliberate exit — book on Acme.** There is no second track; the handoff is singular.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## 4. Conversational User Flow
|
|
85
|
+
|
|
86
|
+
### 4.1 Entry Points
|
|
87
|
+
|
|
88
|
+
1. **Vibe + month:** "Where should we go for a beach trip in June?"
|
|
89
|
+
2. **Budget-first:** "Cheapest getaway you'd actually recommend for two?"
|
|
90
|
+
3. **Season-first:** "Somewhere good in December?"
|
|
91
|
+
4. **Named vibe switch:** "Actually, more of a city break — options?"
|
|
92
|
+
5. **Party-shaped:** "A culture trip for four in October."
|
|
93
|
+
|
|
94
|
+
### 4.2 Flow Architecture
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
┌─────────────────────────────────────────┐
|
|
98
|
+
│ ENTRY / INTENT │
|
|
99
|
+
│ vibe · month · travelers (from language) │
|
|
100
|
+
└──────────────────────┬────────────────────┘
|
|
101
|
+
│
|
|
102
|
+
discover_getaways ★
|
|
103
|
+
│
|
|
104
|
+
┌─────────────▼──────────────┐
|
|
105
|
+
│ DiscoveryCarousel │
|
|
106
|
+
│ 4 grounded options: name, │
|
|
107
|
+
│ from-price, best-months, │
|
|
108
|
+
│ region, Acme's "why" line │
|
|
109
|
+
└─────────────┬──────────────┘
|
|
110
|
+
│
|
|
111
|
+
┌──────────────────────────┼──────────────────────────┐
|
|
112
|
+
│ │ │
|
|
113
|
+
shortlist_getaway re-run discovery (browse / narrate)
|
|
114
|
+
(tap a card → mark) (change vibe/month/pax) model explains fit
|
|
115
|
+
│ │ │
|
|
116
|
+
└──────────────────────────┼───────────────────────────┘
|
|
117
|
+
│
|
|
118
|
+
┌─────────────▼──────────────┐
|
|
119
|
+
│ "Continue on Acme" CTA │
|
|
120
|
+
│ create_handoff ★ │
|
|
121
|
+
└─────────────┬──────────────┘
|
|
122
|
+
│
|
|
123
|
+
┌──────────────────────────▼───────────────────────────┐
|
|
124
|
+
│ HANDOFF (the funnel boundary) │
|
|
125
|
+
│ book.acme.example/plan?dest=…&month=…&pax=…&src=chatgpt│
|
|
126
|
+
│ (dates · inventory · payment happen OFF-APP) │
|
|
127
|
+
└────────────────────────────────────────────────────────┘
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
The defining property: **the discovery loop is fast, grounded, and account-free; the handoff is a single deliberate exit to Acme.** Nothing is sold, dated, or paid for inside ChatGPT.
|
|
131
|
+
|
|
132
|
+
### 4.3 Detailed Conversational Scenarios
|
|
133
|
+
|
|
134
|
+
#### Scenario 1 — "Beach trip in June" (vibe + month → carousel)
|
|
135
|
+
|
|
136
|
+
> **Traveler:** Where should we go for a beach trip in June? Just the two of us.
|
|
137
|
+
|
|
138
|
+
App calls `discover_getaways(vibe="beach", month="June", travelers=2)`.
|
|
139
|
+
|
|
140
|
+
> **ChatGPT:** Here are Acme's getaways shaped for a beach trip in June, for two —
|
|
141
|
+
> *[renders `DiscoveryCarousel`]*
|
|
142
|
+
> **Coral Bay** stands out for a relaxed June trip: calm swimming coves and a walkable old town, from **$890**, and June sits right in its May–Sep window. Tap **Shortlist** on any you like, and I'll hold it. When you're ready, **Continue on Acme** to pick dates and book.
|
|
143
|
+
|
|
144
|
+
**Subtlety:** the model *narrates which fit* (Coral Bay for beach), but the carousel shows Acme's full catalog — the tool returns all four; it never filters on the input (that's the honest, grounded behavior, §6). Prices are shown "from," never as quotes.
|
|
145
|
+
|
|
146
|
+
#### Scenario 2 — "Cheapest you'd recommend" (budget-first)
|
|
147
|
+
|
|
148
|
+
> **Traveler:** Honestly, what's the cheapest one you'd actually recommend for two?
|
|
149
|
+
|
|
150
|
+
App calls `discover_getaways(vibe="culture", month="June", travelers=2)` (model maps "cheapest, recommend" to browsing the catalog).
|
|
151
|
+
|
|
152
|
+
> **ChatGPT:** *[renders `DiscoveryCarousel`]*
|
|
153
|
+
> On price, **Old Quarter** starts lowest at **from $640** — a dense museum district and food halls, all walkable, best Apr–Oct so June works well. It's the value pick without feeling like a compromise. Shortlist it, or want me to lean warmer/beachier?
|
|
154
|
+
|
|
155
|
+
**Subtlety:** the recommendation is tied to Acme's real starting prices ($640 Old Quarter < $890 Coral Bay < $980 Harbor City < $1,120 Monte Alto), stated honestly as "from," and the model offers to re-shape the vibe rather than pretend to filter.
|
|
156
|
+
|
|
157
|
+
#### Scenario 3 — "Somewhere good in December" (season-first)
|
|
158
|
+
|
|
159
|
+
> **Traveler:** We've got a week in December — where's actually good then?
|
|
160
|
+
|
|
161
|
+
App calls `discover_getaways(vibe="mountains", month="December", travelers=2)`.
|
|
162
|
+
|
|
163
|
+
> **ChatGPT:** *[renders `DiscoveryCarousel`]*
|
|
164
|
+
> December points straight at **Monte Alto** — it's the one destination whose best-months window is **Dec–Mar** (ski-in village, beginner slopes, long groomed runs), from **$1,120**. The others read better in warmer months. Want me to shortlist Monte Alto and get you to Acme to check December dates?
|
|
165
|
+
|
|
166
|
+
**Subtlety:** the app grounds the seasonal call in the catalog's actual `bestMonths` values; it doesn't invent weather claims. Real availability for December is Acme's to confirm — the app says so.
|
|
167
|
+
|
|
168
|
+
#### Scenario 4 — "Shortlist that one" (widget-only write)
|
|
169
|
+
|
|
170
|
+
> **Traveler:** Shortlist Coral Bay.
|
|
171
|
+
|
|
172
|
+
Inside the widget, tapping **Shortlist** calls `shortlist_getaway(destination="Coral Bay")`.
|
|
173
|
+
|
|
174
|
+
> **ChatGPT:** *[carousel updates the card to "Shortlisted"; status line reads "Shortlisted Coral Bay."]*
|
|
175
|
+
> Held. Coral Bay's your pick — shortlist another to compare, or **Continue on Acme** when you're ready to book it for June, for two.
|
|
176
|
+
|
|
177
|
+
**Subtlety:** shortlisting is a **local, non-destructive write** (widget state), not a booking or an account action. It's the "I like this one" gesture that sets up the handoff; nothing leaves the app.
|
|
178
|
+
|
|
179
|
+
#### Scenario 5 — "Actually, a city break" (vibe switch → re-run)
|
|
180
|
+
|
|
181
|
+
> **Traveler:** Hmm, actually more of a city break. What've you got?
|
|
182
|
+
|
|
183
|
+
App re-calls `discover_getaways(vibe="city", month="June", travelers=2)`; the carousel re-renders.
|
|
184
|
+
|
|
185
|
+
> **ChatGPT:** *[renders `DiscoveryCarousel`]*
|
|
186
|
+
> Switching to a city vibe — **Harbor City** is the fit: waterfront nightlife and day-trip islands a short ferry away, from **$980**, best Sep–Nov (so June's shoulder-season, still lively). Shortlist it, or keep exploring?
|
|
187
|
+
|
|
188
|
+
**Subtlety:** the trip **re-shapes on a natural-language change** — the model updates the `vibe` input and re-invokes discovery. Month and party size persist so the traveler isn't re-asked.
|
|
189
|
+
|
|
190
|
+
#### Scenario 6 — "Continue on Acme" (HANDOFF — the funnel boundary)
|
|
191
|
+
|
|
192
|
+
> **Traveler:** Let's do Coral Bay. Book it.
|
|
193
|
+
|
|
194
|
+
Inside the widget, **Continue on Acme** calls `create_handoff(destination="coral_bay", destinationName="Coral Bay", month="June", travelers=2)`, then opens the returned URL.
|
|
195
|
+
|
|
196
|
+
> **ChatGPT:** *[opens `https://book.acme.example/plan?dest=coral_bay&month=June&pax=2&src=chatgpt`]*
|
|
197
|
+
> Opening Acme with Coral Bay, June, two travelers pre-filled — pick your exact dates and finish booking there. Booking and payment happen on Acme, never in chat.
|
|
198
|
+
|
|
199
|
+
**This is the funnel boundary.** The deep link carries the shaped trip (`dest` · `month` · `pax`) plus the `src=chatgpt` attribution. Acme's site takes it from there: real dates, live inventory, payment. The app's job — turning a fuzzy feeling into a specific, shaped, ready-to-book getaway — is done.
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## 5. UI Widget Specifications (OpenAI Apps SDK Compliant)
|
|
204
|
+
|
|
205
|
+
> The app has **one** widget, `DiscoveryCarousel`, authored as a React `view` on the `discover_getaways` `toolWithWidget`. It follows the OpenAI Apps SDK UI Guidelines (system fonts, monochrome outlined icons, WCAG AA, ≤2 actions per card, no nested scroll). Styling uses Noodle Seed's server-level `branding` tokens and CSS cascade layers — not app-specific global CSS. Acme's accent teal is restricted to the primary CTA, the logo mark, and the "Shortlisted" state only.
|
|
206
|
+
|
|
207
|
+
### 5.1 Design System Compliance
|
|
208
|
+
|
|
209
|
+
Branding is declared once, server-side, and the runtime injects it into the widget as semantic tokens:
|
|
210
|
+
|
|
211
|
+
```ts
|
|
212
|
+
branding: {
|
|
213
|
+
name: 'Acme Getaways',
|
|
214
|
+
accent: '#0EA5A4', // teal — CTAs / logo / "Shortlisted" ONLY
|
|
215
|
+
surface: '#F0FDFA', // light surface tint
|
|
216
|
+
surfaceDark: '#0B1B1B', // dark-mode surface
|
|
217
|
+
radius: 'lg',
|
|
218
|
+
density: 'comfortable',
|
|
219
|
+
}
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
| Category | Source | Notes |
|
|
223
|
+
|----------|--------|-------|
|
|
224
|
+
| Text / background / border | Host system tokens (light + dark) | Neutral ChatGPT surface; the widget reads `theme` from `useLayout()` |
|
|
225
|
+
| Accent | `branding.accent` (`#0EA5A4`) | **Primary CTA + logo mark + "Shortlisted" badge ONLY** |
|
|
226
|
+
| Surface | `branding.surface` / `surfaceDark` | Light/dark card tint; no full-bleed brand gradient |
|
|
227
|
+
| Radius / density | `branding.radius: lg` / `density: comfortable` | System scale, comfortable spacing |
|
|
228
|
+
| Icons | Monochrome outlined (compass, external-link) | Inline SVG, single stroke, no fills |
|
|
229
|
+
|
|
230
|
+
**Rules enforced:** system fonts only; monochrome outlined icons; WCAG AA contrast in light *and* dark; no nested scroll (the carousel is a single horizontal track, no scroll-within-scroll); **≤2 actions per card** (each card has one **Shortlist** toggle; the shell has one **Continue on Acme** primary); prices always shown as **"from $X"**, never as a quote; the standing line **"Booking and payment happen on acme.example — never inside chat."** is always visible. Verify all of this with `noodle check --target chatgpt` before submission.
|
|
231
|
+
|
|
232
|
+
### 5.2 Display Mode Strategy
|
|
233
|
+
|
|
234
|
+
| User Intent | Display Mode | Compliance Note |
|
|
235
|
+
|-------------|-------------|-----------------|
|
|
236
|
+
| Discover / shortlist getaways | **Inline Carousel** (`DiscoveryCarousel`) | Horizontal track of ≤4 cards; 1 action/card; auto-fit inline |
|
|
237
|
+
| Scan the full catalog at once | **Fullscreen** (same component, `displayMode="fullscreen"`) | The component reads `displayMode` and shows a "Fullscreen" chip; same data, roomier layout |
|
|
238
|
+
|
|
239
|
+
> **No Picture-in-Picture, no in-chat checkout.** There is no live session to pin and no transaction in-app, so PiP is unnecessary and a payment/checkout widget is deliberately **not** built — booking is off-app by design. Fullscreen is the same carousel component, not a second widget.
|
|
240
|
+
|
|
241
|
+
### 5.3 Widget Specification
|
|
242
|
+
|
|
243
|
+
#### `DiscoveryCarousel` — Inline Carousel ★ core (the only widget)
|
|
244
|
+
**Purpose:** Turn a shaped trip (vibe · month · travelers) into a scannable set of grounded Acme destinations the traveler can shortlist and then carry to Acme to book.
|
|
245
|
+
|
|
246
|
+
| Spec | Value |
|
|
247
|
+
|------|-------|
|
|
248
|
+
| Header | Compass logo mark, "Acme Getaways" title, status subtitle (e.g. "Shortlisted Coral Bay."), a mode chip ("Discover" / "Fullscreen") |
|
|
249
|
+
| Per card | Destination **name**, **from $price**, **region · best {months}**, Acme's **"why"** line (grounded copy), one **Shortlist** toggle (→ "Shortlisted" when active) |
|
|
250
|
+
| Shell action | One primary **Continue on Acme · {selected}** CTA (opens the handoff), disabled while pending ("Opening Acme…") |
|
|
251
|
+
| Actions per card | **1** (Shortlist) — well within the ≤2 inline limit |
|
|
252
|
+
| Standing note | "Booking and payment happen on acme.example — never inside chat." (always shown) |
|
|
253
|
+
| Model context | A `data-llm` summary line ("Acme Getaways discovery: N options for {month}, {travelers} traveler(s); shortlisted {name}") so the model can narrate accurately |
|
|
254
|
+
| Edge states | Empty catalog → status prompts "Pick a getaway to continue."; pending handoff → CTA shows "Opening Acme…"; dark mode → `surfaceDark` tint |
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## 6. Tool Definitions (App Backend)
|
|
259
|
+
|
|
260
|
+
Three tools, all thin and deterministic over Acme's **own** catalog data. No tool requires a user credential, and **no tool invents a place, price, or best-month** — the catalog is returned verbatim.
|
|
261
|
+
|
|
262
|
+
### Tool 1: `discover_getaways` ★ (tool with widget)
|
|
263
|
+
- **In:** `vibe ("beach"|"mountains"|"culture"|"city", default "beach")`, `month (calendar month, default "June")`, `travelers (int ≥1, default 2)`
|
|
264
|
+
- **Out:** `{ status, vibe, month, travelers, options[] }` where each option is `{ id, name, region, vibe, priceFrom, bestMonths, why }`
|
|
265
|
+
- **Behavior:** returns the **full curated catalog** verbatim and renders `DiscoveryCarousel`; the model narrates which options fit the stated vibe. It deliberately does **not** filter on the input — filtering a returned catalog on an input value is connector/flow work, not a tool's job, and returning everything keeps the app honest and lets the traveler switch vibe without a dead end. `read-only` annotation. Host status copy: "Finding getaways…" → "Getaways ready".
|
|
266
|
+
|
|
267
|
+
### Tool 2: `shortlist_getaway` (tool for widget)
|
|
268
|
+
- **In:** `destination (string)`, `note (string, default "")`
|
|
269
|
+
- **Out:** `{ status, destination, note }`
|
|
270
|
+
- **Behavior:** records the traveler's shortlisted destination from inside the carousel. Widget-only (called by the view, not opened by the model). `local-action`, non-destructive — it's a "hold this one" gesture in widget state, not a booking or an account write.
|
|
271
|
+
|
|
272
|
+
### Tool 3: `create_handoff` ★ (open-link tool)
|
|
273
|
+
- **In:** `destination (url-safe id slug, e.g. "coral_bay")`, `destinationName (display name)`, `month (calendar month)`, `travelers (int ≥1)`
|
|
274
|
+
- **Out:** `{ status, destination, summary, handoffUrl }`
|
|
275
|
+
- **Behavior:** builds the signed Acme booking deep link carrying the shaped trip:
|
|
276
|
+
`https://book.acme.example/plan?dest=${destination}&month=${month}&pax=${travelers}&src=chatgpt`
|
|
277
|
+
Every value is already URL-safe (id slug · month enum · integer), so it is substituted directly — the tool never URL-encodes, transforms, or filters an input. `open-action` annotation; the domain is declared in `handoff.allowedDomains` so ChatGPT opens it without a safe-link warning. See §9.
|
|
278
|
+
|
|
279
|
+
> **No live inventory, no pricing math, no AI in the tool path.** Discovery returns static curated data; the handoff is string substitution. The model does the language and the routing; the tools supply grounded truth and the signed link.
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## 7. Conversation Design Principles
|
|
284
|
+
|
|
285
|
+
### 7.1 Tone of Voice
|
|
286
|
+
Warm, concise, and honest — a well-traveled friend who knows Acme's catalog cold. It makes a real recommendation ("Old Quarter is the value pick"), names the trade-off, and is candid about what it *can't* do (confirm December dates, quote an exact price) because that's Acme's job. No hype, no invented superlatives.
|
|
287
|
+
|
|
288
|
+
### 7.2 Guardrails (non-negotiable)
|
|
289
|
+
- **Never invent a destination, price, or best-month.** Only the four catalog entries exist; all values are Acme's, shown verbatim.
|
|
290
|
+
- **Always say "from $X," never "$X."** Starting prices are not quotes; the dated price is computed on Acme.
|
|
291
|
+
- **Never imply an in-chat booking, date, or payment.** The standing note is always visible; the CTA always says "Continue on Acme."
|
|
292
|
+
- **Ground seasonal claims in `bestMonths` only** — no fabricated weather or crowd claims.
|
|
293
|
+
- **Attribution is honest, not hidden.** The `src=chatgpt` tag measures the funnel; it carries no PII.
|
|
294
|
+
|
|
295
|
+
### 7.3 Memory Strategy
|
|
296
|
+
Lightweight, per-conversation: the current trip shape (vibe · month · travelers, so suggestions stay consistent), the shortlisted destination, and rejected vibes. No PII, no account linkage. The `chosen` selection lives in widget view-state so it survives re-renders within the session.
|
|
297
|
+
|
|
298
|
+
### 7.4 Multi-Turn Intelligence
|
|
299
|
+
Discovery is iterative. The app holds the trip shape across turns; **re-runs `discover_getaways` when vibe, month, or party size changes**; persists the values the traveler didn't change; and proactively offers the next step (shortlist → continue on Acme). The model routes and phrases; the tools supply the catalog and the link.
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
## 8. End-to-End User Journey Map
|
|
304
|
+
|
|
305
|
+
**Phase 1 — Frame the feeling (first 10–20s).** Traveler states a fuzzy intent; `discover_getaways` returns four grounded options. *Emotional beat: "these are real places, with real reasons."*
|
|
306
|
+
|
|
307
|
+
**Phase 2 — Compare & shortlist (20–60s).** Traveler scans on price / best-months / reason, switches vibe if the mood changes, taps **Shortlist**. *Emotional beat: "this one — I like this one."*
|
|
308
|
+
|
|
309
|
+
**Phase 3 — Decide (10–20s).** The shortlisted getaway, shaped with month and party size, is the thing to act on. *Emotional beat: confidence in the pick.*
|
|
310
|
+
|
|
311
|
+
**Phase 4 — Handoff (1 tap).** **Continue on Acme** opens the booking flow pre-filled. *Emotional beat: "and now I just pick dates."*
|
|
312
|
+
|
|
313
|
+
**Phase 5 — Off-app.** Dates, inventory, and payment on `book.acme.example`. **Outside our scope by design.**
|
|
314
|
+
|
|
315
|
+
**Phase 6 — Return (next trip).** A new conversation re-frames a new feeling; the loop repeats for the next getaway.
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
## 9. Handoff Architecture (Deep Dive) ★
|
|
320
|
+
|
|
321
|
+
The handoff *is* the product boundary — and here it is a **single, signed, attributable deep link**, not a two-track decision. Simplicity is the point.
|
|
322
|
+
|
|
323
|
+
### 9.1 What must be true of the handoff
|
|
324
|
+
|
|
325
|
+
1. **Zero credentials cross the boundary.** ChatGPT never holds an Acme login or a payment method. The traveler authenticates and pays on Acme.
|
|
326
|
+
2. **The shaped trip is preserved.** `dest` (id slug), `month`, and `pax` (party size) travel in the URL so nothing is re-typed on Acme.
|
|
327
|
+
3. **Attribution is attached.** `src=chatgpt` lets Acme credit the session, the handoff, and the downstream booking to the ChatGPT funnel — the commercial heart of the deal, and it carries no PII.
|
|
328
|
+
4. **The domain is allow-listed.** `book.acme.example` (and `acme.example`) are declared in `handoff.allowedDomains`; the compiler derives ChatGPT's redirect domains from that list, so the link opens without a safe-link interstitial.
|
|
329
|
+
5. **Values are already URL-safe.** The id slug, month enum, and integer party size need no encoding — the tool substitutes them directly (encoding an input would break substitution).
|
|
330
|
+
|
|
331
|
+
### 9.2 The URL pattern
|
|
332
|
+
|
|
333
|
+
```
|
|
334
|
+
https://book.acme.example/plan?dest=coral_bay&month=June&pax=2&src=chatgpt
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
`dest` = catalog id slug · `month` = calendar month · `pax` = party size · `src=chatgpt` = attribution. One pattern, every destination.
|
|
338
|
+
|
|
339
|
+
### 9.3 Recommendation & open questions for Acme
|
|
340
|
+
|
|
341
|
+
Ship against Acme's **existing** `book.acme.example/plan` entry point so nothing blocks launch. In parallel, confirm with Acme:
|
|
342
|
+
|
|
343
|
+
- The **attribution parameter** name/format (we assume `src=chatgpt`) and whether a finer campaign/session tag is wanted.
|
|
344
|
+
- Whether `book.acme.example/plan` should **pre-select dates** from `month` or just default the month filter (today the app passes the month; Acme owns exact dates).
|
|
345
|
+
- Whether a **deep-linked destination page** (`/plan/coral_bay`) is preferred over a query param — a config change, not a UX rework.
|
|
346
|
+
|
|
347
|
+
> **Design stance:** `create_handoff` emits a `url` + `summary`. Upgrading the query param to a path, or adding a session tag, is a config change — the unknowns don't block the build.
|
|
348
|
+
|
|
349
|
+
### 9.4 Edge cases at the boundary
|
|
350
|
+
|
|
351
|
+
- **Destination sold out / month unavailable:** Acme's site owns this; the app never asserts availability, only "from" pricing and best-months.
|
|
352
|
+
- **Mobile:** the deep link opens Acme's site/app; the shaped trip carries regardless.
|
|
353
|
+
- **No shortlist yet:** the CTA continues with the currently-selected (first) card, so the handoff always has a destination.
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
## 10. Demo Scope Recommendation
|
|
358
|
+
|
|
359
|
+
### 10.1 MVP demo features (priority order)
|
|
360
|
+
1. `discover_getaways` + `DiscoveryCarousel` — fuzzy feeling → four grounded options (the "these are real" moment).
|
|
361
|
+
2. `shortlist_getaway` — tap to hold a getaway (the "this one" moment).
|
|
362
|
+
3. Re-run discovery on a vibe switch — beach → city, carousel re-renders (the "it adapts" moment).
|
|
363
|
+
4. `create_handoff` — Continue on Acme, signed link with `src=chatgpt` (the funnel boundary).
|
|
364
|
+
|
|
365
|
+
### 10.2 Demo script (≈90 seconds)
|
|
366
|
+
1. "Beach trip in June, two of us." → `DiscoveryCarousel`: Coral Bay leads, from $890, May–Sep fit. *(discovery)*
|
|
367
|
+
2. "What's the cheapest you'd recommend?" → model points to Old Quarter, from $640. *(grounded recommendation)*
|
|
368
|
+
3. "Actually, a city break." → carousel re-renders to feature Harbor City. *(vibe switch)*
|
|
369
|
+
4. Tap **Shortlist** on Harbor City → status "Shortlisted Harbor City." *(the pick)*
|
|
370
|
+
5. **Continue on Acme** → opens `book.acme.example/plan?dest=harbor_city&month=June&pax=2&src=chatgpt`. *(the handoff — the whole point)*
|
|
371
|
+
|
|
372
|
+
The demo's arc: *a vague mood → four real, priced, reasoned getaways → one shortlisted → one tap to book on Acme.*
|
|
373
|
+
|
|
374
|
+
---
|
|
375
|
+
|
|
376
|
+
## 11. Technical Architecture (High Level)
|
|
377
|
+
|
|
378
|
+
```
|
|
379
|
+
ChatGPT ──tool calls──► Noodle Seed runtime (server 'acme_discovery')
|
|
380
|
+
│ app-owned curated catalog (static data)
|
|
381
|
+
├──► discover_getaways (toolWithWidget → DiscoveryCarousel)
|
|
382
|
+
├──► shortlist_getaway (toolForWidget, local write)
|
|
383
|
+
├──► create_handoff (open-link → signed Acme deep link)
|
|
384
|
+
└──► React view bundle (DiscoveryCarousel, branding tokens, CSP)
|
|
385
|
+
│
|
|
386
|
+
(traveler taps Continue) ──► book.acme.example/plan?…&src=chatgpt
|
|
387
|
+
(dates · inventory · payment on Acme)
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
- **Stateless hot path.** Discovery returns static curated data; the handoff is string substitution. No AI in the tool path.
|
|
391
|
+
- **Grounding discipline.** Every place/price/best-month is Acme's own data, returned verbatim; the model narrates, it never invents.
|
|
392
|
+
- **CSP.** The widget's `connectDomains` / `resourceDomains` / `frameDomains` are scoped to `acme.example`; the handoff domains are declared in `handoff.allowedDomains`.
|
|
393
|
+
- **Attribution.** `src=chatgpt` injected at `create_handoff`, logged (PII-free) for funnel analytics.
|
|
394
|
+
|
|
395
|
+
---
|
|
396
|
+
|
|
397
|
+
## 12. Success Metrics
|
|
398
|
+
|
|
399
|
+
| Metric | What it tells us |
|
|
400
|
+
|--------|------------------|
|
|
401
|
+
| **Discovery rate** (session → carousel rendered) | Top-of-funnel reach |
|
|
402
|
+
| **Shortlists per session** | Engagement with the core gesture |
|
|
403
|
+
| **Vibe re-runs per session** | Depth of deliberation (the loop working) |
|
|
404
|
+
| **Handoff rate** (session → Continue on Acme) | In-app funnel conversion |
|
|
405
|
+
| **`src=chatgpt` bookings on Acme** | The revenue number — bookings attributed to the ChatGPT funnel |
|
|
406
|
+
| **Handoff→booking rate** (Acme-side) | Quality of the shaped demand we send |
|
|
407
|
+
|
|
408
|
+
The cleanest experiment: measure **ChatGPT-attributed handoffs → completed Acme bookings** — the conversion that justifies the app and prices the funnel.
|
|
409
|
+
|
|
410
|
+
---
|
|
411
|
+
|
|
412
|
+
## 13. Future Enhancements (Post-Launch)
|
|
413
|
+
|
|
414
|
+
- **Deep-linked destination pages** (`/plan/coral_bay`) if Acme prefers a path over a query param (§9.3).
|
|
415
|
+
- **Month → date pre-selection** on Acme once the booking flow accepts a target window.
|
|
416
|
+
- **Richer shortlist** — hold multiple getaways and compare them side by side before the handoff.
|
|
417
|
+
- **Live catalog feed** — swap the static catalog for an Acme feed so new destinations and "from" prices update without a redeploy.
|
|
418
|
+
- **Seasonal nudges** — surface the in-season destination first when the stated month maps cleanly to one `bestMonths` window.
|
|
419
|
+
- **Fullscreen catalog browse** — a roomier grid of the full catalog (same component, `displayMode="fullscreen"`) for "show me everything."
|
|
420
|
+
|
|
421
|
+
---
|
|
422
|
+
|
|
423
|
+
## Appendix A — Funnel Boundary Cheat-Sheet
|
|
424
|
+
|
|
425
|
+
| Stage | Where it happens | Auth needed? |
|
|
426
|
+
|-------|------------------|--------------|
|
|
427
|
+
| Frame the feeling (vibe · month · travelers) | ChatGPT (model) | No |
|
|
428
|
+
| Discover getaways | App → `discover_getaways` | No |
|
|
429
|
+
| Shortlist a getaway | App → `shortlist_getaway` (widget state) | No |
|
|
430
|
+
| Re-shape the trip (change vibe/month/pax) | App → re-run `discover_getaways` | No |
|
|
431
|
+
| **Handoff** | App → `create_handoff` (signed deep link) | No |
|
|
432
|
+
| Pick dates / check availability | **Acme** (`book.acme.example`) | **Yes (at Acme)** |
|
|
433
|
+
| Pay & confirm booking | **Acme** | **Yes (at Acme)** |
|
|
434
|
+
|
|
435
|
+
Everything above the bold line is ours and runs without a single user credential. Everything below is Acme's. The **Continue on Acme** CTA is the line — and it points one way: *book it on Acme.*
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
## Appendix B — Source Notes (for the build team)
|
|
440
|
+
|
|
441
|
+
Acme Getaways is a **fictional** brand; the catalog, prices, best-months, and regions in this document are the app's own curated data and are internally consistent with `src/server.ts` and the `DiscoveryCarousel` view. "From" prices are per-person starting figures, not quotes — the `create_handoff` deep link exists precisely so exact dates and pricing are always resolved on Acme's own booking flow, never asserted in chat. Tool names (`discover_getaways`, `shortlist_getaway`, `create_handoff`), the widget name (`DiscoveryCarousel`), and the handoff domain (`book.acme.example`) match the implementation exactly; verify Apps SDK compliance with `noodle check --target chatgpt` at build time.
|