Examples

Ready-to-use experiment templates. Click an example to try it live, or open its config to copy.

Surveys and flow

Pages, questions and timing, no agents.

Example What it shows Config
Hello World The simplest experiment: one question, one button. hello-world.yaml
Survey Multi-page survey with different question types. survey-only.yaml
Randomization Randomly assign participants to conditions using onEnter hooks. randomization-demo.yaml
Timer Countdown timer with warning state and auto-navigation on expiry. timer-demo.yaml
Mermaid Render a diagram from a mermaid fence in a Text component. mermaid-demo.yaml
Component Events Track custom analytics events on user interactions. component-events.yaml

AI agents

One participant talking with an AI agent.

Example What it shows Config
AI Chat One-on-one conversation with an AI agent. ai-chat.yaml
Multi-Chat Share or isolate chat history across pages using groupId. multi-chat.yaml
Agent Triggers Control when and whether agents reply using trigger and replyCondition. agent-triggers.yaml
Conditional Agent Adapt agent prompts based on survey answers using conditional prompts. conditional-agent.yaml
Split Layout Negotiate with an AI dealer while the car listing stays on screen beside the chat. split-demo.yaml

Groups

Matched participants together, with or without an agent. Open two tabs to play both partners.

Example What it shows Config
Team Decision Match 2 participants and let them chat together. team-decision.yaml
Fruit Split Give each matched partner a different role with distribute: true: one gets apples, the other oranges. fruit-split-demo.yaml
AI Mediation Two participants chat with an AI facilitator observing and guiding. ai-mediation.yaml

Live workspace

A live document that participants and agents edit at the same time.

Example What it shows Config
Workspace A participant and an AI agent edit one document; the agent makes targeted edits while the participant types. workspace.yaml
Shared workspace Two matched participants and an AI agent edit one document at the same time, then fill in a shared form. workspace-group.yaml
Workspace board Tic-tac-toe on a JSON workspace drawn by a custom renderer: the participant clicks, the agent answers by editing the file. workspace-board.yaml

Custom UI

Your own HTML, in a locked-down frame.

Example What it shows Config
HTML Custom slider UI uploaded with the config. html-demo.yaml