# How to create ticket via gravity forms in Wordpress ?

**Step 1: Create a Webhook in Automation Builder**

1. Go to your **Automation Builder Dashboard**.
2. Click on **Create New Workflow**.
3. Select **Webhook** as the trigger.
4. Enter a name (e.g., `demo test`) and **click Save**.
5. Copy the **Webhook URL** that gets generated.

***

**Step 2: Connect Gravity Forms with Webhook**

6. In your **WordPress Dashboard**, go to **Gravity Forms → Settings → Webhooks**.
7. Click **Add New Webhook**.
8. Paste the **Webhook URL** copied from Automation Builder.
9. Configure other settings if needed and **click Save Settings**.

***

**Step 3: Capture Incoming Data**

10. Return to the **Automation Builder**, click on **Capture Incoming Response**.
11. Now go back to your website and **submit a test entry** through your **Gravity Form** using dummy data.
12. Once submitted, go back to the Automation Builder and click **Save** (your form data will now be visible and usable for mapping).

***

**Step 4: Generate QR Ticket**

13. In the Automation Builder, click **Show All Apps**.
14. Find and select the **Ticket QR** app.
15. Choose the **action**: `Create New QR`.
16. Select an **existing authentication**, or **create a new one** by entering your **ID and Password**.

**Fill in the required fields:**

* **Event ID**: Go to your **Events page**, copy the **Event ID**, and paste it here.
* **Name**: Map from the captured form data.
* **Phone Number**: Map from form data.
* **Email ID**: Map from form data.

17. Click **Run and Save**.
18. A **Success Message** will confirm that the ticket (with QR) has been created.

***

**Step 5: (Optional) Send Ticket via WhatsApp**

19. Add a new step in the workflow:
    * Go to **CRM → Send Template Message**.
    * Select **WhatsApp Channel** and a **pre-approved template**.
    * Map:
      * **Header Variable** = QR Image
      * **Body Variable 1** = Name
      * **Body Variable 2** = Event Name (manually or via data)
20. Click **Save & Run**.

***

#### 🎉 Done!

You’ve now integrated **Gravity Forms** with your ticketing system:

* When a form is submitted,
* A **QR ticket is automatically generated**,
* And (optionally) **sent via WhatsApp**.

{% embed url="https://www.youtube.com/watch?v=wZEcdxg55Uc" %}
