How It Works
- storekit sends
order.createdandorder.pos.dispatch.failedto your app. - Your app checks each event against the rules you set (order value, order type, keywords in notes) and picks a channel.
- It posts to Slack through an incoming webhook, and optionally sends a text through Twilio.
What You Need
- Webhooks enabled on your storekit plan (Settings → Developers).
- A Lovable or v0 account. Both need a backend for the webhook endpoint — the prompt asks the builder to deploy one and give you its URL. Replit also works and is the simpler choice if the builder struggles with the backend step.
- A Slack incoming webhook URL for the channel you want alerts in (create one from the “Incoming Webhooks” app in Slack’s app directory, choose the channel and copy the URL).
- Optional, for texts: a Twilio account with a phone number. Texts cost money per message; Slack is free.
Step 1: Build the App
Paste the whole block into the builder in a single message. Change the example rules under MY RULES to match your business first.Either button opens the builder with the whole prompt below already filled in. Nothing starts until you press send, so read it through and edit the parts marked as yours first.
Full prompt (click to expand)
Full prompt (click to expand)
/settings, press “Send test” on the “Big order” rule and check the message lands in Slack before connecting storekit.
Step 2: Connect storekit
1
Open the webhooks portal
In the dashboard sidebar, go to Settings → Developers and click Manage Webhooks (it reads Enable Webhooks the first time). Webhooks are a subscription feature — if you see Upgrade to enable webhooks, contact support first.
2
Add your app as an endpoint
In the embedded portal, add a new endpoint, paste the webhook URL your app builder gave you, and tick only the event types the recipe needs.
3
Copy the signing secret into your app
Open the endpoint you just created and copy its signing secret. In your app builder, save it as the environment variable
STOREKIT_WEBHOOK_SECRET (builders call this “secrets” or “environment variables”). Redeploy if the builder asks you to.4
Send a test event
Use the portal’s test option on the endpoint to send a sample event. The delivery log shows the response code from your app. A
2xx means your app accepted it; anything else, read the response body in the log — it is usually a missing secret.order.created and order.pos.dispatch.failed for this endpoint.
Step 3: Test With a Real Order
Place an order on your own storefront above the “Big order” threshold (or lower the threshold to £1 in/settings for the test). The Slack message should arrive within a few seconds of the order confirmation. Put the threshold back afterwards.
To test the till-failure alert without breaking your till, use the test option in the webhooks portal and pick order.pos.dispatch.failed as the event type.
Ideas
- Different channels per shift: add a day-of-week condition and route weekend alerts to a different Slack channel.
- Daily count: a rule with no conditions that increments a counter, and a 10 pm summary message.
- Low ratings: add
order.rating.updatedand alert the GM when a rating is 2 stars or lower. - Printer offline: add
printer.status.offlineand text whoever is on shift; the payload has the printer’sname.
What This Does Not Do
- It does not replace storekit’s own alerts. Order sounds in the dashboard, printer-offline emails and POS failure handling carry on as before.
- It cannot accept, reject or fix an order. Webhooks are one-way. The alert tells a person; the person acts in the dashboard.
- Texts depend on Twilio, including its sign-up checks and per-message pricing. Slack is free and immediate, which is why the starting rules use it.
- It is your service. storekit support can confirm an event was delivered to your URL and the response code; the rules and messages are yours.
Related
Slack Notifications
Every order straight to Slack with no code.
Writing a Prompt That Works
The structure behind this prompt, and what to say when the builder gets it wrong.
order.pos.dispatch.failed
The payload behind the till-failure alert.
Managing Live Orders
What to do in the dashboard once the alert arrives.