cbrowser 18.63.0 → 18.63.1
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/package.json +1 -1
- package/docs/ASSESSMENT.md +0 -132
- package/docs/AUTH0-SETUP.md +0 -207
- package/docs/COGNITIVE-OPTIMAL-TRANSPORT-RESEARCH.md +0 -238
- package/docs/DEMO-DEPLOYMENT.md +0 -177
- package/docs/ENTERPRISE-INTEGRATION.md +0 -250
- package/docs/GETTING-STARTED.md +0 -232
- package/docs/INSTALL.md +0 -274
- package/docs/MCP-INTEGRATION.md +0 -301
- package/docs/METHODOLOGY.md +0 -276
- package/docs/PERSONA-QUESTIONNAIRE.md +0 -328
- package/docs/README.md +0 -45
- package/docs/REMOTE-MCP-SERVER.md +0 -569
- package/docs/SECURITY_WHITEPAPER.md +0 -475
- package/docs/STRESS-TEST-v16.14.4.md +0 -241
- package/docs/Tool-Cognitive-Journey-Autonomous.md +0 -270
- package/docs/Tool-Competitive-Benchmark.md +0 -293
- package/docs/Tool-Empathy-Audit.md +0 -331
- package/docs/Tool-Hunt-Bugs.md +0 -305
- package/docs/Tool-Marketing-Campaign.md +0 -298
- package/docs/Tool-Persona-Create.md +0 -274
- package/docs/Tools-Accessibility.md +0 -208
- package/docs/Tools-Browser-Automation.md +0 -311
- package/docs/Tools-Cognitive-Journeys.md +0 -233
- package/docs/Tools-Marketing-Intelligence.md +0 -271
- package/docs/Tools-Overview.md +0 -162
- package/docs/Tools-Persona-System.md +0 -300
- package/docs/Tools-Session-State.md +0 -278
- package/docs/Tools-Testing-Quality.md +0 -257
- package/docs/Tools-Utilities.md +0 -182
- package/docs/Tools-Visual-Performance.md +0 -278
- package/docs/hunt-bugs-coverage.md +0 -103
- package/docs/personas/Persona-ADHD.md +0 -141
- package/docs/personas/Persona-ElderlyUser.md +0 -137
- package/docs/personas/Persona-FirstTimer.md +0 -137
- package/docs/personas/Persona-ImpatientUser.md +0 -138
- package/docs/personas/Persona-Index.md +0 -302
- package/docs/personas/Persona-LowVision.md +0 -139
- package/docs/personas/Persona-MobileUser.md +0 -139
- package/docs/personas/Persona-MotorTremor.md +0 -139
- package/docs/personas/Persona-PowerUser.md +0 -135
- package/docs/personas/Persona-ScreenReaderUser.md +0 -139
- package/docs/research/Bibliography.md +0 -275
- package/docs/research/Research-Methodology.md +0 -244
- package/docs/research/Values-Research.md +0 -432
- package/docs/traits/Trait-AnchoringBias.md +0 -227
- package/docs/traits/Trait-AttributionStyle.md +0 -280
- package/docs/traits/Trait-AuthoritySensitivity.md +0 -141
- package/docs/traits/Trait-ChangeBlindness.md +0 -171
- package/docs/traits/Trait-Comprehension.md +0 -180
- package/docs/traits/Trait-Curiosity.md +0 -189
- package/docs/traits/Trait-EmotionalContagion.md +0 -144
- package/docs/traits/Trait-FOMO.md +0 -150
- package/docs/traits/Trait-Index.md +0 -166
- package/docs/traits/Trait-InformationForaging.md +0 -217
- package/docs/traits/Trait-InterruptRecovery.md +0 -249
- package/docs/traits/Trait-MentalModelRigidity.md +0 -228
- package/docs/traits/Trait-MetacognitivePlanning.md +0 -164
- package/docs/traits/Trait-Patience.md +0 -137
- package/docs/traits/Trait-Persistence.md +0 -165
- package/docs/traits/Trait-ProceduralFluency.md +0 -205
- package/docs/traits/Trait-ReadingTendency.md +0 -216
- package/docs/traits/Trait-Resilience.md +0 -162
- package/docs/traits/Trait-RiskTolerance.md +0 -162
- package/docs/traits/Trait-Satisficing.md +0 -181
- package/docs/traits/Trait-SelfEfficacy.md +0 -199
- package/docs/traits/Trait-SocialProofSensitivity.md +0 -155
- package/docs/traits/Trait-TimeHorizon.md +0 -267
- package/docs/traits/Trait-TransferLearning.md +0 -249
- package/docs/traits/Trait-TrustCalibration.md +0 -227
- package/docs/traits/Trait-WorkingMemory.md +0 -192
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
> **This documentation is no longer maintained here.**
|
|
2
|
-
>
|
|
3
|
-
> For the latest version, please visit: **[Browser Automation Tools](https://cbrowser.ai/docs/Tools-Browser-Automation)**
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Browser Automation Tools
|
|
8
|
-
|
|
9
|
-
**Tell the browser what you want. Let AI figure out how.**
|
|
10
|
-
|
|
11
|
-
These 12 tools handle navigation, clicking, form filling, data extraction, and page analysis. They replace brittle CSS selectors with natural language descriptions that survive DOM changes.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## When to Use These Tools
|
|
16
|
-
|
|
17
|
-
- **You're automating a workflow** and tired of tests breaking when developers change class names
|
|
18
|
-
- **You need to extract data** from pages without writing custom scrapers for each site
|
|
19
|
-
- **You're building an AI agent** that needs to interact with arbitrary websites
|
|
20
|
-
- **Your selectors keep failing** and you want something that self-heals
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Tools
|
|
25
|
-
|
|
26
|
-
### `navigate`
|
|
27
|
-
|
|
28
|
-
**What it does**: Opens a URL and takes a screenshot of the loaded page.
|
|
29
|
-
|
|
30
|
-
**Why you'd use it**: Start any browser automation session or move between pages.
|
|
31
|
-
|
|
32
|
-
| Parameter | Type | Required | Description |
|
|
33
|
-
|-----------|------|----------|-------------|
|
|
34
|
-
| `url` | string | Yes | The URL to navigate to |
|
|
35
|
-
|
|
36
|
-
**Example**:
|
|
37
|
-
```json
|
|
38
|
-
{
|
|
39
|
-
"url": "https://example.com/products"
|
|
40
|
-
}
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
### `click`
|
|
46
|
-
|
|
47
|
-
**What it does**: Clicks an element using text content, CSS selector, or natural language description.
|
|
48
|
-
|
|
49
|
-
**Why you'd use it**: Interact with buttons, links, or any clickable element without fragile selectors.
|
|
50
|
-
|
|
51
|
-
| Parameter | Type | Required | Description |
|
|
52
|
-
|-----------|------|----------|-------------|
|
|
53
|
-
| `selector` | string | Yes | What to click — text, CSS selector, or description like "the blue submit button" |
|
|
54
|
-
| `force` | boolean | No | Bypass constitutional safety checks for destructive actions |
|
|
55
|
-
| `verbose` | boolean | No | Return available elements and AI suggestions on failure |
|
|
56
|
-
|
|
57
|
-
**Example**:
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"selector": "Add to Cart"
|
|
61
|
-
}
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Or with natural language:
|
|
65
|
-
```json
|
|
66
|
-
{
|
|
67
|
-
"selector": "the primary call-to-action button in the hero section"
|
|
68
|
-
}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
### `smart_click`
|
|
74
|
-
|
|
75
|
-
**What it does**: Clicks with automatic retry and self-healing selectors. If the original selector fails, it finds the element by intent.
|
|
76
|
-
|
|
77
|
-
**Why you'd use it**: When elements might not be immediately available or when you want resilience against DOM changes.
|
|
78
|
-
|
|
79
|
-
| Parameter | Type | Required | Description |
|
|
80
|
-
|-----------|------|----------|-------------|
|
|
81
|
-
| `selector` | string | Yes | Element to click |
|
|
82
|
-
| `maxRetries` | number | No | Maximum retry attempts. Default: 3 |
|
|
83
|
-
| `dismissOverlays` | boolean | No | Automatically dismiss popups before clicking. Default: false |
|
|
84
|
-
|
|
85
|
-
**Example**:
|
|
86
|
-
```json
|
|
87
|
-
{
|
|
88
|
-
"selector": "Submit Order",
|
|
89
|
-
"dismissOverlays": true
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
**Note**: v11.8.0 added confidence gating — only reports success if the healed selector has ≥60% confidence.
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
### `fill`
|
|
98
|
-
|
|
99
|
-
**What it does**: Types text into a form field identified by name, label, or description.
|
|
100
|
-
|
|
101
|
-
**Why you'd use it**: Fill out forms without knowing the exact input names or IDs.
|
|
102
|
-
|
|
103
|
-
| Parameter | Type | Required | Description |
|
|
104
|
-
|-----------|------|----------|-------------|
|
|
105
|
-
| `selector` | string | Yes | The field to fill — label text, name attribute, or description |
|
|
106
|
-
| `value` | string | Yes | Text to type into the field |
|
|
107
|
-
| `clear` | boolean | No | Clear existing content before typing. Default: true |
|
|
108
|
-
|
|
109
|
-
**Example**:
|
|
110
|
-
```json
|
|
111
|
-
{
|
|
112
|
-
"selector": "Email address",
|
|
113
|
-
"value": "user@example.com"
|
|
114
|
-
}
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
### `scroll`
|
|
120
|
-
|
|
121
|
-
**What it does**: Scrolls the page in a specified direction or to a specific position.
|
|
122
|
-
|
|
123
|
-
**Why you'd use it**: Reveal content below the fold, trigger lazy loading, or reach elements not yet visible.
|
|
124
|
-
|
|
125
|
-
| Parameter | Type | Required | Description |
|
|
126
|
-
|-----------|------|----------|-------------|
|
|
127
|
-
| `direction` | string | Yes | `up`, `down`, `top`, `bottom`, or pixel amount like `500px` |
|
|
128
|
-
|
|
129
|
-
**Example**:
|
|
130
|
-
```json
|
|
131
|
-
{
|
|
132
|
-
"direction": "down"
|
|
133
|
-
}
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
### `screenshot`
|
|
139
|
-
|
|
140
|
-
**What it does**: Captures the current page as an image.
|
|
141
|
-
|
|
142
|
-
**Why you'd use it**: Document state, debug failures, or feed visual information to AI.
|
|
143
|
-
|
|
144
|
-
| Parameter | Type | Required | Description |
|
|
145
|
-
|-----------|------|----------|-------------|
|
|
146
|
-
| `fullPage` | boolean | No | Capture entire scrollable page. Default: false (viewport only) |
|
|
147
|
-
| `path` | string | No | Save to file path instead of returning base64 |
|
|
148
|
-
|
|
149
|
-
**Example**:
|
|
150
|
-
```json
|
|
151
|
-
{
|
|
152
|
-
"fullPage": true
|
|
153
|
-
}
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
---
|
|
157
|
-
|
|
158
|
-
### `extract`
|
|
159
|
-
|
|
160
|
-
**What it does**: Pulls structured data from the page — links, headings, forms, images, or arbitrary text.
|
|
161
|
-
|
|
162
|
-
**Why you'd use it**: Scrape content, analyze page structure, or gather data for further processing.
|
|
163
|
-
|
|
164
|
-
| Parameter | Type | Required | Description |
|
|
165
|
-
|-----------|------|----------|-------------|
|
|
166
|
-
| `type` | string | Yes | What to extract: `links`, `headings`, `forms`, `images`, `text`, or `all` |
|
|
167
|
-
| `selector` | string | No | Limit extraction to elements matching this selector |
|
|
168
|
-
|
|
169
|
-
**Example**:
|
|
170
|
-
```json
|
|
171
|
-
{
|
|
172
|
-
"type": "links"
|
|
173
|
-
}
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
Returns structured JSON with all links, their text, and href values.
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
### `find_element_by_intent`
|
|
181
|
-
|
|
182
|
-
**What it does**: Uses AI to find elements by semantic description. Returns the best match with confidence score and accessibility information.
|
|
183
|
-
|
|
184
|
-
**Why you'd use it**: When you need to find something but don't know exactly how it's implemented — "the navigation menu" or "the search box in the header".
|
|
185
|
-
|
|
186
|
-
| Parameter | Type | Required | Description |
|
|
187
|
-
|-----------|------|----------|-------------|
|
|
188
|
-
| `intent` | string | Yes | Natural language description of the element |
|
|
189
|
-
| `context` | string | No | Additional context to narrow the search |
|
|
190
|
-
|
|
191
|
-
**Example**:
|
|
192
|
-
```json
|
|
193
|
-
{
|
|
194
|
-
"intent": "the main call-to-action button",
|
|
195
|
-
"context": "in the pricing section"
|
|
196
|
-
}
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
**Returns**: Selector, confidence score (0-1), accessibility score, and alternative matches.
|
|
200
|
-
|
|
201
|
-
**Note**: v7.4.17 added ARIA-first strategy — prioritizes `aria-label`, `role`, semantic HTML before falling back to classes/IDs.
|
|
202
|
-
|
|
203
|
-
---
|
|
204
|
-
|
|
205
|
-
### `analyze_page`
|
|
206
|
-
|
|
207
|
-
**What it does**: Examines page structure and returns inventory of interactive elements — forms, buttons, links, inputs.
|
|
208
|
-
|
|
209
|
-
**Why you'd use it**: Understand what's on a page before deciding what to interact with. Essential for building adaptive agents.
|
|
210
|
-
|
|
211
|
-
| Parameter | Type | Required | Description |
|
|
212
|
-
|-----------|------|----------|-------------|
|
|
213
|
-
| `detailed` | boolean | No | Include element attributes and positions. Default: false |
|
|
214
|
-
|
|
215
|
-
**Example**:
|
|
216
|
-
```json
|
|
217
|
-
{
|
|
218
|
-
"detailed": true
|
|
219
|
-
}
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
---
|
|
223
|
-
|
|
224
|
-
### `assert`
|
|
225
|
-
|
|
226
|
-
**What it does**: Verifies a condition using natural language and returns pass/fail with explanation.
|
|
227
|
-
|
|
228
|
-
**Why you'd use it**: Validate that actions had the expected result without writing complex assertion logic.
|
|
229
|
-
|
|
230
|
-
| Parameter | Type | Required | Description |
|
|
231
|
-
|-----------|------|----------|-------------|
|
|
232
|
-
| `condition` | string | Yes | What to check, in plain English |
|
|
233
|
-
|
|
234
|
-
**Example**:
|
|
235
|
-
```json
|
|
236
|
-
{
|
|
237
|
-
"condition": "the shopping cart shows 2 items"
|
|
238
|
-
}
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
**Returns**: `{ "passed": true/false, "reason": "explanation" }`
|
|
242
|
-
|
|
243
|
-
---
|
|
244
|
-
|
|
245
|
-
### `dismiss_overlay`
|
|
246
|
-
|
|
247
|
-
**What it does**: Detects and closes modal overlays — cookie consent banners, newsletter popups, age verification gates.
|
|
248
|
-
|
|
249
|
-
**Why you'd use it**: Clear blocking UI before interacting with the actual page content.
|
|
250
|
-
|
|
251
|
-
| Parameter | Type | Required | Description |
|
|
252
|
-
|-----------|------|----------|-------------|
|
|
253
|
-
| `type` | string | No | Overlay type: `auto`, `cookie`, `age-verify`, `newsletter`, `custom`. Default: `auto` |
|
|
254
|
-
| `customSelector` | string | No | Selector for custom overlay close button |
|
|
255
|
-
|
|
256
|
-
**Example**:
|
|
257
|
-
```json
|
|
258
|
-
{
|
|
259
|
-
"type": "auto"
|
|
260
|
-
}
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
**Note**: Constitutional Yellow zone — logged but proceeds automatically.
|
|
264
|
-
|
|
265
|
-
---
|
|
266
|
-
|
|
267
|
-
### `ask_user`
|
|
268
|
-
|
|
269
|
-
**What it does**: Creates a structured prompt to ask the human operator a question with predefined options.
|
|
270
|
-
|
|
271
|
-
**Why you'd use it**: When the automation needs human input to proceed — confirmation, selection, or decision that can't be automated.
|
|
272
|
-
|
|
273
|
-
| Parameter | Type | Required | Description |
|
|
274
|
-
|-----------|------|----------|-------------|
|
|
275
|
-
| `question` | string | Yes | The question to ask |
|
|
276
|
-
| `options` | array | No | Predefined answer options |
|
|
277
|
-
| `allowFreeform` | boolean | No | Allow typed response. Default: true |
|
|
278
|
-
|
|
279
|
-
**Example**:
|
|
280
|
-
```json
|
|
281
|
-
{
|
|
282
|
-
"question": "Which shipping method should I select?",
|
|
283
|
-
"options": ["Standard (5-7 days)", "Express (2-3 days)", "Overnight"]
|
|
284
|
-
}
|
|
285
|
-
```
|
|
286
|
-
|
|
287
|
-
---
|
|
288
|
-
|
|
289
|
-
## How Self-Healing Works
|
|
290
|
-
|
|
291
|
-
When a selector fails, CBrowser:
|
|
292
|
-
|
|
293
|
-
1. **Checks the healing cache** for previously learned mappings
|
|
294
|
-
2. **Analyzes the page** for elements matching the semantic intent
|
|
295
|
-
3. **Scores candidates** by text similarity, position, and accessibility attributes
|
|
296
|
-
4. **Returns the best match** if confidence exceeds 60%
|
|
297
|
-
5. **Caches the mapping** for faster future lookups
|
|
298
|
-
|
|
299
|
-
This means your automation adapts to site changes automatically. A redesign that moves the "Add to Cart" button? CBrowser finds it by intent, not by its old CSS class.
|
|
300
|
-
|
|
301
|
-
---
|
|
302
|
-
|
|
303
|
-
## Related Documentation
|
|
304
|
-
|
|
305
|
-
- [Constitutional Safety](/docs/Constitutional-Safety/) — How CBrowser classifies action risk
|
|
306
|
-
- [Tools Overview](/docs/Tools-Overview/) — All tools by category
|
|
307
|
-
- [Examples](/docs/Examples/) — Real-world automation patterns
|
|
308
|
-
|
|
309
|
-
---
|
|
310
|
-
|
|
311
|
-
*Last updated: v17.6.0*
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
> **This documentation is no longer maintained here.**
|
|
2
|
-
>
|
|
3
|
-
> For the latest version, please visit: **[Cognitive Journey Tools](https://cbrowser.ai/docs/Tools-Cognitive-Journeys)**
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Cognitive Journey Tools
|
|
8
|
-
|
|
9
|
-
**Find out where users give up before they actually do.**
|
|
10
|
-
|
|
11
|
-
Cognitive journeys simulate real humans navigating your site — complete with patience that depletes, frustration that builds, and the moment they decide "this isn't worth it" and leave. These 6 tools let you experience your product through the minds of different user types.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## When to Use These Tools
|
|
16
|
-
|
|
17
|
-
- **Your conversion rate is mysteriously low** and analytics can't tell you why people abandon
|
|
18
|
-
- **You're launching a new feature** and want to know if real users can figure it out
|
|
19
|
-
- **You need to compare experiences** across different audience segments
|
|
20
|
-
- **You want to find friction** before your users feel it
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Tools
|
|
25
|
-
|
|
26
|
-
### `cognitive_journey_init`
|
|
27
|
-
|
|
28
|
-
**What it does**: Starts a cognitive journey session with a specific persona, goal, and starting point. Returns the persona's cognitive profile and initial state.
|
|
29
|
-
|
|
30
|
-
**Why you'd use it**: Begin simulating how a specific user type would approach your site.
|
|
31
|
-
|
|
32
|
-
| Parameter | Type | Required | Description |
|
|
33
|
-
|-----------|------|----------|-------------|
|
|
34
|
-
| `persona` | string | Yes | Persona ID (e.g., `first-timer`, `elderly-user`, `cognitive-adhd`) |
|
|
35
|
-
| `startUrl` | string | Yes | URL where the journey begins |
|
|
36
|
-
| `goal` | string | Yes | What the persona is trying to accomplish |
|
|
37
|
-
| `maxSteps` | number | No | Maximum actions before forcing stop. Default: 50 |
|
|
38
|
-
|
|
39
|
-
**Example**:
|
|
40
|
-
```json
|
|
41
|
-
{
|
|
42
|
-
"persona": "first-timer",
|
|
43
|
-
"startUrl": "https://example.com",
|
|
44
|
-
"goal": "Create an account and make a purchase"
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
**Returns**: Session ID, persona profile (25 traits), initial cognitive state (patience, confusion, frustration at starting values).
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
### `cognitive_journey_update_state`
|
|
53
|
-
|
|
54
|
-
**What it does**: Updates the persona's cognitive state after each action. Tracks mood changes, calculates whether they would abandon, and generates inner monologue.
|
|
55
|
-
|
|
56
|
-
**Why you'd use it**: After each navigation step, report what happened and get the persona's reaction.
|
|
57
|
-
|
|
58
|
-
| Parameter | Type | Required | Description |
|
|
59
|
-
|-----------|------|----------|-------------|
|
|
60
|
-
| `sessionId` | string | Yes | Session ID from `cognitive_journey_init` |
|
|
61
|
-
| `action` | string | Yes | What action was just taken |
|
|
62
|
-
| `result` | string | Yes | What happened — success, failure, unexpected |
|
|
63
|
-
| `patienceChange` | number | No | How much patience changed (-1 to 1) |
|
|
64
|
-
| `confusionChange` | number | No | How much confusion changed (-1 to 1) |
|
|
65
|
-
| `frustrationChange` | number | No | How much frustration changed (-1 to 1) |
|
|
66
|
-
| `currentUrl` | string | No | Current page URL |
|
|
67
|
-
|
|
68
|
-
**Example**:
|
|
69
|
-
```json
|
|
70
|
-
{
|
|
71
|
-
"sessionId": "journey_abc123",
|
|
72
|
-
"action": "Clicked 'Sign Up' button",
|
|
73
|
-
"result": "Page showed loading spinner for 8 seconds before form appeared",
|
|
74
|
-
"patienceChange": -0.15,
|
|
75
|
-
"confusionChange": 0.05,
|
|
76
|
-
"frustrationChange": 0.10,
|
|
77
|
-
"currentUrl": "https://example.com/signup"
|
|
78
|
-
}
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
**Returns**:
|
|
82
|
-
- `shouldAbandon`: boolean — would this persona leave?
|
|
83
|
-
- `abandonmentReason`: why they'd leave (if applicable)
|
|
84
|
-
- `innerMonologue`: what they're thinking ("This is taking forever...")
|
|
85
|
-
- `currentState`: updated patience/confusion/frustration values
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
### `cognitive_journey_autonomous` 🔒 Enterprise
|
|
90
|
-
|
|
91
|
-
**What it does**: Runs a complete journey autonomously with AI making all navigation decisions. No orchestration needed — just set the goal and watch.
|
|
92
|
-
|
|
93
|
-
**Why you'd use it**: Hands-off user simulation that generates complete friction reports and abandonment analysis.
|
|
94
|
-
|
|
95
|
-
> **Enterprise Feature** — Requires CBrowser Enterprise.
|
|
96
|
-
> Autonomous execution consumes Anthropic API credits for decision-making.
|
|
97
|
-
> [Learn about Enterprise →](/docs/Marketing-Suite/)
|
|
98
|
-
|
|
99
|
-
| Parameter | Type | Required | Description |
|
|
100
|
-
|-----------|------|----------|-------------|
|
|
101
|
-
| `persona` | string | Yes | Persona ID |
|
|
102
|
-
| `startUrl` | string | Yes | Starting URL |
|
|
103
|
-
| `goal` | string | Yes | What to accomplish |
|
|
104
|
-
| `maxSteps` | number | No | Max actions. Default: 50 |
|
|
105
|
-
| `maxTime` | number | No | Max seconds. Default: 300 |
|
|
106
|
-
| `vision` | boolean | No | Use screenshot analysis for decisions. Default: false |
|
|
107
|
-
| `headless` | boolean | No | Run without visible browser. Default: false |
|
|
108
|
-
|
|
109
|
-
**Example**:
|
|
110
|
-
```json
|
|
111
|
-
{
|
|
112
|
-
"persona": "elderly-user",
|
|
113
|
-
"startUrl": "https://bank.example.com",
|
|
114
|
-
"goal": "Transfer $100 to savings account",
|
|
115
|
-
"vision": true,
|
|
116
|
-
"maxSteps": 30
|
|
117
|
-
}
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
**Returns**: Complete journey trace with every decision, friction points, screenshots, and final outcome.
|
|
121
|
-
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
### `compare_personas`
|
|
125
|
-
|
|
126
|
-
**What it does**: Run the same journey with multiple personas and compare their experiences side-by-side.
|
|
127
|
-
|
|
128
|
-
**Why you'd use it**: Understand how different user segments experience the same flow differently.
|
|
129
|
-
|
|
130
|
-
| Parameter | Type | Required | Description |
|
|
131
|
-
|-----------|------|----------|-------------|
|
|
132
|
-
| `personas` | array | Yes | List of persona IDs to compare |
|
|
133
|
-
| `startUrl` | string | Yes | Starting URL |
|
|
134
|
-
| `goal` | string | Yes | What to accomplish |
|
|
135
|
-
| `parallel` | boolean | No | Run journeys simultaneously. Default: false |
|
|
136
|
-
|
|
137
|
-
**Example**:
|
|
138
|
-
```json
|
|
139
|
-
{
|
|
140
|
-
"personas": ["power-user", "first-timer", "elderly-user"],
|
|
141
|
-
"startUrl": "https://example.com/checkout",
|
|
142
|
-
"goal": "Complete purchase"
|
|
143
|
-
}
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
**Returns**: Comparison matrix showing success/failure, time taken, abandonment points, and friction experienced by each persona.
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
### `compare_personas_init`
|
|
151
|
-
|
|
152
|
-
**What it does**: Initialize a multi-persona comparison using the bridge workflow (no API key needed). Returns profiles for all personas ready for manual orchestration.
|
|
153
|
-
|
|
154
|
-
**Why you'd use it**: Run persona comparisons when you want Claude to orchestrate each step rather than autonomous execution.
|
|
155
|
-
|
|
156
|
-
| Parameter | Type | Required | Description |
|
|
157
|
-
|-----------|------|----------|-------------|
|
|
158
|
-
| `personas` | array | Yes | List of persona IDs |
|
|
159
|
-
| `startUrl` | string | Yes | Starting URL |
|
|
160
|
-
| `goal` | string | Yes | Goal to accomplish |
|
|
161
|
-
|
|
162
|
-
**Example**:
|
|
163
|
-
```json
|
|
164
|
-
{
|
|
165
|
-
"personas": ["mobile-user", "impatient-user"],
|
|
166
|
-
"startUrl": "https://example.com",
|
|
167
|
-
"goal": "Find pricing information"
|
|
168
|
-
}
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
---
|
|
172
|
-
|
|
173
|
-
### `compare_personas_complete`
|
|
174
|
-
|
|
175
|
-
**What it does**: Finalize a persona comparison by aggregating all journey results and generating the comparison report.
|
|
176
|
-
|
|
177
|
-
**Why you'd use it**: After running individual journeys for each persona, compile the results.
|
|
178
|
-
|
|
179
|
-
| Parameter | Type | Required | Description |
|
|
180
|
-
|-----------|------|----------|-------------|
|
|
181
|
-
| `comparisonId` | string | Yes | Comparison ID from `compare_personas_init` |
|
|
182
|
-
| `results` | array | Yes | Array of journey results for each persona |
|
|
183
|
-
|
|
184
|
-
---
|
|
185
|
-
|
|
186
|
-
## Understanding Cognitive State
|
|
187
|
-
|
|
188
|
-
Every persona has three dynamic metrics that change throughout their journey:
|
|
189
|
-
|
|
190
|
-
| Metric | Range | What It Means |
|
|
191
|
-
|--------|-------|---------------|
|
|
192
|
-
| **Patience** | 0.0 - 1.0 | Willingness to keep trying. Depletes with delays, errors, confusion. |
|
|
193
|
-
| **Confusion** | 0.0 - 1.0 | How lost they feel. Increases with unclear UI, unexpected behavior. |
|
|
194
|
-
| **Frustration** | 0.0 - 1.0 | Emotional response to friction. Increases with repeated failures, dead ends. |
|
|
195
|
-
|
|
196
|
-
### Abandonment Triggers
|
|
197
|
-
|
|
198
|
-
A persona abandons when any of these occur:
|
|
199
|
-
- **Patience < 0.1** — "This is taking too long, I'm done"
|
|
200
|
-
- **Confusion > 0.8 for 30+ seconds** — "I have no idea what to do"
|
|
201
|
-
- **Frustration > 0.85** — "This is ridiculous"
|
|
202
|
-
- **No progress after 10+ steps** — "I'm not getting anywhere"
|
|
203
|
-
- **Same page visited 3+ times** — "I keep ending up here"
|
|
204
|
-
|
|
205
|
-
Different personas have different starting values and depletion rates. An impatient-user starts with 0.4 patience and loses it twice as fast as a power-user.
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
## Persona Quick Reference
|
|
210
|
-
|
|
211
|
-
| Persona | Patience | Confusion Tolerance | Key Trait |
|
|
212
|
-
|---------|----------|---------------------|-----------|
|
|
213
|
-
| `power-user` | High | Low (expects clarity) | Fast decisions, low reading |
|
|
214
|
-
| `first-timer` | Medium | Medium | Explores, reads more |
|
|
215
|
-
| `elderly-user` | High | High | Slow, thorough, easily confused by jargon |
|
|
216
|
-
| `impatient-user` | Very Low | Low | Abandons fast on any friction |
|
|
217
|
-
| `mobile-user` | Low | Medium | Fat-finger issues, small viewport |
|
|
218
|
-
| `cognitive-adhd` | Low | High | Skims, clicks fast, distracted easily |
|
|
219
|
-
|
|
220
|
-
See [Persona Index](/docs/Persona-Index/) for complete profiles.
|
|
221
|
-
|
|
222
|
-
---
|
|
223
|
-
|
|
224
|
-
## Related Documentation
|
|
225
|
-
|
|
226
|
-
- [Cognitive User Simulation](/docs/Cognitive-User-Simulation/) — Deep dive on how cognitive simulation works
|
|
227
|
-
- [Persona Index](/docs/Persona-Index/) — All 9 built-in personas
|
|
228
|
-
- [Multi-Persona Comparison](/docs/Multi-Persona-Comparison/) — Comparison workflows
|
|
229
|
-
- [Trait Index](/docs/Trait-Index/) — The 25 cognitive traits
|
|
230
|
-
|
|
231
|
-
---
|
|
232
|
-
|
|
233
|
-
*Last updated: v17.6.0*
|