Get a Ping for Every Sale: Connect Your App to Slack or Discord

stormstorm·
#integrations#slack#discord#no-code

A bug report on Google's Antigravity CLI drew 584 points and 291 comments on Hacker News this week. In version 1.5.17, running a custom agent uses exactly 4x the Gemini quota per token that 1.5.16 used on the same agent, model and prompt. Nothing in the release notes mentioned it.

The reporter pinned it down by measuring: two versions, one prompt, the numbers side by side. Most of us never measure the services our apps lean on. We find out from a bill, or from an annoyed customer.

A small app doesn't need a lab to catch things early. It needs the two numbers that matter most, who signed up and who paid, somewhere you already look all day. For most teams that's a Slack or Discord channel, and DontCode's Integrations page can put them there.

1. Make a posting link in Slack or Discord

Both apps can give you one link that posts into one channel. On their screens it's called a webhook.

  • Discord: in Server Settings, open Integrations, then Webhooks. Make a new one, pick the channel and press Copy Webhook URL.
  • Slack: search Slack's help pages for incoming webhooks. You pick a channel and Slack hands you the link.

Treat that link like a password. Anyone holding it can post in your channel, so keep it out of group chats, shared docs and your messages to Insight.

2. Add it to your project

Open Integrations (under Settings in your project's menu), press Add integration and choose Custom service. Name it Slack or Discord, and for the service address use https://hooks.slack.com or https://discord.com.

Under Keys, press Add key, name it Webhook URL and paste the link. It's encrypted the moment you save it, and after that the page only shows how it ends. Nobody on your team can copy it back out, you included. If the link ever leaks, delete that webhook in Slack or Discord, make a new one and press Replace.

3. Write what should happen

Press Add action, call it something like "Sign-up and sale pings," and fill in What should happen in plain words:

When someone signs up or pays, post one short line to the channel, like "New sign-up: Mina (Seoul)" or "Sale: Gift box, ₩32,000". If several happen at once, bundle them into one message.

Press Build. Insight writes it, your site rebuilds, and the row goes from Building to Up to date. Actions like this never count toward your new features for the day.

That sentence is the whole action. To add cancellations later, edit it and press Update code. You never open the code.

4. Or ask in the chat

You can skip the form and tell Insight: "post every sign-up and sale to our Slack channel." It's one of our ready-made recipes. Make the link yourself, though, and put it under Keys rather than in the chat.

What you get

The Antigravity reporter caught a 4x change by putting numbers side by side. A channel that pings on every sign-up and sale does the same job for a small app, and it's about the cheapest monitoring there is. A dead afternoon, or forty sign-ups from one city at 3 AM, shows up the hour it happens instead of at month end.

If you want to try it, DontCode is free to start, and there are more walkthroughs like this on the blog.

    Get a Ping for Every Sale: Connect Your App to Slack or Discord | DontCode