---
title: "Wire Your AI Agent to Google Calendar via Umbrella CRM Fast, Secure, and Reliable"
description: "This guide shows a clean, production-ready way to connect Aigent360 to the Google Calendar that’s already linked to your Umbrella CRM workspace. Your AI Agent will (1) fetch real-time availability and (2) create confirmed bookings using just two Custom Actions."
url: https://help.umbrellaus.com/en/articles/281-wire-your-ai-agent-to-google-calendar-via-umbrella-crm-fast-secure-and-reliable
collection: "uAIgent360"
updated: 2026-09-24
language: en
---

# Wire Your AI Agent to Google Calendar via Umbrella CRM Fast, Secure, and Reliable

This guide shows a clean, production-ready way to connect Aigent360 to the Google Calendar that’s already linked to your Umbrella CRM workspace. Your AI Agent will (1) fetch real-time availability and (2) create confirmed bookings using just two Custom Actions.

## Introduction

A production-ready way to fetch real-time availability and create confirmed bookings using the Google Calendar that’s already connected in your **Umbrella** account.

* * *

**Why this approach**

Instead of pushing your assistant to talk to Google APIs directly (OAuth, FreeBusy, Events), you’ll call **Umbrella’s Aigent hooks**. Umbrella resolves free/busy against your connected Google Calendar, applies your calendar preferences, and returns clean slots. When you book, Umbrella creates the event in Google Calendar and hands back the details (start/end, Meet link when available). Fewer moving parts, fewer auth headaches.

* * *

**What you’ll build**

-   **Aigent360 Custom Action (GET)** → fetch available slots from Umbrella.
    
-   **Aigent360 Custom Action (POST)** → create a booking via Umbrella.
    
-   **Guardrails:** solid validation for time, email, and slot selection; graceful error messages; tidy success confirmations.
    

* * *

**What you’ll need**

-   **Google Calendar connected in Umbrella CRM** (Umbrella account → Calendar → Connect your calendar).
    
-   **AiGent ID (workspaceId)** and **AiGent Webhook Token** from Umbrella  
    (Contacts → pick your Aigent360 contact → _Integration Details_ panel).
    
-   **Now go to Aigent360** and actions section and then create Custom Actions.
    
-   **Security reminder:** never expose the webhook token in chat/Prompt. Keep it stored in the action’s auth/parameters and out of user-visible prompts.
    

**Important:** Parameter names, query keys, and variable placeholders in Aigent360 **are case-sensitive**. Use the **exact** names shown in this guide (e.g., `start_date_time`, `time_zone`, `workspaceId`, `webhook_token`).  
**Don’t see a Webhook Token or Workspace ID in your 360 account?** Please contact the support team. We’ll provision them for your account before you proceed.

* * *

## Step 0 - Grab your IDs in Umbrella

From the Aigent360 contact page in Umbrella:

-   **AiGent ID** (aka `workspaceId`) - e.g. `175308799775×1495572336182587`
    
-   **AiGent Webhook Token** - keep this secret
    

