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
let chatConfig = Chat360Config(botId: "YOUR_BOT_ID", appId: "YOUR_APP_ID",)
Start chatbot:
- Once the config is set, chat bot can be presented as follows:
let chatView = Chat360BotView(botConfig: chatConfig)
// Present or add the chatView to your view hierarchy
let navigationController = UINavigationController(rootViewController: chatView)
self.present(navigationController, animated: true, completion: nil)
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>
SDK Link:
- You can check the Chat360 SDK from the respective GitHub repository:
- https://github.com/sumanel/chat360-ios-sdk