Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR mHealth and uHealth

Date Submitted: Jun 18, 2025
Date Accepted: Apr 8, 2026

The final, peer-reviewed published version of this preprint can be found here:

A Beginner’s Guide to Applying Large Language Models in Behavioral Interventions

Shah N, Buis L, Papierski D, Castellanos A, Mlakha M, Murphy S

A Beginner’s Guide to Applying Large Language Models in Behavioral Interventions

JMIR Mhealth Uhealth 2026;14:e79302

DOI: 10.2196/79302

PMID: 42055539

A Beginner’s Guide to Applying Large Language Models in Behavioral Interventions: A Viewpoint

  • Nirali Shah; 
  • Lorraine Buis; 
  • Derek Papierski; 
  • Alexis Castellanos; 
  • Marfn Mlakha; 
  • Susan Murphy

ABSTRACT

Digital behavioral interventions are increasingly used to support chronic disease self-management, yet many systems rely on predetermined content that limits personalization and sustained engagement. Large language models (LLMs) offer new opportunities to deliver conversational behavioral support. However, integrating LLMs into behavioral interventions requires careful architectural, methodological, and ethical planning, which may be challenging for researchers without formal training in artificial intelligence. This viewpoint provides a structured introduction to LLMs tailored to behavioral science. We describe foundational concepts in natural language processing and transformer-based architectures, outline the core components of LLM-based systems, including prompting strategies, context management, retrieval-augmented generation, and guardrails, and illustrate these principles through our experience integrating a proprietary LLM into a mobile self-management intervention for individuals with systemic sclerosis. Building on this case example, we propose a phased design workflow to guide early-stage development and responsible implementation, along with a decision framework to help researchers navigate scientific and logistical trade-offs between proprietary models and other alternatives. The considerations presented here are informed by formative implementation efforts and are intended to support early-stage design decisions for LLM-based behavioral interventions. As these interventions continue to evolve, rigorous evaluation and interdisciplinary collaboration will be important to ensure that these systems improve personalization and scalability while maintaining safety and scientific rigor.


 Citation

Please cite as:

Shah N, Buis L, Papierski D, Castellanos A, Mlakha M, Murphy S

A Beginner’s Guide to Applying Large Language Models in Behavioral Interventions

JMIR Mhealth Uhealth 2026;14:e79302

DOI: 10.2196/79302

PMID: 42055539

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.