Skip to main content
A PostableMessage is the input type for posting messages to threads. It supports multiple formats: plain text, markdown, mdast AST, cards, and streaming.

Type Definition

Message Formats

Plain String

The simplest format - raw text passed through as-is to the platform.

PostableRaw

Explicit raw text with optional attachments and files.
Example:

PostableMarkdown

Markdown text that’s automatically converted to platform-specific format.
Example:

PostableAst

mdast AST (Abstract Syntax Tree) for precise formatting control.
Example:

PostableCard

Rich card with interactive components.
Example:

Streaming

Stream text incrementally from AI models using AsyncIterable.
Example with AI SDK:

Attachment Types

Attachment

File/image attachments linked to messages.

FileUpload

File to upload with a message.
Example: