> For the complete documentation index, see [llms.txt](https://helpdocumentation.gitbook.io/ticketing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocumentation.gitbook.io/ticketing/integrations/automations-builder/how-to-create-ticket-via-automations-builder.md).

# How to create ticket via automations builder ?

**Step 1: Capture Data via Webhook**

1. In the **Automations Builder**, set up a **Webhook** block.
2. Paste your **Webhook URL** and click **Save**.
   * This URL will receive data (like name, number, email) when a trigger occurs (e.g., form submission, chatbot response, etc.).

***

**Step 2: Add Ticket Creation App**

3. Add an **App Block** and select the **Tickets** app.
4. Choose the action **"Create New QR"**.
5. Select an **existing authentication** or create a new one by entering your **ID and Password**.

***

**Step 3: Map Required Fields**

6. Go to the **Event Section**, copy your **Event ID**, and paste it into the Event ID field.
7. Map the remaining required fields from the captured webhook data:
   * **Name**
   * **WhatsApp Number**
   * **Email**
8. Click **Run and Save**.
9. Wait for a **Success Message** indicating the ticket (and QR code) was generated.

***

**Step 4: Send Ticket via WhatsApp**

10. Add another block: **CRM → Send Template Message**.
11. Choose the appropriate **WhatsApp Channel**.
12. Select your pre-approved **template** (e.g., "Ticket Confirmation").
13. **Map the Template Variables**:

* **Header Variable (Image)**: Map the **QR Code URL** from the previous app step.
* **Body Variable 1**: Map **Name**.
* **Body Variable 2**: Type the **Event Name** manually (e.g., "XYZ").

14. Click **Run and Save**.

***

**Step 5: Finalize the Workflow**

15. Click **Save Workflow** to activate the automation.

***

#### 🎉 Done!

Now, whenever data is sent to your webhook, the automation:

* **Creates a ticket** with QR code.
* **Sends the ticket via WhatsApp** using a template message.

### Bot Flow Template

```
/products/bot/flow/bd6b14131dc0655422339150a7d43aeb
```

{% embed url="<https://www.youtube.com/watch?v=YHfz-ZEDW9Y>" %}
