Quick Start
Your first emotion-aware AI character in under a minute.
Quick Start
This walkthrough takes you from zero to a working emotion-aware character in under a minute.
Prerequisites
- An API key (get one here)
- Base URL:
https://api.molroo.io/v1
1. Create a Session with a Preset
The fastest way to start — pick one of 5 built-in personality templates.
curl
JavaScript
Python
Save the returned sessionId — you need it for every subsequent call.
Available presets:
cheerful_companion,stoic_mentor,anxious_helper,playful_trickster,empathetic_listener. See Persona Presets for details.
2. Send a Message
Process a conversation turn through the emotion engine. Just send the session ID and a message.
curl
JavaScript
Python
The response tells you:
- What the character feels (
discrete_emotion,new_emotion) - How deeply (
emotion_intensity) - What stage they're in (
soul_stage) - How much energy they have (
body_budget) - LLM-ready prompts (
prompt_data) — the key feature
3. Use prompt_data with Your LLM
Every turn response includes prompt_data — structured prompts you can inject directly into your LLM call.
That's it. Three API calls: create a session, send a message, use prompt_data in your LLM.
What's in prompt_data?
| Block | Contains | Purpose |
|---|---|---|
system_prompt | Identity, personality traits, goals, speaking style | Who the character is |
context_block | Current emotion, energy, needs, relationship state | How they feel right now |
instruction_block | Stage-appropriate behavior, expression guides | How to act in this moment |
See the full prompt_data guide for details on each field.
Next Steps
- Persona Presets — Explore all 5 built-in templates
- prompt_data — Deep dive into LLM-ready prompts
- Turn API — Full turn endpoint reference
- WebSocket Guide — Real-time emotion updates
- Persona Design — Create custom personas beyond presets