> 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/core/forms/pos-forms.md).

# POS forms

Save short answers with a POS sale or item, or send a customer request to your Mechanic tasks.

Mechanic Forms gives staff three ways to collect details in Shopify POS:

| Workflow                     | Where staff start                        | What happens                                                                                                                                            |
| ---------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Save with a sale             | **Mechanic Forms** home-screen tile      | Answers save to the cart and become order attributes at checkout. Tasks can use them after the sale.                                                    |
| Save with an item            | Cart item details → **Mechanic actions** | Answers save as properties on that line and follow it onto the order. Tasks can use them after the sale.                                                |
| Request a customer follow-up | Customer details → **Mechanic actions**  | A submission creates a Mechanic event with the viewed customer’s IDs and optional answers. Subscribed tasks run in the background; no sale is required. |

In Mechanic, choose **Forms → Create form → Point of sale** to get started.

Keep forms short for staff at the counter. Start with **Add engraving** (one question for the selected item), **Add a gift note** (one question), or **Request a customer follow-up** (one optional question). These create editable drafts. They do not install tasks or activate Shopify POS placements.

## Save answers with a sale

1. In Mechanic, choose **Forms → Create form → Point of sale** and select **Add a gift note**, or start from scratch.
2. Edit the questions. Under **Submission settings**, choose **Save with this sale**, then save and publish the form.
3. Add the **Mechanic Forms** tile to the POS smart grid. In Shopify admin, open **Point of Sale → Edit Point of Sale**, select the grid template used by your location, and choose **Mechanic actions** under **Embedded Apps → Mechanic**. The added tile is named **Mechanic Forms**. Save the grid. If you have staging or development apps installed, choose the same app where you published the form.
4. On your POS device, add an item to the cart, open **Mechanic Forms**, choose the form, and enter the details. Tap **Save to cart**. Reopen the form to review or edit the saved answers; **Remove saved details** removes that form’s answers.
5. Complete a test sale and inspect the order’s **Additional details** in Shopify admin.

Answers belong to the whole sale, not an individual line item. There is one answer set per form per sale. Changing the cart customer does not automatically remove saved answers; staff must review them. Saving does not change the customer profile or create a Mechanic event.

The answers are JSON stored in the cart property `_mechanic_pos_<form ID>` and carried to the order as an attribute. These are **order attributes, not metafields**, billing addresses, or line-item properties. Tasks should validate saved values before using them. A new sale should not inherit the previous sale’s answers.

## Save answers with an item

Use **Add engraving** for a short example: staff open an item, enter the wording, and save it with that item.

1. Create a POS form using **Add engraving**, or choose **Save with this item** in another POS form’s **Submission settings**. Save and publish it.
2. In Shopify admin, open **Point of Sale → Edit Point of Sale → Apps**. Select **Mechanic actions** under the same Mechanic app where you published the form, activate it for cart line-item details, and save.
3. In POS, open an item in the cart, choose **Mechanic actions**, and open the form. Review the item and quantity, enter the answers, and tap **Save to item**.
4. Reopen the same item’s form to edit or remove its saved answers. Complete a test sale and inspect that line’s properties on the order.

Every unit on a cart line shares the answers. Different instructions need separate lines. Removing the line removes its answers. If the selected item disappears while the form is open, close the form and start from an item still in the cart.

Item forms save **line-item properties**, not order attributes or customer metafields. Saving does not run a task immediately. Check how your receipt and fulfillment templates display line-item properties before collecting sensitive information.

Existing sale-level forms keep their current behavior. Creating a new engraving form uses item storage; it does not convert previously created forms.

### Email your team after payment

