> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# New Chat Message

Triggers a workflow on every new message in a given `Space` or `Chat`.

**Endpoint**: `https://chat.googleapis.com/v1/{parent}/messages`

<Note>
  Workflows with this trigger check for new events **every 5 minutes by default**. You can adjust this interval in the Trigger settings.
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter          | Description                                                                                                         |
  | ------------------ | ------------------------------------------------------------------------------------------------------------------- |
  | Space Or Chat Name | The `Space` or the `Chat` name of the space to list messages from.<br /><br />Format: `spaces/{space_or_chat_name}` |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                                                                                  |
  | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection.<br /><br />If not specified, the delegated user is the one provided in the connection.<br /><br />Has no effect when using an OAuth connection.<br /><br />NOTE: the connection details are not edited by this input. |
</div>

## Sample Event

```json theme={"dark"}
{
	"name": "spaces/AAAbnh123/messages/DGLE231_dsa2.DAuNixz5M_U",
	"sender": {
		"name": "users/23427349871239123",
		"type": "HUMAN"
	},
	"createTime": "2023-08-23T10:48:02.634495Z",
	"text": "This is the text of Google Chat",
	"thread": {
		"name": "spaces/AAAbnh123/threads/DGLE231_dsa2"
	},
	"space": {
		"name": "spaces/AAAbnh123"
	},
	"argumentText": "test",
	"emojiReactionSummaries": [
		{
			"emoji": {
				"unicode": "😅"
			},
			"reactionCount": 1
		}
	]
}
```
