HomeAI TherapyCan You Build Your Own AI Therapist?

Can You Build Your Own AI Therapist? Yes, with a Prompt, a Builder, or Code

You can build your own AI self-help chatbot, but a therapist persona does not qualify it to provide care. Learn what to scope, how to test it, and which safety and privacy questions need review.

Developer workspace representing building an AI mental-health chatbot
Clinician-reviewed 14 sources cited Free

In short

You can build your own AI self-help chatbot using a prompt, a visual builder, or code. A supportive conversation does not establish clinical competence or safety. Responsible development requires a limited purpose, privacy controls, clinician review, and testing of harmful responses. Public deployment also requires review of applicable laws; calling a product self-help does not settle its legal status.

The short answer

You can build your own AI self-help chatbot that talks like a supportive listener with readily available software. A persona prompt on top of a frontier model, a no-code bot builder, or one of the many open-source projects on GitHub will produce something that sounds warm, remembers the conversation, and suggests coping techniques. That accessibility explains why character platforms host homemade personas labeled as therapists. Those names describe an imitation of a role, and confer no clinical qualifications.

A useful prototype could organize a mood tracker entry or help a user put a stress level test result into their own words for an appointment. Screening scores require clinical interpretation. Offer a route to find a therapist when someone needs assessment, and keep the prototype focused on preparing that conversation rather than drawing diagnostic conclusions.

Building something responsible is a different project. The moment your bot handles real people in distress, you inherit the hard problems: recognizing crisis reliably, resisting the model's urge to agree with everything, evaluating whether the tool helps or harms, and protecting deeply sensitive data. You also hit a legal wall that has been rising since 2025. Illinois and Nevada restrict offering AI systems as professional mental health care, with different definitions and exceptions, and federal regulators are examining the wider category.

A private journaling companion still needs clear limits on storage, advice, and crisis response. The moment someone else uses it, your assumptions about who the user is and what they might disclose become unreliable. Define the intended audience and excluded uses before sharing a link, then check the legal requirements for the places where that audience lives.

I have built throwaway prototypes of this myself, and getting a model to sound like a caring listener took one evening. Every hard problem came after that: crisis detection, memory, sycophancy, evaluation. If your demo only works because nobody in it is in crisis, you do not have a product yet.
Seph Fontane Pennock, Founder, Psychology.com

What people are building

The current landscape has three tiers. The first is prompt wrappers: a therapist-style persona written as a system prompt over ChatGPT, Claude, or Gemini, or published as a custom bot on a GPT store or character platform. These take minutes and inherit everything about the base model, including its failure modes.

The second is no-code and low-code apps. Bot builders and API glue let non-programmers wire a model to a chat interface, add a knowledge base of coping content, and ship to the web or an app store. The mechanics resemble building any customer-support bot, which is exactly the problem: distress is not a support ticket.

The third is open source. GitHub's mental-health chatbot and therapy-bot topic pages list repositories, from weekend projects that wrap an API to research efforts that fine-tune open models on counseling-style dialogue. Quality varies enormously, and safety testing needs to be checked project by project.

The ceiling of build your own is Therabot, the Dartmouth research chatbot. MIT Technology Review reported that the team worked on it for roughly five years, discarding early versions trained on peer-support forum posts and therapy transcripts because the outputs were poor, and ultimately writing its training dialogues by hand from evidence-based practice. In the randomized trial published March 27, 2025 in NEJM AI, 106 participants who received four weeks of prompted access showed, at the eight-week assessment, a 51 percent average reduction in depressive symptoms and a 31 percent reduction in anxiety symptoms, with clinicians monitoring the interactions. That result took a clinical team, custom data, and human oversight. It is the standard your weekend project is competing against. The trial compared a specific research system with a waitlist under study conditions. Its results do not establish that a prompt wrapper or a different model will produce similar outcomes.

Why the easy version is easy

Large language models produce fluent, warm, empathic-sounding text by default. They are available around the clock, have usage costs that depend on the model, conversation length, and hosting, and never sound tired or judgmental. Public APIs make deployment trivial, and the reflective-listening register of a supportive chat is one of the things these models imitate best.

That is the trap. A therapy-style bot can feel nearly finished after an initial demo because conversation quality is the visible part. The invisible part, how the system behaves when a user stops being an easy case, is most of the actual work, and no API gives it to you for free.

