Skip to main content

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:

  1. Identifies the conversation based on the channel and chat ID
  2. Loads context from the conversation history
  3. Routes to an agent based on the message content
  4. Generates a response using the selected AI model
  5. 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

TypeDescription
TextStandard text messages
PhotoImage messages (can be analyzed by AI)
DocumentFile attachments
CommandBot 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