Skip to content
SupaKnock
Menu
← All guides

Notifications

Notify users when you reply

Let your app know when you’ve replied, so it can notify the right person.

What a webhook does

A webhook is a way for SupaKnock to tell your app that something happened. When you reply to a customer, it sends a request to an address on your backend. That request says which conversation has a new message and who it belongs to.

Your backend can then send “You have a new support reply” to the customer’s phone. Your app handles permission to show notifications, keeps track of the user’s devices and sends the push through its own provider.

How a reply reaches the user

  1. You reply in SupaKnock.The message is saved in the conversation.
  2. SupaKnock calls your webhook.Your backend receives a signed message with the project, conversation and customer details.
  3. Your app sends the notification.Your backend finds the user’s devices and sends a push through your app’s notification service.
  4. The user opens the conversation.Your app checks that they’re signed in, gets a fresh chat token if needed and loads the reply.

What you need first

  • Chat connected to your app’s login, so conversations belong to a known user.
  • A backend that can receive HTTPS requests from your SupaKnock server.
  • Your app’s own notification setup: permission from the user, saved device or browser subscriptions, and a push delivery provider.

This needs chat tied to a signed-in user. An anonymous visitor’s name or email isn’t enough to know which app account or device belongs to them.

Set it up with your developer

  1. Ask your developer to create an HTTPS webhook receiver in your app’s backend.
  2. In Project settings → Webhook destination, enter that receiver address, enable delivery, and select chat.message_created.
  3. Save the signing secret in your backend’s secrets when SupaKnock shows it. This is separate from your project API key.
  4. Have the receiver verify the signature before trusting the event. For human support replies, handle only events whose message.sender_role is admin.
  5. Use the event’s project and customer.external_user_id to find the correct app user. Queue one notification for that event and link it to the conversation.
  6. Use Send test webhook, inspect delivery history, then test a real administrator reply to a signed-in test user.

The test button checks whether your backend can receive and verify the webhook. You’ll still need to send a real support reply to check that the right user gets a push and opens the right conversation.

Avoid duplicate notifications

SupaKnock may send the same event more than once, and events can arrive out of order. Ask your developer to save each event ID and ignore any they’ve already handled. The receiver should report success only after it has saved or processed the event. SupaKnock retries temporary failures, and you can inspect or retry failed deliveries in the workspace.

Chat webhooks don’t contain the message text. Use a simple notification such as “You have a new support reply,” then load the conversation when the customer opens your app. That also keeps private support details off their lock screen.

Alerts for you and your team

The optional SupaKnock relay at relay.supaknock.com sends administrator alerts to the SupaKnock iPhone companion. It does not send customer notifications to your own app. Your app’s customer notifications use the webhook flow above.

Common questions

Does SupaKnock send push notifications to my customers automatically?

No. Your backend receives the webhook and sends the push. It needs your app’s push credentials and the user’s permission to show notifications. Those push credentials stay with your app; you don’t give them to SupaKnock.

Can this work for a web app?

Yes. Your web app needs Web Push support, the user’s permission and a saved push subscription. Your backend sends the notification. Seeing a reply appear in an open chat window doesn’t mean background push is set up.

Will users get notified for their own messages?

Your developer should filter for sender_role: admin so only your replies trigger a push. The webhook also receives customer messages, so skipping that check would notify people about their own messages.

What about AI replies?

AI replies use sender_role: ai, and their webhooks don’t include the customer’s user ID. This guide covers replies from people. To notify users about AI replies, your developer would also need to keep track of which conversation belongs to which user.

Can I notify someone when their request ships?

Yes. Subscribe to request.status_changed and check for shipped. Your backend can use the request author’s external user ID to find and notify them in your app. Notifying everyone who voted takes extra work to look up those users and decide who should hear about it.

Does a successful webhook mean the phone displayed a notification?

No. It tells you that your backend accepted the event. Check push delivery separately, and remember that a phone may be offline or have notifications turned off.