Quickstart
Add the chat to your app in about ten minutes. Every platform uses the same App ID and the same inbox.
- Sign in. Open app.hailbell.com and choose Continue with Google, or type your email and use the sign-in link it sends. Your first sign-in makes a Hailbell account with a 14 day free trial. No card needed. If a teammate invited you, you join their account instead.
- Create the app. The first-run setup asks for a name for your account, then finds your app on the App Store (or takes the name of one that isn't there yet) and shows its App ID (
app_…). The App ID is public, so it can live in your code. Add more apps later under Settings › Apps › New app, or let your agent make them (see Use Hailbell from your agent). - Install the SDK for your platform below.
- Open the chat from a help button, your settings screen or a "Need help?" bar.
The dashboard then shows a checklist for the rest: install the SDK, upload push keys, connect Discord, Telegram or Slack, turn on AI replies and connect your agent.
What Hailbell works with
- Apps and sites. iOS in Swift, Android in Kotlin, Flutter, React Native, any website, Shopify stores and WooCommerce stores.
- Purchases. Superwall and RevenueCat for App Store and Google Play purchases, or the App Store's own notifications for an iOS app that uses neither. Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop and Razorpay for purchases on your website.
- Where you answer. The dashboard, Discord, Telegram and Slack, the API, and an AI agent through the MCP server.
- Push. APNs, FCM and Web Push, sent from the same dashboard.
- Store reviews. App Store and Google Play reviews, read and answered in Hailbell.
iOS
iOS 16 or later. In Xcode, choose File › Add Package Dependencies… and enter https://github.com/vidursaini/hailbell-ios, and pick Up to Next Major Version from 1.2.0. Add the Hailbell library to the app target.
// AppDelegate, at launch
import Hailbell
Hailbell.configure(appId: "app_XXXXXXXX")
Hailbell.setMetadata(["plan": "free"])
// From any help button
Hailbell.shared.open()
Prefer SwiftUI? Place HailbellChatView() yourself. Hailbell.shared.unreadCount is published, so you can show a badge.
To see which Hailbell SDK version your app runs, open the app in the dashboard, then Settings › Platforms (in the iOS app, the platform's page). Each iOS and Android platform shows the newest version its users' devices reported, the newest release, and how many releases behind it is, with how to update. SDKs before 1.2.0 don't report a version, so an app that still runs one shows "older than 1.2.0". The Platforms menu item turns yellow when one is behind. The web widget loads from Hailbell on every page view, so a site always runs the newest one. Agents get the same as sdk from list_apps. A customer's details in the inbox show the SDK on their own device too: from SDK 1.5.1 (Flutter and React Native 1.2.1) the Hailbell SDK row says whether their app is native, Flutter or React Native, next to the version, such as "Flutter · 1.5.1".
Android
minSdk 24 with Jetpack Compose. The library is on JitPack. Add the JitPack repository and the dependency, then configure it in Application.onCreate().
// settings.gradle.kts, inside dependencyResolutionManagement { repositories { … } }
maven { url = uri("https://jitpack.io") }
// app/build.gradle.kts
dependencies { implementation("com.github.vidursaini:hailbell-android:1.2.0") }
Hailbell.configure(context, "app_XXXXXXXX")
FirebaseMessaging.getInstance().token.addOnSuccessListener { Hailbell.setPushToken(it) }
// From any help button
Hailbell.open(activity)
Flutter
iOS 16 and Android 7 (API 24) or later, Flutter 3.27 or later. The plugin wraps the iOS and Android SDKs, so your customers get the same native chat. Add it with flutter pub add hailbell, set minSdk = 24 in android/app/build.gradle.kts and the iOS deployment target to 16.0. Use 1.1.0 or later, which has bug reports with the app's log and failed requests, and replies to one message.
flutter pub add hailbell
import 'package:flutter/foundation.dart';
import 'package:hailbell/hailbell.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Hailbell.configure(appId: kIsWeb
? 'app_WEB_XXXXXXXX'
: defaultTargetPlatform == TargetPlatform.iOS ? 'app_IOS_XXXXXXXX' : 'app_ANDROID_XXXXXXXX');
runApp(const YourApp());
}
// From any help button
Hailbell.open();
Hailbell.unreadCount is a ValueListenable<int> for a badge. For push, pass every firebase_messaging message to HailbellPush.handleMessage and the FCM token to Hailbell.setPushToken on Android; on iOS the plugin picks up the APNs token itself. The full guide, with push, signed-in users and store privacy answers, is in GUIDE.md. Package: pub.dev/packages/hailbell.
Flutter web. From 1.1.1 the same plugin runs on Flutter web: Hailbell.configure loads the web widget without its chat button, and open, identify, setMetadata, track, unreadCount, onPaywall, darkMode, reset and deleteData work unchanged. Give the app a Web platform in the dashboard and pass its App ID on the web. Sign people in with the same identity token or Firebase account as on the phone, so the dashboard has one user id for both. Calls with no browser meaning, such as push tokens, bug reports and setPaywallPlacements, do nothing there; for browser push add hailbell-push.js (Push). Desktop isn't supported.
React Native
Expo SDK 54 or later with a development build or EAS Build (Expo Go can't load native code), or a bare React Native app after npx install-expo-modules@latest. iOS 16 and Android 7 or later. The package wraps the iOS and Android SDKs, so the chat is the same native screen. Use 1.1.0 or later, which has bug reports with the app's log and failed requests, and replies to one message.
npx expo install @hailbell/react-native
// app.json: configures Hailbell natively at launch and adds the push capability
"plugins": [
["@hailbell/react-native", {
"ios": { "appId": "app_IOS_XXXXXXXX" },
"android": { "appId": "app_ANDROID_XXXXXXXX" }
}]
]
import { Hailbell, useHailbellUnread } from '@hailbell/react-native';
// From any help button
Hailbell.open();
Run npx expo prebuild or an EAS build after adding the plugin. useHailbellUnread() gives the badge count. Push works with expo-notifications or React Native Firebase; the full guide is in GUIDE.md. Package: @hailbell/react-native.
Web
One script tag. The widget runs in a shadow root with no inline scripts or styles, so it works under a strict CSP.
<script src="https://api.hailbell.com/widget.js" data-app-id="app_XXXXXXXX" defer></script>
Use data-launcher="none" to open it from your own button with Hailbell.open(). The round chat button shows a speech bubble; pick another icon with data-launcher-icon (message, chat, headset, bell, help, sparkle or mail), or set it in the dashboard under Chat design › Chat button, where you can also upload your own image. The dashboard's choice wins over the attribute. Pass context such as data-meta-plan="pro". For CSP, allow https://api.hailbell.com in script-src, style-src and connect-src, plus wss://api.hailbell.com.
Replies a visitor doesn't see go to their email when the app has Settings › Email turned on. Hailbell uses the email your site passes (data-email, Hailbell.identify or the identity token). A visitor you gave no email gets a small card after their first message: "Get the reply by email in case you leave", with an email field. They can save an address or dismiss the card. An address typed there gets the same reply emails and unsubscribe link, but Hailbell never treats it as proof of who they are: the dashboard marks it "entered in chat", and an email your site passes later replaces it. With email replies off, the card never shows.
Shopify
A Shopify store doesn't use the script tag. Install Hailbell Live Chat from the Shopify App Store. Opening the app in your Shopify admin makes your Hailbell account with no separate sign-up, and starts a 14-day free trial if you have not had one before.
- Turn on the chat. On the app's Home page, press Turn on the chat. The theme editor opens with the Hailbell chat switched on under App embeds. Press Save, and the chat button shows on every page of your store. Home says On once Shopify reports the embed as active.
- Chat design. Pick a color set or your own accent color, the title, the welcome text, the chat button's icon and the message corners. The real chat previews beside the form, and Shopify's save bar saves it.
- AI replies. Switch them on, choose how long the AI waits for you to answer first, and write what it should know: shipping times and costs, returns, sizing.
- Chats. Read and answer chats and close them in the admin. A shopper who was logged in to your store shows their recent orders with payment and delivery status next to the chat.
Home also shows the last 30 days: how many chats came in, your median first reply time and how shoppers rated closed chats. Business hours, email replies, the help center, saved replies, your team and Discord, Telegram and Slack are in the full dashboard, which opens from the app already signed in.
The plan is picked on Shopify's plan page and charged on your Shopify bill. Uninstalling the app turns the chat off on your store and leaves no code in your theme. What Hailbell receives from Shopify is on the privacy page.
WooCommerce
A WooCommerce store uses the Hailbell Live Chat plugin instead of pasting the script tag. The plugin adds the chat, signs in logged-in shoppers and lets your team see their orders.
- Install. In WordPress, go to Plugins › Add New Plugin, search for Hailbell Live Chat (on WordPress.org), install it and activate it. Or download the zip and upload it there. It needs WordPress 6.5, WooCommerce 9.0 and PHP 7.4 or later, and the store must be on a public https address.
- Connect. Open WooCommerce › Hailbell and press Connect to Hailbell. Sign in with Google or an emailed link (a new account starts its 14-day free trial), pick the account, and choose a new web app for the store or one you already have. Only the owner or an admin of the account can approve a store.
- Done. You're back in WordPress with the store connected, and the chat shows on every page. The settings page shows the account, its plan and how many chats are waiting.
Logged-in shoppers. For a shopper logged in to the store, the plugin adds a token signed with the store's own secret, so their chat follows them across devices and the dashboard marks them verified, with their name and email. WordPress doesn't confirm the emails people register with, so that email never pulls emails sent to your support inbox into their chat. The store's secret is separate from the app's identity secret, so rotating that one doesn't affect the store.
Orders. Next to a chat with a logged-in shopper, the dashboard shows a WooCommerce orders card: their order count, total spent and five latest orders with status, items and tracking numbers (from WooCommerce Shipment Tracking), linked to the order in WordPress. Hailbell asks the store for them with a signed request when you open the chat and keeps them for two minutes. A typed-in email never pulls up orders. With cart context on, the chat's details also show what is in the shopper's cart.
On the store. WooCommerce › Hailbell can hide the chat on checkout, the cart, My Account or any path, and use the site's language for the chat. Each order gets a Hailbell chat box with a link to that customer's chat. Developers can change where the chat shows with the hailbell_show_chat filter and add attributes with hailbell_widget_attributes.
Privacy. WordPress's Export Personal Data includes the customer's Hailbell chats, and Erase Personal Data deletes them in Hailbell. Disconnecting or deleting the plugin ends the store's secret and stops the chat on the store; the chats stay in your account. What Hailbell receives from the store is on the privacy page.
Signed-in users
Without sign-in, a chat belongs to the install. To follow a user across devices, your backend signs an HS256 JWT with the app's identity secret, with sub set to your user id.
Hailbell.identify(identityToken: token) // iOS
Hailbell.identify({ identityToken: token }) // Web
The token can also carry email and phone. A phone claim is the user's number in international form with the + (such as +919812345678); it lets their WhatsApp messages join their chat. Hailbell only trusts a phone number from a signed token (or a Firebase token whose number Firebase verified), never one the app sends in metadata.
Apps on Firebase Auth can skip the backend and pass the user's Firebase ID token instead. Call Hailbell.reset() on sign-out and Hailbell.deleteData() when a user deletes their account.
Push
Replies arrive as a push when the chat is closed. Campaigns go out from the dashboard, the API or an agent, with variables like {{first_name|there}}, {{city}} and the local weather, delivered at each person's local time.
// iOS: didRegisterForRemoteNotificationsWithDeviceToken
Hailbell.setPushToken(deviceToken)
// When a Hailbell notification is tapped
Hailbell.handleNotification(userInfo)
On the web, add hailbell-push.js next to the widget and serve /hailbell-sw.js containing importScripts('https://api.hailbell.com/push-sw.js');.
One campaign can go to your app's iOS, Android and web platforms at once. In Push › New message, pick the platforms under Platforms. Every platform is picked by default. Sent shows the campaign once, with its numbers for the whole campaign and for each platform. Each platform still sends with its own keys, Firebase project, limits and quiet hours.
- One push per person. A signed-in user gets the campaign once, on the device they used most recently, even with an iPhone and a browser. Installs that never signed in can't be matched across platforms, so each counts as its own person. Test sends go to every test device.
- Daily and weekly caps per person. In Push › Setup › Limits, set how many promotional pushes a person may get in a day, in a week (Monday to Sunday in their time zone), or both, such as 1 a day and 3 a week. Each cap counts a person across all of your app's platforms, so a second platform can't push someone over it, and one campaign counts once. Transactional messages are never capped. Quiet hours follow the time zone of the device that gets the push.
- Segments and tags. A segment works on every platform, whichever one you made it on. A scheduled send reads its segments when it goes out, so editing a segment changes who that send reaches. You can't delete a segment while a scheduled send includes or excludes it: Hailbell lists those sends so you can cancel them first. A tag filter matches a signed-in user when the tag is set on any platform.
- Plan filter. Pick people by the plan their purchases (Superwall, RevenueCat, the App Store, Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay) say they're on: active, free trial, cancelled (auto-renew off, still has access), billing issue, expired, or never bought. Hailbell refreshes it on every webhook and once a day, and a plan whose period has ended counts as expired. People Hailbell can't match to purchases by user ID or, for web payments, by email (see Revenue) have no plan, so they're left out of "is" and included in "is not".
- App version filter. Pick people by the version of your app on their device: exactly a version, or at least, above, at most or below one. Versions compare as numbers, so 1.10.0 is above 1.9.9 and 1.3 equals 1.3.0, and a device that reports no version matches none of the four. Over the API it is
{"field":"app_version","relation":">=","value":"1.4.0"}, with>,>=,<or<=. - Scheduling. Schedule a send up to 365 days ahead (
sendAfterover the API). It picks its audience when it goes out, not when you schedule it, so people who install or update in between are counted. Cancel it any time before it finishes.
Automatic messages
Three messages can go out by themselves, set per platform under Push › Setup › Automatic messages, or over the API with PATCH /v1/settings (update_setup for an agent). Each is off until you write it and turn it on. The card shows what each did in the last 30 days: started, sent, tapped, cancelled because the person bought, and skipped, with the reason.
- Paywall follow-up. When someone closes your paywall without buying, a push goes out once a set number of hours have passed (24 by default), at the next time it's the hour that person usually opens the app, or a time you pick for people without enough history. Point its link at your paywall or offer. It goes only to people who allowed promotional pushes and aren't paying already, once per person within a cooldown (7 days by default), and your daily and weekly caps apply. If they buy before it goes, it's cancelled; that needs the app to give Hailbell the same user ID it gives Superwall or RevenueCat (see Revenue). The app records the decline itself:
// When your paywall closes without a purchase (Superwall's or RevenueCat's paywall callback)
Hailbell.track("paywall_decline")
- Billing issue message. When your Superwall, RevenueCat, the App Store, Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay webhook reports a failed renewal, your message (how to fix the payment on iPhone and Android) goes into that customer's support chat as a reply from your team, with the usual push and email follow-up. It waits at least 30 minutes, and goes between 09:00 and 21:00 in their time zone. If the payment recovers first, nothing is sent, and a person gets it at most once a week. It needs one of the purchase webhooks, and reaches the people Hailbell can match to the purchase by user ID or, for web payments, by email.
- Cancel question. When your Superwall, RevenueCat, the App Store, Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay webhook reports a cancel the person chose (they turned off auto-renew and keep access until the period ends), your message, usually one short question like "what made you cancel?", goes into that customer's support chat as a reply from your team, with the usual push and email follow-up. It goes about an hour later, since many cancels are undone within minutes, and between 09:00 and 21:00 in their time zone, while they still remember why. Someone who never wrote gets a new chat for it. A cancelled free trial can get its own wording, and a refund gets the refund wording once you write it (refunds aren't asked otherwise); a refund while a cancel question waits turns it into the refund one, so nobody gets two. Nothing is sent if they resubscribe or pay again first (refunds are asked anyway), got a refund, or have written to or heard from you in the last day, and a person gets it at most once every 180 days. Cancels the person didn't choose (billing retry running out, or a cancel by you) and Family Sharing members never start it. Every question queued, sent or skipped is logged, masked, in a
#cancel-feedbackchannel of your Discord server, made the first time. Their answer arrives as a normal chat with their plan beside it, so you (or the AI, which attaches an offer only when price is the reason) can answer there.get_userlists a person's questions ascancelQuestions, so another tool that asks people who cancel can skip them. It needs one of the purchase webhooks.
Automatic pushes don't appear under Sent, since each goes to one person.
Push keys
Hailbell sends iOS and Android pushes with your own keys. Upload them in the dashboard under Settings › Push keys. Web push needs no key.
- iOS. An Apple
.p8key with its Key ID and Team ID. Make one in Apple Developer under Certificates, Identifiers & Profiles › Keys with Apple Push Notifications service turned on. If your apps are in different Apple teams, add one key per team. Each app uses the key of its team, matched by its bundle ID. - Android. A Firebase service account JSON file, one per Firebase project. In the Firebase console, open Project settings › Service accounts and choose Generate new private key. Enter each Android app's Firebase project ID in Push › Setup too, so it uses the key of its project.
Hailbell tries each key with Apple or Google before saving it, stores it encrypted and never shows it again. To replace a key, upload the new one and remove the old one.
Discord, Telegram and Slack
Every message lands in the dashboard inbox. Discord, Telegram and Slack are optional extra places to answer from, and they all stay in sync.
- Discord. In Settings › Discord, press Connect Discord and pick your server on Discord's page. Then pick a forum channel for each app, or choose Create a forum for this app. Each customer gets their own post in that forum, and your replies in it reach the customer. The bot reads only the posts it creates.
- Telegram. Make a bot with @BotFather, paste its token in Settings › Telegram, then open the bot and press Start. Reply to a customer's message to answer them.
- Slack. In Settings › Slack, press Connect Slack and allow Hailbell on Slack's page. One Slack workspace per Hailbell account. Then pick a channel in each app's General settings, or choose Create a channel for this app. Hailbell joins public channels itself; for a private channel, type
/invite @Hailbellin it first. Each customer gets one message in the channel with their name, app, plan and purchases (from Superwall, RevenueCat, the App Store, Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay), email, user ID and metadata, an Ask for a review button, an Ask for a bug report button (iOS and Android apps) and a Send an offer menu. The chat goes on in that message's thread: what you type there reaches the customer, with images up to 1.5 MB, and it shows in Discord and Telegram too. Replies from the dashboard, Discord, Telegram and the AI show in the thread. When the customer opens your reply in the app, Hailbell reacts 👀 on it. Hailbell acts only on messages in the threads it starts and ignores the rest of your workspace. To get Hailbell's alerts (a failed push, the AI failing) in Slack too, pick a channel under Alerts channel in Settings › Slack.
In a Discord post or a Slack thread, a message starting with // is a note the customer doesn't see. !close closes the chat, !mine takes it and !unassign gives it back, !human keeps the AI out and !ai lets it answer again, !r sends a saved reply, !review asks for a review, !bugreport asks for a bug report (iOS and Android apps), !offers lists offers and !offer sends one. Admins can also see and change a web subscription with !sub, !cancel, !uncancel, !pause, !resume and !refund (subscription commands). !help lists them all. So your replies carry your name, get a code under Profile › Discord, Telegram and Slack and type !link <code> in a thread. Slack doesn't get alerts yet; those go to Discord and Telegram.
Support email in the same inbox
In Settings › Email, press Make an inbox address. Each app gets its own address, such as [email protected] (the random part means nobody can guess it from the name). Forward your support address, such as [email protected], to it from your mail provider. Each email then starts or continues the sender's chat in the same inbox as your in-app and website chats. It shows in the app's Discord, Slack and Telegram threads marked as email, the AI answers it first like any chat, and your answer goes back to them by email. Images up to 1.5 MB show in the chat; other attachments are listed by name.
When the sender is one of your app's signed-in users, their email joins their existing chat, with their plan and purchases beside it. That happens only when their mail provider vouches for the sender and your app proved that email with the identity token, so nobody can write into someone else's chat by faking a From address. Other mail starts an email-only customer. Turning the address off refuses mail sent to it; turning it on again makes a new address.
WhatsApp in the same inbox (beta)
Beta. Meta is still reviewing Hailbell as a WhatsApp Tech Provider, so for now only numbers in Hailbell's own test setup can connect. This section says how it works once Meta approves.
In Settings › WhatsApp, press Connect WhatsApp. Meta's window opens: sign in with Facebook, pick or make your WhatsApp Business account, and pick or add the number. The number can't be in use in the WhatsApp or WhatsApp Business app at the same time. Add a payment method in Meta's WhatsApp Manager: Meta bills your account per message, and Hailbell adds nothing on top.
Each WhatsApp message then starts or continues the sender's chat in the same inbox as your in-app, website and email chats. It shows in the app's Discord, Slack and Telegram threads marked as WhatsApp, the AI answers it first like any chat, and your answer goes back on WhatsApp. Photos show in the chat; voice messages, videos and files are named so you can ask about them. Under each reply you see Sent, Delivered and Read from WhatsApp.
The 24-hour rule. WhatsApp takes replies from a business only within 24 hours of the customer's last message. After that it takes only paid template messages. When the customer is also a signed-in user of your app and your app passed their number as a phone claim in the identity token, a late reply goes to their app chat with a push instead, at no charge. Otherwise the reply stays in Hailbell, marked Not delivered on WhatsApp, and goes nowhere until they write again.
A WhatsApp message joins an app user's existing chat, with their plan and purchases beside it, only when your app proved that same number in a signed token. Anyone else becomes a WhatsApp-only customer. Disconnect stops messages from reaching Hailbell; the number stays yours.
Edit or delete a sent message
Sent a typo or the wrong link? In the dashboard, hover your reply and press the pencil to edit it, or the bin to delete it (the Hailbell iPhone app has both in the message's menu). You can edit your own replies and internal notes at any time. If the customer hasn't read the reply yet, their chat changes without a mark. If they have, it says Edited under the message, so nobody can quietly change something a customer already saw. Your team always sees Edited, and clicking it shows the earlier wording.
Deleting a reply puts This message was deleted in its place in the customer's chat and removes its images for good. Your team still sees what it said and who deleted it. Admins can also delete a teammate's reply or an AI reply, for example when the AI got something wrong. The AI leaves a deleted reply out of what it reads. A deleted note is removed for the whole team.
Some copies can't be changed. A push notification or an email that already went out keeps the old text. A reply that went out on WhatsApp, or by email to a customer who writes by email, can't be edited or deleted. Discord, Slack and Telegram get a note saying what changed. Edits and deletions reach customers on every SDK version. The Edited label and the translated This message was deleted line need iOS and Android SDK 1.4.0 or later (Flutter and React Native 1.1.3); older versions show the new text without the label, and a deleted reply as that line in English.
Message a customer first
You don't have to wait for a customer to write. In the dashboard inbox, press New message (the pencil next to the Inbox title), type or paste an ID. It searches as you type, and Enter opens a single match. It finds people by an exact match on the user ID your app signs in with, their email (any capitalization), a Superwall user ID or alias ID, a RevenueCat ID, or a Hailbell contact or conversation ID. Part of an ID finds nobody, so nobody can browse your customers by typing a few letters.
IDs copied from a notification or a screenshot often have a capital I where the real one has a small l, or 0 where it has O, because those look the same in many fonts. When nothing matches exactly, Hailbell tries again treating those lookalike characters (and capitals) as the same. A customer found that way is marked Close match with their real ID beside it, so check it before you write. It still has to be the whole ID, the same length; emails aren't matched this way.
Each match shows their app and platform, plan, city and when they were last seen. Pick one and their chat opens with the cursor in the reply box. Your message reaches them like any reply: in the chat if it's open, as a push if their app has notifications on, and by email if Hailbell can email them, with copies in Discord, Telegram and Slack. The search covers every app you can see; an agent limited to some apps finds only customers in those. Someone who has never opened an app with the Hailbell SDK isn't there to find.
AI agents can do the same over MCP with start_conversation: one exact ID and the text. A close match counts too, and the answer says it was one, with the customer's real ID. Like an agent's reply, it's a draft a teammate sends from the inbox, unless an admin lets agents send in that app (Settings, the app, Agent replies). A chat that holds only a draft shows in the inbox with an AI draft chip. When the same ID matches customers in two apps, the agent gets both and sends nothing until it names the app.
Bug reports
Customers can report a bug from inside the app. It arrives in their chat, tagged as a bug report, and the inbox's Bugs switch shows only those chats. The report screen takes a screenshot of the current screen, which they can mark up or remove, and a description. It also sends the app version and build, device model, OS version, locale and the last screens they visited. Nothing is captured until they tap Send, and there is no session replay. Reports need iOS and Android SDK 1.1.5 or later, or Flutter and React Native 1.0.4 or later. The log and failed requests below need iOS and Android SDK 1.2.0, or Flutter and React Native 1.1.0.
Hailbell.shakeToReport = true // off by default; a shake opens the report screen
Hailbell.trackScreen("Settings") // optional: the last 10 screens go with each report
Hailbell.reportBug() // from your own "Report a problem" button
On Android, reportBug takes the activity: Hailbell.reportBug(activity). Flutter and React Native have the same three calls on Hailbell.
The app's log and failed requests
A report can also carry what your app was doing. Both are opt-in: Hailbell doesn't read the console and doesn't watch your network on its own.
- Log lines. Call
Hailbell.log("…")where a line would help you later. The SDK keeps the last 50 lines in memory on the phone and sends them only with a bug report the user chooses to send. - Failed requests. The last 10 requests that got a status of 400 or more, or no answer, each with its method, address, status code and time. No bodies and no headers.
// iOS: after a URLSession call (records only failures)
Hailbell.log("Restore tapped")
Hailbell.logRequest(request, response: response, error: error)
Hailbell.logRequest(method: "POST", url: url, status: 422)
// Android: the interceptor records failures by itself
Hailbell.log("Restore tapped")
OkHttpClient.Builder().addInterceptor(Hailbell.networkInterceptor).build()
Hailbell.logRequest("POST", url, 422)
// Flutter
Hailbell.log('Restore tapped');
Hailbell.logRequest(method: 'POST', url: url, status: 422);
// React Native
Hailbell.log('Restore tapped');
Hailbell.logRequest('POST', url, 422);
Secrets are stripped on the phone and again on Hailbell's server. An address loses its query string, and parts of it that look secret or personal (emails, tokens, keys, long IDs, JWTs, phone numbers) become :redacted. In log lines, passwords, tokens, API keys and Bearer values become [redacted].
The dashboard shows the failed requests with their status and time under the report in the chat, and the log folded under Log (N lines), next to the customer's plan, status, total spent and purchases. The customer's own copy of the chat leaves them out. Discord, Telegram and Slack get the report with the customer's plan, a Failed requests: N count with the last three, and Log: N lines (in the dashboard). AI agents get both in get_conversation, as report.logs and report.requests on the message.
Ask for a bug report
When a customer writes that something is broken, ask them for a report instead of a list of questions. In the dashboard, tap Ask for bug report in the reply box. In a Discord post or Telegram, type !bugreport with an optional message. In Slack, tap Ask for a bug report on the thread's first message. It works in iOS and Android apps. The customer gets your message with a Send a bug report button that opens the report screen with the log and failed requests attached, and they can add a screenshot from their photos there.
With AI replies on, the AI attaches the same button to its reply when a customer describes a bug or a crash, at most once per chat, and only for customers whose app has SDK 1.2.0 or later. It is part of the reply the AI was already writing, so it adds no AI call and no cost. Apps on older SDK versions show the request as text without the button.
Send a chat to your coding agent
When a customer reports a bug, asks for a feature or complains, press Send to agent in the chat. Hailbell writes a task brief and hands it to your coding agent for the repo of the app the customer wrote from. You don't take a screenshot, pick a repo or paste anything. It is in the web dashboard now and coming to the Hailbell iPhone app.
The brief has everything the team sees beside the chat: the customer's messages with their screenshots, the device, OS, app version, locale and SDK version, every field your app sends about the customer, their plan, purchases and purchase history from Superwall, RevenueCat, the App Store, Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay, the plan their app reports and whether it disagrees with their purchases, recent events, bug reports with the app's log and failed requests, your team's notes, and a link back to the chat. It starts with a short AI summary that says whether this is a bug, a feature request or a complaint, with steps to reproduce when the chat gives them. The summary is one AI call per send, counted in your AI budget, and you can turn it off. You can also add a line of your own, or open the brief and edit it before it goes.
Agents on your own machine
In the dashboard, open Profile › Coding agents, press Connect a machine and run the command it shows on the computer that has your code. It needs Node.js 18 or later; with Node.js 22 or later a task starts about a second after you send it.
npx hailbell connect hbc_... # pairs this machine, finds your repos and agents, waits for tasks
npx hailbell connect add ~/Code # add a repo, or every repo in a folder
npx hailbell connect install # keep it running in the background (macOS and Linux)
The connector runs the agent you already use, with your own subscription: T3 Code, Claude Code, Codex, Grok Build, Gemini CLI, Muse Code, Factory Droid, OpenCode, Amp, or any command you name in its settings file. Pick the model and the reasoning level per task, or save a default. With T3 Code the task opens as a thread in the repo's project, on the provider and model you chose. With the other agents the connector makes a new git worktree on its own branch, runs the agent there, commits what it changed, pushes the branch and opens a draft pull request with the GitHub CLI when it is installed.
A task you send goes only to your own machines, to one that has the repo checked out and the agent installed. A task from an iPhone app waits for a Mac when you have one that can take it. For a repo that holds several apps, npx hailbell connect add ~/Code/shop --only android makes a machine take that repo's tasks for some platforms only. If your computer is asleep, the task waits for it. The connector only makes outgoing connections, so nothing on the internet can reach your machine.
Cloud agents (beta)
Add your own API key under Profile › Coding agents to send tasks to a Grok Build cloud agent, to GitHub (an issue assigned to Copilot, an issue that mentions @claude, or a plain issue), to Jules or to Devin. Keys are stored encrypted and used only for tasks you send. With no setup at all, Preview the brief has a Copy button and links that open Claude Code, Grok Build or Codex with the brief typed in.
Which repo, and what happens next
Admins link each platform of an app to its repository in Profile › Coding agents, since an app's iOS and Android code often live in different repos. The chat knows which platform the customer wrote from, so the task goes to the right one. One click on Send to agent uses your default agent, model and reasoning level. Shift-click, or Send to agent, with options in the chat's menu, changes them for one chat.
When the customer writes again, press Send to agent once more and the follow-up goes into the same thread. The agent still has everything from the first time, so the follow-up holds only what is new, and its changes land in the same pull request. This works with T3 Code, Claude Code, Codex and Grok Build cloud agents, on the machine that has the thread. Once the pull request is merged or closed, the next send starts a new thread. In the options you can pick the thread yourself, including one from another chat when a second customer reports the same problem, or ask for a new one. To always start a new thread, change When you send a chat again in Profile › Coding agents.
A note in the chat, which only your team sees, follows the work: waiting for your machine, working, waiting for your answer, finished with the agent's summary and its pull request, and merged once the pull request is merged. While a task is going, a strip above the reply box shows its status, and Open the thread takes you to the agent's thread. When the agent is done, Draft a reply to the customer writes an AI draft that tells them what changed, for you to edit and send.
The customer's words go into the brief as quoted data, with an instruction never to follow anything written inside them. Agents work on their own branch and nothing is merged for you. Each send is recorded in the data access log, because the customer's details leave Hailbell.
Any other agent, with a webhook
For an agent Hailbell has no built-in way to reach, such as your own bot or an agent platform that takes HTTP requests, add a webhook URL under Profile › Coding agents › Any agent (webhook). Hailbell sends a test request and shows a signing secret once (Show secret shows it again). Every request is a JSON POST with X-Hailbell-Event (ping, task, follow_up or cancel), X-Hailbell-Timestamp and X-Hailbell-Signature, the hex HMAC-SHA256 of <timestamp>.<body> with your secret. Check it before you start any work.
{
"event": "task",
"task": { "id": "agt_…", "title": "…", "brief": "…", "images": ["https://…"], "repo": "https://github.com/you/app",
"branch": "main", "model": null, "effort": null, "automatic": true, "conversationUrl": "https://app.hailbell.com/?c=…" },
"report": { "url": "https://api.hailbell.com/v1/agent-tasks/agt_…", "token": "hbt_…" }
}
Answer within 10 seconds with a 2xx, and optionally { "externalId": "…", "url": "…" } for your own id and a link to the run. Then report progress to report.url with Authorization: Bearer <report.token>, as often as you like: { "status": "running" | "waiting" | "done" | "failed", "url", "externalId", "prUrl", "prState": "open" | "merged" | "closed", "result", "error" }. The token works for that one task only. A follow_up has task.continues with the earlier task's id and your externalId, so you can reopen the same thread. cancel names a task the team stopped.
For GitHub's Codex, pick Codex on GitHub: Hailbell opens an issue that mentions @codex in the repo, with your GitHub key.
Automatic triage
With automatic triage on, a bug report doesn't wait for someone to press Send to agent. When a customer writes, Hailbell waits a little (5 minutes by default, and each new message starts the wait again, so a message and its screenshot are read together), then the AI reads the chat. If it is a bug in your app's code that an agent can fix, the chat goes to the coding agent you picked by itself, with the same brief, and the agent investigates and opens a pull request for your team to review. Nothing is merged, deployed or released by itself. Only bug reports go for now; feature requests and complaints stay with your team.
Admins set it up per platform in Profile › Coding agents › Automatic triage:
- Runs as: the teammate whose machine or cloud agent key does the work, as if they had pressed Send to agent. Pick their agent, model and reasoning level, or leave their defaults. The platform needs its repository linked.
- Trial run or On: start with a trial run. It only writes a note in the chat saying what it would have sent, so you can see how it judges your chats before any agent starts work.
- Whose chats: everyone, signed-in customers (your app gave Hailbell their user ID), or paying customers only (an active plan, or a cancelled one until its period ends).
- How sure: how sure the AI must be that it is a fixable bug, from 50% to 95% (70% by default).
- Most chats a day: from 1 to 50 per platform (10 by default). Trial runs count too.
Each chat goes at most once: a chat that already has a task, or that the AI already sent or trialled, isn't read again, and a chat is read at most 3 times a day. When a second customer reports a bug an agent is already working on, the AI says so and the chat joins that work instead of starting a second task: both chats link to one issue, and a note says which task it joined. Reading a chat is one AI call, counted in your AI budget, and the summary it writes becomes the brief, so a sent chat costs no second call.
A team-only note follows every decision, and the pull request's note mentions the teammate it ran as, so they get a push and an email when it is ready for review. Recent decisions under the settings lists what it made of each chat and why. Press Not a bug on a wrong one: it stops the agent's task, and the AI sees your correction the next time it reads a chat from that app. It was a bug marks a chat it skipped. The inbox filter Pull request to review shows the chats with an open pull request.
The brief for an automatic task says that nobody on the team has read the chat yet, that the agent should open a pull request only when it finds the cause, and that it must never merge, deploy or release. The AI that reads the chat ignores instructions inside it, including one that asks it to call something a bug. Agents can read and change the settings over MCP with get_auto_triage and update_auto_triage (admins' keys only for changes).
Issues
An issue is one problem that many customers hit, like “Export crashes on iOS 18” or “Restore purchases fails after 2.4”. Link every chat about it to the issue. When you fix it, press Mark fixed and everyone linked gets one message in their own chat: a push in your app, an email for website visitors who left one, and the usual copy in Discord, Slack and Telegram. “Fixed in 2.5, update here” reaches every person who complained, not only the ones who write again. It is in the web dashboard now.
- Link a chat. Press Issue in the chat header. It lists the app's open issues with how many people are on each; pick one, or press New issue. The title starts from the customer's first message and you can change it. From a chat with a bug report, the report's details go into the issue's internal notes. A chat links to one issue at a time; unlink it from the same menu. Linking sends the customer nothing. The menu offers a line you can put in the reply box (“We're tracking this, and we'll message you here as soon as it's fixed.”), and nothing goes out until you send it.
- Let the AI link chats. Give an issue a line under What customers are told, such as “We know export crashes on iOS 18, and a fix is coming in 2.5.” While the issue is open and AI replies are on, the AI tells a customer who asks about that problem, in their language, and links their chat, with a note for your team. Issues without that line never reach the AI. The 10 newest such issues go into the AI's instructions, so this adds a little to each reply's prompt and no extra AI call.
- The Issues list. Under Inbox, Issues shows each issue with its status, how many people are linked and how many of them pay, and when the last chat was linked. Open issues with the most people come first. It follows the app and platform you picked, like the inbox. An issue shows what the linked customers paid in all (in USD), their app versions and platforms, your internal notes, and every linked chat with the customer's plan, app version, who linked it (or the AI) and whether they got the fix message.
- Mark fixed. The message starts as “Good news: title is fixed in version x. Update app to get it.”, with an optional version. Before anything goes out you see who it reaches: “This messages 14 people: 9 by push, 3 by email, 2 only in the chat (no push or email).” Each linked chat gets the message once, from you, like a reply you typed. A closed chat stays closed and still gets it, with a push. Messages go out in small batches in the background; the issue then shows the message and “Sent to 14 people on Nov 27”. Blocked customers are left out.
- Won't fix. The same, and the message may be empty: then nobody is messaged. Either way every linked chat gets a note for your team, in the dashboard and in its Discord, Slack and Telegram thread.
- Later. You can reopen an issue. People who already got its message never get it twice. A chat linked after the close gets the stored message only when you press Send the fix message to them on the issue. One issue holds up to 5,000 chats, and the issue says so when it's full.
Agents work with issues too: list_issues, get_issue, create_issue, update_issue, link_conversation_to_issue, unlink_conversation_from_issue and close_issue over MCP, and /v1/issues in the REST API. Like a push broadcast, close_issue with a message first returns who it reaches and a confirmToken, and sends only when called again with it. Issues are not tickets: there are no customer-facing tickets or forms. For waiting, snoozing and reply-time targets see Statuses and reply targets.
Statuses and reply targets
A chat is open, waiting on the customer, snoozed or closed. Waiting and snoozed chats leave the Open list, the unread counts and the badges, so the inbox shows only what needs you now. It is in the web dashboard: the row under the inbox search shows which chats you're looking at ("Open 12"), and tapping it switches to Waiting on customer or Snoozed, each with its count.
- Waiting on the customer. After you ask the customer something, pick Waiting on customer from the arrow beside Close, or send with Send and wait for the customer from the arrow beside Send. The chat moves to Waiting on customer, and their next message brings it back to Open.
- Snooze. The same menu snoozes a chat for an hour, until tomorrow morning (the next opening in your business hours, or 9:00 AM without them), until next week (the first opening from Monday), or until a date and time you pick. At that time the chat comes back to Open, marked unread, with a note for your team. If the customer writes first, it comes back at once.
- Where it shows. The chat header and the inbox row say "Waiting" or "Until Mon 9:00 AM". Discord, Slack and Telegram get a line in the chat's thread when a teammate sets a status, like they get the close and reopen marks. Closing a chat ends its wait or snooze.
Reply targets
In Settings, the app, Reply targets, set how soon a person on your team should answer: a first reply target (from the customer's first message to the first reply from a person) and a next reply target (for each later message while the customer waits). Targets are shared by the app's platforms and are off until you set them.
- Time left. Each open chat that owes a reply shows "Due in 42m" in its inbox row and "First reply due in 42m" in its header. Close to the target it turns amber, and past it the chip says "Overdue 12m" in red.
- What counts. Only replies from people stop the clock. The AI's replies, the away message and an issue's fix message don't. With business hours on, only open hours count, so a message on Friday night isn't late on Saturday. Waiting and snoozed time never counts: the clock pauses and picks up where it stopped.
- Alerts. Once before a miss (at 80% of the target by default, or 50%, 75%, 90% or never) and once at the miss, a line goes to the chat's Discord, Slack and Telegram thread: "12 minutes left to send the first reply to Maya". Each wait gets each alert once at most.
- Reports. Insights › Reports shows the share of first replies and of next replies that met their target, the share of chats where every measured reply did, and the same per app and per priority.
- Urgent and high. Under By priority you can give urgent and high chats shorter targets, for example a 15 minute first reply for urgent chats. A chat's clock uses the target for its priority, and changing the priority moves the deadline and the warning.
Agents use statuses too: set_conversation_status (open, waiting, snoozed with until or a preset of 1h, tomorrow or next_week, or closed), list_conversations with status waiting or snoozed, and get_reply_targets and update_reply_targets over MCP; chats carry status, snoozedUntil and replyTarget (time left, due time, overdue, paused). In the REST API: POST /v1/conversations/{id}/status and GET or PATCH /v1/reply-targets. None of it uses AI. Hailbell still isn't a full help desk: there are no ticket forms or customer portal.
Priority
Each chat is Urgent, High, Normal (the default) or Low. The chat is the ticket, so priority lives on it and tells your team which to answer first.
- Setting it. Use the priority button beside Close in the chat header, or press P and then 1 to 4. When the AI hands a chat over as a refund or billing request, or because the customer is angry or threatens a chargeback, a payment dispute or a bad review, it raises a normal or low chat to High (from the reply it already writes, so no extra AI cost). It never lowers a priority a person set. Closing a chat sets it back to Normal, since the next message is a new question.
- Where it shows. Urgent chats get a red mark in the inbox and High an orange one; Low gets a faint mark and Normal none. Discord, Slack and Telegram get a line in the chat's thread when the priority changes.
- Filter and sort. Filter, at the right of the row under the inbox search, narrows the list by priority, by who it's assigned to (anyone, you, nobody, or one teammate), to unread chats, or to chats with a bug report, and sorts by Newest or by Priority (urgent first, then the soonest reply deadline). Filters that are on show as chips under the row, each with a × to remove it. The dashboard remembers them in your browser.
- Agents.
set_conversation_priorityover MCP, orPOST /v1/conversations/{id}/priorityin the REST API.list_conversationstakespriorityandsort: "priority", and chats carrypriority.update_reply_targetstakesurgentandhighfor the shorter targets.
Apply to all
To close, assign or set the priority of several chats at once, press the check button beside New message at the top of the inbox, pick the chats (up to 50; Select all shown picks the list), then choose Close, Assign or Priority. A preview says how many chats change, names them, and says which are skipped and why (already closed, already that priority, or a teammate who can't see that app). Nothing changes until you confirm it. The dashboard then works through the chats a few at a time and shows how far it is. Each chat goes through the same steps as its own button, so closing can still send a rating question or a review request, and Discord, Slack and Telegram get their usual lines.
Agents use bulk_update_conversations over MCP or POST /v1/conversations/bulk in the REST API, with conversationIds, action (close, assign or priority) and priority or assignTo (a member ID, an email, "me" or null). The first call returns the preview and a confirmToken that lasts 30 minutes; the second, with the same chats, the same change and the token, starts the change. One call changes a few chats (about 4) and returns done, skipped, failed and remaining, the IDs it hasn't reached. Call again with conversationIds set to remaining and the same token until remaining is empty. A key reaches only the chats of the apps it may use.
Routing rules
Routing rules send new chats to the right teammate, so nobody has to sort the inbox by hand. For example: chats that mention refund or charged go to Ben with High priority. Admins set them up under Settings › Routing. They belong to the account, so one list covers all your apps, and a rule can be limited to some apps.
- When they run. When a customer starts a chat, and when they write again after the chat was closed. Later messages in the same chat change nothing.
- Order. Rules run top to bottom and the first one that matches wins. Move a rule with its up and down arrows, or switch it off without deleting it. Each rule shows how many chats it routed.
- Conditions. Words or phrases in the customer's message (any case, whole words, so "bill" doesn't match "billing"), platform (iOS, Android, web), plan status from your payments (active, trial, cancelled, billing issue, expired or never bought), user tags, country, device language and apps. Each condition matches when any of its values does, and every condition you fill in must match. A rule with no conditions matches every chat, which makes a good last rule.
- Actions. Assign the chat to one teammate, take turns across several (round robin: whoever got a chat longest ago, skipping anyone set to away), or send it to a team. Set its priority. Leave a team note. The chat gets a note from Rule: Billing saying what it did, its header shows Rule: Billing next to the assignee, and the teammate's notification says who assigned it.
- What stays. A chat a teammate assigned by hand keeps its assignee, even after it's closed and reopened. A priority someone chose stays too. When no rule matches, the chat goes to the inbox as before, and to round robin if an admin turned it on in Team.
- Test a message. Type a message under the list to see which rule would route it and why the others wouldn't.
- Agents.
list_routing_rules,save_routing_ruleanddelete_routing_ruleover MCP, orGETandPOST /v1/routing-rulesandDELETE /v1/routing-rules/{id}in the REST API. Changing rules needs a key made for all apps, by an admin or the owner.
Rules match keywords only. They never call the AI, so they cost nothing.
Teams
A team is a named group of teammates, like "Billing" or "Tier 2", so a chat can go to a group instead of one person. Teams belong to the account, so all your apps share one list. A teammate can be in several teams, and a chat belongs to one team at most. It keeps its team when it closes.
- Making teams. Admins add, rename and delete teams on the Team page, under Teams, and tick who is in each one. Everyone on the account can see the teams and their members. An account can have up to 50 teams.
- Routing to a team. In a routing rule, pick A team under Assign. A chat the rule matches joins the team and goes to one of its members in turn: whoever got a chat longest ago. Members set to away are skipped, and so are members who can't see the chat's app. If nobody is free, the chat stays in the team, unassigned, until someone takes it.
- In the inbox. Filter › Team shows one team's chats, or My teams for every team you're in.
- In a chat. The team button in the chat header shows the chat's team. Anyone who can open the chat can move it to another team or to no team. Moving a chat changes only its team: whoever is assigned keeps it. A routing rule never moves a chat out of a team a person chose.
- Deleting a team. Its chats keep their assignee and lose only the team. Routing rules that sent chats to it stop assigning, and a rule with nothing else to do is switched off.
- Recent changes. The Team page's log shows who made, renamed or deleted a team and who was added or removed.
- Agents.
list_teams,save_team,delete_teamandset_conversation_teamover MCP, andlist_conversationswithteam. In the REST API:GETandPOST /v1/teams,DELETE /v1/teams/{id}andPOST /v1/conversations/{id}/team. Changing teams needs a key made for all apps, by an admin or the owner.
A team's chats still post to the app's Discord, Slack or Telegram as before. A team can't have its own channel yet. Teams never call the AI, so they cost nothing.
Tags
Tags say what a chat is about, like "billing", "login bug" or "feature request", so you can find those chats again and see which topics grow. They belong to the account, so all your apps share one list. A chat can have up to 10 tags, and they stay when it closes.
- Tagging a chat. Use the tag button beside the priority button in the chat header, or press T. Type to find a tag and press Enter. Typing a name nobody has used makes a new tag. Anyone on the team can tag chats.
- Managing tags. Admins rename, recolor, merge and delete tags under Settings › Tags. Merging two tags moves every chat to the one you keep. Deleting a tag takes it off every chat.
- In the inbox. Rows show up to two tags, then "+2" for the rest. Filter › Tags shows chats with any of the tags you pick.
- Routing rules can add tags to new chats, for example "billing" on every chat that mentions refund.
- Reports › Tags counts the chats tagged with each tag in the range you pick, next to the same number of days before it, with the change.
- Agents.
list_tags,tag_conversationandlist_conversationswithtagover MCP, orGET /v1/chat-tagsandPOST /v1/conversations/{id}/tagsin the REST API.
Tags on chats aren't the same as user tags, the key and value pairs your app sets on a customer for push audiences. Tagging never calls the AI.
Merge duplicate chats
The same customer sometimes writes twice: an email to your support address and a message in the app, or two web chats before signing in. That's two chats for one question. Merge them so your team answers once.
- Merging. In the chat, open the ⋯ menu and pick Merge into…. Hailbell lists the likely duplicates first: chats with the same user ID, email or phone number, then open chats of the same app from the last 30 days. Search finds any other chat of the app by name, email, user ID or message. Pick the chat to keep; Swap keeps this one instead.
- Before you confirm, Hailbell says which chat stays, how many messages move, and where replies will go.
- What happens. The messages move into the kept chat with their own times, and a team note says "Merged from email chat by Ava". The other chat leaves the inbox. Its link, and its Discord, Slack and Telegram threads, lead to the kept chat, and its thread gets a line saying where the chat went. The kept chat keeps its assignee (or takes the other's when it had none), gets the higher of the two priorities, keeps its issue (or takes the other's), and gets the other chat's tags, up to 10 a chat. The confirm step says which tags move. Satisfaction ratings and reply-time history stay as they were, and an open question in both chats counts as one in Reports.
- Replies. A reply goes to the channel the customer wrote from last. If Jordan's last message came by email, your reply goes by email; when Jordan writes in the app next, the reply after that goes to the app, with the usual push. Each customer only ever sees their own messages, so a mistaken merge never shows one person another's chat.
- Customer profiles stay separate. Purchases, push and details aren't combined: Hailbell only joins profiles by itself when the same phone signs in. Whatever the other profile sends later lands in the kept chat.
- Unmerge. For 7 days the ⋯ menu has Unmerge. The chat gets back its messages, with what the customer sent there since and the replies that went there, and what the merge changed goes back unless someone changed it since. It also gets back the tags it brought, except any someone removed from the kept chat meanwhile.
- Limits. Only chats of the same app merge (an iOS chat with an email chat of that app, for example). Different apps and different accounts never do.
- Agents.
merge_conversationsandunmerge_conversationsover MCP, orPOST /v1/conversations/{id}/mergeand/unmergewithsecondaryIdin the REST API.
Merging never calls the AI, so it costs nothing.
Offers and reviews
An offer is a message with a button that opens one of your paywalls. Tell Hailbell which placements exist and how to open them:
Hailbell.setPaywallPlacements(["winback", "support_offer"])
Hailbell.onPaywall = { placement, purchased in
// open your Superwall or RevenueCat paywall, call purchased() if they buy
}
Review requests need only your App Store ID or Play package in the dashboard. On iOS the button opens the App Store review sheet. On Android it opens your app's Play Store page at its reviews. Only ask happy users, and never offer anything for a review.
A chat that was sent a review request shows Review asked in the inbox, or Review tapped once the customer tapped the button to open the store. To see everyone you asked, press Filter in the inbox and pick Asked, Tapped or Not tapped under Review request. It lists open and closed chats together. Apple and Google don't say who left a review, so a tap is as far as Hailbell can follow it.
Store reviews
New App Store and Google Play reviews of an app can land where you already answer chats, and your answer goes back to the store as the public developer reply. It's off until an admin turns it on for an app under Settings › Store reviews.
- iOS. Add an App Store Connect API key on the same page. It's a different key from the push key: in App Store Connect, open Users and Access › Integrations › App Store Connect API and generate a team key with the Customer Support role (App Manager or Admin work too), then upload the
.p8with its Key ID and Issuer ID. One key reads every app in the team. Hailbell finds the app by its App Store ID or bundle ID. - Android. Add the Google Cloud service account you already use with Play Console (for fastlane or uploads) on the same page; it needs View app information and Reply to reviews. Without one, Hailbell uses the app's Firebase service account from Push keys: in Play Console, open Users and permissions, invite its email (Settings › Store reviews shows it) with those two permissions. The app also needs its Play package name. Google only lists reviews from the last seven days.
Hailbell checks each app about once an hour. The first check saves the reviews already there without posting them. After that, each new review gets a message in the app's Slack channel, a post in its Discord forum and a message in your Telegram chat, with the stars, the text, the reviewer, the storefront or language, and the app version and device on Google Play. Type in that thread, or reply to the Telegram message, and Hailbell publishes it on the store. A message starting with // stays as a note. The dashboard's Reviews page lists them all, with filters for unanswered and one or two stars, and a reply box. Each store keeps one reply per review, so a new reply replaces the old one. The App Store takes replies up to 5,970 characters and Google Play up to 350. A reply typed in App Store Connect or Play Console shows up too. Teammates limited to some apps see and answer only those apps' reviews.
AI agents can read reviews with list_reviews and answer with reply_review. An agent's answer is a draft a teammate publishes from the Reviews page. It publishes on the store itself only when the agent asks to publish and an admin lets agents send in that app, and a note in the review's threads shows what it published. Store reviews make no AI calls of their own.
Revenue
Hailbell shows who you're talking to: their country, what they've spent, their plan, whether it's active, a trial, cancelled or refunded, how long they've paid and how they rank among your paying customers. A free trial that ended without a charge says so (Trial ended, 3-day free trial, Nov 18 – Nov 21 · never paid), a cancelled plan shows when its paid period ends, and when the store's product ID doesn't name the plan's length, Hailbell reads it from the billing period (a year from purchase to expiry is Yearly). It's at the top of each chat, in Discord and Telegram, and in what the AI knows. If your app sends its own plan (Hailbell.setMetadata(["plan": "free"])), the customer panel shows both: Purchases: Lifetime · active (Superwall) and App reports: Free. When they disagree it warns you, and the inbox row gets a warning sign next to the plan: Paid, but their app shows them as free usually means the app doesn't unlock a product it sells, so that customer is locked out; their app shows a paid plan, but their purchases don't can be a restore under another user ID, a purchase from another store, or a promo. When their app last reported a paid plan before that plan ended and they haven't opened the app since, the panel says so instead (Their app last reported Pro before the plan ended) and the inbox row gets no warning sign. Purchases come from your Superwall or RevenueCat webhooks for app purchases, and from Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay for purchases on your website, under Settings › Apps › your app › Revenue. Connect as many as you sell through. Sandbox and test-mode purchases are ignored.
The customer panel also shows the app version on their phone next to the version live on the App Store or Google Play, such as 1.3.20 (45) · Google Play has 1.3.22, in red when they're behind, so you can see when an update already fixes what they report. Hailbell reads the store's public listing once every 6 hours per app, by the App Store ID or Play Store package name saved under Review requests (on iOS the bundle ID works too).
RevenueCat
Hailbell takes purchase events from a RevenueCat webhook. One webhook covers every platform in a RevenueCat project. It needs a RevenueCat plan that includes webhooks.
- Connect. In the Hailbell dashboard, open Settings › Apps, pick the app and press Connect RevenueCat under Revenue. Hailbell shows a webhook URL for the app and an Authorization header value (
rc_whk_…). - Add the webhook in RevenueCat. Open your project, then Integrations › Webhooks › Add new configuration. Paste the URL, paste the header value into Authorization header value, choose Production purchases and all events. Press Send test event: it should answer 200, and Hailbell's Revenue box then waits for the first real purchase.
- Tell Hailbell the RevenueCat user ID. Either sign customers in to Hailbell with the same user ID you give RevenueCat (
Purchases.logIn), or pass it in the chat metadata asrevenueCatUserId:
// iOS
Hailbell.setMetadata(["revenueCatUserId": Purchases.shared.appUserID])
// Android
Hailbell.setMetadata(mapOf("revenueCatUserId" to Purchases.sharedInstance.appUserID))
// React Native
Hailbell.setMetadata({ revenueCatUserId: await Purchases.getAppUserID() })
// Flutter
Hailbell.setMetadata({'revenueCatUserId': await Purchases.appUserID})
What Hailbell does with the events:
- Purchases, renewals, cancellations, expirations and billing issues set the plan and its status. Only purchases and renewals add to what a customer has spent. A refund (a cancellation for customer support) takes it back off, and the chat shows the refund.
- The plan is named after your entitlement. A customer with the
teamentitlement on a yearly product shows as "Team · yearly". - Purchases before sign-in still count. Every event lists all the user IDs the customer has used, so a purchase made as
$RCAnonymousID:…during onboarding is found from the ID they sign in with later, and they're counted once in the rankings. When RevenueCat transfers a purchase to another user, Hailbell moves it too. - Retries are safe. RevenueCat resends an event that failed, and Hailbell stores each event once.
The webhook only sees purchases from the day you add it. Rotate the header value under Revenue if it leaks, then paste the new one into RevenueCat. Hailbell refuses events with any other value. Disconnect stops new events and keeps what's stored.
Superwall
Hailbell connects to Superwall webhooks so each chat shows the customer's subscription plan, status (active, trial, cancelled, billing issue, expired), total spent and paywall close events.
- Copy your webhook URL. In the Hailbell dashboard, open Settings › Apps, pick the app and press Connect Superwall under Revenue.
- Add the webhook in Superwall. Paste the URL and signing secret into Superwall's webhook settings so purchases, renewals, cancellations, refunds and paywall events stream to Hailbell.
- Wire paywall offers and user IDs. Sign users in with the same user ID you pass to Superwall (or pass it in metadata) and set
Hailbell.setPaywallPlacements(...)andHailbell.onPaywallso offer cards sent from the inbox, Slack or Discord open your Superwall paywall directly.
When your app also calls Hailbell.setMetadata(["plan": "free"]), Hailbell compares that against Superwall and RevenueCat webhooks and exposes planCheck ("match", "app_says_free", "app_says_paid", "app_outdated" or null) in the inbox and over MCP.
Web payments: Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop and Razorpay
If your website takes payments through Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay, connect it and web customers get the same panel as app customers: plan, status, total spent, rank among payers, purchase history and the plan filter for pushes. Each provider sends its events to a webhook URL Hailbell gives each app, signed with a secret you paste into Hailbell.
- Copy the webhook URL. In the Hailbell dashboard, open Settings › Apps, pick the app, open Revenue and find the provider's card. It shows a URL like
https://app.hailbell.com/webhooks/stripe/<app>. - Add the webhook in your provider.
- Stripe: Developers › Webhooks, add a destination for your live account with the URL and these events:
checkout.session.completed,invoice.paid,invoice.payment_failed,customer.subscription.created,customer.subscription.updated,customer.subscription.deletedandcharge.refunded. - Dodo Payments: in live mode, Developer › Webhooks, add an endpoint with the URL and subscribe to
payment.succeeded,payment.failed,refund.succeededand everysubscription.*event. If the same Dodo account sells other products too, fill in Only these brands or products on the card with the app's brand ID (brnd_…, under Settings › Brands) and its product IDs (pdt_…), so only its payments, subscriptions and refunds count, imports included. - Polar: in your live organization, Settings › Webhooks, add an endpoint with the URL, format Raw, and pick
order.paid,order.refundedand everysubscription.*event. - Paddle (Paddle Billing, not Classic): in your live account, Developer Tools › Notifications, add a destination of type URL and pick
transaction.completed,transaction.payment_failed, everysubscription.*event,adjustment.created,adjustment.updated,customer.createdandcustomer.updated. Its secret key starts withpdl_ntfset_. - Lemon Squeezy: Settings › Webhooks, add a webhook with the URL, type a signing secret of your own (6 to 40 characters) and pick
order_created,order_refundedand everysubscription_*event. Paste the same secret into Hailbell. - Creem: in live mode, Developers › Webhooks, add a webhook with the URL and pick
checkout.completed,refund.createdand everysubscription.*event. - Whop: Dashboard › Developer › Webhooks, create a webhook with the URL on API version v1 and pick
payment.succeeded,payment.failed,membership.activated,membership.updated,refund.createdandrefund.updated. Its secret starts withws_. - Razorpay: in live mode, Account & Settings › Webhooks, add a webhook with the URL, type a secret of your own and pick
payment.captured,invoice.paid,refund.processedandsubscription.activated,subscription.charged,subscription.pending,subscription.halted,subscription.cancelledandsubscription.completed. Paste the same secret into Hailbell.
- Stripe: Developers › Webhooks, add a destination for your live account with the URL and these events:
- Paste the signing secret the provider shows for that webhook into the card and press Connect. Hailbell stores it encrypted and refuses events with any other signature. The card says when the first event arrives.
- Import past purchases (optional). The webhook only sees purchases from the day you add it. Import past purchases takes a read-only API key (a Stripe restricted key with read access to Customers, Subscriptions, Invoices, Checkout Sessions and Charges; a Dodo live API key; a Polar organization access token with
orders:readandsubscriptions:read; a live Paddle, Lemon Squeezy, Creem or Whop API key; for Razorpay the live key ID and key secret joined with a colon,rzp_live_…:secret), copies earlier payments, refunds and subscriptions, and doesn't keep the key. Running it again adds nothing twice.
From your AI agent. Over MCP, connect_payments with the provider's live API key does all of the above: Hailbell adds its webhook in your account with the right events, keeps only the signing secret, and forgets the key. import_payments copies past purchases and get_payments shows what's connected. The REST API has the same as GET /v1/payments, POST /v1/payments/{provider} (stripe, dodo, polar, lemonsqueezy, paddle, creem, whop, razorpay or appstore) and POST /v1/payments/{provider}/import. They need a key made by an admin or the owner. In the dashboard, Or let Hailbell add the webhook on the card does the same with an API key. Razorpay has no API for adding a webhook, so that one is always added by hand.
Cancel, pause and refund from the chat
On every plan, admins can cancel, pause and refund a customer's web subscription from the chat, without opening the provider's dashboard. It works with Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop and Razorpay, and uses no AI.
- Connect the webhook first (above), so Hailbell knows which subscriptions belong to which customer.
- Add a key that may make changes. In Settings › Apps, pick the app, open Revenue and the provider's card, and paste a live key under Cancel, pause and refund from the chat. The table below says where to make it and what it needs. Hailbell stores it encrypted and shows only its last 4 characters. Test and sandbox keys that look like one (Stripe, Paddle, Dodo Payments, Polar, Creem, Razorpay) are refused.
- Press Manage subscription in the customer panel next to a chat whose customer bought through one of these providers. Hailbell reads the subscription from the provider at that moment and offers what can be done now:
- Cancel at period end. The customer keeps access until the period ends. Undo cancel turns renewal back on. When the app has offer cards and the customer can be reached, Cancel first asks Try an offer first?: Send an offer opens the app's offers and leaves the subscription as it is, Cancel anyway cancels.
- Pause and resume. Stripe, Lemon Squeezy, Creem, Whop and Razorpay stop charging until you resume; whether the customer keeps access in the meantime is up to your app. Paddle and Polar pause from the end of the billing period.
- Refund a payment. The refund sheet lists the subscription's recent payments, up to 5, newest first. Pick one and an amount, which starts at all that's left of that payment. Where the provider allows it, you can refund part of a payment.
| Provider | Key for changes | Good to know |
|---|---|---|
| Stripe | Developers › API keys › Create restricted key (rk_live_…): write access to Subscriptions and Refunds, read access to Invoices and Charges. | Partial refunds. |
| Paddle | Developer tools › Authentication › New API key (pdl_live_apikey_…): write access to subscriptions and adjustments, read access to transactions. | Partial refunds for transactions with one item. Paddle approves a refund before the money goes back. One scheduled change at a time, so a paused subscription, or one with a pause scheduled, offers Resume instead of Cancel. |
| Lemon Squeezy | Settings › API. Its keys have full access and last a year. | Partial refunds. |
| Dodo Payments | Developer › API Keys, a live key with Subscriptions: Write, Payments: Read and Refunds: Write. | No pause. Refunds whole payments only. |
| Polar | Settings › Access Tokens, with subscriptions:read, subscriptions:write, orders:read and refunds:write. | Partial refunds. Resume on a paused subscription starts a new period and charges the customer then. |
| Creem | Developers › API keys, with Test Mode off. | Refunds whole payments only. |
| Whop | Dashboard › Developer › API keys, with member:manage, payment:basic:read and payment:manage. | Partial refunds. |
| Razorpay | Account & Settings › API Keys. Paste the key ID and key secret as rzp_live_…:secret. | Partial refunds. A cancel can't be undone, since Razorpay doesn't allow it. |
Only admins and the owner see the button, not teammates with the agent role. Hailbell changes only subscriptions it filed under that chat's customer, and offers changes only when it can prove the customer in the chat owns the subscription: your site signed them in with an identity token (the user ID), or their email came from a signed claim. Otherwise Manage subscription lists the subscription with no buttons and a note to check it's them and change it in the provider's dashboard, or to sign customers in with identity tokens. Each change goes in the account's audit log (Team › Recent changes) and in the chat as an internal note, copied to Discord, Slack and Telegram like any note. The customer never sees the note. App Store and Google Play subscriptions can't be changed from Hailbell, and neither can purchases that come through Superwall or RevenueCat, since those are App Store and Google Play purchases too: Apple decides App Store refunds, and Google Play refunds happen in Play Console.
From Discord, Slack and Telegram. In a chat's Discord post or Slack thread, or as a reply in Telegram, admins and the owner who linked their account under Profile can do the same with commands. !sub shows where the customer's subscription stands and what can be done. !cancel, !uncancel, !pause and !resume say what would happen and give the exact line to type to do it, which ends in yes and a short code for that subscription (!cancel yes 9xk2qa). A bare yes, or a code that no longer matches, only shows the preview again. !refund lists the recent payments, numbered: !refund 1 previews refunding all that's left of payment 1 and !refund 1 5.00 previews 5.00 of it, each with its line to confirm, whose code is that payment's. So a renewal between the preview and the confirm can't change which payment is refunded. When the app has offer cards, !cancel points to !offers first. Each change is in the audit log and noted in the chat, like the button. A customer with several subscriptions gets the newest one changed.
Over MCP, manage_subscription does the same for a conversationId. action status (the default) lists the customer's web subscriptions as they stand now, with live.payments (each { id, amount, currency, at, refunded, refundable, partialOk }, amounts in the currency's smallest unit), can.partialRefund and can.refundApproval. Then cancel, undo_cancel, pause, resume or refund with the provider and subscriptionId from status and confirm: true. A refund takes a paymentId from live.payments (the newest with something left by default) and an amount in the smallest unit (all that's left by default). Before a cancel, the agent offers to send an offer card first when the app has some. It needs a key made by an admin or the owner, and the note in the chat names the agent as "<key name> (AI agent)". The key for changes is added only in the dashboard.
How purchases find the right chat:
- By email. A purchase matches the chat whose email your site passed to Hailbell (
Hailbell.identify,data-emailor the identity token) when it's the buyer's email at the provider. An email a visitor types into the chat to get replies never matches, since nobody proved it's theirs. - By your user ID. To match on your own user ID instead, sign customers in to Hailbell with it and put the same ID on the checkout:
hailbell_user_idin the Stripe subscription's or checkout session's metadata,metadata_hailbell_user_idon a Dodo checkout link (orhailbell_user_idin the checkout's metadata), orexternal_customer_idon a Polar checkout. On Paddle puthailbell_user_idin the checkout'scustomData, on Lemon Squeezy addcheckout[custom][user_id]to the checkout link, on Creem and Whop puthailbell_user_idin the checkout's metadata, and on Razorpay in thenotesof the order, payment link or subscription. When both are known, either one finds the customer.
// Stripe (Node), when you create the checkout
stripe.checkout.sessions.create({ ..., subscription_data: { metadata: { hailbell_user_id: user.id } } })
// Polar
polar.checkouts.create({ ..., externalCustomerId: user.id })
// Your page, so the chat knows who it is
Hailbell.identify({ userId: user.id, email: user.email })
What Hailbell does with the events:
- Payments and renewals add to what a customer has spent, in US dollars. Other currencies are converted at the day's exchange rate. Refunds, partial ones included, take it back off.
- Turning auto-renew off shows as cancelled until the period ends, turning it back on as active again, a failed renewal as a billing issue, and the end of the subscription as expired. These feed the plan filter, the billing issue message and the cancel question like app purchases do. A payment that fails as the subscription starts (a checkout that didn't go through) also shows as a billing issue, but sends no billing issue message, since there was no renewal.
- Plan names. Dodo's and Razorpay's webhooks, and Stripe's, name a plan only by its product or plan ID. Hailbell reads your products' names when it has an API key (connecting with one, or importing) and shows those instead, past purchases included. Connected with only a signing secret, a Dodo or Razorpay plan shows its ID until you import once.
- Paddle sends the buyer's email separately. Its payment events name the customer only by ID, and the email arrives in
customer.createdandcustomer.updated. A first purchase can show a moment before it matches a chat by email. Importing reads customers first. - Razorpay cancels. Razorpay reports a subscription's end, not the moment a customer schedules it to end, so a Razorpay plan goes from active straight to expired and the cancel question isn't sent for it.
- Refund requests the AI hands over get a note saying you can refund it with Manage subscription next to the chat, or in your Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay dashboard.
- Test mode is ignored for Stripe, Lemon Squeezy and Creem. Test events from Dodo, Polar, Paddle's sandbox, Whop's sandbox and Razorpay's test mode look like live ones, so add the webhook only in live mode.
App Store purchases without Superwall or RevenueCat
An iOS app that sells with StoreKit alone can send its purchases to Hailbell straight from Apple. Apple posts every purchase, renewal, refund, cancel and failed renewal to a URL you set in App Store Connect (App Store Server Notifications, Version 2). Don't turn this on for an app that already sends purchases through Superwall or RevenueCat: the same purchases would count twice.
- Save the bundle ID. In the Hailbell dashboard, open Settings › Apps, pick the app, open Revenue › App Store, check the bundle ID and press Connect App Store. There is no secret: Apple signs each notification with its own certificates, and Hailbell takes only the ones signed for that bundle ID.
- Give Apple the URL. Copy the webhook URL from the card. In App Store Connect, open the app, then App Information › App Store Server Notifications, paste it as the Production Server URL and choose Version 2. You can paste it as the Sandbox URL too: Hailbell checks sandbox notifications and then ignores them, so a test purchase proves the URL works without adding revenue.
- Tell the chat who the buyer is. Apple names a buyer by the app account token your app set when it started the purchase, and by the original transaction ID. Use one of these:
- Set the app account token to a UUID you also sign the customer in to Hailbell with. Nothing else is needed.
- Or put the token, or the original transaction ID, in the chat's metadata as
appAccountTokenororiginalTransactionId.
// Swift: buy with an app account token, and tell Hailbell the same ID
let token = UUID(uuidString: user.id)! // your user ID, when it is a UUID
try await product.purchase(options: [.appAccountToken(token)])
Hailbell.identify(userId: token.uuidString.lowercased())
// Or, without a token: pass Apple's original transaction ID as metadata
for await result in Transaction.currentEntitlements {
if case .verified(let t) = result {
Hailbell.setMetadata(["originalTransactionId": String(t.originalID)])
}
}
Good to know: prices are what the customer paid, converted to US dollars at the day's rate. Apple refunds a purchase whole and doesn't report partial amounts. Purchases shared through Family Sharing aren't counted. Apple keeps no list of past purchases to copy, so the panel fills from the first notification on. Android purchases still need Superwall or RevenueCat.
AI replies
Turn on AI replies per app and write a short knowledge note: prices, plans, refunds, known issues. When nobody answers within your wait time, the AI replies in the user's language using only that note, the conversation and, if you set one up, a lookup in your own system, and hands the chat to you when it can't help. In web chats it can also offer an action the customer confirms. A customer with the chat open sees "Typing…" while it writes, and the reply lands a few seconds later, at the pace of a person typing it (at most about 14 seconds after their message on "right away"). If a teammate starts typing a reply in the dashboard first, the AI stops. Every AI reply is labelled, so customers know when they are talking to a person. The AI helps only with your app: when someone asks it to write an email, fix code, do homework or answer general questions, it does none of it and answers with one line, in their language. Change that line in Settings › AI replies under When asked for something else (empty uses "Sorry, I can only help with questions about" and your app's name). Those replies are one short line, they never hand the chat to you, and the AI replies card shows how many it turned down this month. When a customer on iOS or Android SDK 1.2.0 or later describes a bug or a crash, the reply can carry a Send a bug report button, at most once per chat and with no extra AI call.
When you're answering yourself, press AI reply under the reply box in the dashboard (the Hailbell iPhone app has it in the + menu). The AI writes a draft from the chat, your team's internal notes in that chat, and the same notes, guide, saved replies and help articles, as you, in the first person. Where it needs something the notes don't say, like a date or an amount, it leaves a gap in square brackets for you to fill in. The draft waits above the reply box until you send it, edit it or discard it; the customer sees nothing until you send. It works whether AI replies are on or off, which helps in chats where the AI waits five minutes or you're already talking to the customer. With Customer's language on, the draft is in English and goes out translated. Each draft is one AI call from your monthly AI budget.
When the AI hands over a refund or billing request, the chat gets a Refund label in the inbox and the chat header, and it sits at the top of your open chats until someone replies or closes it. You also get the next step for the store the customer paid through, from their latest purchase: for the App Store, that Apple decides refunds at reportaproblem.apple.com; for Google Play, the order date and that you can refund it in Play Console › Order management; for Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay, that you can refund it with Manage subscription next to the chat or in that dashboard; with no purchase on record, to ask which store they paid through. It shows as a note in the chat, in Telegram and in Slack, and under the AI's reply in Discord. Purchases need one of the purchase webhooks (Superwall, RevenueCat, the App Store, Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay). Clear the label with the × on it. The reason comes in the reply the AI already writes, so it costs no extra AI call.
When a customer is angry, or threatens a chargeback, a payment dispute or a bad review, the AI doesn't argue or try to fix it. It writes a short, calm line saying you'll reply personally and hands the chat to you. The chat goes up to High priority, so your reply-time targets for High apply, and a note from Hailbell says the customer is upset. The note shows in the chat, Telegram and Slack, and the reason shows under the AI's reply in Discord. Frustration about a bug the AI can help with doesn't count. If they also want their money back, it's handed over as a refund request instead, which is High priority too.
AI lookups in your own system
Some questions only your backend can answer: "where is my order?", "did my upgrade go through?", "is my export done?". Give the AI a lookup URL on your own server and it calls it when a customer asks something like that, then answers from what you send back. Hailbell sends what it already knows about the customer with each request (their user ID and whether your app signed it, their email, their plan and purchases from Superwall, RevenueCat, the App Store, Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay, and the metadata your app sends), so your endpoint only has to look up its own data.
- Turn it on in Settings › AI replies › Live lookup: the URL, and a sentence on what it can answer ("order status and tracking by order number, whether a payment went through"), which the AI reads to decide when to call it. It's off by default. Saving it on for the first time shows your signing secret once; Show secret shows it again to admins and New secret replaces it.
- Test lookup sends a signed sample request (
"type": "test", a made-up customertest_user_123with sample purchases) and shows the status and body your endpoint answered. It makes no AI call. - The team sees every lookup. A note from Hailbell in the chat says what the AI asked and a short form of the answer (your
summaryfield if you send one, otherwise the JSON on one line), or why the lookup failed. The note shows in the dashboard and in the chat's Discord, Telegram and Slack threads. The customer never sees it, and the AI is told never to paste JSON, field names or internal IDs. - Cost. A reply that uses a lookup makes one more model call, at most two more, and they count in your monthly AI budget like the reply itself. Lookups happen only inside an AI reply, so they stop whenever AI replies stop: a chat you took over, a used-up budget or a paused plan.
The request
A POST with a JSON body, sent from Hailbell's servers:
POST https://api.yourapp.com/hailbell/lookup
Content-Type: application/json
X-Hailbell-App: app_8f2k…
X-Hailbell-Timestamp: 1795776000
X-Hailbell-Signature: 5d1c0e… (hex HMAC-SHA256 of "<timestamp>.<raw body>")
{
"type": "lookup",
"appId": "app_8f2k…",
"productId": "prod_…",
"platform": "ios",
"conversationId": "cv_…",
"question": "Where is order A-1042?",
"customer": {
"userId": "user_123",
"userIdVerified": true,
"email": "[email protected]",
"emailVerified": true,
"name": "Asha",
"country": "IN",
"timezone": "Asia/Kolkata",
"metadata": { "plan": "pro", "appVersion": "2.4.0" }
},
"purchases": {
"plan": "yearly", "status": "active", "store": "APP_STORE",
"spent": 29.99, "currency": "USD", "via": ["superwall"]
},
"sentAt": "2026-11-27T10:00:00.000Z"
}
userIdVerifiedistrueonly when your app proved who the customer is: an identity token signed by your backend, a Firebase ID token, or the Shopify or WooCommerce sign-in (see Signed-in users). OtherwiseuserIdis the ID the app passed without proof, ornull, and anyone could have sent it. Don't return someone's private data for an unverified ID.emailVerifiedworks the same way for the email.purchasesis the same summary the customer panel shows: plan, status (active,trial,cancelled,billing_issue,expired), store, total spent in USD, trial and where it came from. It's{"purchases": "none"}when no purchase matched, and{"purchases": "unknown"}when no purchase webhook is connected.metadataholds up to 30 plain fields your app sends with the chat, each cut to 200 characters.questionis the AI's question in English, up to 300 characters. Treat it as text from the AI, not a command.
Check the signature
Compute the hex HMAC-SHA256 of the timestamp, a dot and the raw body with your secret, compare it to X-Hailbell-Signature in constant time, and refuse timestamps more than 5 minutes off. A whole working endpoint in Node, with no packages:
// lookup.mjs: run with HAILBELL_LOOKUP_SECRET=hlk_... node lookup.mjs (Node 18 or later)
import { createServer } from 'node:http';
import { createHmac, timingSafeEqual } from 'node:crypto';
const SECRET = process.env.HAILBELL_LOOKUP_SECRET;
// True when Hailbell signed this body in the last 5 minutes.
function fromHailbell(req, raw) {
const ts = String(req.headers['x-hailbell-timestamp'] || '');
const sig = String(req.headers['x-hailbell-signature'] || '');
if (!/^\d+$/.test(ts) || Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const want = createHmac('sha256', SECRET).update(`${ts}.${raw}`).digest('hex');
return sig.length === want.length && timingSafeEqual(Buffer.from(sig), Buffer.from(want));
}
// Your own data. Replace with a query to your database.
async function latestOrder(userId) {
return userId === 'test_user_123' ? { id: 'A-1042', status: 'shipped', eta: '2026-11-29' } : null;
}
createServer((req, res) => {
let raw = '';
req.setEncoding('utf8');
req.on('data', (chunk) => { raw += chunk; });
req.on('end', async () => {
if (req.method !== 'POST' || !fromHailbell(req, raw)) { res.writeHead(401).end(); return; }
const { customer } = JSON.parse(raw);
// Only act on a user id the app signed. A claimed id could be anyone's.
const order = customer.userIdVerified ? await latestOrder(customer.userId) : null;
res.writeHead(200, { 'content-type': 'application/json' });
res.end(JSON.stringify(order
? { found: true, summary: `Order ${order.id} ${order.status}, arriving ${order.eta}`, order }
: { found: false, summary: 'No order found for a signed-in customer' }));
});
}).listen(8080);
The response
Answer 200 with any JSON object. Put in the facts the AI should tell the customer, in plain values. A summary string is optional and becomes the team's note.
{ "found": true, "summary": "Order A-1042 shipped, arriving Nov 29",
"order": { "id": "A-1042", "status": "shipped", "carrier": "DHL", "eta": "2026-11-29" } }
Limits
- https only, on a public host name: no IP addresses,
localhostor internal names, and no user name or password in the URL. To try an endpoint on your own computer, put an https tunnel in front of it. - 5 seconds to answer and 4 KB of JSON at most. A slower or bigger answer, a redirect (Hailbell doesn't follow them), a status other than 2xx, or a body that isn't JSON counts as a failed lookup.
- At most two lookups per AI reply.
- A failed lookup is never filled in. The AI is told it got no result, so it answers from your notes if it can, or tells the customer you'll check and hands the chat to you.
- Your answer is data, not instructions. The AI reads it as untrusted data and never follows instructions inside it. Don't put anything in it you wouldn't want the customer to read.
- The secret only ever travels as the signature. Hailbell keeps it encrypted.
Over the API it's lookup in GET and PATCH /v1/ai-replies (get_ai_replies and update_ai_replies over MCP): enabled, url, description, and newSecret: true to replace the secret. The change that makes a secret returns it once as lookupSecret; reads only say lookupSecretSet. POST /v1/ai-replies/lookup-test (test_ai_lookup) is the Test lookup button. Changing the URL, turning it on or making a secret needs a key made by an admin or the owner, because the URL receives customer details.
AI actions the customer confirms
The same endpoint can also do things for a customer: resend a receipt, cancel an order that hasn't shipped, extend a trial. The AI offers one as a card in the chat with the action's name, a line on what will happen, and Confirm and No thanks buttons. Nothing happens until the customer taps Confirm. Then Hailbell calls your lookup URL once and shows the customer what you answer.
- Where the card shows. In the web chat widget (also on Shopify and WooCommerce stores), in the chat's 14 languages. Chats in iOS, Android, Flutter and React Native apps aren't offered actions yet, because no SDK release draws the card; neither are WhatsApp and email chats. Those customers get an ordinary AI reply.
- Off by default. Turn it on per app in Settings › AI replies › Actions customers confirm. Load actions asks your endpoint what it can do; each action then has its own switch, and a new one starts off. It needs the lookup on, since actions run at the same URL with the same secret.
- One per reply, and only yours. The AI can offer at most one action per reply, only one your endpoint declared and you switched on, and only when a lookup answer for that customer listed it. It can't make up an action, and it doesn't offer a second card while one is waiting.
- Signed-in customers. An action is for customers whose user ID your app signed, unless your endpoint declares it with
"needsVerifiedUser": false. Hailbell checks this when it offers the card and again when the customer confirms. - The team sees every run. A note from Hailbell in the chat (dashboard, Discord, Telegram and Slack) names the action, who confirmed it and what your endpoint answered. Each run also goes in Team › Recent changes.
- Cost. No extra AI call. The offer rides on the reply that made the lookup, and running the action is a plain request to your server.
1. Declare your actions
When you press Load actions, Hailbell sends a signed request with "type": "actions" (no customer in it). Answer with the list:
{ "actions": [
{ "id": "resend_receipt", "label": "Resend my receipt",
"description": "Emails the receipt for your latest order again" },
{ "id": "store_hours", "label": "Text me the store hours",
"description": "Sends today's opening hours", "needsVerifiedUser": false }
] }
id is up to 40 lowercase letters, digits and underscores. label (up to 60 characters) is what the customer reads on the card, and description (up to 200) is the line under it. Up to 20 actions. Load again after you change them: an action that was on stays on, a new one starts off, and one you removed is dropped.
2. Say which ones this customer can use
In your lookup answer, add an actions list with the ones open to this customer right now. Use plain IDs, or objects with a description written for this customer and a ref (up to 120 characters) that Hailbell hands back when the action runs:
{ "summary": "Order A-1042 delivered Nov 20",
"order": { "id": "A-1042", "status": "delivered" },
"actions": [
{ "id": "resend_receipt", "ref": "A-1042",
"description": "Emails the receipt for order A-1042 to [email protected]" }
] }
3. Run it when the customer confirms
On Confirm, Hailbell sends one request, signed like a lookup (check the signature the same way), with an Idempotency-Key header:
{
"type": "action",
"appId": "app_abc123",
"productId": "prod_xyz",
"platform": "web",
"conversationId": "cv_9f2k...",
"action": { "id": "resend_receipt", "ref": "A-1042" },
"idempotencyKey": "act_Jq3vN8...",
"customer": { "userId": "user_8842", "userIdVerified": true,
"email": "[email protected]", "emailVerified": true, "name": "Asha", ... },
"purchases": { "plan": "Pro yearly", "status": "active", ... },
"sentAt": "2026-11-28T10:15:00.000Z"
}
Answer within 5 seconds with { "ok": true, "message": "I've sent the receipt for order A-1042 to [email protected]." }. The customer reads message (up to 500 characters) as the AI's next message; without one they read "Done: Resend my receipt." Check customer.userIdVerified yourself too before you do anything that matters.
- Never retried. If you answer
"ok": false, an error, a redirect, something that isn't JSON, or nothing within 5 seconds, the customer is told a teammate will follow up, the AI steps out of that chat, and the team's note says what went wrong (with yourmessage, which the customer doesn't see). Hailbell never sends the request again by itself. - Once per card. Each card has one idempotency key and runs at most once, however often Confirm is tapped or from how many devices. Store the key and return your first answer if you ever see it twice. A timeout doesn't tell you whether your server finished, so the team's note says to check before doing it by hand.
- 24 hours. A card older than that no longer runs. Neither does one whose action or lookup you switched off after it was sent, or whose customer signed out. Those end the same way as a failure, without a request to your server.
- Dry run. The Dry run button beside each action sends
"type": "action_test"with"dryRun": trueand a made-up customer. Check the request and answer{ "ok": true, "message": "…" }without doing anything. A handler that only acts on"type": "action"is safe by default.
Over the API it's actions in GET and PATCH /v1/ai-replies (get_ai_replies and update_ai_replies over MCP): enabled, and list of { id, enabled } to flip single switches. The names and descriptions always come from your endpoint: POST /v1/ai-replies/actions-load (load_ai_actions) loads them and POST /v1/ai-replies/action-test (test_ai_action) is the dry run. All three need a key made by an admin or the owner.
Reply time and business hours
When the AI hands a chat to you while nobody is around, the customer gets a card under its reply saying when to expect you, in their own time zone and language: "Bello is offline right now. Usually back by 11:30 PM tonight, your time. That's in about 8 hours." Nobody is around means outside your business hours, everyone who can see the app set to away, or nobody on the team active in the dashboard, the iOS app or Discord for 30 minutes. While someone is around, there's no card. The card is written in 14 languages, from the customer's device language, and English otherwise.
- With business hours on, the card says when you open next ("back by 9:00 AM tomorrow, your time").
- Without business hours, it says how long you usually take to reply at that time of day, from your own replies over the last 30 days, at most 24 hours ("At this time of day Bello usually replies within 3 hours."). With too few replies to tell, it says you'll reply as soon as possible. Set When you haven't set business hours to Nothing to show no card then.
- Notify me. The card offers to tell the customer when you reply: push notification permission in apps, the reply by email on websites. Turn it off with Offer to notify them when you reply.
- Your local time (off by default). Turn on Show your local time and the card adds "It's 2:30 AM for Bello in the United States", from the time zone of your business hours.
- The AI knows too. Its instructions say whether you're around, so it doesn't promise a quick reply at night, and when a customer asks when you'll answer, it gives the same time as the card.
- One notice, not two. With the card on, it replaces the away message, so customers never get both. With AI replies on, the card comes with the AI's handoff, and a question the AI answers gets no notice at all. With AI replies off, a customer who writes while you're closed gets the card instead of the standard away message; an away message you wrote yourself still goes out as written. Customers who wrote by email or WhatsApp get the card's words there.
Set it in Settings › AI replies, under When the AI hands a chat to you. It's on by default. The web widget shows the card now; the iOS and Android SDKs show it from 1.3.0 and Flutter and React Native from 1.1.2; older versions show the same words as a normal chat message. It adds no AI cost: the card is worked out without AI, and the AI's note is one more line in a call it already makes.
Business hours are under the app's settings, Business hours: one opening per weekday in the app's time zone, shared by its iOS, Android and web platforms. Turn on Suggest hours from when I usually reply to see hours worked out from when your team actually replied over the last 30 days, with a Use these button. It's only a suggestion: Hailbell never changes your hours by itself, and nothing changes until you save.
Over the API, the card's settings are replyTime in GET and PATCH /v1/ai-replies (get_ai_replies and update_ai_replies over MCP): enabled, showLocalTime, notify and fallback ("typical" or "none"). Only the fields you pass change. Business hours are GET and PATCH /v1/hours (get_hours and update_hours):
curl -X PATCH "https://api.hailbell.com/v1/hours?appId=app_…" \
-H "Authorization: Bearer hbk_…" -H "Content-Type: application/json" \
-d '{"enabled": true, "timezone": "Asia/Kolkata",
"days": {"mon": ["09:00", "18:00"], "sat": null, "sun": null}}'
Days merge one by one, so the call above leaves Tuesday to Friday as they were. null means closed and "24:00" is midnight. GET /v1/hours returns hours (enabled, timezone, days, away and suggest) and suggestion: { start, end, replies } when suggest is on and there are enough replies, otherwise null.
Import from Zendesk, Intercom, Crisp or Help Scout (beta)
Beta. Tested against each tool's API docs. Tell us if anything looks off.
Bring your history with you. Admins open Settings › Import, pick the tool you're leaving, paste its API credentials, choose what to bring and the app it goes into. The import runs on our side in small steps, so you can close the page; the progress page shows counts, a progress bar, any problems, and Pause and Cancel.
- What each tool needs. Zendesk: your subdomain and an OAuth client's identifier and secret (older accounts can still use an admin's email and API token). Intercom: an access token and your data region. Crisp: a website token or a plugin token (identifier and key) and your website ID. Help Scout: an app ID and secret from My Apps, plus a Docs API key if you want articles.
- Contacts. Name, email and external ID. Their tags and custom attributes become user tags. Someone already in the app with the same external ID or email is matched, not copied, and keeps the tags your app set.
- Conversations. Every message and internal note, with the original times and authors, from the last 1, 3, 6 or 12 months (Hailbell keeps chats for 12 months after their last message). Chats come in closed unless they're still open in the old tool. Hailbell has one chat per customer, so several tickets from one person become one chat, each starting with a team note that names the ticket and its subject. The tickets' tags become chat tags, matched to your tags by name or added, dated like the ticket. An account has at most 200 tags and a chat 10; tags past that are listed in the ticket's note, and the progress page says so. Agents are matched to your teammates by email; anyone else keeps their name on their messages. Attachments come in as links: Intercom's stop working after a while, Zendesk's open only for someone signed in to Zendesk when private attachments are on, and Help Scout's open the conversation in Help Scout, for someone signed in there.
- Help articles. Into the app's help center (up to 100 per app). Drafts stay hidden, and published translations come along for the languages the help center shows. Collections and sections aren't kept; articles arrive in their old order.
- Nothing goes live. Imported messages never trigger AI replies, pushes, emails, routing rules, round robin, satisfaction asks or posts in Discord, Slack and Telegram, and they don't count in reports.
- Run it again. Every item remembers where it came from, so a second run brings only what's new, never a duplicate. Run it once when you switch and again before you cancel the old tool.
- Credentials. Encrypted while the import runs and deleted when it finishes, fails or you cancel it. A paused import forgets them after 7 days.
- Agents.
get_import_statusover MCP shows how an import is going. Starting one stays in the dashboard, because it takes credentials.
Importing uses no AI, so it costs nothing.
Step-by-step guides for each tool: Zendesk, Intercom, Crisp and Help Scout. Each says where to make the credentials, what comes over and what stays behind.
Running an import
The same three steps for every tool, once you have its credentials:
- Where are you moving from? Open Settings › Import and pick the tool. If you've imported before, press New import first.
- Connect. Paste the credentials and press Connect. Hailbell checks them, reads nothing else yet, and lists the old tool's agents next to the teammates they match by email.
- Choose what to import. Tick contacts, conversations and help articles, pick how far back (last month, 3, 6 or 12 months), the app the history goes into and the platform its chats belong to. Web suits email and website chats best. Press Start import.


The progress page shows each phase, counts, a progress bar and the first problem if one stops it. Close the page whenever you like. When you're ready to cancel the old tool, open the finished import and press Run again, paste fresh credentials (the old ones were deleted), and only what came in since the first run is added. Then delete the token or app you made in the old tool.
Import from Zendesk (beta)
You need your subdomain (the acme in acme.zendesk.com) and an OAuth client: its identifier and its secret. A Zendesk admin has to make the client, because Zendesk lets only admins read the exports the import uses. Hailbell swaps the identifier and secret for an access token that lasts 30 minutes and never saves it.
- In Zendesk, open Admin Center (the product menu at the top left, or
https://your-subdomain.zendesk.com/admin). - In the left rail, press the Apps and integrations icon (four squares), then APIs › OAuth clients, and press Add OAuth client. The rail icons have no labels until you hover them.
- Fill in Name (for example "Hailbell import"), Description and Company. Zendesk fills Identifier from the name, such as
hailbell_import. That's the identifier to paste into Hailbell. - Set Client kind to Confidential. A public client can't be used this way. Leave Redirect URLs empty, and leave Allowed scopes empty or pick read.
- Press Save. The Secret appears once, in full, with a yellow warning. Press Copy, then Save again. If you lose it, make a new one on the client's Edit page.
- In Hailbell, open Settings › Import, pick Zendesk, and enter the subdomain, the OAuth client identifier and the OAuth client secret. Press Connect, then follow the three steps.
- When you've run it for the last time, delete the OAuth client in APIs › OAuth clients.




Older accounts with an API token. Hailbell still takes an admin's email and an API token, in the form's last two fields. Zendesk is retiring tokens: accounts opened on or after 28 July 2026 can't make or use them, no account can make a new one since 27 October 2026, and the rest stop working on 30 April 2027. If your account still has a token you saved, it works until then, as long as APIs › API configuration › Allow API token access is on. Otherwise use an OAuth client. Source: Zendesk's announcement, checked 28 November 2026.
What comes over.
- Active end users changed in the period you pick: name, email and external ID. Their user tags (if user tagging is on) and user fields become Hailbell user tags.
- Tickets from the period, each with every public comment, and every internal note as a team note. Solved and closed tickets come in closed; new, open, pending and on-hold ones come in open. A customer with several tickets gets one chat, each ticket starting with a note like Imported from Zendesk: ticket #4821, "Refund for the yearly plan". Ticket tags become chat tags (up to 200 in the account, 10 per chat; the rest are listed in the ticket's note).
- Help Center articles, with their translations, into the app's help center (up to 100). Drafts stay hidden.
What doesn't. Deleted tickets, organizations, custom ticket fields, macros, triggers and automations, SLAs, satisfaction ratings, and your Help Center's categories and sections (articles arrive in their old order). Attachments come in as links to Zendesk; with Private end-user attachments on (Admin Center › Objects and rules › Tickets › Settings), they open only for someone signed in to Zendesk, so download any you need before you cancel.
Zendesk plans and speed. Every current Zendesk plan includes the API. Zendesk lets the incremental export run about 10 requests a minute (more with its High Volume add-on), so a Zendesk with tens of thousands of tickets takes hours. That's fine: it runs on our side and you can close the page. A ticket made in the last minute or two can be missing from Zendesk's export; Run again picks it up.
Import from Intercom (beta)
You need an access token from a private app in your workspace's Developer Hub, and your data region. The token reads what the teammate who made the app can read, so make it as someone who sees every conversation.
Not the Authentication page in Settings. Settings › Integrations › Authentication also has an Add token button, but its tokens are for data connectors (Salesforce, HubSpot, Attio, Marketo, Custom). They don't work with Intercom's REST API. The token Hailbell needs is under Developer Hub › New app › Authentication.

- In Intercom, press Settings (the gear at the bottom left), scroll to Integrations and press Developer Hub. It opens in a new tab. The first time, accept the Developer Guidelines.
- Under Your apps, press New app. Name it something like "Hailbell import", check the workspace and press Create app. That installs it on your workspace.
- The app opens on Configure › Authentication. Under Access token, press the copy icon next to the masked token. A private app gets every read permission by default; the Permissions list below shows them.
- Find your data region in the address bar:
app.intercom.comis United States,app.eu.intercom.comEurope,app.au.intercom.comAustralia. - In Hailbell, open Settings › Import, pick Intercom, paste the token and pick the region. Press Connect, then follow the three steps.
- When you've run it for the last time, open the app in the Developer Hub, go to Test & Publish, pick your workspace and press Uninstall app. That cancels the token.



Trying it on a new Intercom trial? A new trial comes with 4 demo conversations, from contacts named Email, Messenger, Phone & SMS and WhatsApp & Social. They come over with everything else. Delete them in Intercom first if you don't want them.

What comes over.
- Users and leads changed in the period: name, email and external ID, with their tags and custom attributes as user tags.
- Conversations from the period with every part: the customer's messages, your teammates' replies, notes as team notes and Fin or other bot replies. Closed conversations come in closed; open and snoozed ones open. Several conversations from one person become one chat, each starting with a note naming it. Conversation tags become chat tags (200 per account, 10 per chat).
- Help Center articles with their translations, into the app's help center (up to 100). Drafts stay hidden.
What doesn't. Companies, Intercom's separate back-office and tracker tickets, ticket types and states, conversation custom attributes, macros, workflows and series, outbound messages, and your Help Center collections (articles arrive in their old order). Attachments come in as links to Intercom, and Intercom's links expire: files uploaded in the Messenger after about 30 minutes, email attachments after about 6 months (Intercom's attachment settings). Download any file you need from Intercom before you cancel. Intercom's search can lag a minute or two behind, so a conversation from the last few minutes may be missing; Run again picks it up.
Intercom plans. The import worked on a 14-day trial with no card. Run it before your Intercom subscription ends. If Intercom answers "API Plan restricted", your plan doesn't include the API.
Import from Crisp (beta)
You need a token (an identifier and a key) and your website ID. Hailbell's form has a Token type choice. A website token is simplest: the workspace owner makes it inside Crisp. A plugin token comes from the Crisp Marketplace and is the one to use if Crisp won't let a website token read your help center.
- Find your website ID in Crisp: Settings › Workspace Settings › Setup Instructions, the Website ID field. Copy it.
- Website token (workspace owners only): open Settings › Workspace Settings › Advanced configuration › API Token and press Generate Token. Copy the identifier and key. A website token gets about 10,000 requests a day.
- Or a plugin token: go to marketplace.crisp.chat (a separate login from your Crisp account), open Plugins, press New Plugin, choose Private and name it "Hailbell import". In the Marketplace's Settings, press Add Trusted Workspace and paste your website ID. Then open the plugin's Tokens tab and copy the development token's identifier and key. A development token has a low daily limit; for years of chats, ask for a production token on the same tab and install the plugin on your website with its private install link.
- In Hailbell, open Settings › Import, pick Crisp, choose the Token type (Website token or Plugin token), and paste the token identifier, the token key and the website ID. Press Connect, then follow the three steps.
- When you've run it for the last time, delete the website token in Advanced configuration, or delete the plugin in the Marketplace.
What comes over.
- Contact profiles changed in the period: name and email, with their segments as user tags. Crisp profiles have no user ID, so they match people already in your app by email.
- Conversations updated in the period with every text, file, note, GIF and audio message. Bot messages come in marked as the bot's. Resolved conversations come in closed; pending and unresolved ones open. Several conversations from one person become one chat, each starting with a note naming it. Conversation segments become chat tags (200 per account, 10 per chat). Chats from email, WhatsApp, Instagram and the other Crisp channels come in too, as history.
- Helpdesk articles in one language (English if you have it, otherwise your first), into the app's help center (up to 100). Hidden articles stay hidden. Crisp's docs don't say whether a website token may read the helpdesk. If Crisp refuses it, the chats still come over and the progress page says articles were skipped; run it again with a plugin token for those.
What doesn't. Helpdesk translations and categories (articles arrive in their old order), people's notepads and custom data, shortcuts, campaigns, scenarios and chatbot flows, and message types like pickers and carousels. Files come in as links to Crisp, and Crisp says some uploaded files expire after a while, so download any you need before you cancel.
Crisp plans. Crisp lists its developer API on every plan, Free included. The Helpdesk is on Essentials and Plus only, and Free doesn't keep your full conversation history, so import while you're still on your paid plan. If a big Crisp runs past its daily request limit, the import waits 15 minutes and carries on by itself.
Import from Help Scout (beta)
You need an app ID and app secret from My Apps in your Help Scout profile. For Docs articles you also need a Docs API key. The app reads what the user who made it can see, so make it as someone with access to every inbox you want to bring over.
- In Help Scout, open your avatar menu (top right), then Your Profile › My Apps, and press Create My App.
- Name it "Hailbell import". Help Scout asks for a redirect URL even though the import doesn't use one; any address works, such as
https://hailbell.com. Save. - Copy the App ID and App Secret it shows.
- For articles: in the same profile, open Security and Access and find the Docs API section to make a key. It shows only for users with the Docs permission to create, edit settings and manage collections; an account owner or administrator can give it to you.
- In Hailbell, open Settings › Import, pick Help Scout, and paste the app ID, the app secret and, if you want articles, the Docs API key. Leave the key empty to skip articles. Press Connect, then follow the three steps.
- When you've run it for the last time, delete the app from My Apps and the Docs API key from Security and Access.
What comes over.
- Customers changed in the period: name and first email. Help Scout customers have no user ID, so they match people already in your app by email.
- Conversations changed in the period, from every inbox the app's user can see, except spam: the customer's emails and chats (Beacon chats included, read whole), your replies, and notes as team notes. Closed conversations come in closed; active and pending ones open. Several conversations from one person become one chat, each starting with a note naming it. Conversation tags become chat tags (200 per account, 10 per chat).
- Docs articles from every collection, into the app's help center (up to 100). Unpublished articles stay hidden.
What doesn't. Phone call logs, forwards and status changes, customer properties and conversation custom fields, saved replies, workflows, Beacon settings, and Docs collections and categories (articles arrive in their old order). Help Scout's own file links need an API token, so each attachment comes in as its file name with a link to its conversation in Help Scout, which opens for anyone signed in there. Download any you need before you cancel.
Help Scout plans. Help Scout's Free plan doesn't include the API, so the import needs Standard, Plus or Pro. If you've already dropped to Free, the import can't read your history; run it before you downgrade.
Help center
Each app can have a public help center at api.hailbell.com/help/<your-app>, with your app's name and icon, search, and one page per article that search engines can find. Write articles in the app's Help center card, or make them from the sections of your AI replies how-to guide. The AI answers from every article, so you write each answer once. It's off until you turn it on, and only the articles you publish go public: your AI replies notes, guide, prices and saved replies stay private. With it on, the web widget lists your first articles when a chat opens and suggests matching ones while the customer types. The iOS and Android SDKs don't suggest articles yet. Agents can write, hide and order articles with save_help_article and update_help_center.
Chat on the help center. Turn on Chat on the help center in the same card and every help page gets a Start a chat button. It opens a chat page at api.hailbell.com/help/<your-app>/chat with your app's name and icon, so people who don't have the app, or who found you on the web, can write to you. You don't need a website: link the page from anywhere. It can also be your App Store support URL, since Apple asks for a page where people can contact you. Apple's rule also names an email address, phone number or postal address, so keep your email in a help article too. The page runs your web chat, using the app's web platform, and Hailbell adds one if the app doesn't have one yet. Those chats land in your inbox like any web chat, with AI replies, Discord, Slack and Telegram, business hours and the email prompt as you set them. Visitors don't sign in, so it can't be on while the web platform requires sign-in. The page itself costs nothing; AI replies to those chats come out of your plan's AI allowance like any other. The card shows the link with a copy button. Agents turn it on with update_help_center and chat: true, and get_help_center returns chatUrl.
Customer's language
A customer's message in another language shows with an English translation under it, in the dashboard, Discord, Telegram and Slack. AI replies answer in the customer's language. To answer in their language yourself, turn on Customer's language in the app's settings (admins only; it's off until you do). Then:
- Your replies go out in their language. When you reply in English, from the dashboard, Discord, Telegram or a saved reply, and the customer's latest message was in another language, the AI translates your reply before it's sent. The customer gets the translation. You see "Sent in Serbian" with your English under it, and Discord and Telegram get a one-line note. Replies you write in another language go out as written.
- The help center shows articles in the visitor's language. Pages and chat suggestions follow the browser's language, or
?lang=esin the address. Each article is translated by AI once per language and kept, and translated again after you edit it. The canonical address stays the original page. About 35 common languages are covered; English and any other language show the articles as you wrote them.
Translations come out of the account's AI allowance. If a translation fails, takes longer than a few seconds, or the allowance is used up, your English goes out as you wrote it and the help page shows the original. A help center translates at most 200 new articles a day, so visitors can't use up the allowance. Agents turn it on with update_setup and customerLanguage: true, or PATCH /v1/settings.
API and MCP
Everything the dashboard does for push and AI replies is in the REST API and the MCP server, and so is making apps and platforms. Create an API key under Push › Setup.
curl https://api.hailbell.com/v1/notifications \
-H "Authorization: Bearer hbk_…"
A call works on the one platform of appId. To send one campaign to several platforms, add "platforms": "all" (or a list like ["ios", "web"]), or pass the app's productId. The campaign gets an id starting with ngr_, and its numbers come back for the whole campaign and per platform. Calls without platforms or productId work as before and send to every matching device of that one platform.
GET /v1/account (get_account over MCP) gives the plan and how many trial days are left. POST /v1/apps (create_app) makes an app with its first platform, from a name, a platform and an iOS bundle ID or Android package name. POST /v1/products/{productId}/platforms (add_platform) adds iOS, Android or web to an app. Making apps needs a key for every app with the manage scope, made by an admin or the owner. Neither returns the identity secret: if your backend signs users in, make one under Settings, the platform's Edit, New identity secret.
Support chats are on MCP: list_conversations finds chats (open, unanswered, one app, since a time), get_conversation reads one with the customer's plan and purchases from Superwall, RevenueCat, the App Store, Stripe, Paddle, Lemon Squeezy, Dodo Payments, Polar, Creem, Whop or Razorpay (both, with get_user, also return reportedPlan, the plan the app sends, and planCheck: "match", "app_says_free", "app_says_paid", "app_outdated" (their app last reported a paid plan before it ended, and they haven't opened the app since) or null when either side can't tell), reply answers, start_conversation writes first to a customer (see Message a customer first) close_conversation closes, edit_draft changes a waiting draft's text or its screenshots, send_draft sends a waiting draft and its screenshots (only in an app that lets agents send), and discard_draft drops a draft waiting in a chat so no teammate sends it (for example after the agent sent the message itself). reply, start_conversation, edit_draft and send_draft take images (up to 4). create_image_upload returns a one-time URL: curl --data-binary @screenshot.png 'UPLOAD_URL' posts the raw file with no API key and answers an image id. An https URL, a stored id, or base64 for a small image also work. Base64 costs a huge number of tokens, so use the upload link for a screenshot. list_issues, get_issue, create_issue, update_issue, link_conversation_to_issue, unlink_conversation_from_issue and close_issue work with issues. set_conversation_status sets a chat to open, waiting, snoozed or closed, set_conversation_priority sets its priority, bulk_update_conversations closes, assigns or sets the priority of up to 50 chats after a preview (Apply to all), list_routing_rules, save_routing_rule and delete_routing_rule manage the account's routing rules, list_tags and tag_conversation work with tags, merge_conversations and unmerge_conversations merge duplicate chats, and get_reply_targets and update_reply_targets read and set the app's reply targets. check_install asks whether a customer still has the app, by chat or by user id, the same check as "Check if they still have the app" in the dashboard: a silent push nobody sees, which Apple and Google refuse once the app is deleted, at most every 6 hours per customer. get_user and get_conversation show the last answer. A bug report message in get_conversation carries the app's log and failed requests as report.logs and report.requests. Both list and read return label: "refund" on a chat the AI handed over as a refund or billing request. A reply from an agent is a draft that waits above the composer in the dashboard, marked as written by an AI agent, until a teammate sends, edits or discards it. Teammates with dashboard notifications on get one ("An AI agent drafted a reply to Maya"); tapping it opens the chat. To let agents send replies themselves in one app, an admin picks Send to customers directly in the dashboard (Settings, the app, Agent replies), or an admin's agent calls update_setup (or PATCH /v1/settings) with agentReplies: "send"; the reply then goes out like one from the dashboard, with the push, the email follow-up and the copy in Discord and Telegram. An agent sees only the chats of the apps the person who connected it can see.
Issues are in REST and MCP: GET /v1/issues (list_issues), POST /v1/issues (create_issue), GET and PATCH /v1/issues/{id} (get_issue, update_issue), POST /v1/issues/{id}/conversations with a conversationId to link a chat and DELETE /v1/issues/{id}/conversations/{conversationId} to unlink it, and POST /v1/issues/{id}/close (close_issue) with status fixed or wont_fix, an optional message and version. A close that would message anyone answers "status": "preview" with who it reaches and a confirmToken; send the same call again with the token to close and send. Reading needs the read scope, the rest send.
Statuses and reply targets: POST /v1/conversations/{id}/status (set_conversation_status) with status open, waiting, snoozed or closed, and for a snooze until (ISO 8601) or preset (1h, tomorrow, next_week); it returns status, snoozedUntil and replyTarget. GET /v1/reply-targets?appId= (get_reply_targets) returns the targets and the app's overdue and soonest-due chats; PATCH /v1/reply-targets?appId= (update_reply_targets) takes firstReplyMinutes, nextReplyMinutes and warnAtPercent, with null to turn one off. Statuses need send, reading targets read, changing them manage.
Teams: GET /v1/teams (list_teams) returns the account's teams with teamId, name, members and openChats, and teammates with their member ids. POST /v1/teams (save_team) creates one, or changes one when you pass teamId; members is a list of member ids or emails and replaces the whole list. DELETE /v1/teams/{id} (delete_team) removes one. POST /v1/conversations/{id}/team (set_conversation_team) takes team, a name or id, or null for no team. A routing rule's actions.assignToTeam sends new chats to a team. Reading needs read, moving a chat needs send, and changing teams needs manage with a key made for all apps, by an admin or the owner.
Routing rules: GET /v1/routing-rules (list_routing_rules) returns the rules in order, each with conditions (keywords, platforms, planStatuses, tags, countries, languages, productIds) and actions (assignTo, roundRobin, priority, note), and teammates with their member ids. POST /v1/routing-rules (save_routing_rule) creates one, or changes one with ruleId (only what you pass changes); DELETE /v1/routing-rules/{id} (delete_routing_rule) removes one. Reading needs read; changing needs manage and a key made for all apps by an admin or the owner.
The automatic messages are in triggers of PATCH /v1/settings (update_setup), per platform. To turn on the cancel question with its three wordings:
curl -X PATCH "https://api.hailbell.com/v1/settings?appId=app_…" \
-H "Authorization: Bearer hbk_…" -H "Content-Type: application/json" \
-d '{"triggers": {"cancellation": {"enabled": true,
"text": "Saw you cancelled, no problem. What made you cancel?",
"trialText": "Saw you stopped your free trial. What didn’t work for you?",
"refundText": "Saw your subscription was refunded, and that’s okay. What went wrong?"}}}'
GET /v1/settings (get_setup) returns them with triggerStats, the last 30 days of each. GET /v1/users/{id} (get_user) returns cancelQuestions: the cancel questions that person got or is due in the last 180 days, on any platform of the app. A sent one says whether it reached them: seen (they opened the chat after it), replied and emailed (Hailbell emailed it because it went unread). Another tool that asks people who cancel (an email, a survey) can then write only to people the question didn't reach. The audience of any send, segment or estimate can filter by plan: {"field": "plan_status", "relation": "=", "value": "cancelled"}, with active, trial, cancelled, billing_issue, expired or none.
Spec: openapi.json. Agents: add https://api.hailbell.com/mcp as a connector, sign in with Google and pick the account. Broadcasts need a preview first, so an agent can't send to everyone by accident.
Remote MCP Server (streamable HTTP)
Connect Claude, Grok Build, Codex or another MCP-compatible client to https://api.hailbell.com/mcp using streamable HTTP. Sign in with Google OAuth to pick an account, or pass Authorization: Bearer hbk_… with an API key created under Push › Setup › Server API.
The server exposes 81 tools across these groups:
| Area | Tools |
|---|---|
| Accounts & apps | get_account, list_apps, create_app, add_platform, get_setup, update_setup, get_reply_identity, update_reply_identity |
| Push campaigns & segments | get_context, estimate_audience, preview_notification, send_notification, send_test, get_notification, list_notifications, cancel_notification, coming_up, upload_image, list_segments, create_segment, update_segment, delete_segment |
| Subscribers & diagnostics | list_subscribers, get_user, set_user_tags, list_tag_keys, set_test_device, check_install |
| Support inbox & AI replies | list_conversations, get_conversation, reply, start_conversation, close_conversation, edit_draft, send_draft, discard_draft, create_image_upload, list_issues, get_issue, create_issue, update_issue, link_conversation_to_issue, unlink_conversation_from_issue, close_issue, set_conversation_status, get_reply_targets, update_reply_targets, list_ratings, get_ai_replies, update_ai_replies, get_hours, update_hours |
| Store reviews | list_reviews, reply_review |
| Automatic triage | get_auto_triage, update_auto_triage |
| Help center & payments | get_help_center, update_help_center, save_help_article, get_payments, connect_payments, import_payments, manage_subscription |
Broadcast push calls require calling preview_notification first to obtain a short-lived confirmToken. Support replies from an agent stay as drafts in the dashboard unless an admin sets agentReplies: "send" via update_setup or Settings. A reply can carry up to 4 screenshots (PNG, JPEG, WebP or GIF, 1.5 MB). create_image_upload returns a one-time URL the agent curls the file to, with no API key.
Use Hailbell from your agent
The Hailbell skill teaches a coding agent (Claude Code, Codex, OpenClaw and others) to set up Hailbell for you: make the app and its platforms, add the SDK, write the AI's how-to guide from your source code and run push campaigns. Install it with one line:
curl -fsSL https://hailbell.com/skills/install.sh | sh
Or tell your agent: Install the Hailbell skill from https://hailbell.com/skills/hailbell/SKILL.md
Then connect the MCP server, https://api.hailbell.com/mcp. It opens a Google sign-in, then asks which Hailbell account the agent may work in. That makes a "Connected agent" key in the account, which you can revoke under Push › Setup. Only admins and the owner of an account can connect an agent to it. It stops working if you leave the account or become an agent there.
The agent checks your plan and trial, makes the app in Hailbell if it isn't there yet, writes the code and the AI replies texts. You do the parts that need your accounts or your card: sign up, upload push keys, connect Discord, Telegram or Slack, and pick a plan when the trial ends. Never paste a push key, an API key or the identity secret into an agent chat.
Team and billing
Each Hailbell account has its own apps, team, push keys, Discord servers, Telegram bot, Slack workspace and AI replies. Invite teammates by their Google email on the Team page, as an admin or an agent. They sign in with Google as that email and join. Everyone signs in with their own Google account, and replies they send carry their name. You can belong to several accounts and switch between them in the sidebar.
There are three roles. Agents work the inbox: they read and answer chats, send review requests and offers, and close chats. Admins also change everything else: apps, Push, API keys, push keys, Discord, Telegram, Slack, alerts and the team. The owner can do all that, picks the plan, and is the only one who can hand ownership to someone else. Removing someone signs them out of the account at once and removes the API keys and agents they made there.
Owners and admins see two logs under Team › Recent changes. Changes lists invites, removals, role changes, API keys and deleted apps and customers. Data access lists who opened which customer's chat, details or Shopify orders, or found them with New message, and when: teammates, API keys, AI agents and Shopify store admins. The same person opening the same chat again within 10 minutes counts once, and entries are kept for 12 months.
Data retention. Every night Hailbell deletes the messages, images and events of chats whose last message is older than 12 months. The customer, their push subscription and their purchases stay, and they start a fresh chat if they write again. On the Scale and Business plans an admin can pick another period under Settings › Account › Data retention: 30 days, 90 days, 6 months, or 1, 2, 3 or 5 years. With a shorter period the nightly cleanup deletes older chats, up to 1,000 a night across Hailbell, and that can't be undone. If the account moves to another plan, a period longer than 12 months goes back to 12 months, and a shorter one stays until an admin sets it back to 12 months. A paused account keeps its period. Agents read it in get_account (retention) and change it with update_retention or PATCH /v1/account { "retentionDays": 730 }; null is the default. Each change shows in Team › Recent changes.
Export chats. On Scale and Business, admins download every chat from the same card: JSON Lines (one chat per line, with its app, customer, tags and messages) or CSV (one message per row). Team notes are included and marked, a deleted message keeps its row without its text, and images are listed by name and type. Agents use GET /v1/export?format=jsonl|csv with an admin's key made for all apps; add since=2026-01-31 for chats with a message since then, or productId for one app. Each answer holds whole chats up to about 400 messages (a longer chat comes alone in slices, one JSON line per slice with the same id and slice: { from, total }); when there are more, the X-Export-Next header has a cursor to pass as after (send the same since and productId again), and you append the next part (later CSV parts have no header row). The dashboard does this for you. It's REST only, not MCP. Each export shows in Team › Recent changes.
Settings › Plan shows how many people use your apps, for owners and admins, in the dashboard and the iOS app. Monthly active users are the devices that opened one of your apps with the Hailbell SDK this calendar month (UTC); plans are sized by this number. Daily active users are the devices that opened one in the last 24 hours. Both count every app and platform in the account, and a device counts once however many times it opens the app. Hailbell records an open at most every two minutes, so the numbers are current to a few minutes. Below them, a chart shows daily active users by day for the last 90 days. Hailbell saves one point a day, just after midnight UTC, so the chart starts the day after you first see it. Agents can read all of it with get_account (usage.users, usage.today and usage.history).
Deleting your account. At the bottom of Profile (and in the Hailbell iPhone app), the owner presses Delete account and all its data and types DELETE to confirm. Everyone on the team is signed out at once, API keys and connected AI agents stop working, and your apps' SDKs stop reaching Hailbell: the chat says it's offline. Within a few minutes, or a few hours for a very large account, Hailbell deletes every app, chat, customer, push device, campaign, help article, setting and teammate of the account, and it can't be undone. Export your chats first if you want to keep them. A paid plan is cancelled so it never charges again; what you already paid isn't refunded. A Shopify store's plan is on its Shopify bill and ends when you uninstall Hailbell from the store, so uninstall it there too. Admins and agents see Leave this team and delete my login instead: it removes them from the account and deletes their sign-in, unless they're on another Hailbell account, and the account and its chats stay. Your Discord posts, Slack and Telegram messages stay where they are, since those are in your own servers.
The free trial lasts 14 days, with no card, and each person gets one. Accounts you create after your first start without a trial, so pick a plan there to turn Hailbell on. When the trial ends, the dashboard asks you to pick a plan, monthly or yearly. If you don't, the account pauses that day: the SDKs show customers that chat is offline and refuse new messages, replies from the dashboard, Discord, Telegram, Slack and agents aren't sent, email to the app's inbox bounces, and campaign pushes and AI replies stop. Nothing is deleted, and picking a plan turns it all back on. The account owner gets an email 3 days before the trial ends and another when it ends.
Questions
How do I connect Superwall and RevenueCat to Hailbell?
Open Settings › Apps › your app › Revenue and connect your Superwall or RevenueCat webhook. Pass your app's reported plan in metadata and sign in with the same user ID (or pass revenueCatUserId). Hailbell shows the customer's plan, purchases and planCheck (match, app_says_free, app_says_paid or null) in every chat.
What is Hailbell's remote MCP server URL and what tools does it expose?
The streamable HTTP MCP endpoint is https://api.hailbell.com/mcp. Authenticate with Google OAuth or an hbk_ Bearer API key. It exposes 81 tools covering accounts and apps, push previews and campaigns, segments, subscriber lookups, install checks, support conversations, AI replies, help center articles and payment webhooks.
How do I add Hailbell to a Shopify store?
Install Hailbell Live Chat from the Shopify App Store and switch on the theme app embed in your theme editor. There is no script tag to paste, logged-in shopper orders appear beside each chat, and the plan is billed on your Shopify bill. See hailbell.com/shopify.
Do my apps pass App Store review with Hailbell?
Yes. The SDK ships PrivacyInfo.xcprivacy, keeps promotional push opt-in per Apple Guideline 4.5.4, labels AI replies clearly, and removes chat history when account deletion runs.
Stuck? Start a chat with us, or email [email protected].