![](https://staticfiles.gleap.io/ghelparticle/Q1BwHOaEtbCBzUQMa1dv7RukRafAjamF9sOtquIiDQMj36WmJFmw5bL44k2ofIpEs1fFHY9if2r.png)

* * *

## Step 1 - Custom Action: **Get Available Slots**

**Goal:** Let your assistant retrieve open times from your Google Calendar (via Umbrella) for a window and time zone, so the user can pick a slot.

**In Aigent360:** `Actions → Custom actions → Create new`

**Action name:** `checking_available_slots`

**Description:** Invoke this action when caller wants to find available slots in a calendar to book appointment.  
**Method:** `GET`

**Endpoint URL:**

```javascript
https://center.umbrellaus.com/hooks/aigent/available_slots/<workspaceId>

```

Example:

```javascript
https://center.umbrellaus.com/hooks/aigent/available_slots/1753087998875×1495233618255870

```

![](https://staticfiles.gleap.io/ghelparticle/rHxWnHYR0BdL0w5z1nYHG9FUJrrYj1zI10e49SqIwACqkbFuEmnAMmziraNwJzNCFLY0ib47LTl.png)

**Authentication (Custom):**

-   Key: `webhook_token`
    
-   Value: `<YOUR_WEBHOOK_TOKEN>`
    

![](https://staticfiles.gleap.io/ghelparticle/YWZygsPX5QPauBy7BMxgaazAYQmQjESyuF7j5nlwu5EIXAwyMVI5UiVojALVXlQX4Sxt7FZysXF.png)

**Query parameters:**  
Bind these to variables (see below).

-   `start_date_time` → `<start_date_time>`
    
-   `end_date_time` → `<end_date_time>`
    
-   `time_zone` → `<time_zone> or e.g America/Los_Angeles.` If your booking is constrained to a fixed time zone in IANA formar, you can predefine this value in the action; otherwise, ask the caller which time zone they’re in.
    

-   `webhook_token` → `<YOUR_WEBHOOK_TOKEN>`
    

**Variables (Configure → Variables):**

**Name Description Type Example**

<table data-id="aa4fef6c-5da2-4104-97e8-c43c53170a88" style="min-width: 484px;"><colgroup><col style="min-width: 25px;"><col style="width: 409px;"><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="01daa830-8a72-42cb-b3c5-0fa998aa6be8"><strong>start_date_time</strong></p></td><td colspan="1" rowspan="1"><p data-id="2303fb45-6c7e-4d8e-9029-ed3c19dbec79">Capture the <strong>start</strong> date and time from the user-provided date range or a specific date. <strong>Conversion rules:</strong> 1) If the user mentions a time, use it as the start time. 2) Add <strong>30 minutes</strong> to define the default duration for the start slot. 3) Format as <strong>DD/MM/YYYY, HH:MM:SS</strong>. <strong>Example:</strong> User: “I’m looking for a slot on October 23 around 6:30 PM.” → System: <strong>Start Date/Time: 23/10/2024, 18:30:00</strong>.</p></td><td colspan="1" rowspan="1"><p data-id="4e348cbb-595d-489a-8040-c391257de906">string</p></td><td colspan="1" rowspan="1"><p data-id="c92ed0df-6f84-4e82-9798-9198a1896eec"><code>30/10/2025, 09:00:00</code></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="61542859-0758-4358-b921-c2dc72da6fb6"><strong>end_date_time</strong></p></td><td colspan="1" rowspan="1"><p data-id="6870f8e6-8f78-469d-81d1-326f273830c0">Capture the <strong>end</strong> date and time from the user-provided date range or a specific date. <strong>Conversion rules:</strong> 1) If the user mentions a time for the last day, use it as the end time <strong>and</strong> add <strong>30 minutes</strong> to define the end boundary. 2) Format as <strong>DD/MM/YYYY, HH:MM:SS</strong>. <strong>Example:</strong> User: “I’m looking for slots between October 23 and October 25. Any time around 7 PM works for the last day.” → System: <strong>End Date/Time: 25/10/2024, 19:00:00</strong>.</p></td><td colspan="1" rowspan="1"><p data-id="652ddd7f-6f90-46d8-8ad2-e5c6c12fb4b8">string</p></td><td colspan="1" rowspan="1"><p data-id="ba4a6cbd-2c70-4b5d-9eb1-5fe1af2c097c"><code>31/10/2025, 17:30:00</code></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="b5020b3a-d569-4fe9-adef-016a33322260"><strong>time_zone</strong></p></td><td colspan="1" rowspan="1"><p data-id="8cfe5fbc-71f4-4310-9417-803b60cb3aac">Use the bot’s configured time zone in <code>Continent/City</code> format (IANA), applied automatically unless the user specifies otherwise. <strong>Example confirmation:</strong> “The available slots are shown in Eastern Time. Let me know if you'd like to book any of these.”</p></td><td colspan="1" rowspan="1"><p data-id="6642b3dd-8926-4a41-8cba-0a6163943718">string</p></td><td colspan="1" rowspan="1"><p data-id="e527f5c9-003b-4d1b-ba46-1a990a1ff5ad"><code>Asia/Kolkata</code></p></td></tr></tbody></table>

