Improve clarity and flow while preserving the original meaning and voice.
POST /api/rewrite
curl -X POST http://127.0.0.1:5000/api/rewrite \ -H "Content-Type: application/json" \ -d '{ "text": "Today was ok. Did some work stuff and felt kind of tired." }'
{ "rewritten": "Today felt manageable, though energy was lower than usual. I spent most of my time focused on work tasks, and by the evening, fatigue had definitely set in. It was one of those steady but draining days."}
A complete, well-written journal entry generated from the nudges
Example Response:
{ "entry": "I started my day with a refreshing walk through the park, which helped clear my mind before diving into work. The team meeting this morning was particularly productive—we made solid progress on the project timeline and everyone seemed aligned.\n\nIn the afternoon, I grabbed coffee with Sarah. It was great catching up and hearing about her recent travels. Later in the evening, I finally finished chapter 5 of my book, which had some fascinating insights into habit formation. Overall, it felt like a well-balanced day with a good mix of productivity and connection."}
Get personalized suggestions to continue or deepen your journal entry.
POST /api/suggest
curl -X POST http://127.0.0.1:5000/api/suggest \ -H "Content-Type: application/json" \ -d '{ "text": "Today I felt overwhelmed at work. Too many deadlines." }'
Array of 3 suggestion objects, each with type and text fields
Example Response:
{ "suggestions": [ { "type": "continue", "text": "Which specific deadline is causing the most stress? Writing about it might help break down the problem into manageable steps." }, { "type": "reflect", "text": "How does your body feel when you think about these deadlines? Are there patterns in when work stress shows up?" }, { "type": "gratitude", "text": "Even on tough days, what's one small moment you appreciated? Maybe a coworker's help or a quiet break?" } ]}
curl -X POST http://127.0.0.1:5000/api/summarize \ -H "Content-Type: application/json" \ -d '{ "text": "Today was incredibly eventful. I started the morning..." }'
{ "summary": "Had a busy but fulfilling day with a productive morning at work followed by quality time with friends in the evening. Feeling grateful for the balance between professional achievements and personal connections."}
While Reflect AI stores all data locally, these AI endpoints send text to Groq’s API for processing. Only the specific text you request to rewrite, generate, or analyze is sent—never your full journal.
Text is sent to Groq API for processing
Groq processes text but does not store it long-term
No journal metadata is sent (dates, photos, tags remain local)
You can disable AI features by removing the GROQ_API_KEY