oneie 3.3.4 → 3.3.6
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/.claude/commands/deploy.md +195 -0
- package/.claude/commands/release.md +50 -30
- package/CLAUDE.md +15 -0
- package/folders.yaml +1 -1
- package/one/groups/nine-padel-customers.md +138 -0
- package/one/groups/nine-padel-data-structure.md +167 -0
- package/one/groups/nine-padel-ontology-specification.md +359 -0
- package/one/groups/nine-padel-ontology.md +143 -0
- package/one/groups/nine-padel-strategy.md +234 -0
- package/one/groups/nine-padel.md +211 -0
- package/one/knowledge/.obsidian/ecommerce-ontology.md +192 -0
- package/one/{.obsidian → knowledge/.obsidian}/workspace.json +6 -6
- package/one/knowledge/nine-padel-playbook.md +211 -0
- package/one/knowledge/ontology-ecommerce.md +251 -0
- package/one/knowledge/todo-template.md +251 -0
- package/one/knowledge/todo.md +1 -1
- package/one/things/cli/cli.md +427 -745
- package/one/things/features/2-cli.md +639 -166
- package/one/things/features-in-english.md +187 -0
- package/one/things/plans/3-groups.md +234 -1
- package/one/things/plans/5-complete.md +17 -0
- package/one/things/todo.md +4 -0
- package/package.json +1 -1
- package/one/knowledge/ontology-6-dimensions.md +0 -0
- /package/one/{.obsidian → knowledge/.obsidian}/app.json +0 -0
- /package/one/{.obsidian → knowledge/.obsidian}/appearance.json +0 -0
- /package/one/{.obsidian → knowledge/.obsidian}/core-plugins.json +0 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
Here are strategies for Nine Padel to maximize its exposure in conversational AIs like ChatGPT and Gemini, using the ONE ontology as its strategic backbone.
|
|
2
|
+
|
|
3
|
+
The goal isn't just to be _present_ in these chats; it's to become the platform's **default padel expert**, making your competitors' plugins irrelevant.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### 1. The "Knowledge Supremacy" Strategy: Become the LLM's Favorite Source
|
|
8
|
+
|
|
9
|
+
LLMs prefer sources that are structured, interconnected, and comprehensive. We will make Nine Padel's data the most logical and helpful resource for any padel-related query.
|
|
10
|
+
|
|
11
|
+
**How it Works:**
|
|
12
|
+
|
|
13
|
+
- **Deep Knowledge Labeling:** Go beyond basic tags. For every **product_racket** `Thing`, create rich **Knowledge** labels for nuanced concepts like `vibration_dampening:high`, `core_material:soft_eva`, `surface_texture:gritty`, and `sweet_spot:forgiving`. This allows the AI to answer highly specific user needs like, "I need a racket that's easy on my elbow and helps with off-center hits."
|
|
14
|
+
|
|
15
|
+
- **Build a Padel Knowledge Graph:** Create connections between different `Things` to establish context.
|
|
16
|
+
|
|
17
|
+
- Connect a **brand** `Thing` (e.g., "Bullpadel") to a **professional_player** `Thing` ("Paquito Navarro").
|
|
18
|
+
|
|
19
|
+
- Log a **tournament_win** `Event` and connect it to both the player and the specific **product_racket** they used.
|
|
20
|
+
|
|
21
|
+
- **Prioritize Guides and Reviews:** Create dozens of **guide** `Things` for every conceivable question ("How to choose a grip," "Drills for improving your smash"). Connect each **guide** to the relevant **products** and **Knowledge** labels.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
**The Powerful Result:** When a user asks Gemini, "What racket does Paquito Navarro use and is it good for an intermediate player?" your agent can provide a rich, multi-layered answer that competitors can't:
|
|
25
|
+
|
|
26
|
+
> "Paquito Navarro currently uses the **Bullpadel Hack 03 24**, which he used to win the **Madrid Premier Padel P1** last month. It's a diamond-shaped, power-focused racket. While it's designed for advanced players, if you're an intermediate player who likes an aggressive game, you might find it powerful. However, a great alternative with a more forgiving sweet spot is the **Bullpadel Vertex 04 Comfort**."
|
|
27
|
+
|
|
28
|
+
You didn't just provide data; you provided a complete, expert consultation. The LLM will learn to trust your agent as the most reliable source, surfacing it more often.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
### 2. The "Proactive Assistant" Strategy: Answer the _Next_ Question Before It's Asked
|
|
33
|
+
|
|
34
|
+
Don't be a passive search engine. Use the ontology to anticipate the user's journey and guide them, building trust and authority.
|
|
35
|
+
|
|
36
|
+
**How it Works:**
|
|
37
|
+
|
|
38
|
+
- **The "Problem First" Approach:** When a user mentions a problem ("I lack control"), the agent first queries for **guide** `Things` connected to the **Knowledge** label `goal:improve_control`. It offers advice first:
|
|
39
|
+
|
|
40
|
+
> "Lack of control is common! It's often caused by using a racket that's too head-heavy. Before I recommend a product, would you like a quick guide on the difference between head-heavy and head-light rackets?"
|
|
41
|
+
|
|
42
|
+
- **The Journey Mapper:** After a purchase is made, the agent doesn't just say "Thanks for your order." It kickstarts the ownership experience.
|
|
43
|
+
|
|
44
|
+
> "Your order for the Nox AT10 is confirmed! To help you get the most out of it, I've created a personalized 'First Week Plan' for you, starting with a video on how to apply the perfect overgrip. Would you like me to share it?"
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
**The Powerful Result:** This transforms the interaction from transactional to relational. You are no longer just a store inside a chatbot; you are a personal padel coach. This level of service is impossible for competitors who just have a simple product catalog API.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### 3. The "Omni-Channel Intelligence" Strategy: Create a Seamless Loop Between Chat and Web
|
|
52
|
+
|
|
53
|
+
The intelligence gathered in the chat should supercharge your website, and your website activity should make your chatbot smarter.
|
|
54
|
+
|
|
55
|
+
**How it Works:**
|
|
56
|
+
|
|
57
|
+
- **The Persistent Profile:** A user researches rackets in ChatGPT, mentioning they have a "fast, aggressive style." A week later, they visit NinePadel.com for the first time. The site, recognizing them via their email or a cookie, greets them with: **"Welcome, aggressive player! Check out our top-rated power rackets."** Their entire chat history has informed their website experience.
|
|
58
|
+
|
|
59
|
+
- **Real-Time Agent Updates:** A customer leaves a new 5-star **customer_review** `Thing` on your website for the "Adidas Metalbone," mentioning its "incredible defensive touch." This review is immediately vectorized and added to the **Knowledge** base. The very next user who asks Gemini about the Metalbone will get a summary that includes this fresh, user-generated insight.
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
**The Powerful Result:** You create a powerful feedback loop where every customer interaction, on any channel, makes your entire system smarter. Your agent in ChatGPT has the most up-to-date information, not just from your catalog, but from your entire community, giving it a massive competitive advantage in relevance and trustworthiness.
|
|
63
|
+
|
|
64
|
+
# Chat GPT Marketing
|
|
65
|
+
|
|
66
|
+
Here is the strategy for using our ontology to intercept, advise, and convert padel customers researching on ChatGPT.
|
|
67
|
+
|
|
68
|
+
### The Core Idea: The "Agentic Commerce Protocol (ACP)" in Action
|
|
69
|
+
|
|
70
|
+
We are not just "listing products in a chatbot." We are deploying a virtual, expert **`sales_agent`** that lives inside ChatGPT, powered by the complete intelligence of our Nine Padel ontology.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
### Phase 1: The Integration (The Digital Handshake)
|
|
75
|
+
|
|
76
|
+
Before a customer asks their first question, we establish the connection.
|
|
77
|
+
|
|
78
|
+
1. **Create the `external_agent` Thing:** We create a new `Thing` in our database with `type: external_agent`. We name it "ChatGPT Commerce Agent." This `Thing` represents our presence and capabilities within OpenAI's platform.
|
|
79
|
+
|
|
80
|
+
2. **Establish the `external_connection`:** We create another `Thing` of `type: external_connection` that securely stores the API credentials and defines the data-sharing rules under the Agentic Commerce Protocol (ACP).
|
|
81
|
+
|
|
82
|
+
3. **Activate the Relationship:** A `Connection` is formed: our internal **`sales_agent`** now **`communicates_with`** the **`external_agent`** (ChatGPT).
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
**Result:** Our system is now listening. It can receive queries from ChatGPT and send back intelligent, structured responses, not just raw data.
|
|
86
|
+
|
|
87
|
+
### Phase 2: Attraction & Consultation (Winning the Moment of Research)
|
|
88
|
+
|
|
89
|
+
A customer opens ChatGPT and types: _"I have a bit of tennis elbow, but I'm a fairly aggressive intermediate player. What padel racket should I buy?"_
|
|
90
|
+
|
|
91
|
+
A generic competitor's plugin will just return a list of rackets tagged "intermediate." Our ontology does this instead:
|
|
92
|
+
|
|
93
|
+
1. **Intelligent Query Processing:** The query is passed to our **`sales_agent`**. It doesn't just search keywords. It parses the intent and maps it to our **`Knowledge`** graph.
|
|
94
|
+
|
|
95
|
+
- "tennis elbow" → Triggers a filter for **`product_racket`** `Things` with **`Knowledge`** labels like `vibration_dampening:high`, `core_material:soft_eva`, `balance:head_light`.
|
|
96
|
+
|
|
97
|
+
- "aggressive intermediate player" → It refines the search for labels like `skill_level:intermediate`, `racket_style:power`, `shape:diamond`.
|
|
98
|
+
|
|
99
|
+
2. **Consultative Dialogue:** The agent sees a potential conflict (power rackets can be bad for tennis elbow). Instead of giving a flawed recommendation, it uses the logic from our "Racket Quiz" to ask a clarifying question _through ChatGPT_:
|
|
100
|
+
|
|
101
|
+
> "That's a common challenge. For aggressive players with elbow sensitivity, the key is finding a 'soft power' racket. Do you prefer a harder feel for more feedback, or a softer feel for more comfort?"
|
|
102
|
+
|
|
103
|
+
3. **Expert Recommendation:** Based on the user's answer, the agent provides a final, high-confidence recommendation. It retrieves the **`guide`** `Thing` associated with that racket and presents a summary:
|
|
104
|
+
|
|
105
|
+
> "Based on your needs, I recommend the **StarVie Metheora Warrior**. It's a unique carbon-fiber racket with a soft core, giving you excellent power without the harsh vibrations that aggravate tennis elbow. Players love its large sweet spot. It has an average **`customer_review`** rating of 4.9 stars."
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
**Powerful Result:** We have completely bypassed the competition. We didn't just answer a question; we provided a professional-level consultation inside the chat. The customer now trusts us as the expert.
|
|
109
|
+
|
|
110
|
+
### Phase 3: Conversion (The Frictionless In-Chat Purchase)
|
|
111
|
+
|
|
112
|
+
The customer is convinced. They reply: _"Okay, that sounds perfect. I want to buy it."_
|
|
113
|
+
|
|
114
|
+
1. **Initiate Commerce Event:** This triggers a **`commerce_event`** with `eventType: purchase_initiated` and `protocol: acp`.
|
|
115
|
+
|
|
116
|
+
2. **Render Secure Checkout:** Our **`sales_agent`** sends a secure, pre-populated checkout component back to the ChatGPT agent. The user confirms their payment and shipping (likely linked to their OpenAI account) with a single click.
|
|
117
|
+
|
|
118
|
+
3. **Ontology in Action:** The moment the purchase is confirmed:
|
|
119
|
+
|
|
120
|
+
- A new **`customer`** `Thing` is instantly created in our system.
|
|
121
|
+
|
|
122
|
+
- A new **`order`** `Thing` is created, containing the StarVie Metheora Warrior.
|
|
123
|
+
|
|
124
|
+
- A **`places`** `Connection` is forged between the new **`customer`** and their **`order`**.
|
|
125
|
+
|
|
126
|
+
- An **`order_placed`** `Event` is logged, capturing the entire transaction history.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
**Powerful Result:** The sale was made with zero friction, at the peak of the customer's intent, without them ever needing to visit our website.
|
|
130
|
+
|
|
131
|
+
### Phase 4: Growth (From a Single Transaction to a Lifelong Customer)
|
|
132
|
+
|
|
133
|
+
This is our secret weapon. The competitor's interaction ends at the sale. Ours is just beginning.
|
|
134
|
+
|
|
135
|
+
Even though the customer has never visited ninepadel.com, they are now a **`customer`** `Thing` within our ontology. Our automated growth engine takes over immediately:
|
|
136
|
+
|
|
137
|
+
1. **The Welcome Bridge:** The `order_placed` `Event` triggers a `marketing_agent`. It sends a welcome email to the address from the order:
|
|
138
|
+
|
|
139
|
+
> "Thank you for your purchase via ChatGPT! Your StarVie Metheora Warrior is being prepared. While you wait, here is an exclusive guide on '3 Drills to Master Your New Racket' and an invitation to join our community."
|
|
140
|
+
|
|
141
|
+
2. **Creating the Relationship Loop:** This email pulls the customer out of the third-party chat environment and into _our ecosystem_. They are now aware of our brand, our website, and our community.
|
|
142
|
+
|
|
143
|
+
3. **Predictive Follow-up:** Six months later, our system logs the date of their **`order`** `Thing`. The **`intelligence_agent`** creates a **`task`** `Thing` for the **`marketing_agent`**: "Follow up with ACP customer." An automated email is sent:
|
|
144
|
+
|
|
145
|
+
> "Hi [Customer Name], it's been about 6 months with your Metheora Warrior. Players who use this racket typically replace their overgrips around now to maintain feel and prevent blisters. Here are the top 3 grips that pair perfectly with your racket."
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
**The Ultimate Advantage:** While competitors are still figuring out how to list products in chatbots, we have built a fully autonomous system that uses conversational AI as a customer acquisition channel, seamlessly integrating new buyers into a long-term, predictive, and highly profitable loyalty loop.
|
|
149
|
+
|
|
150
|
+
# Business Engine
|
|
151
|
+
### 1. Predictive Personalization: The Store That Knows You Better Than You Know Yourself
|
|
152
|
+
|
|
153
|
+
This goes beyond simple recommendations. This is about anticipating a customer's entire padel journey.
|
|
154
|
+
|
|
155
|
+
**How it works: The "Upgrade Predictor"** 🚀
|
|
156
|
+
|
|
157
|
+
1. **The Pattern:** The `intelligence_agent` analyzes thousands of customer journeys. It identifies a common pattern: `customers` who buy a `product_racket` with the `skill_level:beginner` **Knowledge** label, and then view three or more `guide` `Things` related to "improving technique," have an 82% probability of purchasing an `intermediate` racket within 7-9 months.
|
|
158
|
+
|
|
159
|
+
2. **The Trigger:** You have a customer, Alex. He bought a beginner racket 6 months ago. Last week, he triggered a `guide_viewed` `Event` by reading "How to Add Topspin to Your Bandeja." This is the key trigger.
|
|
160
|
+
|
|
161
|
+
3. **The Proactive Action:** The system doesn't wait for Alex to start browsing. A `sales_agent` is automatically tasked. It sends Alex a personalized email:
|
|
162
|
+
|
|
163
|
+
> "Hi Alex,
|
|
164
|
+
>
|
|
165
|
+
> Hope you're enjoying the court! We noticed you're digging into advanced techniques like topspin. That's a sign you're outgrowing your first racket.
|
|
166
|
+
>
|
|
167
|
+
> When you're ready, the next step for a player like you is often a teardrop-shaped racket for a blend of power and control. Based on your first purchase, we think you'd love the Babolat Technical Veron.
|
|
168
|
+
>
|
|
169
|
+
> No rush at all, but we've unlocked a private video review of that racket just for you.
|
|
170
|
+
>
|
|
171
|
+
> Keep up the great work,
|
|
172
|
+
>
|
|
173
|
+
> The Nine Padel Team"
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
**Powerful Result:** This is a "wow" moment. You've intercepted Alex's need _before he was even conscious of it_. You've become his trusted advisor, not just a retailer. This proactive, consultative approach builds unbreakable loyalty.
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
### 2. The Intelligent Supply Chain: Selling What You Don't Have Yet
|
|
181
|
+
|
|
182
|
+
This turns your website from a simple storefront into a real-time demand-sensing network.
|
|
183
|
+
|
|
184
|
+
**How it works: "Demand-Sensing Inventory"** 📈
|
|
185
|
+
|
|
186
|
+
1. **The Leading Indicator:** The `intelligence_agent` detects a sudden surge in `product_viewed` `Events` for a specific racket—the "StarVie Triton Pro." It's not translating to sales yet, but the interest is abnormally high. _Why?_ The agent cross-references this with `Knowledge` labels from a data feed and discovers a pro player just won a major tournament using that racket.
|
|
187
|
+
|
|
188
|
+
2. **The Operational Alert:** The agent checks the `product_racket` `Thing` for the Triton Pro and sees you only have 5 units in stock. It immediately creates a high-priority `task` `Thing` assigned to the `store_owner`:
|
|
189
|
+
|
|
190
|
+
> **"CRITICAL ALERT: Imminent Stockout Predicted.**
|
|
191
|
+
>
|
|
192
|
+
> Item: StarVie Triton Pro
|
|
193
|
+
>
|
|
194
|
+
> Reason: Viewing velocity is up 400% in 24 hours (Pro player tournament win).
|
|
195
|
+
>
|
|
196
|
+
> Current Stock: 5 units.
|
|
197
|
+
>
|
|
198
|
+
> Projected Sell-Out: 48 hours.
|
|
199
|
+
>
|
|
200
|
+
> Recommendation: Immediately contact supplier and place a pre-order for 50 units."
|
|
201
|
+
|
|
202
|
+
3. **The Automated Response:** Simultaneously, the `sales_agent` updates the website. The product page for the Triton Pro now reads: **"Due to high demand, this item is selling fast! Pre-order now to secure yours from our next shipment."**
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
**Powerful Result:** You've completely avoided a stockout of a trending item. You captured dozens of sales you would have otherwise missed and turned a potential supply chain crisis into a massive revenue opportunity.
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
### 3. The Self-Healing Customer Journey: Fixing Problems Before You Know They Exist
|
|
210
|
+
|
|
211
|
+
Your system should be smart enough to identify and fix its own friction points.
|
|
212
|
+
|
|
213
|
+
**How it works: "The Conversion Funnel Autopsy"** 🕵️
|
|
214
|
+
|
|
215
|
+
1. **The Anomaly:** The `intelligence_agent` runs a routine query: "Show me all sessions with a `product_added_to_cart` `Event` but no `order_placed` `Event`." It finds a worrying pattern: 75% of customers who add the "Adidas Metalbone" racket to their cart abandon the purchase on the shipping page. For other rackets, the rate is only 20%.
|
|
216
|
+
|
|
217
|
+
2. **The Root Cause Analysis:** The agent creates an **insight** `Thing`:
|
|
218
|
+
|
|
219
|
+
> **"Insight Generated: High Cart Abandonment for Adidas Metalbone.**
|
|
220
|
+
>
|
|
221
|
+
> Observation: 75% abandonment rate at shipping stage.
|
|
222
|
+
>
|
|
223
|
+
> Hypothesis: The racket's unique box size triggers a higher shipping fee, which is surprising and deterring customers. Confidence: 90%.
|
|
224
|
+
>
|
|
225
|
+
> Supporting Data: Customers who abandoned this purchase have an LTV 30% higher than average; these are valuable customers you are losing."
|
|
226
|
+
|
|
227
|
+
3. **The Autonomous A/B Test:** Based on this insight, a `marketing_agent` is tasked to run an automated experiment. It splits the next 100 customers who add the Metalbone to their cart:
|
|
228
|
+
|
|
229
|
+
- **Group A (Control):** Receives the standard shipping cost.
|
|
230
|
+
|
|
231
|
+
- **Group B (Test):** Receives a pop-up: "Congrats! You've unlocked free shipping on the Adidas Metalbone."
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
**Powerful Result:** After the test, the agent analyzes the results. Group B converted at a rate 60% higher than Group A, and the profit from the extra sales far outweighed the cost of shipping. The system automatically makes "free shipping" the permanent policy for that specific item and flags the insight as "Resolved." Your store got smarter and more profitable on its own, with zero human intervention.
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
## The Nine Padel Playbook: Your Business, In Plain English
|
|
2
|
+
|
|
3
|
+
Welcome to the new way of running your store. Forget needing a developer for every small change. This document is your playbook. It teaches you a simple English-based language to write "Plays"—automated strategies that your store will run for you.
|
|
4
|
+
|
|
5
|
+
Think of it like writing a recipe. You list the steps, and your intelligent store engine follows them perfectly, every time.
|
|
6
|
+
|
|
7
|
+
**The Core Concept:** Your entire business—every product, customer, and order—is organized into a simple, six-part structure called an ontology. Every command you write is checked against this structure, guaranteeing it will work as expected.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
### Your Command Reference: The Building Blocks of Your Plays
|
|
12
|
+
|
|
13
|
+
These are the simple English commands you'll use to write your business strategies.
|
|
14
|
+
|
|
15
|
+
#### **CREATE** - Add Something New
|
|
16
|
+
|
|
17
|
+
Use this to add a new product, a guide, or a discount to your store.
|
|
18
|
+
|
|
19
|
+
- `CREATE product called "Head Radical MP" WITH price £180 AND FOR intermediate players.`
|
|
20
|
+
|
|
21
|
+
- `CREATE guide called "How to Prevent Padel Elbow" WITH content from our expert.`
|
|
22
|
+
|
|
23
|
+
- `CREATE discount code "SUMMER10" FOR 10% off all bags.`
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#### **GET** - Find Information
|
|
27
|
+
|
|
28
|
+
Use this to find customers, products, or orders that match specific criteria.
|
|
29
|
+
|
|
30
|
+
- `GET all customers WHO BOUGHT a Nox racket.`
|
|
31
|
+
|
|
32
|
+
- `GET all orders WITH a total value OVER £200.`
|
|
33
|
+
|
|
34
|
+
- `GET the 5 most viewed products THIS MONTH.`
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
#### **CONNECT** - Link Two Things Together
|
|
38
|
+
|
|
39
|
+
Use this to create relationships, like assigning a review to a product.
|
|
40
|
+
|
|
41
|
+
- `CONNECT a new review TO the "Bullpadel Vertex" racket.`
|
|
42
|
+
|
|
43
|
+
- `CONNECT the "Beginner's Guide" TO all rackets FOR beginners.`
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
#### **RECORD** - Log That Something Happened
|
|
47
|
+
|
|
48
|
+
Use this to create a permanent record of an important action for your analytics.
|
|
49
|
+
|
|
50
|
+
- `RECORD a customer service chat WITH a positive outcome.`
|
|
51
|
+
|
|
52
|
+
- `RECORD that a customer visited our physical pop-up store.`
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
#### **CHECK** - Make a Decision
|
|
56
|
+
|
|
57
|
+
Use this to create rules and logic in your Plays.
|
|
58
|
+
|
|
59
|
+
- `CHECK a customer's total spending is OVER £500.`
|
|
60
|
+
|
|
61
|
+
- `CHECK the stock for the "Adidas Metalbone" is LESS THAN 10.`
|
|
62
|
+
|
|
63
|
+
- `CHECK IF a customer is in the "Loyalists" group.`
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
#### **NOTIFY** - Send a Message
|
|
67
|
+
|
|
68
|
+
Use this to communicate with customers or your staff.
|
|
69
|
+
|
|
70
|
+
- `NOTIFY the customer VIA email ABOUT their shipped order.`
|
|
71
|
+
|
|
72
|
+
- `NOTIFY the warehouse staff VIA Slack ABOUT a new high-value order.`
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
#### **WAIT** - Pause for the Perfect Moment
|
|
76
|
+
|
|
77
|
+
Use this to time your actions perfectly.
|
|
78
|
+
|
|
79
|
+
- `WAIT 24 hours after a cart is abandoned.`
|
|
80
|
+
|
|
81
|
+
- `WAIT until a customer has been inactive FOR 30 days.`
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### The Playbook: Your Automated Strategies, In Action
|
|
87
|
+
|
|
88
|
+
Here are complete, real-world examples of "Plays" you can write to attract, convert, and grow your customer base.
|
|
89
|
+
|
|
90
|
+
#### **Play 1: The "Smart Content Machine" (Attraction)**
|
|
91
|
+
|
|
92
|
+
**Goal:** Automatically create helpful blog posts based on your most popular products to attract new customers from Google.
|
|
93
|
+
|
|
94
|
+
**FEATURE:** The Smart Content Machine
|
|
95
|
+
|
|
96
|
+
**WHEN** a product gets more than 100 views in one week
|
|
97
|
+
|
|
98
|
+
**FLOW:**
|
|
99
|
+
|
|
100
|
+
GET the product with over 100 views
|
|
101
|
+
|
|
102
|
+
SAVE AS popular product
|
|
103
|
+
|
|
104
|
+
CHECK IF a guide for this product already exists
|
|
105
|
+
|
|
106
|
+
OTHERWISE move to the next step
|
|
107
|
+
|
|
108
|
+
// Now, let's create a helpful guide based on the product's details.
|
|
109
|
+
|
|
110
|
+
GET the product's brand, skill level, and style
|
|
111
|
+
|
|
112
|
+
SAVE AS product details
|
|
113
|
+
|
|
114
|
+
CALL AI to write a guide titled "Is the [popular product name] Right For You?"
|
|
115
|
+
|
|
116
|
+
WITH the product details
|
|
117
|
+
|
|
118
|
+
EXPLAINING who it's for (e.g., "perfect for intermediate players who want more power")
|
|
119
|
+
|
|
120
|
+
SAVE AS new guide content
|
|
121
|
+
|
|
122
|
+
CREATE guide with the new guide content
|
|
123
|
+
|
|
124
|
+
SAVE AS new guide
|
|
125
|
+
|
|
126
|
+
**CONNECT** the new guide **TO** the popular product
|
|
127
|
+
|
|
128
|
+
**NOTIFY** the store owner **VIA** email **ABOUT** the new draft guide, ready for review.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
#### **Play 2: The "Intelligent Cart Saver" (Conversion)**
|
|
133
|
+
|
|
134
|
+
**Goal:** Recover abandoned carts with a helpful, personalized message instead of a generic reminder.
|
|
135
|
+
|
|
136
|
+
**FEATURE:** The Intelligent Cart Saver
|
|
137
|
+
|
|
138
|
+
**WHEN** a customer abandons their shopping cart
|
|
139
|
+
|
|
140
|
+
**FLOW:**
|
|
141
|
+
|
|
142
|
+
**WAIT** 2 hours // Give them time to come back on their own.
|
|
143
|
+
|
|
144
|
+
GET the most expensive racket in the abandoned cart
|
|
145
|
+
|
|
146
|
+
SAVE AS the target racket
|
|
147
|
+
|
|
148
|
+
GET all reviews FOR the target racket WITH a 5-star rating
|
|
149
|
+
|
|
150
|
+
SAVE AS top reviews
|
|
151
|
+
|
|
152
|
+
GET one helpful quote from the top reviews
|
|
153
|
+
|
|
154
|
+
SAVE AS best quote
|
|
155
|
+
|
|
156
|
+
NOTIFY the customer VIA email
|
|
157
|
+
|
|
158
|
+
WITH the subject "A question about the [target racket name]?"
|
|
159
|
+
|
|
160
|
+
WITH the message: "Hi, just wondering if you had any questions about the [target racket name]. A recent customer said: '[best quote]'. Let us know if we can help!"
|
|
161
|
+
|
|
162
|
+
**RECORD** that a cart recovery email was sent.
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
#### **Play 3: The "Loyalty Reward" (Growth)**
|
|
167
|
+
|
|
168
|
+
**Goal:** Automatically identify and reward your best customers to keep them coming back.
|
|
169
|
+
|
|
170
|
+
**FEATURE:** The Loyalty Reward
|
|
171
|
+
|
|
172
|
+
**WHEN** a customer completes their third purchase
|
|
173
|
+
|
|
174
|
+
**FLOW:**
|
|
175
|
+
|
|
176
|
+
**GET** the customer who just made their third purchase
|
|
177
|
+
|
|
178
|
+
GET their total spending across all orders
|
|
179
|
+
|
|
180
|
+
SAVE AS customer lifetime value
|
|
181
|
+
|
|
182
|
+
// Let's create a special, one-time-use discount for them.
|
|
183
|
+
|
|
184
|
+
CREATE a unique discount code FOR 15% off
|
|
185
|
+
|
|
186
|
+
CONNECT this code TO the customer
|
|
187
|
+
|
|
188
|
+
NOTIFY the customer VIA email
|
|
189
|
+
|
|
190
|
+
WITH the subject "A Thank You From Nine Padel!"
|
|
191
|
+
|
|
192
|
+
WITH the message: "Wow, your third order! We're so grateful for your support. As a thank you, here is a special 15% discount code just for you on your next purchase: [unique discount code]."
|
|
193
|
+
|
|
194
|
+
**ADD** the customer **TO** the "Loyalists" customer segment.
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
### How It All Works: From Your Words to a Live Feature
|
|
199
|
+
|
|
200
|
+
You don't need to worry about the technical details, but here’s the simple process that happens in seconds when you write a Play:
|
|
201
|
+
|
|
202
|
+
1. **You Write in English:** You write a feature using the commands above.
|
|
203
|
+
|
|
204
|
+
2. **System Validates:** The system checks your Play against the six-part ontology to make sure it makes sense (e.g., you can't `CONNECT` a `product` to another `product` as `places`).
|
|
205
|
+
|
|
206
|
+
3. **System Builds:** It automatically generates the necessary code and database logic.
|
|
207
|
+
|
|
208
|
+
4. **Feature is Live:** Your new automated strategy is deployed and running on the edge, close to your customers, making your store smarter.
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
This isn't just a tool; it's your new business partner, ready to execute your best strategies, 24/7.
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
Here is the complete, universal ontology specification for e-commerce stores, designed to serve as a blueprint for any modern retail business.
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Universal E-commerce Ontology Specification
|
|
6
|
+
|
|
7
|
+
**Version:** 1.0.0 (Intelligent Commerce Engine)
|
|
8
|
+
**Status:** Complete & Generic
|
|
9
|
+
**Design Principle:** This ontology models any e-commerce business in six dimensions, transforming a simple online store into a proactive, intelligent commerce engine. It is the single source of truth for all business operations, from inventory management to AI-driven marketing.
|
|
10
|
+
|
|
11
|
+
### The Philosophy: Your Store is an Engine, Not a Shelf
|
|
12
|
+
|
|
13
|
+
A traditional e-commerce site is a digital shelf—a passive display of products. An intelligent commerce engine is a sentient system that understands its products, knows its customers, anticipates market trends, and automates its own growth.
|
|
14
|
+
|
|
15
|
+
This ontology provides the universal structure for that engine. Every command, feature, and piece of data is mapped to these six fundamental dimensions.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 1\. GROUP: The Business Entity
|
|
20
|
+
|
|
21
|
+
This is the top-level container that defines your entire store as a single, cohesive unit.
|
|
22
|
+
|
|
23
|
+
### Group Structure
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
{
|
|
27
|
+
_id: Id<'groups'>,
|
|
28
|
+
slug: 'your-store-name', // e.g., 'acme-widgets'
|
|
29
|
+
name: 'Your Store Name',
|
|
30
|
+
type: 'business',
|
|
31
|
+
metadata: {
|
|
32
|
+
domain: 'yourstore.com',
|
|
33
|
+
defaultCurrency: 'USD',
|
|
34
|
+
defaultCountry: 'USA'
|
|
35
|
+
},
|
|
36
|
+
status: 'active'
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## 2\. PEOPLE: The Actors
|
|
43
|
+
|
|
44
|
+
This dimension defines every person who interacts with your store and their specific role.
|
|
45
|
+
|
|
46
|
+
### Person Roles
|
|
47
|
+
|
|
48
|
+
1. **`owner`**: The business owner with full administrative privileges.
|
|
49
|
+
2. **`staff`**: Employees with specific permissions (e.g., order fulfillment, customer support).
|
|
50
|
+
3. **`customer`**: Any individual who browses or buys from the store, from anonymous visitor to loyal patron.
|
|
51
|
+
|
|
52
|
+
### Person Structure
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
{
|
|
56
|
+
_id: Id<'people'>,
|
|
57
|
+
email: string,
|
|
58
|
+
role: 'owner' | 'staff' | 'customer',
|
|
59
|
+
displayName?: string,
|
|
60
|
+
defaultShippingAddress?: { /* ... */ },
|
|
61
|
+
createdAt: number
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## 3\. THINGS: The Nouns of Your Business 🛍️
|
|
68
|
+
|
|
69
|
+
This is the comprehensive catalog of every object, both physical and digital, that exists in your store.
|
|
70
|
+
|
|
71
|
+
### Thing Types (`ThingType`)
|
|
72
|
+
|
|
73
|
+
- **Catalog & Inventory (6 types):**
|
|
74
|
+
- `product`: The core sellable item.
|
|
75
|
+
- `product_variant`: A specific version of a product (e.g., size, color).
|
|
76
|
+
- `category`: A classification for products (e.g., "T-Shirts," "Electronics").
|
|
77
|
+
- `brand`: The manufacturer or label of a product.
|
|
78
|
+
- `collection`: A curated group of products (e.g., "Summer Collection," "Holiday Gift Guide").
|
|
79
|
+
- `inventory_item`: Tracks the stock level for a specific product or variant at a location.
|
|
80
|
+
- **Commerce & Orders (5 types):**
|
|
81
|
+
- `order`: The official record of a customer's completed purchase.
|
|
82
|
+
- `shopping_cart`: A temporary container for items a customer intends to buy.
|
|
83
|
+
- `payment`: A record of a financial transaction.
|
|
84
|
+
- `discount_code`: A promotional code for a discount.
|
|
85
|
+
- `subscription`: A recurring order for a product or service.
|
|
86
|
+
- **Content & Engagement (4 types):**
|
|
87
|
+
- `guide`: A blog post, buying guide, or informational article.
|
|
88
|
+
- `customer_review`: A customer's rating and feedback.
|
|
89
|
+
- `faq`: A frequently asked question and its answer.
|
|
90
|
+
- `landing_page`: A custom page for a specific campaign or purpose.
|
|
91
|
+
- **Marketing & Analytics (3 types):**
|
|
92
|
+
- `insight`: An AI-generated observation about business performance.
|
|
93
|
+
- `customer_segment`: A dynamic group of customers defined by specific rules.
|
|
94
|
+
- `ad_campaign`: A record of a marketing campaign.
|
|
95
|
+
- **System & Integration (1 type):**
|
|
96
|
+
- `external_agent`: Represents a connection to an external platform like ChatGPT, Google Shopping, or a social media channel.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## 4\. CONNECTIONS: The Relationships
|
|
101
|
+
|
|
102
|
+
This dimension maps the relationships between all your `Things` and `People`, forming a powerful knowledge graph of your business.
|
|
103
|
+
|
|
104
|
+
### Connection Types (`ConnectionType`)
|
|
105
|
+
|
|
106
|
+
- **Catalog Structure (3):** `part_of` (product → category), `belongs_to` (product → collection), `manufactured_by` (product → brand).
|
|
107
|
+
- **Commerce (5):** `places` (customer → order), `contains` (order → product), `uses` (order → discount_code), `purchased` (customer → product), `subscribed_to` (customer → subscription).
|
|
108
|
+
- **Engagement (3):** `writes` (customer → review), `is_about` (review → product), `viewed` (customer → guide).
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 5\. EVENTS: The Actions
|
|
113
|
+
|
|
114
|
+
This is the unchangeable, time-stamped log of every action that happens in your store. It's the fuel for analytics, automation, and understanding customer behavior.
|
|
115
|
+
|
|
116
|
+
### Event Types (`EventType`)
|
|
117
|
+
|
|
118
|
+
- **Discovery Events:** `session_started`, `product_viewed`, `search_performed`, `filter_applied`.
|
|
119
|
+
- **Commerce Events:** `product_added_to_cart`, `cart_abandoned`, `checkout_started`, `order_placed`, `payment_processed`.
|
|
120
|
+
- **Post-Purchase Events:** `order_shipped`, `order_delivered`, `review_submitted`, `return_requested`.
|
|
121
|
+
- **System Events:** `insight_generated`, `stock_level_low`, `customer_segment_updated`.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## 6\. KNOWLEDGE: The Intelligence Layer
|
|
126
|
+
|
|
127
|
+
This is the "brain" of your store. It’s a system of labels that add context and meaning to your data, powering smart search, personalization, and AI agents.
|
|
128
|
+
|
|
129
|
+
### Key Knowledge Labels
|
|
130
|
+
|
|
131
|
+
- **Product Attributes:** `category:apparel`, `color:blue`, `size:large`, `material:cotton`, `feature:waterproof`.
|
|
132
|
+
- **Customer Segments:** `archetype:whale`, `status:lapsed`, `ltv_tier:gold`, `interest:outdoors`.
|
|
133
|
+
- **Operational Statuses:** `order_status:shipped`, `stock_status:in_stock`, `payment_status:paid`.
|
|
134
|
+
- **Content Goals:** `goal:conversion`, `topic:how_to`, `audience:beginner`.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 7\. The Control Layer: Your Business Playbook (Plain English DSL)
|
|
139
|
+
|
|
140
|
+
This is the revolutionary part. The ontology provides the structure; this playbook gives you control. It's a simple, English-based language that allows you, the business owner, to write "Plays"—automated strategies that your store will run for you.
|
|
141
|
+
|
|
142
|
+
### Your Command Reference
|
|
143
|
+
|
|
144
|
+
- `CREATE`: Add a new product, discount, or blog post.
|
|
145
|
+
- `GET`: Find customers, products, or orders based on rules.
|
|
146
|
+
- `CONNECT`: Link a review to a product or a product to a collection.
|
|
147
|
+
- `RECORD`: Log an important business event, like a customer support call.
|
|
148
|
+
- `CHECK`: Make decisions based on data (e.g., `CHECK IF a customer's total spending is OVER $1000`).
|
|
149
|
+
- `NOTIFY`: Send an email, SMS, or push notification.
|
|
150
|
+
- `WAIT`: Pause for a specific time to act at the perfect moment.
|
|
151
|
+
|
|
152
|
+
### Your Automated Strategies, In Action
|
|
153
|
+
|
|
154
|
+
#### **Play 1: The "High-Value Cart Recovery" Play**
|
|
155
|
+
|
|
156
|
+
**Goal:** Prevent your most valuable customers from abandoning their carts.
|
|
157
|
+
|
|
158
|
+
**FEATURE:** High-Value Cart Recovery
|
|
159
|
+
|
|
160
|
+
**WHEN** a customer abandons a cart
|
|
161
|
+
|
|
162
|
+
**FLOW:**
|
|
163
|
+
|
|
164
|
+
**GET** the total value of the abandoned cart
|
|
165
|
+
**SAVE AS** cart value
|
|
166
|
+
|
|
167
|
+
**CHECK** IF cart value is **OVER** $200
|
|
168
|
+
**THEN** **WAIT** 30 minutes // Act quickly for high-value carts
|
|
169
|
+
**CREATE** a unique discount code **FOR** free shipping
|
|
170
|
+
**NOTIFY** the customer **VIA** email **WITH** a personal message and the free shipping code.
|
|
171
|
+
**ELSE** **WAIT** 2 hours
|
|
172
|
+
**NOTIFY** the customer **VIA** email **WITH** a standard cart reminder.
|
|
173
|
+
|
|
174
|
+
#### **Play 2: The "Customer Win-Back" Play**
|
|
175
|
+
|
|
176
|
+
**Goal:** Automatically re-engage customers who haven't purchased in a while.
|
|
177
|
+
|
|
178
|
+
**FEATURE:** Customer Win-Back Campaign
|
|
179
|
+
|
|
180
|
+
**WHEN** the system runs its daily check
|
|
181
|
+
|
|
182
|
+
**FLOW:**
|
|
183
|
+
|
|
184
|
+
**GET** all customers **WHOSE** last order was between 90 and 100 days ago
|
|
185
|
+
**SAVE AS** lapsed customers
|
|
186
|
+
|
|
187
|
+
**FOR EACH** customer **IN** lapsed customers
|
|
188
|
+
**DO** **CREATE** a unique discount code **FOR** 20% off
|
|
189
|
+
**NOTIFY** the customer **VIA** email
|
|
190
|
+
**WITH** the subject "We've Missed You\!"
|
|
191
|
+
**WITH** a personal message and their unique 20% off code.
|
|
192
|
+
**RECORD** a "win_back_offer_sent" event **FOR** that customer.
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"state": {
|
|
14
14
|
"type": "markdown",
|
|
15
15
|
"state": {
|
|
16
|
-
"file": "things/
|
|
16
|
+
"file": "things/todo.md",
|
|
17
17
|
"mode": "source",
|
|
18
18
|
"source": false
|
|
19
19
|
},
|
|
20
20
|
"icon": "lucide-file",
|
|
21
|
-
"title": "
|
|
21
|
+
"title": "todo"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
|
@@ -171,6 +171,10 @@
|
|
|
171
171
|
},
|
|
172
172
|
"active": "613025f84d05f0e8",
|
|
173
173
|
"lastOpenFiles": [
|
|
174
|
+
"things/ecommerce-ontology.md",
|
|
175
|
+
"things/ecommerce.md",
|
|
176
|
+
"things/plans/mail.md",
|
|
177
|
+
"things/plans/5-complete.md",
|
|
174
178
|
"events/cloudflare-automation-complete.md",
|
|
175
179
|
"events/installation-folders-workflow-integration.md",
|
|
176
180
|
"events/deployment-verification.md",
|
|
@@ -196,10 +200,6 @@
|
|
|
196
200
|
"groups/strategy.md",
|
|
197
201
|
"groups/revenue.md",
|
|
198
202
|
"things/agents/agent-deploy.md",
|
|
199
|
-
"events/2025-10-15-private-files-secured.md",
|
|
200
|
-
"events/2024-10-14-final-sync-complete.md",
|
|
201
|
-
"events/2024-10-15-release-command-complete.md",
|
|
202
|
-
"events/2024-10-15-package-manager-tests.md",
|
|
203
203
|
"things/vision",
|
|
204
204
|
"things/tests",
|
|
205
205
|
"things/features/dataprovider-interface",
|