Message Threads
Understanding message threads as the foundation of Hydra AI applications.
Message threads are the core building block for creating interactive AI experiences with Hydra. They provide a structured way to manage conversations between users and AI, complete with status tracking, streaming responses, and interactive components.
Core Concepts
A message thread consists of:
- Messages from both user and AI
- Status indicators for ongoing operations
- Streaming state management
- Interactive components
- Suggestions for next actions
- User profiles and context
Available Hooks
Core Thread Management
Message Management
Thread Status
Learn how to use thread status updates.
Thread Suggestions
Learn how to use thread suggestions.
Thread Operations
Implementation Examples
Basic Message Thread
Advanced Features
Message Streaming
Message streaming allows for real-time updates as the AI generates responses: