š½ *orn (Porn Quitter Conversational AI Agent )ā A Private Recovery Companion in a Week
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
![]() | ![]() |
![]() | ![]() |
![]() | ![]() |
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
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
| Index | Purpose |
|---|---|
| corn_core_intents | Handles realātime conversations (urges, relapse support, motivation, fallback handling). |
| corn_90_day_program | Stores the structured recovery logic mapped to daysāÆ1ā90. |
| corn_journaling_prompts | Contains 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 Id: https://dev.to/abbas7120





