*Version: 1.0 | Last Updated: 2025-02-25*
## Overview
- **Integration Name:** Google meet
- **Purpose:** Integrating Google meet to initiate a meeting using webhook from the MoovingON.AI platform
- **Audience:** Support team, TAM
- **Prerequisites:**
- A valid Google meet account
- MoovingON AI account access with integration permissions
---
## Table of Contents
- [[#Setup Instructions]]
- [[#Configuration]]
- [[#Testing the Integration]]
- [[#Related Links]]
---
## Setup Instructions
1. Step 1: In MoovingON AI, navigate to Settings -> Integrations.
****
2. Step 2: On the right side of the page, select "Add Webhook."

3. Step 3: Enter an integration name for the webhook and click "Submit."

4. Step 4: A webhook basic authentication (Username and Token) will be created after submission.
****
- Save the generated Username and Token for use in Google meet
---
## Configuration
- Navigate to [https://console.cloud.google.com/](https://console.cloud.google.com/)
- Create a new project.
- Navigate to **APIs & Services**.
- Enable the API
- Search for Google Calendar API and enable it.
- Click Create **Credentials** → **OAuth Client ID**.
- Select Web Application as the application type.
- Configure the Redirect URLs (you can use any active URL, for example, [https://www.example.com/oauth2callback](https://www.example.com/oauth2callback))
- Create → Download the JSON file, and save the client ID & Client Secret
- Navigate to the **OAuth** consent screen and configure the required scopes.
- Navigate to **APIs & Services** → **OAuth overview** → **Data access** → **Add Scopes**.
- Manually Add the Required Scope → [https://www.googleapis.com/auth/calendar.events](https://www.googleapis.com/auth/calendar.events)
- Add users:
Click on **APIs & Services** → **OAuth Consent Screen** → **Audience** → **Add Users**.
- Enter your email.
- Click **Save & Continue**.
- Use this URL to generate the Auth code :
[https://accounts.google.com/o/oauth2/auth?response_type=code](https://accounts.google.com/o/oauth2/auth?response_type=code)
&client_id=YOUR_CLIENT_ID
&redirect_uri=YOUR_REDIRECT_URI
&scope=[https://www.googleapis.com/auth/calendar.events](https://www.googleapis.com/auth/calendar.events)
&access_type=offline
&prompt=consent
replace the placeholders with your credentials.
- Copy the Auth code from the URL to generate a REFRESH_TOKEN.
- Run the following **cURL command** (replace placeholders with actual values):
curl -X POST "[https://oauth2.googleapis.com/token](https://oauth2.googleapis.com/token)"
-H "Content-Type: application/x-www-form-urlencoded" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_CLIENT_SECRET" \
-d "code=YOUR_AUTHORIZATION_CODE" \
-d "grant_type=authorization_code" \
-d "redirect_uri=YOUR_REDIRECT_URI"
- Copy the Refresh_token from the response.
Create a Lambda function:

- Select the function name
- Choose Python runtime.
- Create function

On the right side, you can upload a ZIP file from your local machine.

After uploading the lambda script, you need to configure the Environment variables:
- Navigate to the configuration
- Environment variables
- Edit, and add your variables & values

Now we need to create an API to invoke the lambda from our system.
- Navigate to Add Trigger
- Choose API Gateway
- If you already have an API gateway, you can use it; if not follow the next step
- Create a new API > IAM
- Navigate to Routes > Create > Choose the method (POST, GET, PUT, DELETE) > Choose the path > Create
- Navigate to Stages > Create > Enter your Stage name and Enable automatic deployment > Create > in the top right, Deploy.
- Go again to Routes, click Deploy, and choose the stages you created > Deploy.

****
****
****
****
After that, you can use the **API gateway** to invoke the Lambda,
On our side, you need to use this API while you creating the Webhook. (URL = API gateway)
When invoking the lambda, it will create a new token and create a new meeting with its link. After that, it will create an alert in our system that includes a Google Meet link
---
## Testing the Integration
- **Test Cases:**

Navigate to Audit and open the Webhook Request, here you can see the Output on API Request with the Meeting Link.

---
## Related Links
- **External Resources:** [Google Meet Documentation](https://developers.google.com/meet/api/guides/overview)