Conversations
Conversations are the core of Mesachat. Every message exchange between a user and a bot is part of a conversation.
How Conversations Work
When a user sends a message through any connected channel, Mesachat:
- Identifies the conversation based on the channel and chat ID
- Loads context from the conversation history
- Routes to an agent based on the message content
- Generates a response using the selected AI model
- Stores the exchange in the conversation history
Conversation Context
Mesachat maintains conversation history to provide context-aware responses. The context window is configurable per tenant, bot, or user:
- Window size — How many previous messages to include (default: 20)
- Retention period — How long messages are kept in hot storage (default: 30 days)
- Archival — Older messages are automatically archived to cold storage
Message Types
| Type | Description |
|---|---|
| Text | Standard text messages |
| Photo | Image messages (can be analyzed by AI) |
| Document | File attachments |
| Command | Bot commands (e.g., /ping, /help) |
Viewing Conversations
In the admin interface, navigate to Interactions to view live conversations across all bots and channels. You can filter by:
- Bot
- Channel
- Time range
- Agent used