![](https://staticfiles.gleap.io/ghelparticle/1e8SaEyotMeMzcj9jsHI7nxgUTnk6X3XG4clEwKjmalyMIdZ4jD3EuKfLGHQpZcruwzJiBkRogq.png)

**Expected response (shape):**

```json
{
  "status": "success",
  "data": {
    "available_slots": [
      "2025-10-30T09:30:00-07:00",
      "2025-10-30T10:00:00-07:00",
      "2025-10-30T10:30:00-07:00"
    ],
    "duration_minutes": 30,
    "time_zone": "America/Los_Angeles"
  }
}

```

**Action Results → enable:**

-   `status`
    
-   `results`
    
-   `results.data`
    
-   `results.data.available_slots`
    
-   `results.data.available_slots[0..n]`
    
-   (optional) `results.data.duration_minutes`, `results.data.time_zone`
    

![](https://staticfiles.gleap.io/ghelparticle/mLUqX88pBh5RLFLtbR99JOL89BaEY8WJWd2YM06ZXJp8XPoTUIAxfnNj8dY6HzsZMbWa45CBEzD.png)

**Recommended Sample messages:**

-   **Start:** “Let me check the calendar for that window…”
    
-   **Delay (7s):** “Still checking - one moment.”
    
-   **Failure:** “I couldn’t fetch slots just now. Want to try a different date range?”
    

![](https://staticfiles.gleap.io/ghelparticle/PPXf43IDYtTdZWxFEOKK3tuHJ5eVpI64Kk0XhF6PGy3VBMrEZkjX0AnfEToJDwUAbSSwXExFJCd.png)

* * *

## Step 2 - Custom Action: **Book Appointment**

**Goal:** Confirm the user’s chosen slot and create the event in Google Calendar (via Umbrella).

**Action name:** `booking_appointment`

**Description:** Invoke this action when the user confirms interest in booking and selects a preferred slot from the available options.  
**Method:** `POST`  
**Endpoint URL:**

```javascript
https://center.umbrellaus.com/hooks/aigent/appointments/<workspaceId>

```

Example:

```javascript
https://center.umbrellaus.com/hooks/aigent/appointments/17530879988775×149557233618255870

```

![](https://staticfiles.gleap.io/ghelparticle/S9Iyr4lAjKH2oegryCr5SQuyDpGavYzfxidEJApwGl25pYQakwfZQDGlefAKFo9Xu2R8Fe5W58z.png)

**Authentication (Custom):**

-   Key: `webhook_token`
    
-   Value: `<YOUR_WEBHOOK_TOKEN>`
    

**Headers:**  
`Content-Type: application/json`

![](https://staticfiles.gleap.io/ghelparticle/vOa0CmxG9YgjuTWc2eMg37B7gkSpGu5cmM816ngdSvie4UdjGhzNY6uH37aFzlOF1nGpBYgMOlM.png)

**Body (raw JSON):**

```json
{
  "name": "<name>",
  "email": "<email>",
  "datetime": "<datetime>",
  "time_zone": "<time_zone>",
  "phone_number": "<phone_number>",
  "webhook_token":"YOUR_WEBHOOK_TOKEN",
  "service_type": "<service_type>"
}

```

**Variables to capture (and validate) before calling:**

Name Description Type Example

<table data-id="d583f672-5234-410c-898a-9e0465059948" style="min-width: 100px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="7bdf906b-500f-4403-a219-c7575c7a802c"><strong>datetime</strong></p></td><td colspan="1" rowspan="1"><p data-id="7d7d633d-5900-4440-83ec-464b35c969ee">Collect the user’s appointment date and time. <strong>Conversion:</strong> convert to <strong>DD/MM/YYYY, HH:MM:SS (24-hour)</strong>; interpret relative dates like “next Monday”; for same-day requests, start from <strong>current time</strong> to avoid past slots. <strong>Example:</strong> User: “Next Friday at 2 PM.” → System: <strong>20/12/2024, 14:00:00</strong>. <strong>Confirmation:</strong> restate the time with the time zone for verification.</p></td><td colspan="1" rowspan="1"><p data-id="c1ba8cd9-9979-476b-8cd9-79183a2ee406">string</p></td><td colspan="1" rowspan="1"><p data-id="25c1eb8d-fa21-4d10-af44-a718e4c29b2e"><code>15/11/2025, 12:00:00</code></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="54796a1f-0df5-4db5-bd98-cc61000dcf16"><strong>email</strong></p></td><td colspan="1" rowspan="1"><p data-id="3892f4e0-d763-4c29-a162-fa5aadac4e8a">Collect and validate the user’s email address. <strong>Rules:</strong> must contain “@” and a valid domain suffix (e.g., .com, .org). Convert to <strong>lowercase</strong>. <strong>Confirmation:</strong> “Could you confirm your email? I have it as <a target="_blank" rel="noopener noreferrer nofollow" class="linktype-link link" data-linktype="link" href="mailto:user@example.com">user@example.com</a>.”</p></td><td colspan="1" rowspan="1"><p data-id="db031378-b2de-4ec3-b16a-7f38b56e8d2e">string</p></td><td colspan="1" rowspan="1"><p data-id="ec66ed70-4981-4617-8adc-6a0e1a8ae43f"><code>test@gmail.com</code></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="4c18b5a1-e1c5-43e5-bedf-fafdd06bde6f"><strong>name</strong></p></td><td colspan="1" rowspan="1"><p data-id="07108d2a-79af-4a0a-acaa-a7adbbce7f4f">Collect the user’s <strong>full name</strong> (first and last). <strong>Validation:</strong> prompt the user to <strong>spell</strong> their name for accuracy. Example prompt: “May I have your full name, please? Could you spell that for me?”</p></td><td colspan="1" rowspan="1"><p data-id="bc8396bc-9386-400b-ad34-60d03f45c46f">string</p></td><td colspan="1" rowspan="1"><p data-id="34608544-482d-4e6f-9d7e-a7fec8f1458e"><code>Alex</code></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="de1a51b0-c7b5-40ce-934d-5245b6d26e6c"><strong>phone_number</strong></p></td><td colspan="1" rowspan="1"><p data-id="457f0899-5713-4704-9196-dd40c72a3cd8">Collect the user’s <strong>10-digit mobile</strong> number. <strong>Validation:</strong> ensure numeric; repeat it back for confirmation. Example prompt: “Can you confirm your phone number? I have it as 123-456-7890.”</p></td><td colspan="1" rowspan="1"><p data-id="a1901a4f-72f7-4bf7-8019-71ef07e9b32c">string</p></td><td colspan="1" rowspan="1"><p data-id="aa102fc2-024d-44b9-bfc5-fa29ab7ed8a2"><code>+19849984926</code></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="b313221d-3625-4c69-9302-e47f064849c9"><strong>service_type</strong></p></td><td colspan="1" rowspan="1"><p data-id="27b81e14-bae3-4394-9e61-582598813a9b">Collect and confirm the specific <strong>service</strong> the user is requesting. <strong>Validation:</strong> ensure required service details are provided for accurate scheduling. Example prompt: “Which service would you like to book this appointment for?”</p></td><td colspan="1" rowspan="1"><p data-id="e0bc9150-d323-4ba5-971a-9f9be380bf77">string</p></td><td colspan="1" rowspan="1"><p data-id="52d9a633-43d1-40d8-bf5c-7532b6a2923c"><code>regular appointment</code></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="7cdcddca-94b4-4454-967d-77a62ca1f65d"><strong>time_zone</strong></p></td><td colspan="1" rowspan="1"><p data-id="8cc08a09-b0d2-4806-b45f-397839919940">Use the bot’s configured time zone in <code>Continent/City</code> format (IANA), applied automatically unless the user specifies otherwise. <strong>Example confirmation:</strong> “The available slots are shown in Eastern Time. Let me know if you'd like to book any of these.”</p></td><td colspan="1" rowspan="1"><p data-id="07f82cb0-a0a7-48e7-9eb5-3bd635850164">string</p></td><td colspan="1" rowspan="1"><p data-id="1b917893-c7cd-4d77-9aae-a6881fa7b583"><code>Asia/Kolkata</code></p></td></tr></tbody></table>

![](https://staticfiles.gleap.io/ghelparticle/D6GFpNyyBNvaBLEkCPG3UbW3ChiAuZz6ymeaYLI6xqFYZ7lWYPRy9z3rT3fC98DzThfDu6g7bIO.png)

**Expected success response (shape):**

```json
{
  "status": "success",
  "data": {
    "message": "Booked",
    "event_id": "google-evt-123",
    "calendar_id": "primary",
    "start": "2025-10-30T10:00:00-07:00",
    "end": "2025-10-30T10:30:00-07:00",
    "hangoutLink": "https://meet.google.com/abc-defg-hij"
  }
}

```

**Action Results → enable (as in your screenshot):**

-   `status`
    
-   `results`
    
-   `results.data`
    
-   `results.data.message`
    
-   `results.status` _(if present)_
    

![](https://staticfiles.gleap.io/ghelparticle/2QR8snJbQbZ4CvEzNiEtYljy8NOs7ehGxthvuLgXlx8neFZFCrlcK6yk5hA1FBVBDDEMIyBrSMv.png)

**Recommended Sample messages:**

-   Start: “Great - locking that in now…”
    
-   Delay (7s): “Booking the appointment - almost done.”
    
-   Failure: “The booking didn’t go through. Want me to try a different time?”
    

![](https://staticfiles.gleap.io/ghelparticle/hLMcw9idTWJ18vPJYmVQkyVo7AlV8wMfFhReOfVNfsbLWWnYekVBoNNzGXRD8o5jFwpsTTgTV4u.png)

* * *

## Conversation flow the agent should follow

**0) Time zone handling (pre-check)**

-   If a predefined time zone exists:  
    “We’re scheduling in **{predefined\_time\_zone}**. We can book in this time zone.”  
    → Set **{time\_zone} = {predefined\_time\_zone}** (IANA string).
    
-   If not predefined:  
    “What is your current time zone?” (accept city/region or common abbreviations)  
    → Normalize to **IANA** (e.g., _PST → America/Los\_Angeles_, _IST → Asia/Kolkata_).  
    → Set **{time\_zone}**.
    

**1) Clarify the window**

-   “What day works for you — morning or afternoon?”
    
-   Collect:
    
    -   **{start\_date\_time}**
        
    -   **{end\_date\_time}**
        
    -   **{time\_zone}** (from step 0)
        

**2) Check availability**

```javascript
#checking_available_slots
Input:
- start_date_time: {start_date_time}
- end_date_time: {end_date_time}
- time_zone: {time_zone}

```

-   If `available_slots` empty → “No openings in that window. Want to try a nearby date range?”
    

**3) Offer 3–5 options (display in user’s {time\_zone})**

-   “Here are the available slots. Which would you like?”
    
-   Example: `Thu 30 Oct • 10:00–10:30 (America/Los_Angeles)`
    

**4) Collect booking details**

-   **{name}**, **{email}**, **{phone\_number}**, **{service\_type}**
    
-   Confirm selected slot as **{datetime}**
    

**5) Book the appointment**

```javascript
#booking_appointment
Input:
- name: {name}
- email: {email}
- datetime: {datetime}          // selected slot
- phone_number: {phone_number}
- service_type: {service_type}
- time_zone: {time_zone}        // IANA

```

**6) Confirm**  
“You’re booked for **{start}–{end}**. **Meet link:** {hangoutLink}. I’ve sent a calendar invite and confirmation email.”

* * *

**Validation & error handling**

-   **Slot integrity:** only allow booking if `datetime` ∈ `available_slots`.
    
-   **Email:** must contain `@` and a domain (e.g., `example.com`). Reprompt once if invalid.
    
-   **Time zone:** ensure an IANA string (`Region/City`). If the user says “PST,” translate to `America/Los_Angeles`.
    
-   **Resilience:** if the booking fails (slot taken, network), show two alternate slots and offer to retry.
    

* * *

**Go-live checklist**

-   Google Calendar connected in Umbrella (correct account / calendar).
    
-   `workspaceId` and `webhook_token` are correct and stored securely.
    
-   GET action returns slots in your test range.
    
-   POST action succeeds with a picked slot; event appears in Google Calendar.
    
-   Confirmation content (title/description) matches your brand.
    
-   Failure messages are friendly and instructive.
    
-   Screenshots added for: IDs panel, both actions (every tab), and a successful test.
    

* * *

**Troubleshooting**

-   **No slots returned:** narrow the window; verify time zone; make sure Google Calendar is connected and not fully blocked.
    
-   **401/403:** check the webhook token and that it’s included either as Custom auth or query param.
    
-   **Slot just vanished:** another booking claimed it; re-run GET and present the next options.
    
-   **Wrong time zone in calendar:** confirm `time_zone` you send matches the user’s intended location; keep `datetime` in local time for that `time_zone`.
    

* * *

That’s it. With these two Custom Actions, your AI Agent books directly into the Google Calendar connected to your Umbrella CRM clean inputs, strong validation, and a simple, supportable setup.
