Opening the Side Panel
Click the AI Agent button in the study toolbar. The panel opens on the right and stays open as you navigate — your open chat, selected model, and attached context persist until you explicitly reset. The panel has three tabs:
The AI Agent is only available to study team members inside a study context.
Models
Four models are available. Select one per chat from the Models tab; your selection persists for the session.
Model selection persists for the current session.
Context — What the AI Can See
The Agent automatically attaches relevant context based on where you are in the app:- Study metadata — key study information is always included, so you don’t have to restate which study you are in
- Active artifact — the CRF version, workflow, or document you are viewing
- Participant context — when you are on a participant page, the pseudonym and record are passed along (only if you have participant-data roles)
PDFs are extracted server-side using Gemini 3.5 Flash with a prompt that preserves tables, diagrams, lists, and document structure. Extracted content is cached by content hash, so re-attaching the same file in a later conversation is instant.
Document Indexing Status
Study documents uploaded under Study Settings > Documents are indexed in the background so the AI can read them on demand. Each document shows an indexing status tag on its card and details page:
When you ask the Agent about study documents, it uses only the documents that are Indexed. Any documents still indexing (or not started) are skipped for that request, and the reply tells you which ones were left out so you can retry in a moment once indexing catches up. Large PDFs typically finish within a few minutes of upload.
Retrying a Failed Document
If a document shows Failed or Timed out, open its details page and click Retry indexing. This resets the document to a pending state and re-runs extraction in the background. The action requires MFA and write access to the study. The AI panel also shows a global “N documents indexing…” indicator while any study document is still being processed, so you know when to expect the Agent to pick them up automatically.Tools the AI Can Call
Some prompts cause the AI to call tool functions — read-only utilities that fetch data from your study, plus the AI Pathway Builder tools for editing pathways. Read-only tools (available everywhere):- Get study info, list and read documents
- List and read CRF versions
- List and read workflows
- Get participant record — only if you have participant-data roles and a participant is in context
- AI Pathway Builder (suggest pathway outline, section detail, questionnaire edit) — available anywhere in the study if you have the Study AI Prompts permission. You no longer need to have a specific CRF version open first; if you don’t, the AI asks which draft to edit (or picks it automatically when there is only one draft).
Starting, Resetting, and Limits
1
Type a Prompt
Ask a question, request help, or describe what you want to build.
2
Attach Context (Optional)
Attach a PDF, Markdown, or text file via the Attach file button.
3
Send
The AI streams its response in the panel. Tool calls surface as status messages (for example, “Working…”).
4
Stop Generation (Optional)
While a response is streaming, the send button becomes a stop control. Click it to cancel the request. The partial response and any tool output produced so far stay in the chat so you can build on it.
5
Reset Chat When Done
Click Reset Chat to clear history and start fresh. Resets are scoped to the current chat context.
If the AI reaches the tool-step limit on a long multi-step task (for example, reading and rewriting a very large pathway), it stops and asks you to send a short follow-up like “continue” to pick up where it left off.
Privacy — “Private Mode”
The panel shows a Private Mode tag. This signals the AI’s data contract:- Your inputs are sent to the selected model provider only for the duration of the request.
- Conversation content is discarded after use and is not stored long-term by Carelane.
- Data is not used to train the model.
- Conversations are kept only in your browser’s memory for the current session.
Prompt Library
The Prompts tab contains pre-built prompts organised by category (study setup, data collection, troubleshooting, pathway building). Click a prompt to insert it into the input; edit before sending.Best Practices
Pick the Right Model
Pick the Right Model
Use Sonnet 4.6 by default. Switch to Opus 4.8 for intricate clinical logic, or Gemini 3.5 Flash
when you are working with large PDFs.
Let Context Work for You
Let Context Work for You
Navigate to the relevant artifact (study page, participant, CRF version) before asking — the AI
will pick it up automatically.
Review Tool-Driven Changes
Review Tool-Driven Changes
When the AI proposes pathway edits via its tools, review each ghost suggestion card before
accepting.
Related
AI Pathway Builder
Inline AI suggestions for pathway structure.
AI Study Wizard
Generate a study from a protocol document.
