Integration of Chat360 iOS SDK

Chat360 is a leading chatbot service provider that offers businesses and organizations a powerful platform to build and deploy intelligent chatbots. With its cutting-edge technology and innovative features, Chat360 enables businesses to enhance their customer engagement and improve their overall user experience.

One of the key offerings of Chat360 is its iOS SDK integration in Swift iOS apps. This feature allows businesses to seamlessly integrate their chatbot functionality into their existing iOS apps, providing users with a seamless and integrated chat experience.

With Chat360’s iOS SDK integration, businesses can easily add chatbot functionality to their iOS apps with just a few lines of code. This integration allows businesses to provide their users with real-time support and assistance, improving the overall user experience and increasing customer satisfaction.


Installation:

Apple Swift Package Manager:

  • To integrate Chat360SDK into your Xcode project using Swift Package Manager, Open your Xcode project, navigate the File tab within the macOS bar, and click on “Add Packages”. In the Add New Package window, Search for chat360-ios-sdk then select the Dependency Rule as Branch main



Basic Usage:

  • Import the Chat360SDK framework in the Swift file

                            
    import Chat360SDK
                            
                          

  • After the framework is imported the bot can be presented with few lines as below

                            
    do {
          let config  = ChatConfigs(botId: "e4e9d4f8-4bcd-46f6-a8a3-6c9126d1bb16",
                                    appId: "com.chat360.chat360demoapp")
    } catch {
       print("Error occured while loading chatbot \(error)")
    }
                            
                          

Start chatbot:

  • Once the config is set, chat bot can be presented by calling showChat() method and passing your view controller as an argument.

                            
    do {
          try ChatLauncher.showChat(with: config, parentController: self)
    } catch {
           print("Error occured while loading chatbot \(error)")
    }
                            
                          


Get your Bot_id:

Create a Bot

  • The dashboard that was given to you, Click "ADD NEW CHATBOT"



  • Select bot process.



  • Select Web Bot.



  • Navigate to Publish.



  • Click the "Website URL" field.



  • Enter your app id in above field and publish it. After publishing it, you can see the bot id below:



Permissions:

  • We are requesting for following permissions.

                            
    <key>NSMicrophoneUsageDescription</key>
    <string>Your microphone will be used to record your speech when you use the Voice feature.</string>
    <key>NSSpeechRecognitionUsageDescription</key>
    <string>Speech recognition will be used to determine which words you speak into this device's microphone.</string>
                            
                          

Demo App: