Builders 路 5 min read

How to make Dune ring your phone

To make Dune ring your phone, make an 馃敭 Anything alarm in LFG Alarm, then paste its private link into a Dune query's alert as the webhook address. Write the query so it returns rows only when the thing you care about happens: a whale moves, your treasury sends funds, a token's volume jumps. When the scheduled query finds rows, Dune calls the link and every phone on the alarm rings like an alarm clock. LFG is your daily alarm and curiosity agent for iPhone and Android, plus lfg.gm in a desktop browser.

Also called: Dune alert to phone 路 Dune webhook alert 路 Dune query alarm 路 onchain alert to phone 路 whale alert alarm

Download on the App StoreGet it on Google Play

What you can ring on

Anything you can write as a Dune query. A few that work well:

Ring when What the query returns
A whale moves Any ETH transfer over 1,000 ETH in the last hour
Your treasury sends funds Any transfer out of your treasury wallet since the last run
A token's trading takes off The token's DEX volume this hour, only when it is over three times its daily average
A new pool opens for your token New liquidity pools that include the token since the last run
Your protocol's users drop Yesterday's daily users, only when they are below last week's average
A prediction market moves A Polymarket market, only when its price is over 70 cents

The rule is always the same: no rows means nothing happened, any row means ring.

Before you start

  • Get the LFG Alarm app on your phone from Google Play or the App Store, and sign in. Dune notices the change; your phone does the ringing.
  • An Anything alarm. Every LFG account gets one free, and paid plans have room for more; see lfg.gm.
  • A paid Dune plan. Running and scheduling queries uses Dune credits. A free Dune account can view and copy queries but not run them.

Make the alarm

  1. In LFG Alarm, on Alarms, tap 馃敭 Anything.
  2. Name it for what it means, for example "Whale moved 1,000 ETH". The ring screen shows the alarm's name and nothing from Dune, so pick a name that says what happened.
  3. Pick a Cooldown: how long it stays quiet after it rings, from 1 minute to 1 hour. Set it as long as the time between runs, so one event rings once.
  4. Share it with whoever should hear it, and tap Arm it.
  5. On the link card, tap Copy. It starts with https://api.lfg.gm/horn/. Keep it private: anyone with it can ring the alarm.

Write the query

Write a query that returns rows only when it should ring. This one finds ETH transfers over 1,000 ETH in the last hour:

SELECT block_time, "from", "to", value / 1e18 AS eth, hash
FROM ethereum.transactions
WHERE block_time > now() - interval '1' hour
  AND value / 1e18 > 1000

Run it once to check it, then Save it. You can start from any public query on Dune: open it, copy it into your own, and add the condition that makes it return nothing on a quiet hour.

Schedule it and add the alert

  1. In the query editor, click the clock icon next to Run.
  2. Pick how often it runs. Match the time window in your query, so each run looks at the time since the last one.
  3. Turn on Alerts, choose Webhook, and paste the alarm's link.
  4. Click Manual trigger under the address. Your phone should ring now.
  5. Save the schedule.

From then on, each run that finds rows rings every phone on the alarm.

Let your AI set it up

try this

Have your AI agent make it.

Paste this into ChatGPT, Claude, Grok or any AI agent that can add a connector, not into the LFG Alarm app. The setup steps come with it: get the LFG Alarm app, connect it to your agent once, and your agent makes the alarm in your account.

Use LFG Alarm to make an Anything alarm called "Whale moved 1,000 ETH" with 60 minutes of quiet time and give me its link. Then write me a Dune query that returns a row only when an ETH transfer over 1,000 ETH happened in the last hour, and tell me how to schedule it hourly with a webhook alert to that link.

Already have the LFG Alarm app and connected it to your AI agent?

Why it works. One request makes the alarm and writes the query. Connect LFG Alarm to your AI app first: see [AI agents](/agents). If your AI app also has Dune's MCP server, it can find the right tables for you.

Good to know

  • Dune sends each alert once. If the call fails, Dune does not try again, and its docs say alerts are not yet meant for critical, time-sensitive work.
  • Runs take time. An alert goes out when the query finishes, so a heavy query rings later than a light one.
  • Nothing from Dune reaches the ring screen. The alarm's name is what people see, so name it for the moment.

If it does not work

  • Manual trigger does nothing. Copy the link again from the alarm's link card: it must start with https://api.lfg.gm/horn/.
  • It rings on every run. The query returns rows even on a quiet hour. Tighten the condition until it returns nothing when nothing happened.
  • It never rings. Run the query by hand and check it can return rows. Then check the schedule is saved and the alert is on.
  • Dune called the link but nobody's phone rang. The ring may have fallen inside the alarm's cooldown, or the people on it have not joined yet.
  • Still stuck? Write to us from the support page.

Learn more

Sources and further reading

LFG Alarm is not affiliated with Dune.

questions people ask
Does LFG Alarm see my Dune data?

No. The ring link never reads what Dune sends, and it never shows on a screen. LFG only learns that the link was called.

Does LFG need my Dune API key?

No. Dune calls LFG, so you keep your key and LFG keeps nothing of yours.

Can one query ring a whole team?

Yes. Everyone who joined the alarm hears it.

keep exploring

One use case opens another.

Never miss the moment.

Free on Android and iPhone.

Download on the App StoreGet it on Google Play