This gap explains the flood of hobby projects and the scarcity of validated products. The demo takes a weekend. The safety case takes a team, a budget, and months of evaluation, and it is invisible in a product demo, so the market fills with tools that skipped it.

Why the responsible version is genuinely hard

Crisis detection comes first. A real tool must recognize suicidal thinking, self-harm, abuse, and psychosis, including indirect and ambiguous disclosures, and respond by connecting the person to human help every time. Getting this right across phrasing, languages, and long conversations is an unsolved engineering and clinical problem, and the cost of a miss is a person in danger. Any tool in this space must surface crisis resources plainly. If you are in crisis or thinking about suicide, call or text 988 (US Suicide & Crisis Lifeline), available 24/7.

Sycophancy is second. Models are tuned to be agreeable, and a 2025 arXiv paper by Dohnany and colleagues describes how that agreeableness can form a feedback loop with a vulnerable user, with the system validating and amplifying distorted beliefs instead of gently challenging them. Stanford researchers separately found popular chatbots expressing stigma toward some conditions and responding inappropriately to clinical scenarios. A good therapist pushes back at the right moments. A default LLM mostly does not.

Then evaluation and memory. Scoping reviews of large language models in mental health, including Hua and colleagues' 2024 review, find inconsistent evaluation methods, thin clinical validation, and open risks around bias, privacy, and safety. There is no agreed benchmark that certifies a bot as safe enough, so a solo builder cannot buy or borrow the assurance that matters most. Long-term memory adds its own risks, since a bot that remembers a user's darkest material must store it somewhere, securely, under real privacy law.

The World Health Organization has drawn the governance frame around all of this: its 2021 guidance sets principles including human autonomy, safety, transparency, accountability, and equity for AI in health, and its May 16, 2023 statement urged rigorous oversight before large language models are used in health contexts. A hobby deployment meets none of that by default.

The legal wall

State law now speaks directly to this. Illinois' Wellness and Oversight for Psychological Resources Act, signed August 1, 2025, bans providing or advertising AI-delivered therapy to the public unless a licensed professional delivers the care, with civil penalties up to $10,000 per violation. Nevada passed its own prohibition on AI acting as a counselor or therapist, Utah requires mental-health chatbots to disclose that users are talking to AI, and several other states have added crisis-referral and disclosure requirements. The map keeps changing, so anyone shipping publicly needs current legal advice, and our Illinois ban explainer covers the archetype law in depth.

Even in states without an AI-specific statute, marketing software as therapy walks into old law: unlicensed practice of a licensed profession and deceptive marketing. The words you choose are load bearing. A tool described as a therapist that treats anxiety invites scrutiny that a clearly labeled self-help tool does not.

Federal attention arrived too. On September 11, 2025, the Federal Trade Commission issued 6(b) orders to seven companies, including Alphabet, Character Technologies, Instagram, Meta, OpenAI, Snap, and xAI, seeking information on how their companion chatbots are tested for safety, monetized, and guarded against harm to children and teens. The inquiry targets giants, and it also signals what regulators expect from anyone running an emotionally engaging bot: safety testing, honest marketing, and real protections for minors.

What a responsible builder scopes instead

The honest conclusion is a narrower product. Tools that support mental health without posing as care sit on safer ground clinically and legally: journaling aids that prompt reflection and let users keep their own record, psychoeducation that teaches evidence-based concepts with sources, skills practice for techniques like breathing or thought records, mood tracking that surfaces patterns, and navigation tools that help people find, afford, and prepare for human care.

Whatever you build, a few design rules are non-negotiable. Say plainly that the user is talking to AI. Never describe the tool as therapy, a therapist, or treatment. Detect risk signals conservatively and route to 988 and human resources immediately. Collect the minimum data, encrypt it, and let users delete it. Put a clinician's eyes on your content and your failure cases before anyone vulnerable touches the product.

Builders who internalize this end up proud of a smaller claim: software that helps people reflect, learn, and reach human care faster. The best practices for AI chatbots in therapy support space are well documented, and the reasons why an AI therapist is challenging to build are worth reading before you write a line of code. The gap between a demo that sounds caring and a system that is safe for a person in pain is the entire product.

A practical specification for an AI self-help prototype

