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.

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.
Latest Case Studies
Explore our latest challenges and successes in building impactful healthtech solutions.

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.













.avif)
