# 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="/files/1xCIFyZj0M32oHcNAYRa" 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="/files/CdLO7rpZ7soyGaJQsuVn" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/D4K4WOoL5jPJoB1EMCzJ" 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](/integrations.md). 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zigpoll.com/slides/slide-logic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