Add [Email POS form answers after a paid sale](https://tasks.mechanic.dev/email-pos-form-answers-after-a-paid-sale). Copy the form’s ID from **Submission settings** into the task’s **POS form ID** option, choose your team inbox, and enable the task. Install a separate task copy for each form you want to email.

Use the latest library version of the task for item forms; earlier versions only read sale-level answers. Item answers include the item title, SKU, and quantity in the team email.

The task subscribes to `shopify/orders/paid` and uses answers from the configured form on paid POS orders. A partial payment does not trigger the email until the order is fully paid. The gift note goes to your team, not the gift recipient. Saving the form or trying its preview does not send email.

Approve [email access](https://learn.mechanic.dev/platform/email.md) before testing. Complete a paid sale and verify both the email action in Mechanic and delivery to an inbox you control. Re-running an event or installing duplicate matching tasks can send another email.

## Request a customer follow-up

1. Add [Email your team a POS customer follow-up request](https://tasks.mechanic.dev/email-your-team-a-pos-customer-follow-up-request). Choose your team inbox and enable it. Approve requested Shopify customer access and email access.
2. In **Forms → Create form → Point of sale**, choose **Request a customer follow-up**. Keep the optional note, remove it for a button-only action, or use up to three short questions.
3. Under **Submission settings**, choose **Run tasks now**. Match the form’s event topic and the task’s **POS event topic**. Both starters default to `user/pos/customer_follow_up`. Save and publish.
4. **Activate the customer action in Shopify:** in Shopify admin, open **Point of Sale → Edit Point of Sale → Apps**. Select **Mechanic actions** under your Mechanic app, turn on **Activate on: Customer details**, and save. This is a one-time activation for the shop’s locations, separate from adding the home tile. [Shopify activation instructions](https://help.shopify.com/en/manual/sell-in-person/getting-started/shopify-pos-from-admin/pos-ui-extensions).
5. In POS, open a customer’s details. Choose **Mechanic actions**, then **Request a customer follow-up**. Enter an optional note and submit. The action uses the customer you are viewing, even if a different customer is attached to the cart.
6. Check the event and task run in Mechanic, then the team inbox. **Request received** confirms acceptance, not completed task execution or email delivery.

Opening a form does not submit it. This workflow does not change the cart, update the customer, or send email to the customer. The starter task looks up current customer contact details and emails your configured team. Custom tasks can send the request to your CRM, service system, ERP, or another API.

### Event topics and customer details

Use `mechanic/pos/customer` or a custom topic such as `user/pos/customer_follow_up`. Topics follow normal Mechanic subscriptions: all enabled matching tasks may run. Use separate topics for separate workflows. A form appears in the customer-action list only when its published topic has an enabled task subscriber.

The event includes:

* `event.data.customer.id` and `event.data.customer.admin_graphql_api_id`: verified customer identifiers, not a full customer record.
* `event.data.answers`: the submitted field keys and values.
* `event.data.pos.form_id`, `form_revision`, and `authenticated_user_id`: form and submission context. The authenticated user is not necessarily the staff member selected by POS PIN.

Tasks fetch additional customer fields through GraphQL. Answers describe the submission; queried customer details reflect the time the task runs. The event source is `pos`, for either the standard or custom topic. Existing Shopify-admin `mechanic/user/customer` events retain their own format.

Tasks run in the background. They cannot return processing results or custom validation errors to the open POS form.

## Prefill, publishing, and troubleshooting

A field’s **Prefill from** setting can load supported customer details or a configured customer metafield. Cart forms use the cart customer; customer actions use the viewed customer. Staff can edit the starting value, but saving an answer does not write back to the customer or metafield. If a lookup is unavailable, check the message and enter the details manually.

Save preserves a draft; publish makes that version available in POS. The browser preview uses sample controls and does not load a real customer, save a cart, or send an event. Test on your actual POS device and staff account.

* **No Mechanic actions button:** check activation for the placement you want (customer details or cart line-item details) in the POS editor, confirm the installed app, and reopen POS. Customer actions do not require a sale; item forms require an item in the cart.
* **Button opens but the form is missing:** confirm the form is published and its submission setting matches where you opened it. Customer actions also need an enabled task subscribed to their published topic.
* **Wrong or unresponsive home tile:** confirm it belongs to the correct Mechanic app, especially when production, staging, and development apps coexist.
* **Event arrives but no email:** inspect the task and email action. Check enabled subscriptions, recipient options, Shopify permissions, and email approval.
* **Cart save succeeds but no event appears:** saving only changes Shopify cart data. Install and enable an order-event task if you want processing after checkout.

Unpublishing stops new form loads; it does not clear saved cart/order answers or undo events and emails. Disable tasks separately when you want processing to stop. Already-open forms may still be usable. A whole-cart send-event action is not included.


---

# 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/core/forms/pos-forms.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.
