Skip to main content

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

ParameterDescription
ChatThe resource name of the chat.
Format: spaces/{space}.
FilterA query filter. You can filter messages by date (createTime) and thread (thread.name).
Page SizeThe 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 FromChoose from which space type to read messages.
SpaceThe resource name of the space.
Format: spaces/{space}.

Advanced Parameters

ParameterDescription
Delegated User OverridePerform 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 ByHow 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

Workflow LibraryPreview this Workflow on desktop