> For the complete documentation index, see [llms.txt](https://learn.mechanic.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.mechanic.dev/resources/tutorials.md).

# Tutorials

Step-by-step guides for building Mechanic tasks — from your first automation to advanced patterns.

Step-by-step guides for common Mechanic development patterns. These tutorials walk through real-world scenarios, from setting up webhooks to building scheduled data feeds.

## Written tutorials

* [Add a gift message form to your Shopify theme and email recipients after fulfillment](/resources/tutorials/add-a-gift-message-form-to-your-shopify-theme.md) — collect gift details in the cart and email recipients after fulfillment
* [Your first custom task](/resources/tutorials/your-first-custom-task.md) — build a complete task from scratch
* [Creating a Mechanic webhook](/resources/tutorials/creating-a-mechanic-webhook.md) — set up an endpoint that triggers Mechanic tasks from external services
* [Practicing writing tasks](/resources/tutorials/practicing-writing-tasks.md) — exercises for learning Mechanic's Liquid environment
* [Triggering tasks from a contact form](/resources/tutorials/triggering-tasks-from-a-contact-form.md) — connect a storefront form to a Mechanic task
* [Creating scheduled CSV feeds](/resources/tutorials/creating-scheduled-csv-feeds.md) — generate and deliver CSV files on a schedule
* [Running bulk operation mutations](/resources/tutorials/bulk-operation-mutations.md) — upload JSONL variables and run Shopify bulk mutations
* [Fetching data from a shared Google sheet](/resources/tutorials/fetching-data-from-a-shared-google-sheet.md) — pull spreadsheet data into a task
* [Query analytics data with ShopifyQL](/resources/tutorials/query-analytics-data-with-shopifyql.md) — use ShopifyQL to access analytics in Mechanic

## Video walkthroughs

For visual learners, our [video walkthroughs](/resources/tutorials/video-walkthroughs.md) cover common task patterns including auto-tagging, inventory sync, scheduled emails, and more.

## Getting started

New to Mechanic? Start with the [Getting started](/getting-started.md) guide to install Mechanic and find your first task from the library. When you're ready to build your own, work through [Your first custom task](/resources/tutorials/your-first-custom-task.md), then try [Practicing writing tasks](/resources/tutorials/practicing-writing-tasks.md) for more exercises. The [Core Concepts](/core/events.md) section of the docs covers the platform's execution model in detail.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://learn.mechanic.dev/resources/tutorials.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
