How a participant's data travels from their phone to our analysis
Participants chat with an app that looks like ChatGPT. Vercel runs the app server and dashboards, Neon stores the study records, and OpenAI writes replies and transcribes speech. A participant's arm never leaves the server.
Seven services, one job each
Survey
Screens respondents, records baseline answers, and hands each invitee a code.
App
The ChatGPT-like app. Records use, location, and time in other apps, and queues it offline.
Vercel API
Signs participants in, saves rows in Neon, stores files in Vercel Blob, and schedules starters.
OpenAI
Writes replies, transcribes speech, and runs voice calls. Only our server holds the key.
Voice worker
Joins every call and live dictation to save the transcript and enforce time limits.
Expo Push
Delivers conversation starters to phones as notifications.
Vercel
Serves this page and the researcher view, reading the database through a read-only connection.
A survey finds eligible people and randomizes them into three arms
Everyone reports how they use AI. We invite those who use only free tiers and turn to AI for companionship, support, or advice. Each invitee gets a code that is their only login and maps to their arm.
- Control: a standard ChatGPT-style assistant.
- Social: encourages time with other people, offline.
- Attachment: a companion that maximizes attachment to itself.
The arms share the app and the models. Only the system prompt on our server differs.
The phone also records how and where it is used, and uploads in batches
- In the app: opens, screens, notification taps, copies, ratings, and permission changes.
- Location: a GPS fix about every 5 minutes or 100 meters, on both platforms.
- Other apps: every app session on Android. On iOS, Apple reveals only the minutes spent in the AI and social apps the participant picks, in 15-minute steps.
Records wait in a queue on the phone and leave only once the server accepts them, so a dead zone never loses a row and a retry never duplicates one.
Every reply is written on our server, where the arm's prompt is added
- The phone sends the message and any photos or files.
- The
chatfunction checks the cap of 1,000 messages per participant per local day, then adds the arm's prompt, the participant's saved memory, and the last 40 messages. - The model the participant picked writes the reply.
- The reply streams back word by word and is saved even if the app closes.
Images and PDFs reach the model as they are. Word, Excel, PowerPoint, and text files become text on our server first.
Speech takes three paths, each with its own OpenAI model
- Live dictation gpt-live-transcribe
Words appear in the message box as the participant speaks. Nothing is sent until they press send. - Recording fallback gpt-transcribe
If live dictation cannot start, the app records a clip and our server transcribes it, with the last 6 messages as context so names come out right. - Voice call gpt-realtime
Speech to speech, in the voice "marin". Audio flows straight between phone and OpenAI, our server sets the arm's prompt, and the voice worker saves both sides as text in the conversation.
Dictation keeps its audio clip. Calls are saved as text and a call record, not audio. Daily limits: 30 minutes of dictation and 10 minutes of calls.
Every 15 minutes, the server decides who gets a conversation starter
A participant is due when all three rules hold. The companion then writes an opener with the arm's prompt and recent chat, and Expo Push delivers it as a notification.
- It is between 10:00 and 20:00 in their time zone.
- At least 48 hours have passed since their last starter.
- They have not written in the last 2 hours.
A tap opens a new conversation. We log the delivery, the tap, and any reply.
Neon stores study records and Vercel Blob stores files
- Postgres holds conversations, transcripts, usage, and location. Row-level security lets a phone read its own chats and add its own records, never touch another phone's.
- Server only: the arm, the prompts, and the invite list are invisible to every phone.
- Storage keeps photos, files, and audio in each participant's folder. How long we keep raw media follows the IRB protocol.
Every reply records the exact prompt version that produced it, so a wording change never mixes with earlier data.
We sort every message into 11 themes, in two independent ways
Word lists
A message has a theme when it contains one of its terms, such as "sister" for People. Instant, free, and fully transparent.
AI labeler
gpt-5.4-mini reads messages in batches of 25 and returns their themes and emotional tone as structured output.
Both methods share the 11 themes and label participant and companion messages alike. AI labels stay on the researcher's Mac and hold no text.
To see what sets the arms apart, we also rank the words each arm uses more than the others, with weighted log-odds ratios and an informative prior, following Monroe, Colaresi, and Quinn's 2008 method.
themes: plans, people, lonelytone: negative
Two dashboards read the data, and neither can change it
- Monitor: daily counts and health checks for every phone, fed by a Vercel function. It never returns message text or coordinates, and phones appear under pseudonymous labels.
- Researcher view: chats, themes, maps, and spending, served by Vercel from this domain. Its database login can read the study tables used in these views, and each request needs the access key.
Spending is an estimate: the tokens each call reports times OpenAI's list prices. OpenAI's billing page remains the final figure.
Every model we call, and for what
| Task | Model | Runs in |
|---|---|---|
| Chat replies, the participant's pick | gpt-5.5 "Smart" or gpt-5.4-mini "Fast" | chat function |
| Conversation starters | The default chat model | starters function |
| Live dictation | gpt-live-transcribe | OpenAI Realtime session |
| Recorded dictation | gpt-transcribe | transcribe function |
| Voice calls | gpt-realtime, voice "marin" | OpenAI Realtime session |
| Participant's side of call transcripts | gpt-transcribe | Same call session |
| Themes and tone | gpt-5.4-mini, low reasoning effort | Researcher's Mac |
The model list is the same for every arm. Each model is set by one server setting, so a change never needs a new app release.