HomeAI Therapy › Can You Build Your Own AI Therapist?

Can You Build Your Own AI Therapist?

A chatbot that sounds like a supportive listener takes an afternoon. A tool that is safe, honest, and legal takes a clinical team, real evaluation, and a careful scope. Here is the honest version of the build guide.

Seph Fontane Pennock

Reviewed by Seph Fontane Pennock · 6 min read

Published July 20, 2026 · Last reviewed July 20, 2026

Developer workspace representing building an AI mental-health chatbot

In short

Yes, you can build a chatbot that talks like a supportive listener in an afternoon using a system prompt, a no-code builder, or an open-source GitHub project. Building a responsible one is a different project: crisis detection, sycophancy control, memory, evaluation, and privacy are unsolved even for well-funded teams, and the law now bites. Illinois and Nevada ban AI-delivered therapy outright, other states regulate it, and the FTC opened an inquiry into companion chatbots on September 11, 2025. The only research bot with strong trial evidence took a Dartmouth clinical team years to build. Responsible builders scope down: journaling aids, psychoeducation, skills practice, and navigation to human care.

The short answer

You can build a chatbot that talks like a supportive listener in an afternoon. 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 part is genuinely easy now, which is why character platforms host thousands of homemade therapist personas.

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 now prohibit offering AI-delivered therapy to the public, and federal regulators are examining the wider category.

This guide covers what people are actually building, why the easy version is easy, why the responsible version is hard, and what a builder who cares about users should scope instead. If you are only building a private journaling companion for yourself, the safety points still apply the day anyone else starts using it.

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, AI therapy expert

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 dozens of repositories, from weekend projects that wrap an API to research efforts that fine-tune open models on counseling-style dialogue. Quality varies enormously, and almost none ship with meaningful safety testing.

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 used Therabot for four weeks showed 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.

Why the easy version is easy

Large language models produce fluent, warm, empathic-sounding text by default. They are available around the clock, cost pennies per conversation, 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 feels 90 percent finished on day one 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.

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

Key takeaways

  • Anyone can build a therapist-style chatbot in an afternoon with a system prompt, a no-code builder, or an open-source GitHub project. Sounding supportive is the easy part.
  • The only chatbot with strong randomized-trial evidence, Dartmouth's Therabot, 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. Unlicensed-practice law applies everywhere.
  • 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.

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, offering AI-delivered therapy to the public is prohibited.

Is it legal to build an AI therapist?

Building software is legal. 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 in hours. 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. A no-code therapist is a liability.

Are there open-source AI therapist projects on GitHub?

Yes, GitHub hosts dozens of therapy-bot and mental-health chatbot repositories, from simple API wrappers to fine-tuned research models. Most ship without safety testing or crisis handling, so treat them as learning material rather than deployable products.

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, the strongest example, took years of clinical development and ran its trial with human monitoring.

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.

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

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.