Skip to content

Daily

Get an alert when your Deepgram balance is low

You hear about a low project balance while there's still time to top up, so transcription keeps going.

Runs
Daily
Apps
Deepgram
AI
Not needed
Access
read (admin/owner role may be needed)

Send this to your assistant

Create a ClickRuntime automation: every day, check the balance on my Deepgram project and email me if it drops under $10.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

A team that transcribes call recordings through Deepgram prepays credits, and the balance quietly drains as volume grows. One Friday evening a batch of customer calls fails with an insufficient-funds error, the support dashboards that depend on those transcripts go blank, and nobody notices until Monday. The cost of that outage is far larger than the top-up that would have prevented it.

Once a day the automation reads the balances on your Deepgram project and compares the remaining amount with the floor you set. If it is under, you get an email with the current figure so you can top up or switch on auto-recharge. When the balance is healthy it stays silent, and running it daily costs almost nothing.

Product teams running voice features and call-center analytics groups use it as an inexpensive safety net.

What you get out of it

  • Transcription never stops mid-batch

    A warning while there is still credit means jobs keep succeeding. Funds usually run out during the busiest hour, because that is when usage is highest, and scheduled overnight jobs are often the first things to fail when the balance hits zero.

  • Billing surprises become planned top-ups

    Finance gets a day or more of notice to approve a payment, rather than an engineer pleading for a card number during an outage. The top-up happens in business hours, when the person who holds the card is awake and can approve it calmly.

  • Usage growth becomes visible

    If balance warnings arrive sooner each month, that is a signal that call volume or audio length is climbing. It is easier to justify a larger plan when you can show the balance dropping faster than it did a quarter ago.

  • Fewer failed customer-facing features

    Anything built on live captions or call summaries depends on the account having funds. Those features are visible to customers, so a quiet outage costs more than the Deepgram bill it came from, and the alert protects them without anyone watching the console.

  • One threshold for the whole project

    Instead of each developer peeking at the Deepgram console, a single number is agreed on and everyone trusts the same email to say when to act. Fewer people need console access, which is also a small gain for security.

How it works

What happens, step by step

  1. Once a day, ClickRuntime checks the balance left on your Deepgram project.

  2. If it is below your minimum, such as $10, you get an email with the current balance so you can top up.

  3. If there is enough left, nothing is sent.

Before it runs live

  • Connect Deepgram

What you get

RunsDaily
Get an alert when your Deepgram balance is lowtoday, 9:00Succeeded
Email · Deepgram balanceYour Deepgram project balance is $7.42.

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Run it at a different time, more or less often, or only on weekdays
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Deepgram steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
monthly_usage_balance_check.pyexample
from clickruntime import on_trigger, credentials, notify, http

PROJECT_ID = "your-project-id"
MIN_USD = 10

@on_trigger
def run(event):
    resp = http.get(f"https://api.deepgram.com/v1/projects/{PROJECT_ID}/balances",
                    headers={"Authorization": f"Token {credentials.secret('DEEPGRAM_API_KEY')}"})
    resp.raise_for_status()
    total = sum(b["amount"] for b in resp.json()["balances"] if b["units"] == "usd")
    if total < MIN_USD:
        notify.email_me("Deepgram balance low", f"Your Deepgram project balance is ${total:,.2f}.")
    return {"balance_usd": total}

FAQ

Common questions

Which Deepgram permission does the key need to read balances?
The API key needs access to the project's billing balances endpoint, which typically means a key with owner or admin scope. A narrower member key may be rejected. If the key lacks permission nothing is silently skipped, because the run log will show an authorization error you can act on.
What if I have several Deepgram projects?
Balances are read per project, so each project you want covered needs to be included. You can compare each against its own threshold and combine the results into a single email, rather than receiving one message per project, which is useful when different products burn credit at very different rates.
Will it email me every day once the balance is low?
It can warn once per drop below the threshold, or keep reminding you daily until you top up. Most people prefer the repeating reminder, because a single email in a busy inbox is easy to miss. You can raise or lower how often it nags by telling your AI assistant.
What permissions does it need?
read (admin/owner role may be needed). Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (daily). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Get an alert when your Deepgram balance is low” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.