Skip to main content
await canopy.messageThreadLength();
Returns the number of dialogues in the messageThread.

Response

You will get a JSON response with the following fields:
success
boolean
timestamp
number
messageThreadLength
number
The number of dialogue objects in the messageThread.