Mailhook and Shopify: Emailed Order Intake Template
Turn a wholesale order emailed to your mailhook address into a Shopify draft order, with the customer matched or created automatically.
What It Builds
A Mailhook trigger fires the moment a wholesale order email lands at your unique Spojit address. An Agent-mode Connector node reads the email body, pulls out the line items, quantities, and buyer details, then uses the Shopify connector to look up the customer by email (creating one if there is no match) and open a draft order. A Send Email node confirms back to the sender at {{ input.replyTo }}.
The Prompt
Paste this into Miraxa and it builds the workflow, connecting the tools for you:
Build a workflow with a Mailhook trigger for incoming wholesale orders. Use an Agent-mode Connector node to read the email text in {{ input.text }} and extract the buyer's name, email, and the ordered products with quantities. Match the buyer in Shopify by email and create the customer if none exists, then open a Shopify draft order with those line items. Finish with a Send Email node back to {{ input.replyTo }} confirming the draft order number.
Connectors Used
- Mailhook trigger - starts the run the instant an order email arrives at your generated address.
- Shopify - matches the customer with
list-customers, falls back tocreate-customer, and opens the order via the draft order tools. - Send Email node - replies to the sender from Spojit's built-in mail service.
Customize It
Tailor it in the prompt: add a From allowlist so only known buyers can trigger it, switch the confirmation copy, or ask Miraxa to add a Human approval step before the draft order is created for orders over a set total.
Tips
- Give the Shopify connection write scope so it can create customers and draft orders.
- Agent mode is right here because email wording varies; set a Response Schema to force clean JSON for the line items.
- Mailhook runs are always async, so always reply with the Send Email node rather than expecting a response to the sender.
Related
- Want the step-by-step? See How to Create Shopify Orders from PO PDFs Emailed to a Mailhook.
- Mailhook trigger reference in the Spojit developer docs.