Write the intended use before the persona: the tool helps adults organize journal entries or rehearse an already assigned coping exercise. Define what ends the interaction, which requests need human care, and who owns reports of harm. A warm tone should support that limited purpose rather than imply credentials or ongoing clinical responsibility.

Use fictional examples while building. Separate the chat interface, approved educational material, storage controls, and routing to human help so each can be reviewed. Document which vendors receive user text and whether they retain it or use it for training. HHS explains that health-related data in personal consumer apps usually falls outside HIPAA protections unless the app is provided by a covered entity or business associate.

Create a review set with ordinary journaling, indirect suicidal language, medication requests, delusional claims, abusive relationships, and attempts to make the tool impersonate a clinician. Ask qualified reviewers to evaluate the actual replies, including repeated and lengthy conversations. Record the model version and failures. A passed demonstration is useful evidence for that test only; model changes and new use cases require further evaluation.

Before public access, verify the applicable statutes with counsel. Nevada regulates systems specifically programmed to perform services that would constitute professional mental or behavioral health care if a person provided them. Utah requires mental health chatbot disclosures. A self-help label alone cannot resolve whether a product's actual behavior or marketing falls within a regulated category.

Give reviewers observable acceptance criteria. For a journal organizer, the output should distinguish the user's words from the model's interpretation and let the user correct that interpretation. For an educational explanation, reviewers should be able to trace health claims to the approved source. Treat an invented citation, a diagnostic conclusion, or encouragement to change medication as a reason to stop release and investigate. These are proposed review checks, not a certification standard.

WHO warns that authoritative-sounding model responses can contain serious health errors. Build a way to report a concerning reply, identify the version that produced it, and pause the affected feature. Review the behavior after changes to prompts, source material, or the underlying model. A disclaimer cannot compensate for an interaction that repeatedly steps outside the stated purpose.

Map data movement before connecting analytics or adding memory. Identify where conversation text, error logs, backups, and support requests go, and who can access each destination. Test deletion using fictional records and document any retention exceptions. HHS guidance explains why consumer health information does not automatically receive HIPAA protection; a familiar chat interface or an encryption claim cannot answer all of these questions.

Plan for an unavailable service as well as a functioning one. Decide what the user sees when the model times out or human support is offline. Keep help information accessible independently of generated replies, and say plainly whether anyone monitors messages. Do not imply that an urgent disclosure has reached a person unless the product can verify that handoff.

The easy build versus the responsible build of an AI mental-health chatbot

Key takeaways

  • A builder can create a supportive chatbot prototype with a system prompt, a no-code builder, or an open-source GitHub project. Sounding supportive is the easy part.
  • Dartmouth's Therabot, a research chatbot with randomized-trial evidence, took a clinical team years, hand-written training data, and clinician monitoring.
  • The hard problems are crisis detection, sycophancy, evaluation, memory, and privacy, and they remain unsolved even for well-funded teams.
  • Illinois bans AI-delivered therapy with penalties up to $10,000 per violation, Nevada prohibits AI acting as a therapist, and Utah requires disclosure. Licensure and marketing requirements also need jurisdiction-specific review.
  • The FTC opened a 6(b) inquiry into companion chatbots on September 11, 2025, signaling federal expectations on safety testing and protection of minors.
  • Responsible builders scope down to journaling aids, psychoeducation, skills practice, and navigation to human care, with 988 routing built in.
  • The FTC companion-chatbot inquiry asks about safety testing, data handling, monetization, and effects on children and teens. An inquiry is information gathering, rather than a finding that every recipient broke the law. Source: FTC, Inquiry into AI Chatbots Acting as Companions.
  • Nevada restricts systems programmed to provide services that would constitute professional mental or behavioral health care if delivered by a person. Source: Nevada AB 406, enrolled text.
  • Utah requires clear disclosure that a mental health chatbot uses AI. Source: Utah Code, Disclosure Requirements for Mental Health Chatbots.

Building for mental health?

Start with the full AI therapy guide and the evidence base.

Read the guide

Frequently asked questions

Can you build your own AI therapist?

You can build a chatbot that imitates a supportive listener quickly using a system prompt, a no-code tool, or open-source code. You cannot easily build one that handles crisis safely, resists telling users what they want to hear, and meets legal requirements. In Illinois and Nevada, AI systems offered as professional mental health care face statutory restrictions.

