# How to Connect Your Google Calendar with Gallabox Using Pabbly?

### Overview

This guide, will walk you through the steps to integrate your Google Calendar with Gallabox using Pabbly. Whether you're organizing your schedule or collaborating with a team, this integration will help you streamline your tasks and appointments effortlessly. Let's get started connecting your calendars for a more efficient workflow!

### Prerequisites

A [WhatsApp template message](https://docs.gallabox.com/basic-modules/whatsapp-templates/template-creation-and-editing) for booking confirmation/reminders.

{% hint style="info" %}
Make sure to include the attendee's phone number in the event on your calendar, preferably in the description.
{% endhint %}

### Pabbly Workflow

1. In Pabbly Connect dashboard, click on Create Workflow. Name the workflow as "Google Calendar Integration" or any name desired. Selecting folder to keep this workflow in is optional.&#x20;

<figure><img src="https://33771963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPdT5fOiFJnHBqGdwIkkL%2Fuploads%2FaaeJVwwqmSxPppnXiXpE%2FCreate%20a%20Workflow%20in%20Pabbly.gif?alt=media&#x26;token=bdcad673-1db6-43c7-9fca-7c87a6b36d5b" alt=""><figcaption></figcaption></figure>

2. Choose Google Calendar as your First Trigger Application. For the Trigger Event, choose New Event from the list. Click on Connect your Google Calendar.

<figure><img src="https://33771963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPdT5fOiFJnHBqGdwIkkL%2Fuploads%2FKv6jgGk5aJgahQnunCxo%2FFirst%20Trigger%20in%20Pabbly.gif?alt=media&#x26;token=1e46b504-8250-43d9-8bb7-126e71befe10" alt=""><figcaption></figcaption></figure>

3. To connect your Gmail account, authenticate your Google Calendar account to allow access to Pabbly Connect.

{% hint style="info" %}
If you have more than one calendar's associated with your Gmail Account, choose the one you would like to connect with Gallabox.
{% endhint %}

<figure><img src="https://33771963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPdT5fOiFJnHBqGdwIkkL%2Fuploads%2FlUvzd0nzK3hUVvhNx6dH%2FAuthorize%20Google%20Calendar.gif?alt=media&#x26;token=9bddb10a-47e2-4331-9b17-24f84449e0f1" alt=""><figcaption></figcaption></figure>

4. Set up a test meeting with your email account. Ensure the meeting details, including the attendee's phone number (preferably in the Description). Click on Save and Send Test Request. Once the details are captured by Pabbly (check for the phone number in description), click on Save.&#x20;

<figure><img src="https://33771963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPdT5fOiFJnHBqGdwIkkL%2Fuploads%2FyTqrdu6n0y3kx362j91l%2FResponse%20Received.gif?alt=media&#x26;token=5b37a0a7-cee4-4ba0-8362-64bb4846adf3" alt=""><figcaption></figcaption></figure>

5. To extract the attendee's phone number from the description and send the WhatsApp message, use the "Text Formatter by Pabbly". For Action Event, choose Text Parser and specify the text before and after the phone number. The parser will then extract the number in between.

<figure><img src="https://33771963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPdT5fOiFJnHBqGdwIkkL%2Fuploads%2FylbeSxjUePZAxnGvRet0%2Fimage.png?alt=media&#x26;token=0d91f128-634a-438e-ace6-36c9988855b1" alt=""><figcaption></figcaption></figure>

6. To trigger the confirmation message to the phone number extracted choose the Application: Gallabox. Select the Action Event as Send Template Text Message. Click on Connect.

<figure><img src="https://33771963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPdT5fOiFJnHBqGdwIkkL%2Fuploads%2FOTYTPdTEqGO6L7VX3nKF%2FGallabox%20Connection.gif?alt=media&#x26;token=4bbe319a-ed2a-4c19-b2d3-b497b4a1f788" alt=""><figcaption></figcaption></figure>

7. To connect your Gallabox account, add your Account Id, API Key, and API Secret. Once done click on Save.&#x20;

{% hint style="info" %}
To get your Gallabox Account Id, go [here](https://docs.gallabox.com/whatsapp-channel/account-profile-info#whatsapp-number-and-account-id-for-identification). For getting the API Key & Secret, follow this [guide](https://docs.gallabox.com/developer-resources/api-key-and-secret#create-an-api-key-in-gallabox).&#x20;
{% endhint %}

<figure><img src="https://33771963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPdT5fOiFJnHBqGdwIkkL%2Fuploads%2FehDwaaJYBNPvYhj2hVrE%2FGallabox%20Connection%20Pabbly.png?alt=media&#x26;token=bfdff868-71db-4e56-b5ab-84651ea72309" alt=""><figcaption></figcaption></figure>

8. Choose the desired WhatsApp Template message to send, the channel Id you would want to send the WhatsApp Template message from, Bot Id (if you would like to trigger a bot), Name of the Recipient (it will be used to create a contact in Gallabox), Phone Number of the Recipient, and any variables defined in the WhatsApp Template Message.&#x20;

<table><thead><tr><th width="277">Fields</th><th>Description</th></tr></thead><tbody><tr><td>Template</td><td>Provide the template ID here.</td></tr><tr><td>Channel ID</td><td>Please provide the channel ID here.</td></tr><tr><td>Bot ID</td><td>Enter the bot ID from your bot's URL here. E.g. <code>624dc50720fa1400162096ac</code></td></tr><tr><td>Name</td><td>Enter the recipient's name. This name will be used when creating a new Contact in Gallabox.</td></tr><tr><td>Phone Number</td><td>Choose the variable storing the phone number. </td></tr><tr><td>Variables defined in Template</td><td>The fields will vary depending on the WhatsApp Template chosen. </td></tr></tbody></table>

<figure><img src="https://33771963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPdT5fOiFJnHBqGdwIkkL%2Fuploads%2FaBC9vy2VTHQiO5VhIdaL%2FGallabox%20Connection%20configuration.png?alt=media&#x26;token=30a9b7c1-9155-48e1-86e2-c59065f5f083" alt=""><figcaption></figcaption></figure>

9. Click on Save and Send Test Request button to see if you are receiving any response. Once you receive any response, click on Save.&#x20;

<figure><img src="https://33771963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPdT5fOiFJnHBqGdwIkkL%2Fuploads%2Fl84HWKr2937KZi7I5RJJ%2FResponse%20Received%20-%20Gallabox.png?alt=media&#x26;token=d9271ecd-804d-4d53-923b-a68d56957dea" alt=""><figcaption></figcaption></figure>

### Enable Workflow

To enable the workflow you just created, just Toggle On the button as shown in the below GIF.

<figure><img src="https://33771963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPdT5fOiFJnHBqGdwIkkL%2Fuploads%2F8ool3i8MkiMbMUmQLJJN%2FEnable%20Pabbly%20Workflow.gif?alt=media&#x26;token=b33138b0-07ec-4a2c-9bdb-321d8ab0060a" alt=""><figcaption></figcaption></figure>

To sum up, this process makes it easy to use WhatsApp Template messages in Gallabox. This guide helps you send and manage personalized messages more efficiently, improving your communication.
