TimeLeafTimeLeaf
Back to site

Integrations

Google Chat

Send leave notifications and approval cards to Google Chat channels via webhooks.

Overview

The Google Chat integration sends notifications to your Google Chat spaces when leave requests, approvals, and other events occur in TimeLeaf. Managers can view request details directly in the chat card. This feature is available on the Professional plan and above.

Setting up the webhook

Create an incoming webhook in Google Chat

  1. Open Google Chat and navigate to the space where you want notifications.
  2. Click the space name at the top, then Apps & integrations > Manage webhooks.
  3. Click Add another and give the webhook a name (e.g., "TimeLeaf").
  4. Copy the generated webhook URL.

Connect the webhook in TimeLeaf

  1. Go to Settings > Integrations > Google Chat.
  2. Click Add Webhook.
  3. Paste the webhook URL from Google Chat.
  4. Give the connection a name (e.g., "Engineering Space", "HR Alerts").
  5. Select which events should post to this space.
  6. Optionally filter by team. only events from the selected teams will be sent.
  7. Click Save and Test to send a test message to the space.

You can configure multiple webhooks to send different event types to different spaces.

Channel notifications

The following events can trigger a Google Chat notification:

EventWhat is posted
Leave request submittedEmployee name, leave type, dates, and a link to the request
Leave request approvedEmployee name, approver, dates, and confirmation
Leave request rejectedEmployee name, approver, reason for rejection
Timesheet submittedEmployee name, week, total hours, and a link to review
Shift publishedSummary of the published schedule with a link
Overtime alertEmployee name, hours worked, and the overtime threshold

Approval cards

When a leave request is submitted, the Google Chat message includes an approval card with:

  • Employee name and profile photo
  • Leave type and requested dates
  • Number of days requested
  • Current leave balance
  • A View in TimeLeaf button that links directly to the approval page

Managers receive the card in the configured space and can click through to approve or reject the request in TimeLeaf. Approval actions must be taken in the TimeLeaf app. the card is informational only.

Leave request notifications

Leave request notifications are the most common use case for the Google Chat integration. A typical notification flow:

  1. An employee submits a leave request in TimeLeaf.
  2. A card is posted to the configured Google Chat space within seconds.
  3. The employee's manager sees the card and clicks through to review.
  4. After the manager approves or rejects, a follow-up message is posted to the space.

Reducing noise

If your space receives too many notifications, narrow the scope:

  • Filter by team so only relevant requests appear.
  • Subscribe only to specific event types (e.g., leave requests but not timesheets).
  • Create a dedicated space for TimeLeaf notifications rather than posting to a general channel.

Google Chat webhooks are one-way. TimeLeaf sends messages to Chat but does not read messages from Chat. No Google Chat data is stored in TimeLeaf.

Troubleshooting

If notifications are not appearing:

  • Verify the webhook URL is still active in Google Chat (webhooks can be deleted or rotated).
  • Check the Delivery Log under Settings > Integrations > Google Chat > [Webhook] > Deliveries for error details.
  • Ensure the events and team filters match the expected activity.