Skip to content

Google Chat Scanner ​

Monitors selected Google Chat spaces and direct-message spaces for DMs and mentions. Work is rotated across a bounded number of spaces per poll.

Pollen Types ​

TypeDescription
gchat_dmA new message in a direct-message space
gchat_mentionA new message mentions the configured user

Prerequisites ​

Install the Google Workspace CLI (gws), then authenticate:

bash
gws auth setup
gws auth login
gws chat spaces list --format json

Configuration ​

json
{
  "gchat": {
    "enabled": false,
    "watch_spaces": [],
    "watch_dm_spaces": [],
    "watch_dms": true,
    "user_resource": "",
    "username": "",
    "max_messages": 20,
    "max_pages": 10,
    "spaces_per_poll": 5
  }
}
FieldDefaultDescription
enabledfalseEnable this scanner
watch_spaces[]Unique Google Chat space names or IDs, such as spaces/AAAA
watch_dm_spaces[]Explicit direct-message space names or IDs
watch_dmstrueDiscover accessible DM spaces and refresh that discovery daily
user_resource""Optional users/... resource used for exact mention matching
username""Optional username used for textual mention matching
max_messages20Page size, from 1 to 1,000
max_pages10Message/discovery page cap, from 1 to 10
spaces_per_poll5Spaces rotated through per poll, from 1 to 20

An empty explicit watch list does not mean “scan every room”; it only adds automatically discovered DMs when watch_dms is enabled.

Released under the Apache 2.0 + Commons Clause License.