Get Conversation History
Chat
Get Conversation History
GET
Get Conversation History
Planned Implementation
Conversation history is maintained automatically by the AI assistant using thread IDs formatted as{user_id}-{date}. Each day creates a new conversation thread, and context is preserved within the same day’s interactions.
Alternative: Thread-Based Context
The SmartEat AI chat system currently uses LangGraph’s state management to maintain conversation context:- Thread ID Format:
{user_id}-{current_date} - Context Window: Conversations are scoped to the current day
- State Persistence: Message history is maintained in-memory during the session
- Profile & Plan Access: The assistant always has access to your current profile and active meal plan
Example Current Behavior
When you send multiple messages in a day, the assistant maintains context:First Message
Follow-up Message (Same Day)
Schema Definition
When this endpoint is implemented, it will return conversation history using the following schema:Response Structure
array
Array of messages in chronological order
Future Implementation Example
200 - Success (Planned)
Notes
- Conversation history may be implemented in a future version
- Current implementation relies on LangGraph’s state management
- Each day starts a new conversation thread
- Consider implementing persistent storage for long-term conversation history