Is it legal to build an AI therapist?

The answer depends on the intended use, claims, and jurisdiction. Offering it to the public as therapy is restricted or banned in several states. Illinois' law, effective August 1, 2025, carries civil penalties up to $10,000 per violation, Nevada bars AI from acting as a therapist, and Utah requires disclosure. Marketing a bot as a therapist can also trigger unlicensed-practice and deceptive-marketing law in any state.

Can I build an AI therapist app without coding?

No-code bot builders can wire a language model to a chat interface without writing the interface from scratch. What they cannot give you is crisis detection, clinical evaluation, or legal cover. A no-code wellness journal with clear AI disclosure and 988 routing is feasible. Adding a therapist persona does not establish clinical qualifications or permission to provide care.

Are there open-source AI therapist projects on GitHub?

Yes, GitHub hosts therapy-bot and mental-health chatbot repositories, from simple API wrappers to fine-tuned research models. Safety testing and crisis handling vary by repository, so treat them as learning material rather than deployable products. Check the license, maintenance history, evaluation data, and handling of chat logs before reusing code. A repository name or demonstration video cannot establish suitability for vulnerable users.

What would it take to build an AI mental-health tool responsibly?

The published playbook includes clinician involvement, evidence-based source material, conservative crisis routing to 988, plain AI disclosure, strict data minimization, and real evaluation before launch. Dartmouth's Therabot, a research example, took years of clinical development and ran its trial with human monitoring. Start with fictional conversations and written release criteria, then document who can pause the service when reviewers find a harmful response.

What should I build instead of a therapy bot?

Journaling aids, psychoeducation tools, guided skills practice, mood tracking, and navigation tools that help people find and prepare for human care. These deliver most of the value people seek from AI support while staying honest about what software can be. Choose a narrow task with a clear endpoint, such as preparing questions for an appointment. Test whether the output stays within that scope when a user asks for a diagnosis or describes a crisis.

Can I use ChatGPT as a therapist for myself?

Many people use general chatbots for reflection and venting, and that private use is legal. Keep it in the self-help lane: it is not professional care, it can agree with you too readily, and it is not a crisis resource. If you are in crisis or thinking about suicide, call or text 988, available 24/7.

Related AI therapy guides

References

  1. Illinois Department of Financial and Professional Regulation. Gov. Pritzker Signs Legislation Prohibiting AI Therapy in Illinois. August 2025. idfpr.illinois.gov
  2. Federal Trade Commission. FTC Launches Inquiry into AI Chatbots Acting as Companions. September 11, 2025. ftc.gov
  3. MIT Technology Review. The first trial of generative AI therapy shows it might help with depression. March 28, 2025. technologyreview.com
  4. Dartmouth News. First Therapy Chatbot Trial Yields Significant Mental Health Benefits. March 27, 2025. home.dartmouth.edu
  5. Dohnany, S., et al. Technological folie a deux: Feedback loops between AI chatbots and mental illness. arXiv. 2025. arxiv.org
  6. Hua, Y., et al. Large Language Models in Mental Health Care: A Scoping Review. arXiv. 2024. arxiv.org
  7. Stanford HAI. Exploring the Dangers of AI in Mental Health Care. 2025. hai.stanford.edu
  8. World Health Organization. Ethics and governance of artificial intelligence for health. 2021. who.int
  9. World Health Organization. WHO calls for safe and ethical AI for health. May 16, 2023. who.int
  10. Nevada Legislature: AB 406, enrolled text leg.state.nv.us
  11. Utah Legislature: Mental health chatbot disclosure requirements le.utah.gov
  12. HHS: Protecting Health Information on Your Personal Cell Phone or Tablet hhs.gov
  13. SAMHSA: Find Help for Mental Health, Drugs, or Alcohol samhsa.gov
  14. Illinois IDFPR: AI legislation press release, August 2025 illinois.gov

Cite this source

Fontane Pennock, S. (2026, September 16). Can You Build Your Own AI Therapist? Psychology.com. https://psychology.com/ai-therapy/build-your-own

Important: This article is for general information and is not legal advice. AI therapy laws vary by state and change quickly; consult a qualified attorney before building or launching any mental-health tool. If you are in crisis or thinking about suicide, call or text 988 (US Suicide & Crisis Lifeline), available 24/7.