# Form Automations

## Send Form PDF Automation

Automatically send the completed form PDF to the client once they have submitted the form.

**Step 1:** Go to the **Whautomate app,** Select the **Automation** menu option, Click the **Add Rule** button, and then select the **Create Rule From Scratch** option to continue.

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FAx9ogYQ9QAS44FBVXFV6%2Fimage.png?alt=media&#x26;token=471aa0db-2754-4b23-a7a8-9af3522788bf" alt=""><figcaption></figcaption></figure>

**Step 2:** Select the **Create Rules from Scratch** option to continue

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2Fxo31IigyojgFLULNE7Gt%2Fimage.png?alt=media&#x26;token=0fa37c8c-630c-430b-8eb2-34fad386e00a" alt=""><figcaption></figcaption></figure>

**Step 3:** Select the trigger **When a Client Completes a Form** option.

> This rule gets triggered when a form is completed by a Client

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FkS5NSx4YBccTIRxdaBHP%2Fimage.png?alt=media&#x26;token=07479da6-36e2-4e16-ab2a-4d06dd0d26a5" alt=""><figcaption></figcaption></figure>

**Step 4:** To add conditions, simply click on the "**Add Condition**" button.

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FNU4o2jSq3VReBtBjSJgM%2Fimage.png?alt=media&#x26;token=b5ef578a-4c0b-4058-b913-0d23f5038d3f" alt=""><figcaption></figcaption></figure>

**Step 5: Setup Condition**

(i) Choose the condition **Field** option like **"Form Template"**

(ii) Choose the condition **Operator** option like **"is part of any"**

(iii) Choose the "**Form Template**" option to select the forms that will trigger a notification when completed by the client.

Eg. I've selected a few forms for automation. The conditions function by triggering the automation when a client completes any of the selected forms specified in the condition filter. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2Ff8ol7Aq3Goerl77d9W7N%2Fimage.png?alt=media&#x26;token=2cc915e9-2cd5-44a5-a196-002851a00795" alt=""><figcaption></figcaption></figure>

**Step 6:** Select an **Action** to send the completed form PDF to your client via **WhatsApp** and **Email.**

(i) Eg. Select a send **Action** type as the **send a WhatsApp template message** option 👇

(ii) Select the message template **send\_form\_to\_client\_3(en)**

> I used my custom WhatsApp message template **send\_form\_to\_client\_3(en)** which was already I created and approved by Meta. If you want to use your own custom WhatsApp message template, So first you need to create a new **WhatsApp Message Template**, you can select the **Create New Template** link. This will take us to the template page where we can submit our new template.&#x20;

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FNganjTUCmfzjLNBYxLE8%2Fimage.png?alt=media&#x26;token=0d2252fe-ac1d-454d-ac81-9c947ab853ba" alt=""><figcaption></figcaption></figure>

