Skip to main content
The Client provides methods for interacting with all Botpress resources. This page documents the most commonly used methods.

Conversations

createConversation

Create a new conversation.
Example:

getConversation

Get a conversation by ID.

listConversations

List conversations with pagination.

updateConversation

Update conversation metadata.

deleteConversation

Delete a conversation.

getOrCreateConversation

Get existing or create new conversation.

Messages

createMessage

Send a message.
Example:

getMessage

Get a message by ID.

listMessages

List messages in a conversation.

updateMessage

Update message metadata.

deleteMessage

Delete a message.

Users

createUser

Create a new user.

getUser

Get a user by ID.

listUsers

List users.

updateUser

Update user metadata.

deleteUser

Delete a user.

getOrCreateUser

Get or create a user.

Events

createEvent

Create a custom event.
Example:

getEvent

Get an event by ID.

listEvents

List events.

State

getState

Get state by name and type.
Example:

setState

Set state value.

getOrSetState

Get or set state.

patchState

Partially update state.

Actions

callAction

Execute an integration action.
Example:

Files

uploadFile

Upload a file.
Example:

getFile

Get file metadata.

listFiles

List files.

deleteFile

Delete a file.

upsertFile

Create or update a file.

Tables

createTableRows

Insert rows into a table.
Example:

getTableRow

Get a table row by ID.

findTableRows

Query table rows.
Example:

updateTableRows

Update existing rows.

upsertTableRows

Insert or update rows.

deleteTableRows

Delete rows matching filter.

Workflows

createWorkflow

Create a workflow.

getWorkflow

Get a workflow by ID.

updateWorkflow

Update a workflow.

deleteWorkflow

Delete a workflow.

listWorkflows

List workflows.

Analytics

trackAnalytics

Track custom analytics events.
Example:

See Also