Google Chat Cards v2 icon

Google Chat Cards v2

Send rich card messages to Google Chat with visual builder

Google Chat Cards v2

AI-generated

Summary

Send rich card messages to Google Chat, either with a webhook URL or using OAuth2 authentication.

Inputs

  • authMethod (required) — Choose how to authenticate with Google Chat, either via a webhook or OAuth2.
  • webhookUrl (required) — Provide your Google Chat webhook URL for simple authentication.
  • spaceId (required) — Specify the Google Chat space name or ID to send the message when using OAuth2.
  • threadKey — Optional key to manage message threads, creating a new thread if left empty.
  • buildMode (required) — Select the method for creating the card message: simple or JSON input.
  • simpleHeader — Header configuration for the card when using simple mode.
  • simpleText — Text content of the card in simple mode.
  • simpleTextFormat — Choose the text formatting type, either plain text or limited markdown.
  • simpleButtons — Configure buttons for the card with actions.
  • simpleWidgets — Add additional widgets like images or dividers to the card.
  • cardJson — Provide the card's complete JSON structure when in JSON input mode.

Output shape

a response indicating success or failure, including any generated message data.

The output may contain details of the sent message, or error information if the operation fails.

Examples

Example 1: Send a simple card via webhook

Use 'webhook' authentication with a valid webhook URL, specifying card header and text content.

Example 2: Send an advanced card via OAuth2

Choose 'oauth2' authentication, fill in the space ID, and provide a full card JSON.

Discussion