Slack alerts for high-value Adobe Commerce orders

By General Input

Every 15 minutes, catch new high-value Adobe Commerce orders and ping fulfillment in Slack with everything they need to pack them fast.

Integrations

  • Adobe Commerce (Magento)
  • Slack

Type

Deterministic Code

Categories

  • Operations
  • Sales

Every 15 minutes on a cron schedule, watch Adobe Commerce for new high-value orders and post a Slack alert to my fulfillment channel so packers can jump on them immediately. Build this as a code workflow: it is a deterministic pull-filter-post pipeline with no reasoning required.

Use the Adobe Commerce List Orders operation with a searchCriteria filter for orders whose created_at is greater than the timestamp of the last successful run and whose grand_total is greater than or equal to a configurable threshold (default 500 in the store's base currency). Sort by created_at ascending so the oldest qualifying order is processed first, and page through until every match is handled.

Persist the last-seen created_at (or the last-seen increment_id) between runs so each qualifying order fires exactly once and re-runs never double-alert. On the very first run, seed the cursor to the current time so historical orders are ignored.

For every matching order, call the Slack Send a Message operation once to post to a configurable channel id. Format one message per order containing: the increment id (the customer-visible order number), the grand_total formatted with the order's order_currency_code, the customer's first + last name and email from customer_firstname / customer_lastname / customer_email, the ship-to city and country_id from extension_attributes.shipping_assignments[0].shipping.address, every item's sku with qty_ordered from the items array, and a direct link to the Magento admin view page for that order. Build the admin link by stripping the trailing /rest/V1 from the connection's baseUrl and appending /admin/sales/order/view/order_id/{entity_id} so the packer clicks straight into the order.

Top-level knobs the user should be able to edit without touching code: the dollar threshold (default 500), the Slack channel id, and the cron cadence (default every 15 minutes). If no orders match on a given run, complete the run silently — no Slack message, no error.

Use Slack mrkdwn formatting: *bold* for the order number and total, and <url|text> for the Magento admin link. Keep the message compact enough to read on a phone since fulfillment often triages from mobile.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentWin back LiveChat visitors whose chats went unansweredChat quality review board for LiveChat support leadsWin back no-show and cancelled appointments every morningLive Loop returns analytics with product-level drill-downNewsletter pre-flight and approval board for Mailjet sendsTurn a prospect spreadsheet into personalized sequence enrollmentsMailjet email delivery lookup console for support teamsCatch feature flags that never got switched on in productionKajabi customer support console for member access fixes