Skip to main content
Messages are the primary way bots communicate with users. Botpress supports multiple message types for rich interactions.

Send messages

Create messages using the client:
src/index.ts

Message types

Text messages

Send plain text:

Type signature

Image messages

Send images:

Type signature

Audio messages

Send audio files:

Type signature

Video messages

Send videos:

Type signature

File messages

Send files:

Type signature

Location messages

Send location:

Type signature

Card messages

Send interactive cards with buttons:

Type signature

Send multiple cards in a carousel:

Type signature

Choice messages (dropdown/buttons)

Send options for users to choose:

Type signature

Bloc messages

Send multiple message items in a single bloc:

Type signature

Receive messages

Handle incoming messages with type-specific handlers:
src/index.ts

Message tags

Add custom tags to messages:
Define message tags in bot definition:
bot.definition.ts

Get messages

Retrieve message by ID:

List messages

List conversation messages:

Pagination

Update messages

Update message tags:

Delete messages

Delete a message:

Type signatures

Next steps

Conversations

Manage conversations and users

Bot handlers

Implement message handlers