# Example Workflows

{% hint style="info" %}
**Add User to User Group** is probably the most important action on Synap - Remember that it is membership into a user group that determines what content someone has&#x20;
{% endhint %}

## 🛒  Connecting Synap to your online store

Probably the most popular use of Synap's Zapier is connecting an e-commerce store to Synap so that when someone purchase's something, it is automatically available to them via Synap.&#x20;

* 🔫 **Trigger** = New Paid Order in Shopify (or any other online store)
* 🎬 **Action** = Add User to User Group&#x20;

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

## 👉Automatically send attempt data to a sheet

Example where finishing an attempt is a trigger for a workflow, this means you can send all (or just some) ofthe information associated with a users attempt to any of the other apps in Zapier. In the video below we've chosen to send attempt data to Google Sheets

* 🔫 **Trigger** = Exam Completed (or Attempt Submitted)
* 🎬 **Action** = Create a Row (in Google Sheets)

{% embed url="<https://youtu.be/LN-B0LoK2X8>" %}

From the list of Synap triggers you will have noticed there are 4 that relate to attempts/ exams&#x20;

* Submitted Attempt&#x20;
* Completed Attempt
* Submitted Exam
* Completed Exam

If you're using Exams use the exam attempt triggers, these will include slightly different additional fields and states compared to normal quiz/collection attempts for which you should use the attempt triggers.&#x20;

The difference between **Completed** and **Submitted** is important if the attempt has questions that need to be marked.&#x20;

* Submitted = The attempt has been finished by the user but it may not be complete if there are answers that require marking.
* Completed = Attempt has been submitted and marked, there is nothing left to do on this attempt&#x20;


---

# 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://academy.synap.ac/doc/integrations/zapier/example-workflows.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.
