Member Junction
    Preparing search index...

    Normalized representation of an incoming message from any messaging platform.

    Platform adapters convert their platform-specific event payloads into this common format before passing to BaseMessagingAdapter.HandleMessage().

    interface IncomingMessage {
        ChannelID: string;
        IsBotMention: boolean;
        IsDirectMessage: boolean;
        MentionedAgentNames?: string[];
        MessageID: string;
        RawEvent: Record<string, unknown>;
        SenderEmail?: string;
        SenderID: string;
        SenderName: string;
        Text: string;
        ThreadID: string | null;
        Timestamp: Date;
    }
    Index

    Properties

    ChannelID: string

    Channel/conversation ID where the message was sent.

    IsBotMention: boolean

    Whether the bot was explicitly

    in the message.

    IsDirectMessage: boolean

    Whether this is a direct message (DM) to the bot.

    MentionedAgentNames?: string[]

    Agent names mentioned in the message (parsed from @mentions). Used for multi-agent routing. The first agent in the list is used.

    MessageID: string

    Platform-specific message ID (e.g., Slack ts, Teams activity.id).

    RawEvent: Record<string, unknown>

    Raw platform-specific event payload for adapter-specific logic.

    SenderEmail?: string

    Email of the sender (if available from platform). Used for MJ user lookup.

    SenderID: string

    Platform-specific user ID of the sender.

    SenderName: string

    Display name of the sender (may be empty if not available).

    Text: string

    The text content of the message.

    ThreadID: string | null

    Thread ID for threaded conversations (null for top-level messages).

    Timestamp: Date

    Timestamp of the message.