# Slide Logic

Slide logic is a powerful tool you can use to create unique experiences depending on how a respondent answers your survey questions.

To create slide logic click the *+Add Logic* button on the Slide edit page.

<figure><img src="https://1643988190-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZpanNFqg3aCUZgXh3X%2Fuploads%2FYpgE21sgsiifi2YEJeqj%2Fimage.png?alt=media&#x26;token=4b2b14e8-fab9-47ad-8d6c-149c2bad10b7" alt=""><figcaption></figcaption></figure>

#### Conditions

To get started with logic you need to first chose a **condition**. A condition is a rule that needs to be met in order for the corresponding **action** to take place.

A condition is based on the response to your particular slide. For example a condition can be if a response is > or < a certain value, or a condition can be if a response equals a certain pre-defined value.

You can stack conditions on top of each other to create complex logic within your survey. To do this, you will want to hit "Add condition".

<figure><img src="https://1643988190-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZpanNFqg3aCUZgXh3X%2Fuploads%2FIXfugl3S9EewGdzfPjWp%2Fimage.png?alt=media&#x26;token=3cd00b4c-3abc-4350-8b32-9cec8cd65e4e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1643988190-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZpanNFqg3aCUZgXh3X%2Fuploads%2FZJaupckyfHw3ZvDnjKfz%2Fimage.png?alt=media&#x26;token=cda83c87-22f1-4c23-940d-b2b8c287ef7f" alt=""><figcaption></figcaption></figure>

When a condition is met, the **action** you define will then take place. An action can be something within your survey like **skip** or **end survey** as well as an external action like **adding a metafield to Shopify** or **adding a customer tag**.

#### Actions for all users

A list of actions to chose from can be found below:

* **Continue to the next slide -** move to next slide
* **End Survey**
* **Skip to -** direct to another slide
* **Redirect To -** Send to a specific URL or web address
* **Run code -** Trigger a webhook or execute a script
* **Send Email -** Send an email to the respondent or yourself

#### Integration actions

If you have integrations enabled, additional actions will appear in the dropdown. These actions trigger using the full survey response data, not just the current slide.

**Slack** — Send a notification to a selected Slack channel.

**Jira** — Create a new issue in a selected Jira project.

**ClickUp** — Create a new task in a selected ClickUp list.

**HubSpot** — Create a new deal in a selected HubSpot pipeline.

**Zendesk** — Create a new support ticket.

**Notion** — Add a new row to a selected Notion database.

**Klaviyo** — Subscribe the respondent to a selected Klaviyo list.

**Google Sheets** — Write a row of response data to a Google Sheet. Click "New Sheet" to create one automatically with headers based on your survey questions. You will be emailed a link to the sheet when the first response comes in.

**Mailchimp** — Subscribe the respondent to a selected Mailchimp audience.

**Drip** — Subscribe the respondent to a selected Drip campaign.

**Omnisend** — Add the respondent as a contact in Omnisend.

**Marketo** — Create or update a lead and add them to a static list in Adobe Marketo.

{% hint style="info" %}
Integration actions only appear when the corresponding integration is connected in your [Integration Settings](https://docs.zigpoll.com/integrations). Actions that require an email (Klaviyo, Mailchimp, Drip, Omnisend) will only fire if the respondent has provided an email address.
{% endhint %}

#### Additional actions for Shopify stores

If you installed Zigpoll on a Shopify store, this comes with additional actions you can trigger:

* **Add Customer Tag ->** \*note that this will require a valid shopify\_customer\_id or email to be included as metadata.
* **Add Order Tag ->** \*note that this will require a valid shopify\_order\_id to be included as metadata.
* **Add Customer Metafield ->** \*note if you are mapping this to a pre-defined metafield it needs to be a multi\_line\_text\_field type.
* **Add Order Metafield ->** \*note if you are mapping this to a pre-defined metafield it needs to be a multi\_line\_text\_field type.
* **Generate Reward ->** generate a discount code or add free shipping
