Skip to main content

Get Chat Info

Returns the existing direct message with the specified user. If no direct message space is found, returns a 404 NOT_FOUND error.

With user authentication, returns the direct message space between the specified user and the authenticated user.

With service account authentication, returns the direct message space between the specified user and the calling Chat app.

For more information please see the [https://developers.google.com/chat/api/reference/rest/v1/spaces/findDirectMessage](Google Chat documentation).

External Documentation

To learn more, visit the Google Chat documentation.

Basic Parameters

ParameterDescription
User Email Or IDResource identifier of the user to find direct message with. Can be obtained via the List Members action.
Format: users/{User Email Or ID}.
For example, users/example@gmail.com where example@gmail.com is the email of the Google Chat user. User could be also either the person_id for the person from the People API, or the id for the user in the Directory API. For example, if the People API Person.resourceName is 123456789, you can find a direct message with that person by using users/123456789 as the user id.

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.

Example Output

{
"name": "spaces/vsBB3UBBAE",
"spaceHistoryState": "HISTORY_ON",
"spaceThreadingState": "UNTHREADED_MESSAGES",
"spaceType": "DIRECT_MESSAGE",
"type": "ROOM"
}

Workflow Library Example

Get Chat Info with Google Chat and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop