Skip to main content

Google Chat via Webhook

This Integration is part of the Google Chat via Webhook Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

Integration for sending notifications to a Google Chat space via Incoming Webhook.

Configure Google Chat via Webhook on Cortex XSOAR#

  1. Navigate to Settings > Integrations > Servers & Services.

  2. Search for Google Chat via Webhook.

  3. Click Add instance to create and configure a new integration instance.

    ParameterDescriptionRequired
    Google Chat Space IDThis is located in the Webhook URL as a query parameterTrue
    Google Chat Space KeyGoogle Chat Space Key (found in Google Chat Webhook URL)True
    Google Chat Space KeyTrue
    Google Chat Space TokenThis is located in the Webhook URL as a query parameterTrue
    Google Chat Space TokenTrue
    Trust any certificate (not secure)False
    Use system proxy settingsFalse
  4. Click Test to validate the URLs, token, and connection.

Commands#

You can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.

send-google-chat-message#


Send a message to Google Chat Space via Incoming Webhook.

Base Command#

send-google-chat-message

Input#

Argument NameDescriptionRequired
messageThe message to send. For example: "This is a message from Cortex XSOAR". Default is None.Required
threadNameIf replying to a thread, use this argument to specify the thread name to reply to.Optional

Context Output#

PathTypeDescription
GoogleChatWebhook.Message.SpaceTypeunknownGoogle Chat space type
GoogleChatWebhook.Message.SenderNameunknownGoogle Chat message sender name
GoogleChatWebhook.Message.ThreadReplyunknownDetermines if a message is in a thread reply
GoogleChatWebhook.Message.SpaceDisplayNameunknownGoogle Chat space display name
GoogleChatWebhook.Message.MessageunknownGoogle Chat message
GoogleChatWebhook.Message.NameunknownGoogle Chat space full name
GoogleChatWebhook.Message.SenderTypeunknownGoogle Chat message sender type
GoogleChatWebhook.Message.SpaceNameunknownGoogle Chat space name
GoogleChatWebhook.Message.CreatedTimeunknownGoogle Chat message creation time
GoogleChatWebhook.Message.ThreadNameunknownGoogle Chat thread name
GoogleChatWebhook.Message.SenderDisplayNameunknownGoogle Chat message sender display name

send-google-chat-custom-card#


Send a customizable card to Google Chat Space via Incoming Webhook

Base Command#

send-google-chat-custom-card

Input#

Argument NameDescriptionRequired
blocksJSON blocks copied from https://addons.gsuite.google.com/uikit/builder.Required
threadNameIf replying to a thread, use this argument to specify the thread name to reply to.Optional

Context Output#

PathTypeDescription
GoogleChatWebhook.CustomCard.CardsunknownGoogle Chat custom card details
GoogleChatWebhook.CustomCard.SpaceTypeunknownGoogle Chat space type
GoogleChatWebhook.CustomCard.SenderNameunknownGoogle Chat custom card sender name
GoogleChatWebhook.CustomCard.ThreadReplyunknownDetermines if a custom card is in a thread reply
GoogleChatWebhook.CustomCard.SpaceDisplayNameunknownGoogle Chat space display name
GoogleChatWebhook.CustomCard.NameunknownGoogle Chat space full name
GoogleChatWebhook.CustomCard.SenderTypeunknownGoogle Chat custom card sender type
GoogleChatWebhook.CustomCard.SpaceNameunknownGoogle Chat space name
GoogleChatWebhook.CustomCard.CreatedTimeunknownGoogle Chat custom card creation time
GoogleChatWebhook.CustomCard.ThreadNameunknownGoogle Chat thread name
GoogleChatWebhook.CustomCard.SenderDisplayNameunknownGoogle Chat custom card sender display name