Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Email Automation

Email Automation

Log Shopify, Etsy and Square orders to Google Sheets and confirm via Gmail

When an API call/webhook arrives, it handles email using Gmail, Google Sheets.

What it does

## Log Shopify, Etsy and Square orders to a Google Sheet and confirm by email Who's it for Small makers and studios taking orders from more than one storefront, who still retype each one into a spreadsheet and write the confirmation email by hand. How it works A store webhook posts an order. read the order works out whether the payload is Shopify, Etsy or Square and pulls the same facts out of each shape; a Square order whose deposit has not landed is held. The order is matched against the board so a retried webhook is never written twice, every line item is checked against the product rules, and the ship window is worked out in working days from the longest lead time. The row is written to the sheet before the confirmation email goes out, then stamped confirmed. How to set up 1. Open config, set BOARD_SHEET_ID and BOARD_TAB, then set BOARD_READY = true. 2. Attach Google Sheets and Gmail credentials to the four [cred] nodes. 3. Point the store webhook at this workflow's production URL. 4. Leave TEST_RUN = true for the first run, read the preview, then set it to false. Requirements A Google Sheets credential, a Gmail credential, and an Orders tab with the headings listed in config. A blank setting skips a step rather than failing the run. How to customize PRODUCT_RULES holds the lead time and wall-anchor rule per sku; the two buffers set how wide the promised window is. Email wording lives in compose the confirmation.

The steps

  1. An order arrives
  2. config
  3. read the order
  4. a usable order?
  5. STOP: not a usable order
  6. board connected?
  7. [cred] Sheets - read the board
  8. use the demo board
  9. seen this order before?
  10. already logged?
  11. STOP: duplicate delivery
  12. plan the build
  13. every product known?
  14. STOP: needs a product rule

25 steps in total.

Similar automations