telybot A little less ordinary.
A lot more intelligent.
Australia Sign in Talk to us Start free
Telybot docsReference

SDK reference

Every Telybot SDK — Android, iOS, React Native, Flutter, Ionic — offers the same small set of features. If you have used one, you have used all of them.

The API

CallWhat it does
init / initializeStores your client id. Validates it and fails loudly if it is malformed.
showPresents the chat over your app. Takes an optional question for the message box.
dismissCloses it.
isShowingWhether it is presented right now.
embedded chatThe chat inside one of your own screens, such as a Help tab.
onShow / onDismissTold when the chat opens and closes, on Android and iOS.
setVisitorYour signed-in customer's name, phone and email, offered in the chat's forms.
hasUnreadReply / onReplyA reply from your team that the customer has not seen yet.

The names follow each platform's habits: React Native has a useTelyBot() hook, a visitor prop and useTelyBotReplies(); Android reports opening and closing through TelyBot.listener; Ionic calls them open and close, and does not tell your app about replies from your team. Each package's README on GitHub has its exact calls.

Open with a question. Pass a question to show and it is put in the chat's message box; the customer reads it and taps send. It travels in the link's #fragment, so it stays on the device until the customer sends it. Up to 500 characters, as one line.

The chat inside your own screen. Android TelyBotView, iOS TelyBot.makeChatViewController or SwiftUI TelyBotView, React Native <TelyBotChat />, Flutter TelyBotChat, and the Ionic package's embedWidget(). It has no close button — your screen's navigation is the way out. On Android, back closes an open item or cart first: React Native and Flutter do this for you while the chat is the screen in front, and with the native TelyBotView your back handling calls its goBack().

Your signed-in customer. Give the SDK your customer's name, phone number or email and the chat fills in what your app already knows. The details are offered, never sent: they appear in the "talk to a person" form, an order, a booking and a welcome question for a name, phone or email, and the customer submits them. They travel in the link's #fragment and are your app's word, not a verified identity. A value the chat would refuse is left out: a name longer than 80 characters, a phone number without 8 to 15 digits, an email address without a proper domain. Ionic's full-screen chat opens in the system browser, which keeps addresses in its history, so it does not take them; its embedded widget does.

A reply while the chat is closed. When a customer asks for a person and closes the chat, your answer from the dashboard waits in the conversation. The SDKs for Android, iOS, React Native and Flutter check for it when your app comes to the foreground and tell your app, so you can show a dot on your chat button until the customer opens the chat. They ask only about chats in which the customer asked for a person in the last 14 days. A chat your app keeps loaded out of sight, such as a Help tab in the background, does not count as read: the dot stays until the customer looks. This is not a push notification: a reply is noticed when the app is opened.

There is nothing else: the SDKs have no API for sending messages and no call to identify a user.

The URL every SDK opens

{baseUrl}/chat/{clientId}

baseUrl defaults to https://telybot.com, so this is the same page as your bot link. You do not need to set it.

Why a web view, and what it costs you

There is one chat interface, served by Telybot, and every app and website loads it.

What you get: a change an owner makes in the dashboard — accent colour, welcome message, bot name, going live — reaches every app immediately, with no release. A fix lands everywhere at once. The chat is identical across platforms.

What it costs: the chat needs a connection. There is no offline mode, and there are no push notifications.

We would rather you know this before you ship than discover it afterwards.

Guarantees each SDK makes

  1. Navigation escapes. A link to any other origin opens in the system browser instead of replacing the chat. Without this, one tap on a footer link ends a customer's conversation with no way back.
  2. Conversation continuity. The chat is kept on the device, so a customer who closes the app and comes back finds their thread where they left it (for 24 hours).
  3. The keyboard never covers the input. (Android, iOS, React Native and Flutter. Ionic's full-screen chat runs in the system's browser view, which handles it itself.)
  4. Safe areas are respected — no chat drawn under a notch or a home indicator.
  5. No crash reaches your app. A failed load shows a retry.
  6. No analytics, no device identifiers, no outside dependencies. Adding a Telybot SDK does not add a tracker to your app. React Native needs only its web view, and Flutter uses only packages published by the Flutter team.
  7. Back closes what the customer is looking at first. On Android, back over an open item, cart or booking closes that, and only then the chat (in every SDK but Ionic's full-screen chat).

Inside the chat

All of this comes from the hosted page, so it reaches every app without an SDK update:

  • A welcome message with suggestion buttons, in the language the bot is set to.
  • The conversation is kept on the device for 24 hours, and the chat makes no visitor id. On a website a conversation lasts one browser tab.
  • Orders and bookings, when the business takes them: a cart, booking dates and times, a link to call the business when an order or booking has waited too long, and "Add to calendar" for a confirmed booking.
  • Attachments: photos (JPEG, PNG, WebP, GIF) and PDF, DOCX, TXT, CSV and MD files.
  • "Add to calendar" is a link to an .ics file. iOS opens it in Calendar as a calendar to subscribe to. Android offers the phone's calendar app when it imports .ics files — current Google Calendar does — and otherwise the browser downloads the file.

Client id format

tb_live_ followed by 8-48 lowercase hexadecimal characters (0-9, a-f)

Anything else is rejected at init rather than opening an error page in front of a customer. The client id is public by design — it is visible in any website that embeds the widget — and carries no ability to read or change your account. See limits and security.

Source

Public, MIT-licensed: github.com/telybotai/telybot-Sdks. Each package's README there documents its full API, with examples.

Next: Server examples →