Get Greeting
Retrieve a personalized greeting message based on your journaling history, current streak, and recent mood.Response Types
First-Time User (No Entries)
Returning User (No Groq API)
AI-Powered Greeting (With Groq API)
Response Fields
Time-based greeting:
Good morning, Good afternoon, or Good eveningPersonalized message based on journaling context
Whether the user has any journal entries
Current journaling streak (days)
Total number of journal entries (only if entries exist)
Whether the message was generated by AI (only if Groq API configured)
Greeting Logic
Time-Based Greeting
Based on current hour:| Time | Greeting |
|---|---|
| 00:00 - 11:59 | Good morning |
| 12:00 - 16:59 | Good afternoon |
| 17:00 - 23:59 | Good evening |
Message Generation
No Entries
Random motivational quote:- “Every great journey begins with a single step. Start your journaling adventure today!”
- “Your thoughts matter. Take a moment to capture them.”
- “The best time to start journaling was yesterday. The second best time is now.”
- “Writing is thinking on paper. Begin your reflection journey today.”
- “A journal is a friend who listens without judgment. Say hello!”
With Entries (No AI)
Context-based messages:- Already journaled today: “Welcome back! You’ve already journaled today. Keep the momentum going!”
- Active streak: “You’re on a -day streak! Don’t break it - write today.”
- No current streak: “Ready to reflect? Your journal awaits.”
With Entries (AI-Powered)
Personalized narrative considering:- Total entry count
- Current streak
- Whether you journaled today
- Recent mood patterns (“mostly positive”, “mixed”, “reflective”)
- Recent themes (work, health, creativity, etc.)
AI greetings are limited to 30 words and avoid excessive exclamation marks for a natural tone.
Context Sent to AI
Example context:Use Cases
Welcome Screen
Display greeting when user opens the app:Motivation Dashboard
Combine greeting with stats:Notification Content
Use for push notifications or reminders:AI vs Non-AI Examples
Without Groq API
Simple, rule-based:With Groq API
Contextual, personalized:Fallback Behavior
If AI generation fails:Guidelines for AI Greetings
The AI is instructed to: ✅ Be warm but not overly enthusiastic✅ Acknowledge streaks naturally
✅ Reference recent themes or moods if relevant
✅ Keep under 30 words
✅ Sound like a supportive friend ❌ Don’t use excessive exclamation marks
❌ Don’t be overly effusive or cheesy
❌ Don’t guilt-trip if they haven’t journaled
Performance
- Local greeting (no AI): < 10ms
- AI greeting (with Groq): 200-500ms depending on API latency
Consider caching AI greetings for a few hours to reduce API calls and improve performance.
Caching Strategy
Next Steps
Stats API
Get streak and engagement data
Insights API
Discover patterns in journaling