Google Chat via Webhook

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

Messaging and Conferencing · Google Chat via Webhook

Details

IDGoogle Chat via Webhook
ProviderGoogle
CategoryMessaging and Conferencing
From Version6.0.0
Docker Imagedemisto/python3:3.12.8.3296088
Supported ModulesAgentix XSIAM

README

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

Configure Google Chat via Webhook in Cortex

Parameter Description Required
Google Chat Space ID This is located in the Webhook URL as a query parameter True
Google Chat Space Key Google Chat Space Key (found in Google Chat Webhook URL) True
Google Chat Space Key   True
Google Chat Space Token This is located in the Webhook URL as a query parameter True
Google Chat Space Token   True
Trust any certificate (not secure)   False
Use system proxy settings   False

Commands

You can execute these commands from the 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 Name Description Required
message The message to send. For example: “This is a message from Cortex XSOAR”. Default is None. Required
threadName If replying to a thread, use this argument to specify the thread name to reply to. Optional

Context Output

Path Type Description
GoogleChatWebhook.Message.SpaceType unknown Google Chat space type
GoogleChatWebhook.Message.SenderName unknown Google Chat message sender name
GoogleChatWebhook.Message.ThreadReply unknown Determines if a message is in a thread reply
GoogleChatWebhook.Message.SpaceDisplayName unknown Google Chat space display name
GoogleChatWebhook.Message.Message unknown Google Chat message
GoogleChatWebhook.Message.Name unknown Google Chat space full name
GoogleChatWebhook.Message.SenderType unknown Google Chat message sender type
GoogleChatWebhook.Message.SpaceName unknown Google Chat space name
GoogleChatWebhook.Message.CreatedTime unknown Google Chat message creation time
GoogleChatWebhook.Message.ThreadName unknown Google Chat thread name
GoogleChatWebhook.Message.SenderDisplayName unknown Google 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 Name Description Required
blocks JSON blocks copied from https://addons.gsuite.google.com/uikit/builder. Required
threadName If replying to a thread, use this argument to specify the thread name to reply to. Optional

Context Output

Path Type Description
GoogleChatWebhook.CustomCard.Cards unknown Google Chat custom card details
GoogleChatWebhook.CustomCard.SpaceType unknown Google Chat space type
GoogleChatWebhook.CustomCard.SenderName unknown Google Chat custom card sender name
GoogleChatWebhook.CustomCard.ThreadReply unknown Determines if a custom card is in a thread reply
GoogleChatWebhook.CustomCard.SpaceDisplayName unknown Google Chat space display name
GoogleChatWebhook.CustomCard.Name unknown Google Chat space full name
GoogleChatWebhook.CustomCard.SenderType unknown Google Chat custom card sender type
GoogleChatWebhook.CustomCard.SpaceName unknown Google Chat space name
GoogleChatWebhook.CustomCard.CreatedTime unknown Google Chat custom card creation time
GoogleChatWebhook.CustomCard.ThreadName unknown Google Chat thread name
GoogleChatWebhook.CustomCard.SenderDisplayName unknown Google Chat custom card sender display name

Configuration parameters

  • space_id — Google Chat Space ID (required)
  • key — Google Chat Space Key (required)
  • token — Google Chat Space Token (required)
  • insecure — Trust any certificate (not secure)
  • proxy — Use system proxy settings

Commands (2)

  • send-google-chat-custom-card

    Send a customizable card to Google Chat Space via Incoming Webhook.

  • send-google-chat-message

    Send a message to Google Chat Space via Incoming Webhook.

category: Messaging and Conferencing
provider: Google
sectionorder:
- Connect
commonfields:
  id: Google Chat via Webhook
  version: -1
configuration:
- additionalinfo: This is located in the Webhook URL as a query parameter
  display: Google Chat Space ID
  name: space_id
  required: true
  type: 0
  section: Connect
- additionalinfo: Google Chat Space Key (found in Google Chat Webhook URL)
  display: Google Chat Space Key
  displaypassword: Google Chat Space Key
  hiddenusername: true
  name: key
  required: true
  type: 9
  section: Connect
