> For the complete documentation index, see [llms.txt](https://docs.mydbsync.com/cloud-workflow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mydbsync.com/cloud-workflow/create-your-workflow/actions/google-chat.md).

# Google Chat

## Introduction

Google Chat is a communication platform for collaboration through direct messages, spaces, and integrations. DBSync workflows can be configured to send chat notifications to relevant team members when defined conditions or triggers occur, keeping your team informed in real time during data synchronization.

## Prerequisites

To configure the Google Chat action, first configure the Google Chat connector as described [here](/cloud-workflow/connectors/google-chat.md).

## Steps to configure the Google Chat action

Follow these steps to configure the Google Chat action:

{% stepper %}
{% step %}
Drag and drop the **Google Chat** action onto the flow board.
{% endstep %}

{% step %}
On the **Google Chat** action, click **Configure**.
{% endstep %}

{% step %}
In the **Select App** list, select **Google Chat**.
{% endstep %}

{% step %}
{% tabs %}
{% tab title="Space setting" %}
In the **Operation** list, select **Send Space Message**.

{% hint style="info" %}
&#x20;If space URL is not mentioned while configuring the connector, you need to choose the channel from the dropdown.
{% endhint %}

<figure><img src="/files/PU3ielSNY9rjwZpb7ywC" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Direct setting" %}
In the **Operation** list, select **Send Direct Message**.

<div align="left"><figure><img src="/files/rIgVvbblWCI3RziqJs8m" alt="" width="367"><figcaption></figcaption></figure></div>

In the **User** field, enter a username.
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}
In the **Message Text** field, enter your message. You can use `{{step.field}}` tokens from the data stream to interpolate flow variables into your text.
{% endstep %}

{% step %}
Optional: In the **Card payload** field, enter a custom JSON-formatted card payload. For example:

{% code expandable="true" %}

```json
{
  "cardsV2": [
    {
      "cardId": "simple-card",
      "card": {
        "header": {
          "title": "DBSync Notification",
          "subtitle": "Account Confirmation",
          "imageUrl": "https://www.gstatic.com/images/icons/material/system/2x/check_circle_green_24dp.png",
          "imageType": "CIRCLE"
        },
        "sections": [
          {
            "widgets": [
              {
                "textParagraph": {
                  "text": "<b>Status:</b> Success<br><b>Environment:</b> cw-qa<br><b>Version:</b> 6.57"
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
```

{% endcode %}
{% endstep %}

{% step %}
Click **Save**.
{% endstep %}

{% step %}
Check your Google Chat space or the destination user's messages.
{% endstep %}
{% endstepper %}
