schemaVersion
schemaVersion: 1
messageId
messageId: string
Optional
correlationId
correlationId?: null | string
Optional
causationMessageId
causationMessageId?: null | string
channel
channel:
| "whatsapp"
| "telegram"
| "instagram"
| "twilio_sms"
| "twilio_rcs"
| "chatwoot"
| "email"
| "webhook"
| "system"
| "other"
direction
direction: "inbound" | "outbound"
type
type: "message" | "system" | "status"
origin
origin: "provider" | "internal"
createdAt
createdAt: string
sender
sender: {
channelId: string;
role: "system" | "user" | "agent" | "bot";
displayName?: null | string;
}
recipients
recipients: {
channelId: string;
role: "system" | "user" | "agent" | "bot";
displayName?: null | string;
}[]
content
content: Record<string, unknown>
Optional
context
context?: null | Record<string, unknown>
derived
derived: {
source: string;
kind:
| "other"
| "asr"
| "ocr"
| "nlp"
| "moderation"
| "translation"
| "summary"
| "tagging";
ts: string;
data: unknown;
meta?: null
| Record<string, unknown>;
}[]