Quickstart

Add the chat to your app in about ten minutes. Every platform uses the same App ID and the same inbox.

  1. 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.
  2. 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).
  3. Install the SDK for your platform below.
  4. 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

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.

  1. 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.
  2. 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.
  3. 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.

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.

// When your paywall closes without a purchase (Superwall's or RevenueCat's paywall callback)
Hailbell.track("paywall_decline")

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.

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.

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.

// 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:

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.

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.

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.

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.

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.

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.

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.

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 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.

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.

  1. 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_…).
  2. 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.
  3. 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 as revenueCatUserId:
// 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:

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.

  1. Copy your webhook URL. In the Hailbell dashboard, open Settings › Apps, pick the app and press Connect Superwall under Revenue.
  2. 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.
  3. 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(...) and Hailbell.onPaywall so 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.

  1. 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>.
  2. 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.deleted and charge.refunded.
    • Dodo Payments: in live mode, Developer › Webhooks, add an endpoint with the URL and subscribe to payment.succeeded, payment.failed, refund.succeeded and every subscription.* 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.refunded and every subscription.* 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, every subscription.* event, adjustment.created, adjustment.updated, customer.created and customer.updated. Its secret key starts with pdl_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_refunded and every subscription_* event. Paste the same secret into Hailbell.
    • Creem: in live mode, Developers › Webhooks, add a webhook with the URL and pick checkout.completed, refund.created and every subscription.* 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.created and refund.updated. Its secret starts with ws_.
    • 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.processed and subscription.activated, subscription.charged, subscription.pending, subscription.halted, subscription.cancelled and subscription.completed. Paste the same secret into Hailbell.
  3. 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.
  4. 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:read and subscriptions: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.

  1. Connect the webhook first (above), so Hailbell knows which subscriptions belong to which customer.
  2. 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.
  3. 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.
ProviderKey for changesGood to know
StripeDevelopers › API keys › Create restricted key (rk_live_…): write access to Subscriptions and Refunds, read access to Invoices and Charges.Partial refunds.
PaddleDeveloper 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 SqueezySettings › API. Its keys have full access and last a year.Partial refunds.
Dodo PaymentsDeveloper › API Keys, a live key with Subscriptions: Write, Payments: Read and Refunds: Write.No pause. Refunds whole payments only.
PolarSettings › 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.
CreemDevelopers › API keys, with Test Mode off.Refunds whole payments only.
WhopDashboard › Developer › API keys, with member:manage, payment:basic:read and payment:manage.Partial refunds.
RazorpayAccount & 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:

// 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:

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.

  1. 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.
  2. 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.
  3. 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 appAccountToken or originalTransactionId.
// 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.

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"
}

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

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.

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.

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.

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.

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:

  1. Where are you moving from? Open Settings › Import and pick the tool. If you've imported before, press New import first.
  2. 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.
  3. 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.
Hailbell Settings, Import: a card asks Where are you moving from? with Zendesk, Intercom, Crisp and Help Scout to pick from
Step 1: pick the tool you are leaving.
A finished import from Zendesk: progress bar at 100 percent, counts for contacts, conversations, help articles and messages, and New import and Run again buttons
A finished import, with what came over and Run again for later.

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.

  1. In Zendesk, open Admin Center (the product menu at the top left, or https://your-subdomain.zendesk.com/admin).
  2. 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.
  3. Zendesk Admin Center, Apps and integrations, APIs, OAuth clients, with an Add OAuth client button
    Apps and integrations › APIs › OAuth clients.
  4. 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.
  5. 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.
  6. The Add OAuth client form with Identifier hailbell_import and Client kind set to Confidential
    Identifier filled in from the name, Client kind: Confidential.
  7. 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.
  8. The saved OAuth client showing the Secret field with a Copy button and a warning that it will not be shown in full again
    The secret is shown once. The value is hidden here.
  9. 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.
  10. Hailbell Connect Zendesk form with Zendesk subdomain, OAuth client identifier, OAuth client secret, and the older admin email and API token fields below
    The Zendesk form in Hailbell. The last two fields are for older accounts.
  11. 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.

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.

Intercom Settings, Integrations, Authentication tokens, with the Add token menu open listing Salesforce, Salesforce Sandbox, HubSpot, Attio, Marketo and Custom
Not this one: the Add token menu in Settings is for data connectors.
  1. 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.
  2. Intercom Settings home, Integrations section, with the Developer Hub card highlighted next to App Store, Data connectors, Authentication and Fin Agent API
    Settings › Integrations › Developer Hub.
  3. 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.
  4. The New app dialog in Intercom Developer Hub, with App name Hailbell import, the workspace picked and a Create app button
    New app: a name and your workspace.
  5. 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.
  6. The app Authentication page in Intercom Developer Hub, with the Access token row and its copy button, and the Permissions list below
    Configure › Authentication. The token is hidden here.
  7. Find your data region in the address bar: app.intercom.com is United States, app.eu.intercom.com Europe, app.au.intercom.com Australia.
  8. In Hailbell, open Settings › Import, pick Intercom, paste the token and pick the region. Press Connect, then follow the three steps.
  9. 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.

The Hailbell inbox after an Intercom import: an imported chat open with its Imported from Intercom note, and the trial demo chats Messenger, Email, WhatsApp and Social, and Phone and SMS in the list
Imported Intercom chats in Hailbell. The last four are a new trial's demo conversations.

What comes over.

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.

  1. Find your website ID in Crisp: Settings › Workspace Settings › Setup Instructions, the Website ID field. Copy it.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

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.

  1. In Help Scout, open your avatar menu (top right), then Your Profile › My Apps, and press Create My App.
  2. 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.
  3. Copy the App ID and App Secret it shows.
  4. 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.
  5. 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.
  6. 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.

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:

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.

Tags: GET /v1/chat-tags (list_tags) returns the account's tags with tagId, name, color, openChats and chats. POST /v1/conversations/{id}/tags (tag_conversation) takes add and remove, lists of tag names or ids; a new name makes the tag. Reading needs read, tagging needs send.

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:

AreaTools
Accounts & appsget_account, list_apps, create_app, add_platform, get_setup, update_setup, get_reply_identity, update_reply_identity
Push campaigns & segmentsget_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 & diagnosticslist_subscribers, get_user, set_user_tags, list_tag_keys, set_test_device, check_install
Support inbox & AI replieslist_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 reviewslist_reviews, reply_review
Automatic triageget_auto_triage, update_auto_triage
Help center & paymentsget_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].