Custom AI Chatbot for Emotional Regulation

In just 4 weeks, we built a secure Telegram text prototype with modular admin controls to test conversational workflows within safety boundaries.

Published on
September 11, 2026
AI
Mental Health

Duration

4 weeks

Industry

Healthcare, Mental Health

Services

Chatbots

Data Security

AI Development

Overview

Soulace is a US-based mental health initiative offering trauma-informed tools for youth and adults navigating anxiety and emotional distress. To test their concept without overspending, 26bitz built a text-based Telegram chatbot focused on anger regulation and grounding. This pilot allowed Soulace to validate live conversation flows with an early focus group before investing in heavy infrastructure.

Challenges of chatbots

While deploying basic chatbots is straightforward, building an AI tool for mental health care creates technical and safety hurdles:

  • Prompt attacks: LLMs face prompt manipulation and exploits that alter the bot's core behavior.
  • Off-topic responses: Generative models naturally wander, requiring hard guardrails to keep conversations anchored to grounding and anger management.
  • Medical advice: The system must avoid giving medical diagnoses, clinical treatment, or acting as a crisis line replacement.

Intelligent AI prototype

26bitz built the prototype on the client's infrastructure, focusing on core features:

  • Modular prompt admin: Non-technical staff can adjust, rearrange, and test prompt fragments in real time via a custom back office.
  • Context memory: Paired LangChain with PostgreSQL to maintain conversation memory without storing raw text logs outside the database.
  • Security: Added secret token rotation to incoming webhooks to block unauthenticated requests.

Results

The prototype successfully transitioned from a conceptual roadmap into an active testing asset:

  • 4-week rollout: Delivered a working text pilot on schedule.
  • Conversation logging: Structured interaction logs support safety reviews and crisis-signal analysis.
  • Instant updates: All edits apply immediately within Telegram, enabling fast iterations.

Testimonial

“I just wanted to say wow — I absolutely love the prototype. It’s far more advanced than I expected. Without any additional programming, it’s already guiding the user effectively — which wasn’t part of our original commands or instructions, yet it handled it beautifully.

It also empathizes extremely well. That journaling capability wasn’t even part of the de-escalation techniques we programmed, but it executed them perfectly too. This is way beyond what I expected for a prototype. Fantastic work.” — Joel Finch, Founder of Soulace

What’s Next

The text pilot proved the core conversational workflows, so Soulace is building out the full platform. The immediate focus is adding voice support, integrating structured anger-management techniques, and launching web and mobile apps.

Technology stack

Python, Django, LangChain, OpenAI, PostgreSQL

Start building your future-ready
solution today

We're here to help you with your inquiries.

Customer testimonials

Our clients highlight our expertise and reliable technical support

26bitz immediately understood our vision for bringing accessible mental health support to this vulnerable population. Utilizing a model fine-tuned on Swahili language will expand the number of students who can access Tumaini and make interactions feel more organic and natural. We look forward to continuing to work with 26bitz to expand the features and functions of Tumaini to better serve the mental health needs of Youth with Disabilities.

Chris
Harrison

Executive Chairman

Working with Andrey and 26bitz was a great experience. They jumped in quickly to help us set up an integration in our internal pharma system and brought valuable insights from their experience in healthcare tech. Their knowledge of security and compliance really stood out, and it was super easy to communicate with them. Would definitely work with 26bitz again!

Victor G.

Global Regulatory
Affairs Manager

26bitz has finalized the Supabase migration, and the entire app now runs on a custom backend. The team has set up the cloud infrastructure and deployed the app; it's now fully up and running. 26bitz has significantly improved application speed and loading times; it's now much faster. I'm impressed by 26bitz's clarity, quickness, and kindness. They've been amazing.

Eric Talbert

CEO & Co-Founder

What stood out most about 26bitz was the rare combination of technical innovation and genuine compassion that drives their work. Finding a technology partner who not only excels in software development but also demonstrates a deep commitment to social impact and mental health advocacy is truly uncommon. The collaboration with 26bitz was seamless from start to finish. Communication, delivery, and professionalism consistently exceeded expectations, and all project goals were achieved on time and with exceptional quality.

Joel Finch

President & Board
of Directors Chair.

Latest Case Studies

Explore our latest challenges and successes in building impactful healthtech solutions.

Contact 26bitz for healthcare software development
Connect

Schedule a consultation with our team

Please provide a brief overview of your project and your earliest availability, and we will get back to you as soon as possible.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.