Parameters

NameTypeRequiredDescription
brandIdstringYesOcoya brand id from ocoya_list_brands.
statusstringNoOPEN waiting for the team, RESOLVED done, SPAM junk. One of OPEN, RESOLVED, SPAM.
typestringNoDM (email threads too), COMMENT, MENTION or REVIEW. One of DM, MENTION, COMMENT, REVIEW.
channelIdsstring[]NoOnly these channels, from ocoya_list_channels.
labelIdsstring[]NoOnly conversations with any of these labels, from ocoya_list_inbox_labels.
assigneeIdstringNoOnly those assigned to this teammate (from ocoya_list_inbox_teammates), or unassigned.
archivedbooleanNotrue lists the archived conversations instead.
querystringNoThe customer’s name, or anything written in the conversation.
pagenumberNoZero-based page number. Defaults to 0.
perPagenumberNoConversations per page, up to 100. Defaults to 25.

Request example

{
  "name": "ocoya_list_conversations",
  "arguments": {
    "brandId": "cmayvq3hk00017apshay5qezu",
    "channelIds": ["clh49poxf008x8kov4ncbjty9"],
    "query": "launch"
  }
}

Returns

Returns total, page, perPage and data. This tool only reads: it changes nothing in Ocoya.