> ## Documentation Index
> Fetch the complete documentation index at: https://help.lunacal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Zapier Integration with Lunacal

> Learn how to automatically send data from Lunacal.ai to Zapier.

<iframe width="560" height="315" src="https://www.youtube.com/embed/KtFN9SNEKAQ?si=0YYQrRNrlLJbAuv7" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />

## Overview

With Lunacal.ai’s Zapier integration, you can automate workflows that respond to booking events. This guide walks you through setting up a Zap that captures data from your booking and sends it directly to zapier — helping you keep track of marketing sources effortlessly.

## ✅ Prerequisites

Before you start:

* A [Zapier](https://zapier.com) account
* A [Lunacal.ai](https://lunacal.ai) account

## 🔌 Step 1: Connect Zapier in Lunacal.ai

1. Log in to your Lunacal dashboard.
2. In the left sidebar, click on **Integrations**.
3. Select **Automation** from the integration categories.
4. Click the **Connect** button on the **Zapier** card to initiate the connection.

<img src="https://mintcdn.com/lunacalai/1VzCvxTsH_HZ0Hyn/images/Screenshot2025-07-02155300.png?fit=max&auto=format&n=1VzCvxTsH_HZ0Hyn&q=85&s=31c71052f4bbd7bd7d6e76cfd0f22cc6" alt="Screenshot2025 07 02155300 Pn" width="1884" height="877" data-path="images/Screenshot2025-07-02155300.png" />

***

## 🔑 Step 2: Generate and Save Your API Key

After clicking **Connect**:

1. Lunacal.ai will generate a unique **API Key**.
2. Copy the API key — **you won’t be able to view it again**.
3. Paste and save it in a secure place (we will be needing it in next step).
4. Click **Done** to complete the setup on Lunacal.

<img src="https://mintcdn.com/lunacalai/1VzCvxTsH_HZ0Hyn/images/Screenshot2025-07-02155601.png?fit=max&auto=format&n=1VzCvxTsH_HZ0Hyn&q=85&s=dfd8d65c5d2e3f342659a1c5c7228f46" alt="Screenshot2025 07 02155601 Pn" width="1193" height="843" data-path="images/Screenshot2025-07-02155601.png" />

## 🧠 Step 3: Link Lunacal.ai to Zapier

1. Open [Zapier](https://zapier.com) and go to **My Apps**.
2. Click **+ Add Connection**.
3. Search for **Lunacal.ai** and click on it.
4. When prompted, paste the **API key** you saved earlier.
5. Zapier will verify and establish the connection to Lunacal.

   <img src="https://mintcdn.com/lunacalai/1VzCvxTsH_HZ0Hyn/images/Screenshot2025-07-02155815.png?fit=max&auto=format&n=1VzCvxTsH_HZ0Hyn&q=85&s=303607b491ab9a18d068ab91207d64b1" alt="Screenshot2025 07 02155815 Pn" width="1884" height="738" data-path="images/Screenshot2025-07-02155815.png" />

***

## ⚙️ Step 4: Build Your Zap Workflow

### 4.1 Set up the Trigger

1. Click **+ Create Zap** in Zapier.
2. In the **Trigger** step, search and select `Lunacal.ai`.
3. Currently, there are three event triggers available:
   * **Booking Cancelled** **:** Triggered when a booking is cancelled
   * **Booking Created** **:**  Triggered when a new booking is created by any user.
   * **Booking Rescheduled :**  Triggered when an existing booking is rescheduled for future.
4. Under **Event**, choose `Booking Created`.
5. Choose the Lunacal account you just connected.
6. Click **Test Trigger** to ensure data is received correctly.
   * This helps Zapier fetch a sample payload for configuration.
   * Make sure you have at least one booking in Lunacal to test with

<img src="https://mintcdn.com/lunacalai/1VzCvxTsH_HZ0Hyn/images/Screenshot2025-07-02161314.png?fit=max&auto=format&n=1VzCvxTsH_HZ0Hyn&q=85&s=47dbff0ff6335a53b3e5eced1677db60" alt="Screenshot2025 07 02161314 Pn" width="1366" height="774" data-path="images/Screenshot2025-07-02161314.png" />

### 4.2 Set up the Action with Google Sheets \[ or any app of your choice ]

Now we’ll write this booking data to a Google Sheet.

1. In the **Action** step, search for and select `Google Sheets`.
2. Choose the action event: **Create Spreadsheet Row**.
3. Connect your Google account if you haven’t already.
4. Select the spreadsheet and worksheet where the data should go.
5. Ensure the sheet has the following columns created beforehand:
   * `Name`
   * `Email`

> **Note:** You can add more fields like `createdAt`, `Event Name`, etc. These must exist in the sheet before proceeding.

<img src="https://mintcdn.com/lunacalai/1VzCvxTsH_HZ0Hyn/images/Screenshot2025-07-02140456.png?fit=max&auto=format&n=1VzCvxTsH_HZ0Hyn&q=85&s=8d41ea06b102bfcb14a80d7250b37dab" alt="Screenshot2025 07 02140456 Pn" width="1317" height="768" data-path="images/Screenshot2025-07-02140456.png" />

### 4.3 Configure Data Mapping

You’ll now map Lunacal.ai booking fields to the Google Sheet columns:

| Google Sheet Column | Lunacal.ai Field Example   |
| ------------------- | -------------------------- |
| Name                | `1. Responses Name Value`  |
| Email               | `1. Responses Email Value` |

<img src="https://mintcdn.com/lunacalai/1VzCvxTsH_HZ0Hyn/images/Screenshot2025-07-06000606.png?fit=max&auto=format&n=1VzCvxTsH_HZ0Hyn&q=85&s=2e967b514ccb866bb4f676a6bf2ecbf4" alt="Screenshot2025 07 06000606 Pn" width="1335" height="784" data-path="images/Screenshot2025-07-06000606.png" />

## 🧪 Step 5: Test and Publish

1. Click **Test Action** in Zapier to send a test row to your sheet.
2. Confirm that the data appears in the correct cells.
3. Once validated, click **Publish** to activate your Zap.
4. You’re done — future bookings will now be pushed to Google Sheets automatically!

## ✅ Outro

You’ve now connected Lunacal.ai and Zapier to:

* Trigger workflows when bookings are created
* Push data to Google Sheets without manual work
