Back to SupportKit

Getting Started

Add AI-powered customer support to your iOS app in under 10 minutes.

Prerequisites

  • iOS 17.0+ or macOS 14.0+
  • Swift 5.9+
  • Xcode 15+
1

Install the SDK

Add SupportKit to your project using Swift Package Manager.

Option A: Xcode

  1. Open your project in Xcode
  2. Go to File → Add Package Dependencies
  3. Enter the package URL:
https://github.com/Babu12345/SupportKit

Option B: Package.swift

dependencies: [
    .package(url: "https://github.com/Babu12345/SupportKit", from: "1.0.0")
]
2

Get Your API Key

  1. Create an account or log in to the dashboard
  2. Create an organization for your app
  3. Go to Settings and copy your API key

Your API key starts with sk_live_

3

Configure SupportKit

Initialize SupportKit when your app launches.

import SupportKit

@main
struct MyApp: App {
    init() {
        SupportKit.configure(apiKey: "sk_live_your_key_here")
    }

    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}
4

Present the Chat

SwiftUI

import SupportKit

struct ContentView: View {
    @State private var showChat = false

    var body: some View {
        Button("Get Help") {
            showChat = true
        }
        .sheet(isPresented: $showChat) {
            SupportKit.chatView()
        }
    }
}

UIKit

import SupportKit

class ViewController: UIViewController {
    @IBAction func helpTapped(_ sender: Any) {
        SupportKit.presentChat(from: self)
    }
}
5

Add Your Knowledge Base

The AI needs content to answer your users' questions. Go to the Knowledge section in your dashboard and add:

  • FAQs about your app
  • Help articles and documentation
  • Common troubleshooting steps
  • Feature explanations

The more content you add, the better the AI will be at answering your users' questions.

That's it!

Your app now has AI-powered customer support. Users can ask questions and get instant, accurate answers based on your knowledge base.

Start for Free