Notifications

Hear about a low balance, a credited top-up or an answer from support on Discord, Slack or ntfy.sh. No email involved.

MafiaLLM has no email address for you, so it can’t write to you. Instead, you give it a webhook: an address of a chat service where it posts a short message. Set it in Dashboard → Account, under Notifications.

What you get

MafiaLLM: low balance. $4.12 left (alert below $5.00).
MafiaLLM: top-up credited, +$20.00. Balance: $24.12.
MafiaLLM: support answered your ticket.

Messages come in the language the site was in when you saved the webhook. The low-balance alert follows the account’s balance, not the balance of a key that has its own.

Getting a webhook URL

Discord

  1. Open the channel’s settings, then Integrations → Webhooks.
  2. Create a webhook and copy its URL. It starts with https://discord.com/api/webhooks/.

Slack

  1. Create an app at api.slack.com/apps and turn on Incoming Webhooks.
  2. Add a webhook to a channel and copy its URL. It starts with https://hooks.slack.com/services/.

ntfy.sh

  1. Pick a long, random topic name: anyone who knows it can read what is posted there.
  2. Subscribe to that topic in the ntfy app, on your phone or computer. No account is needed.
  3. Your URL is https://ntfy.sh/ followed by the topic.

Note: Only these three services are accepted. MafiaLLM never calls an address of your own: a server you run would learn where our API calls from.

Checking it works

After saving, Send a test posts a message right away. If the service refuses it, the page says so: check the URL.

When a webhook stops working

Privacy