> For the complete documentation index, see [llms.txt](https://docs.zigpoll.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zigpoll.com/shopify-app/shopify-flow.md).

# Shopify Flow

Zigpoll adds three triggers and one action to Shopify Flow.

### Triggers

#### Zigpoll Survey Completed

Fires whenever any Zigpoll survey is completed. Includes a **Survey** object with the survey's ID, title, a link to the response in your Zigpoll dashboard, every question and response, and any metadata attached to the survey.

#### Zigpoll Survey Completed (with email capture)

Fires when a survey is completed and includes a **Customer** reference alongside the Survey object, so you can act on the customer record in your workflow. The survey must collect an email or contain customer id metadata for the customer to resolve.

#### Zigpoll Survey Completed (with order capture)

Fires when a post purchase survey is completed. Includes the **Customer** and **Order** references alongside the Survey object.

{% hint style="warning" %}
Triggers whose names end in **\[Deprecated]** are expiring soon. If your workflows use *Zigpoll Post Purchase/Order Status Survey Completed \[Deprecated]* or *Zigpoll Survey Completed (with email capture) \[Deprecated]*, switch them to the triggers above.
{% endhint %}

### Actions

#### Send Email Survey

Sends a Zigpoll email survey to a customer from within a Flow workflow. Provide the **Survey Id** of the email survey you want to send; the customer (and optionally the order) come from the workflow's trigger. This lets you send surveys based on any condition Flow can express — customer tags, order values, fulfillment events, and so on.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.zigpoll.com/shopify-app/shopify-flow.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