- additionalinfo: This is located in the Webhook URL as a query parameter
  display: Google Chat Space Token
  displaypassword: Google Chat Space Token
  hiddenusername: true
  name: token
  required: true
  type: 9
  section: Connect
- display: Trust any certificate (not secure)
  name: insecure
  required: false
  type: 8
  section: Connect
  advanced: true
- display: Use system proxy settings
  name: proxy
  required: false
  type: 8
  section: Connect
  advanced: true
description: Integration for sending notifications to a Google Chat space via Incoming Webhook.
display: Google Chat via Webhook
name: Google Chat via Webhook
script:
  commands:
  - arguments:
    - defaultValue: None
      description: 'The message to send.  For example: "This is a message from Cortex XSOAR".'
      name: message
      required: true
    - description: If replying to a thread, use this argument to specify the thread name to reply to.
      name: threadName
    description: Send a message to Google Chat Space via Incoming Webhook.
    name: send-google-chat-message
    outputs:
    - contextPath: GoogleChatWebhook.Message.SpaceType
      description: Google Chat space type.
    - contextPath: GoogleChatWebhook.Message.SenderName
      description: Google Chat message sender name.
    - contextPath: GoogleChatWebhook.Message.ThreadReply
      description: Determines if a message is in a thread reply.
    - contextPath: GoogleChatWebhook.Message.SpaceDisplayName
      description: Google Chat space display name.
    - contextPath: GoogleChatWebhook.Message.Message
      description: Google Chat message.
    - contextPath: GoogleChatWebhook.Message.Name
      description: Google Chat space full name.
    - contextPath: GoogleChatWebhook.Message.SenderType
      description: Google Chat message sender type.
    - contextPath: GoogleChatWebhook.Message.SpaceName
      description: Google Chat space name.
    - contextPath: GoogleChatWebhook.Message.CreatedTime
      description: Google Chat message creation time.
    - contextPath: GoogleChatWebhook.Message.ThreadName
      description: Google Chat thread name.
    - contextPath: GoogleChatWebhook.Message.SenderDisplayName
      description: Google Chat message sender display name.
  - arguments:
    - description: JSON blocks copied from https://addons.gsuite.google.com/uikit/builder
      name: blocks
      required: true
    - description: If replying to a thread, use this argument to specify the thread name to reply to.
      name: threadName
    description: Send a customizable card to Google Chat Space via Incoming Webhook.
    name: send-google-chat-custom-card
    outputs:
    - contextPath: GoogleChatWebhook.CustomCard.Cards
      description: Google Chat custom card details.
    - contextPath: GoogleChatWebhook.CustomCard.SpaceType
      description: Google Chat space type.
    - contextPath: GoogleChatWebhook.CustomCard.SenderName
      description: Google Chat custom card sender name.
    - contextPath: GoogleChatWebhook.CustomCard.ThreadReply
      description: Determines if a custom card is in a thread reply.
    - contextPath: GoogleChatWebhook.CustomCard.SpaceDisplayName
      description: Google Chat space display name.
    - contextPath: GoogleChatWebhook.CustomCard.Name
      description: Google Chat space full name.
    - contextPath: GoogleChatWebhook.CustomCard.SenderType
      description: Google Chat custom card sender type.
    - contextPath: GoogleChatWebhook.CustomCard.SpaceName
      description: Google Chat space name.
    - contextPath: GoogleChatWebhook.CustomCard.CreatedTime
      description: Google Chat custom card creation time.
    - contextPath: GoogleChatWebhook.CustomCard.ThreadName
      description: Google Chat thread name.
    - contextPath: GoogleChatWebhook.CustomCard.SenderDisplayName
      description: Google Chat custom card sender display name.
  dockerimage: demisto/python3:3.12.8.3296088
  runonce: false
  script: ''
  subtype: python3
  type: python
fromversion: 6.0.0
tests:
- No tests (auto formatted)