🌽 *orn (Porn Quitter Conversational AI Agent )— A Private Recovery Companion in a Week

Published: (January 17, 2026 at 03:18 PM EST)
3 min read
Source: Dev.to

Source: Dev.to

This is a submission for the Algolia Agent Studio Challenge: Consumer‑Facing Conversational Experiences

What I Built

I built corn, a private, consumer‑facing conversational AI designed to support people who are trying to quit porn and regain control over compulsive habits.

corn is not a general chatbot and not a therapist.
It’s a calm, judgment‑free recovery companion that focuses on:

  • Managing urges in the moment
  • Handling relapse without shame
  • Staying motivated during difficult phases
  • Following a structured 90‑day recovery program
  • Anonymous journaling and self‑reflection

The core problem corn addresses is isolation. Many people struggle silently with this habit and don’t want lectures, guilt, or explicit discussions. corn provides a safe space where users can simply talk — especially during moments when willpower is weakest.

The conversational experience is intentionally simple:

  • Short, supportive responses
  • No explicit content
  • No medical claims
  • Focused on ā€œget through this momentā€ rather than perfection

Demo

Live Demo: šŸ‘‰

Screenshots

Corn UI – HomeCorn UI – Chat
Rate‑limit noticeAlgolia Sandbox test
Conversation flowFinal UI

Note: The ā€œRate limit in Google Gemini 2.5 Flash free tierā€ stops the request for providing a response. Overall, the app works correctly in free‑testing using the Algolia Sandbox and OpenAI.

Testing Video

Google Drive video link

How I Used Algolia Agent Studio

Algolia Agent Studio powers corn’s conversational experience. Instead of putting everything into a single index, I designed the agent using multiple purpose‑driven indexes, each with a clear responsibility.

Indexed Data Structure

IndexPurpose
corn_core_intentsHandles real‑time conversations (urges, relapse support, motivation, fallback handling).
corn_90_day_programStores the structured recovery logic mapped to days 1‑90.
corn_journaling_promptsContains anonymous journaling prompts that help users process emotions through writing.

Why This Matters

  • Routing: Queries are sent to the appropriate knowledge source.
  • Separation of concerns: Emotional support stays distinct from structured program data.
  • Predictability & safety: Responses remain consistent, context‑aware, and non‑triggering.

Prompt & Instruction Design

I used strict system instructions to ensure the agent:

  • Never produces explicit or triggering content.
  • Uses a supportive, non‑judgmental tone.
  • Stays strictly within the recovery scope.
  • Uses emojis sparingly to maintain warmth 🌱

Retrieval from Algolia indexes guarantees the agent responds based on intent‑specific data rather than generic LLM guessing.

Why Fast Retrieval Matters

For this use case, speed and relevance are critical. When someone types:

ā€œI have an urge right nowā€

they don’t want:

  • A long explanation
  • A generic motivational speech
  • A delayed response

They need:

  • The right response
  • Immediately
  • In the correct emotional tone

Algolia’s fast, contextual retrieval ensures:

  • The correct intent is matched instantly.
  • The agent replies with focused, calming guidance.
  • No unnecessary or off‑topic content is introduced.

This makes the experience feel present and reliable—essential for sensitive, time‑critical moments.

End of submission.

DEV Team Member

DEV Team Member Id: https://dev.to/abbas7120

Back to Blog

Related posts

Read more Ā»

Dify Chatbot Testing Notes

!Cover image for Dify Chatbot Testing Noteshttps://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-upl...

SLMs - A Very Different Form of AI

Local Small Language Models: A Different Kind of Agency For the last few years, most discussions about local small language models SLMs have focused on common...