{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,3]],"date-time":"2026-10-03T01:00:07Z","timestamp":1790989207688,"version":"4.1.0"},"reference-count":31,"publisher":"JMIR Publications Inc.","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["JMIR Mhealth Uhealth"],"abstract":"<jats:p>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.<\/jats:p>","DOI":"10.2196\/79302","type":"journal-article","created":{"date-parts":[[2026,4,8]],"date-time":"2026-04-08T19:50:06Z","timestamp":1775677806000},"page":"e79302","source":"Crossref","is-referenced-by-count":1,"title":["A Beginner\u2019s Guide to Applying Large Language Models in Behavioral Interventions"],"prefix":"10.2196","volume":"14","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-8926-5889","authenticated-orcid":false,"given":"Nirali","family":"Shah","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5855-9972","authenticated-orcid":false,"given":"Lorraine","family":"Buis","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0008-2263-2355","authenticated-orcid":false,"given":"Derek","family":"Papierski","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0004-2335-7624","authenticated-orcid":false,"given":"Alexis","family":"Castellanos","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0005-6901-2602","authenticated-orcid":false,"given":"Marvin","family":"Mlakha","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7924-0012","authenticated-orcid":false,"given":"Susan","family":"Murphy","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1010","published-online":{"date-parts":[[2026,4,29]]},"reference":[{"key":"ref1","doi-asserted-by":"publisher","DOI":"10.4187\/respcare.11987"},{"key":"ref2","author":"Erhard, P","year":"2022","journal-title":"Handbook of Autism and Pervasive Developmental Disorder"},{"key":"ref3","doi-asserted-by":"publisher","DOI":"10.1136\/bmjopen-2021-058955"},{"key":"ref4","doi-asserted-by":"publisher","DOI":"10.1093\/abm\/kaad041"},{"key":"ref5","doi-asserted-by":"publisher","DOI":"10.1093\/abm\/kaae021"},{"key":"ref6","doi-asserted-by":"publisher","DOI":"10.1111\/nyas.12501"},{"key":"ref7","doi-asserted-by":"publisher","DOI":"10.1016\/j.amepre.2015.05.009"},{"key":"ref8","unstructured":"RapfogelNThe behavioral health care affordability problemCenter for American Progress202205262026-04-15https:\/\/www.americanprogress.org\/article\/the-behavioral-health-care-affordability-problem\/"},{"key":"ref9","doi-asserted-by":"publisher","DOI":"10.1186\/s12966-019-0795-4"},{"key":"ref10","doi-asserted-by":"publisher","DOI":"10.1002\/cpp.1855"},{"key":"ref11","doi-asserted-by":"publisher","DOI":"10.1016\/S2589-7500(22)00233-3"},{"key":"ref12","doi-asserted-by":"publisher","DOI":"10.1186\/s12911-018-0591-0"},{"key":"ref13","doi-asserted-by":"publisher","DOI":"10.2196\/med20.1741"},{"key":"ref14","doi-asserted-by":"publisher","DOI":"10.2196\/17046"},{"key":"ref15","doi-asserted-by":"publisher","DOI":"10.1016\/j.ypmed.2021.106532"},{"key":"ref16","unstructured":"StrykerCKavlakogluEWhat is artificial intelligence (AI)?IBM2026-04-15https:\/\/www.ibm.com\/think\/topics\/artificial-intelligence"},{"key":"ref17","first-page":"603","author":"Chowdhary, KR","year":"2020","journal-title":"Fundamentals of Artificial Intelligence"},{"key":"ref18","author":"Martin, JH","year":"2008","journal-title":"Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition"},{"key":"ref19","doi-asserted-by":"crossref","DOI":"10.1007\/978-3-642-24797-2","author":"Graves, A","year":"2012","journal-title":"Supervised Sequence Labelling with Recurrent Neural Networks"},{"key":"ref20","doi-asserted-by":"crossref","DOI":"10.1007\/978-3-031-02165-7","author":"Goldberg, Y","year":"2017","journal-title":"Neural Network Methods for Natural Language Processing"},{"key":"ref21","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.1706.03762"},{"key":"ref22","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2005.14165"},{"key":"ref23","doi-asserted-by":"publisher","DOI":"10.1002\/acr.25612"},{"key":"ref24","doi-asserted-by":"publisher","DOI":"10.1002\/acr.25253"},{"key":"ref25","author":"Russell, SJ","year":"2009","journal-title":"Artificial Intelligence: A Modern Approach"},{"key":"ref26","unstructured":"WengLLLM powered autonomous agentsLil'Log20232026-04-15https:\/\/lilianweng.github.io\/posts\/2023-06-23-agent\/"},{"key":"ref27","doi-asserted-by":"publisher","DOI":"10.1145\/3560815"},{"key":"ref28","doi-asserted-by":"publisher","DOI":"10.1145\/3411763.3451760"},{"key":"ref29","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2005.11401"},{"key":"ref30","doi-asserted-by":"publisher","DOI":"10.1038\/s41746-024-01074-z"},{"key":"ref31","doi-asserted-by":"publisher","DOI":"10.2196\/79217"}],"container-title":["JMIR mHealth and uHealth"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/mhealth.jmir.org\/2026\/1\/e79302","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,30]],"date-time":"2026-06-30T18:12:17Z","timestamp":1782843137000},"score":1,"resource":{"primary":{"URL":"https:\/\/mhealth.jmir.org\/2026\/1\/e79302"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,29]]},"references-count":31,"URL":"https:\/\/doi.org\/10.2196\/79302","relation":{"has-preprint":[{"id-type":"doi","id":"10.2196\/preprints.79302","asserted-by":"object"}]},"ISSN":["2291-5222"],"issn-type":[{"value":"2291-5222","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,4,29]]}}}