A Conversational Agent for Providing Personalized Preexposure Prophylaxis (PrEP) Support: Protocol for Chatbot Implementation and Evaluation.
Fatima Sayed, Albert Park, Patrick Sean Sullivan, Yaorong Ge
Department of Software and Information Systems, University of North Carolina at Charlotte, Charlotte, NC, United States. · School of Health Information Science, University of Victoria, PO Box 1700 STN CSC, Victoria, BC, V8W 2Y2, Canada, +1-250-721-8575.
Key points
From the paper's conclusion- Describes the iterative development and evaluation plans of a retrieval-augmented generation (RAG) chatbot for providing personalized information, peer experiential expertise, and human-like emotional support to PrEP candidates.
- Develops a RAG chatbot and iteratively refines it based on internal evaluation feedback, finding prompt effectiveness varies with task complexity.
- The linear mixed model analysis reveals that while both the general LLM and RAG were preferred over user responses, the general LLM maintained a superior edge over the RAG chatbot across most criteria, with the exceptions of empathy and tone.
Abstract
BACKGROUND: Chatbots have the potential to reduce barriers to preexposure prophylaxis (PrEP), including lack of awareness, misconceptions, and stigma, by providing anonymous and continuous support. However, in the context of PrEP, chatbots are still nascent; they lack personalized informational expertise, peer experiential expertise, and human-like emotional support to facilitate future PrEP uptake. These personalized and relatable forms of support are crucial for increasing engagement, influencing health decisions, and fostering resilience and well-being. OBJECTIVE: In this paper, we describe the iterative development and evaluation plans of a retrieval-augmented generation (RAG) chatbot for providing personalized information, peer experiential expertise, and human-like emotional support to PrEP candidates. METHODS: We used an iterative design process consisting of 2 phases: prototype conceptualization and iterative chatbot development. In the conceptualization phase, we identified real-world PrEP needs and designed a functional dialogue flow diagram for PrEP support. Chatbot development included developing 2 components: a query preprocessor and a RAG module. The preprocessor uses the Segment Any Text (SAT) tool (developed by Markus Frohmann, Igor Sterner, Ivan Vulić, Benjamin Minixhofer, and Markus Schedl) for query segmentation and a Gemma 2 fine-tuned support classifier to identify informational, emotional, and contextual data from real-world queries. To implement the RAG module, we used Sentence-Bidirectional Encoder Representations from Transformers (SBERT) embeddings with cosine similarity, and performed topic matching to identify topically relevant documents based on the query topic to support document retrieval. Extensive prompt engineering was used to guide the large language model (LLM), Gemini-2.0-flash, in generating tailored responses. We conducted 10 rounds of internal evaluations to assess and improve the chatbot responses based on 10 criteria: clarity, accuracy, actionability, relevancy, information detail, tailored information, comprehensiveness, language suitability, tone, and empathy. Finally, we conducted a blinded comparative study and used a linear mixed model to validate the chatbot against a general LLM and real-world user responses. RESULTS: We developed a RAG chatbot and iteratively refined it based on the internal evaluation feedback. Prompt engineering is essential in guiding the LLM to generate responses tailored to information, experiential, and emotional user needs. We found that prompt effectiveness varied with task complexity; this was likely due to LLM sensitivity to the structure of prompts and to linguistic variability. Prompt decomposition and segmenting prompt instructions helped improve comprehensiveness and relevancy for complex and long queries. The linear mixed model analysis revealed that while both the general LLM and RAG were preferred over user responses, the general LLM maintained a superior edge over the RAG chatbot across most criteria, with the exceptions of empathy and tone. CONCLUSIONS: Our RAG chatbot leverages social media data to provide personalized information, peer experiences, and human-like emotional support; these elements are essential for addressing PrEP misconceptions and promoting self-efficacy. Further analysis incorporating expert and user feedback will be conducted to help validate and improve the chatbot's potential.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Describes the iterative development and evaluation plans of a retrieval-augmented generation (RAG) chatbot for providing personalized information, peer experiential expertise, and human-like emotional support to PrEP candidates.
- Develops a RAG chatbot and iteratively refines it based on internal evaluation feedback, finding prompt effectiveness varies with task complexity.
- The linear mixed model analysis reveals that while both the general LLM and RAG were preferred over user responses, the general LLM maintained a superior edge over the RAG chatbot across most criteria, with the exceptions of empathy and tone.
Readers' thoughts
No reader thoughts yet.
Related papers
- Understanding community questions about HIV pre-exposure prophylaxis (PrEP): A thematic analysis of reddit threads to inform development of an AI chatbot for PrEP education.HIV medicine · 2026
- '…it helps me to be able to do the right thing …': pilot of a waiting area chatbot to enhance self-assessment of HIV vulnerability and motivation for PrEP use in Nigeria.BMJ digital health & AI · 2026
- Enthusiasm and hesitation: a structural topic modelling analysis of long-acting injectable PrEP perceptions among Dutch-speaking MSMHIV Research & Clinical Practice · 2026
- Trust Over Ease: Extending the UTAUT2 Model to Explain Young Adults’ Intentions to Use Sexual Health Chatbots in the Generative AI EraJournal of Technology in Behavioral Science · 2026
- Consultation Categories, Satisfaction, and Post-use Health Problems of Medical Chatbot Service Providing Medicine Use Recommendations for Women during Pregnancy and Lactation in Japan.Annals of clinical epidemiology · 2026
- Designing Chatbots for Person-Centered Care: Insights from Contraceptive Care in Kenyan PharmaciesProceedings of the ACM on Human-Computer Interaction · 2026