(iii). When you enter **(#)** in the Parameter field, a list will pop up. You can choose from the options provided to fill out the parameter details.

**Eg**: #client.name = {{client.name}}, #business.name = {{business.name}}, etc.

#### Available Personalisation Variables:

**Client Variables**

> {{client.name}}, {{client.preferredName}}, {{client.age}}, {{client.gender}}, {{client.email}}, {{client.phone}}, {{client.calendarSyncURL}}, {{client.photoURL}}, {{client.address}}, {{client.emergencyRelationType}}, {{client.emergencyContactName}}, {{client.emergencyContactPhone}}

**Business Variables**

> {{business.name}}, {{business.address}}, {{business.phone}}, {{business.mapDirectionUrl}}, {{business.operatingHours}}

**Form Variables**

> {{form.name}}, {{form.clientName}}, {{form.status}}, {{form.url}}, {{form.partialUrl}}, {{form.pdf}}, {{form.downloadId}}, {{form.id}}

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FuyeRCAQ5uh9qGVWyw2G9%2Fimage.png?alt=media&#x26;token=e11ce67a-9edb-4fc8-ad83-72064eb9786d" alt=""><figcaption></figcaption></figure>

**Step 7:** After entering all the necessary information, please click on the "**Save**" button to save your changes. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2Fh5qr0RQwB3Nrj1ybMwAm%2Fimage.png?alt=media&#x26;token=0d219c59-338c-4f08-a2ef-d49436179ba2" alt=""><figcaption></figcaption></figure>

**Step 8:** Now, Create a test client and send a form yourself then complete the form to test it. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FafwIj55cywemLVi19E3m%2Fimage.png?alt=media&#x26;token=9316b98d-6c3b-4a8c-9383-f4418f9bbe20" alt=""><figcaption></figcaption></figure>

***

## Send Form PDF to your client via Email

<mark style="background-color:yellow;">Note: Implement the automation trigger and conditions outlined in the upper section, which corresponds to those utilized in the</mark> [<mark style="background-color:yellow;">Send Form PDF Automation</mark>](#send-form-pdf-automation)<mark style="background-color:yellow;">.</mark>

Step 1: Select a send **Action** type as the **Send Email** option 👇

(i) Choose the **Recepient** option like **Client associated - If exists**

(ii) Choose the **Attachment** option like **Paste URL** and Enter the attachment URL **"{{form.pdf}}"**\
When you enter **(#)** in the Attachment Paste URL field, a list will pop up. You can choose from the **{{form.pdf}}** options in the variable list.

(iii) Enter Email **Subject** Eg. Your {{form.name}} Submission Confirmation and PDF Copy.

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FWSga9baIIexa9jL2n5CS%2Fimage.png?alt=media&#x26;token=880ed206-f4cb-4d30-9970-7567782b50df" alt=""><figcaption></figcaption></figure>

(iv) Enter the Email **Message** according to your preferences.

**Note:** Please enter **(#)** to choose from personalisation variables in the parameters E.g. client name, location name, etc.

[**Available Personalisation Variables for Email Template Mentioned in the upper section of WhatsApp:**](#available-personalisation-variables)

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FZY0D2UsdEsIEMMzoKWam%2Fimage.png?alt=media&#x26;token=941918b0-97d8-48f9-a502-d46fc2702b95" alt=""><figcaption></figcaption></figure>

**Step 2:** After entering all the necessary information for the Email template, please click on the "**Save**" button to save your changes. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FMJrOK2FcIrimrTYOhSSS%2Fimage.png?alt=media&#x26;token=adc3daac-5ea9-48f9-b226-ad18e9d58bd4" alt=""><figcaption></figcaption></figure>

**Step 3:** Now, Create a test client and send a form yourself then complete the form to test it. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2Fv6nUQbFBEUupsNqAwv92%2Fimage.png?alt=media&#x26;token=99c7f631-318b-40f2-9630-0f39151f2d05" alt=""><figcaption></figcaption></figure>

***

## Send Form Completion Notification to Staff

Step 1: Select a send **Action** type as the **send a WhatsApp template message** option 👇

<mark style="background-color:yellow;">Note: Implement the automation trigger and conditions outlined in the upper section, which corresponds to those utilized in the</mark> [<mark style="background-color:yellow;">Send Form PDF Automation</mark>](#send-form-pdf-automation)<mark style="background-color:yellow;">.</mark>

(i) This is to send a notification for **When a Client Completes a Form** to staff via WhatsApp.

(ii) Select the staff(s) you want to send notification eg.  I have selected the **John Doe** staff.

(iii) I used the custom WhatsApp message template which was already created and approved by Meta. So first you need to create a new **WhatsApp Message Template**, you can select the **Create New Template** link. This will take us to the template page where we can submit our new template for custom notifications.

(iv) After entering all the necessary information, please click on the "**Save**" button to save your changes. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FNM1DjmA5DpXjxzyThBy4%2Fimage.png?alt=media&#x26;token=75830d6a-3451-4310-b978-2d7493942e56" alt=""><figcaption></figcaption></figure>

**Step 10:** When a Client Completes a Form the notification received by your staff(s) like this **👇**

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FC7vaey1ZDLt0TKeAVrej%2Fimage.png?alt=media&#x26;token=bdad68f5-9d8b-44a3-8b0e-3e42a8f4489c" alt=""><figcaption></figcaption></figure>

***

## Automatically Assigning Client Tags through Form Responses.

**Step 1:** Go to the **Whautomate app,** Select the **Automation** menu option, Click the **Add Rule** button, and then select the **Create Rule From Scratch** option to continue.

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FXQGUHHSidP638rF9dJSU%2Fimage.png?alt=media&#x26;token=611ec655-d79c-4ae6-b08a-6ea64cb19d60" alt=""><figcaption></figcaption></figure>

**Step 2:** Select the trigger **When a Client Completes a Form** option.

> This rule gets triggered when a form is completed by a Client

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FVnXotaAGS4JtsVDa6I1v%2Fimage.png?alt=media&#x26;token=d3b2af2d-8e7d-4660-ba86-089e9047008a" alt=""><figcaption></figcaption></figure>

**Step 3:** To add conditions, simply click on the "**Add Condition**" button.

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2F6h7VaZx7mOcTsKTJ3MWX%2Fimage.png?alt=media&#x26;token=ff8c4aec-518f-4d6a-9e49-61c00974f23e" alt=""><figcaption></figcaption></figure>

**Step 4:** **Setup Condition**

(i) Choose the condition **Field** option like **"Form Response"**

(ii) Choose the **Form** eg. I have selected the **"Fitness, Wellness Studio Lead Generation"**

(iii) Choose the "**Form Question**" eg. **Fitness Goals**

(iv) Choose the condition "**Operator"** option like **"equals" 👇**

(v) Choose the Form Question Answer **"Value"** eg. **Weight Loss**

Eg. I've chosen the **Fitness and Wellness Studio Lead Generation** form. I've configured a condition: when a client completes the form and selects "**Weight Loss**" as their answer to the **Fitness Goals** question, the automation is triggered. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FVlLILjtW7ZI4hLlDcPOk%2Fimage.png?alt=media&#x26;token=0b7e53a3-f79b-45cd-8c1f-54ed78f4fc09" alt=""><figcaption></figcaption></figure>

**Step 5:** Select a send Action type as the **Add Client Tags** option 👇

(i) If you have already created **tags** use that, To create a new tag, type the tag name and click the add button that appears on the list

(ii) I have Selected the Client Tag(s) eg. **Weight Loss** based on the form response conditions. 👇

<mark style="background-color:yellow;">**Note:**</mark> <mark style="background-color:yellow;"></mark><mark style="background-color:yellow;">Add tags to the client based on the conditions and trigger setup in the rule. This can be used in conditions to segment clients in subsequent rules.</mark>

(iii) After adding the tag Click the **Save** button 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2Fs2pz93lfCBea2VUAXqBP%2Fimage.png?alt=media&#x26;token=a36d269d-ca82-4cc7-94c7-44fe90d2bb5e" alt=""><figcaption></figcaption></figure>

**Step 6:** Now, Create a test client and send a form yourself then complete the form to test it. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2F8NFIN6gt2yzdAreeMu7S%2Fimage.png?alt=media&#x26;token=c01cc13e-f5b5-429a-b128-0d1e971b0886" alt=""><figcaption></figcaption></figure>
