> ## 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.

## Basic Parameters

| Parameter | Description |
| - | - |
| Space Or Chat Name | The `Space` or the `Chat` name of the space to list messages from. Format: `spaces/{space_or_chat_name}` |

## 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. |

## 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
		}
	]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.