指南
行動端 SDK
手工打造的 iOS、Android、Flutter 和 React Native 客戶端。
AskAIs 提供三種真實的方式,把線上客服接入行動 App 或原生應用。第一,原生 Flutter 挂件 SDK,一套完整、可主題化的聊天介面,現已發布,位於 monorepo 的sdks/flutter-widget/。第二,iOS 和 Android 用 WebView 全功能接入網頁挂件, 體驗與網頁完全一致。第三,用 REST API 加簽章 webhook 完全自行渲染。
iOS (WebView)
// iOS: embed the full web widget, no native SDK required
import WebKitlet webView = WKWebView(frame: view.bounds)
let url = URL(string: "https://singchat.org/api/widget-embed?key=YOUR_WIDGET_KEY")!
webView.load(URLRequest(url: url))
view.addSubview(webView)Android (WebView)
// Android: embed the full web widget, no native SDK requiredval webView = WebView(this)
webView.settings.javaScriptEnabled = true
webView.settings.domStorageEnabled = true
webView.loadUrl("https://singchat.org/api/widget-embed?key=YOUR_WIDGET_KEY")
setContentView(webView)Flutter (widget SDK)
# pubspec.yaml
dependencies:
singlink_sdk: ^0.1.0import 'package:singlink_sdk/singlink_sdk.dart';
final client = SingChatClient('https://singchat.org');
await client.identify(IdentifyRequest(appId: 'ws_abc'));
client.startRealtime();
client.events.listen((e) { /* ... */ });REST API
# Any language or backend, no shipped SDK required:
# 1. POST messages to the SingChat REST API with your API token
# 2. Receive inbound messages via HMAC-signed webhooks# Verify the webhook signature, then render the chat in your own UI
# One inbox powers the web widget, Telegram, and WhatsApp你能獲得什麼
- Flutter 挂件 SDK 自帶完整、可主題化的聊天介面(身分加 HMAC,REST 加 WebSocket 即時)
- WebView 內嵌載入
/api/widget-embed,iOS 和 Android 的體驗與網頁挂件完全相同,並自動更新 - 所有入站管道匯聚到同一個收件匣:網頁挂件、Telegram、WhatsApp 已端到端上線,X 接入位就緒
- AI 可用平台託管(無需自帶金鑰、按真實 token 用量計費、點數自動續費、餘額不足轉真人),也可自帶金鑰(BYOK)
- AI 訓練中心可從爬取網站、上傳檔案(PDF、Word、DOCX)、問答對(CSV 批次匯入)中學習,並在上線前用 Playground 沙盒試聊
未提供的內容
沒有現成的 SwiftUI 或 Jetpack Compose 原生聊天檢視,沒有已發布的 React Native 套件,沒有 Unity 或 Unreal SDK,也沒有自動產生的 Python、Go、Rust、C# 等用戶端。iOS 和 Android 請用 WebView 內嵌,其餘情境用 REST API。說明中心、FAQ 和公告支援 50 種語言,整套介面支援全鏈路白標與抗封鎖多網域,全部透過超級管理面板統一管理。