List Messages
Lists messages in space or chat that the caller is a member of, including messages from blocked members and spaces.
External Documentation
To learn more, visit the Google Chat documentation.
Basic Parameters
Parameter | Description |
---|---|
Chat | The resource name of the chat. Format: spaces/{space}. |
Filter | A query filter. You can filter messages by date (createTime) and thread (thread.name). |
Page Size | The maximum number of messages returned. The service might return fewer messages than this value. If unspecified, at most 25 are returned. The maximum value is 1,000. If you use a value more than 1,000, it's automatically changed to 1,000. |
Read From | Choose from which space type to read messages. |
Space | The resource name of the space. Format: spaces/{space}. |
Advanced Parameters
Parameter | Description |
---|---|
Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection. If not specified, the delegated user is the one provided in the connection. Has no effect when using an OAuth connection. NOTE: the connection details are not edited by this input. |
Order By | How the list of messages is ordered. Specify a value to order by an ordering operation. Valid ordering operation values are as follows: ASC for ascending. DESC for descending. The default ordering is createTime ASC . |
Example Output
{
"messages": [
{
"name": "spaces/AAAbnh123/messages/DGLE231_dsa2.DAuNixz5M_U",
"sender": {
"name": "users/23427349871239123",
"type": "HUMAN"
},
"createTime": "2023-08-23T10:48:02.634495Z",
"text": "hellooo",
"thread": {
"name": "spaces/AAAbnh123/threads/DGLE231_dsa2"
},
"space": {
"name": "spaces/AAAbnh123"
},
"argumentText": "test",
"emojiReactionSummaries": [
{
"emoji": {
"unicode": "😅"
},
"reactionCount": 1
}
]
}
]
}
Workflow Library Example
List Messages with Google Chat and Send Results Via Email
Preview this Workflow on desktop