The AI Agent is a persistent side panel inside every study that combines multi-model chat, a prompt library, and pathway-editing tools in one place.Documentation Index
Fetch the complete documentation index at: https://docs.carelane.io/llms.txt
Use this file to discover all available pages before exploring further.
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:| Tab | Purpose |
|---|---|
| Agent | The chat interface itself |
| Prompts | A library of pre-built prompts grouped by category |
| Models | Per-chat model selection |
Models
Four models are available. Select one per chat from the Models tab; your selection persists for the session.| Model | Tag | When to use |
|---|---|---|
| Claude Sonnet 4.6 | Recommended | Default — balanced speed and quality for most tasks |
| Claude Opus 4.6 | Advanced | Deep reasoning on complex clinical logic |
| Gemini 2.5 Flash | Fast | Quick answers, lightweight summarisation |
| Gemini 2.5 Pro | Advanced | Long-context tasks, PDF-heavy analysis |
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)
| File type | Limit |
|---|---|
PDF, plain text (.txt), Markdown (.md, .markdown) | 15 MB per file |
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) — only when you are viewing a CRF version and have the Study AI Prompts permission
Starting, Resetting, and Limits
Send
The AI streams its response in the panel. Tool calls surface as status messages (for example, “Working…”).
| Limit | Value |
|---|---|
| Message size | 3.5M characters |
| File size | 15 MB per attachment |
| History sent to the model | Last 50 messages |
| Tool calls per response | 10 |
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.6 for intricate clinical logic, or Gemini 2.5 Pro 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.
Reset Between Unrelated Tasks
Reset Between Unrelated Tasks
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.
