> 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 send a customer request to your Mechanic tasks.

Mechanic Forms gives staff two 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.                                                    |
| 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. |

POS access is being rolled out to selected shops. When it is enabled for your shop, **Forms → Create form** offers **Point of sale**. Contact [Mechanic support](https://learn.mechanic.dev/support.md) if you would like to use it and do not see that option.

Keep forms short for staff at the counter. Start with **Add engraving** (two questions), **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 engraving** or **Add a gift note**.
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 add a tile from **Embedded Apps → Mechanic**. 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. For engraving, use the item question to identify what should be engraved. 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.

### 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.

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’s POS extension, 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 asynchronously. They cannot return processing results or custom task validation errors to the open POS form. Retrying an interrupted request uses a receipt to avoid creating another event for that request; a deliberate new submission or rerunning the event can still run tasks again.

## 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 the customer-details activation in the POS editor, the installed app, and reopen POS. The button is on the customer details panel; no sale is needed.
* **Button opens but the form is missing:** confirm the form is published and has an enabled task subscribed to its 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. POS item-specific forms and a whole-cart send-event action are not included in this release.


---

# 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.
