Integration of Chat360 Flutter SDK

Chat360 is a top-tier chatbot service provider that offers businesses and organizations a comprehensive platform to build and deploy intelligent chatbots. One of its key offerings is its Flutter SDK integration, which allows businesses to easily integrate chatbot functionality into their existing Flutter apps.

With Chat360’s Flutter SDK integration, businesses can provide their users with a seamless and integrated chat experience, enhancing customer engagement and improving overall user experience. The integration process is straightforward and requires just a few lines of code to enable chatbot functionality within an Flutter app.


Installation:

  • Use this package as a library Depend on it Run this command:
  • With Flutter:

                            
    $ flutter pub add chat360_flutter_sdk
                            
                          

  • This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
  • Dependencies:

                            
    chat360_flutter_sdk: ^1.0.1
                            
                          

  • Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import Library :


                            
    import 'package:chat360/chat360.dart';
                            
                          

  • Initialise Chat360 SDK Class and Your Bot Id:

                            
    final chat360 = Chat360();
    String botId = "YOUR-BOT-ID";
                            
                          

  • And use it in any launcher Function :

                            
    chat360.startChatbot(botId);
                            
                          

Permissions:

  • We are declaring and asking for the following permission in our manifest file.

                            
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
                            
                          

  • All permissions will be asked at the run time except the INTERNET. For attachments (picking files/images from phone storage).

                            
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />   
                            
                          

Conditional Permission:

Record Audio:

  • If you want to use Speech to text feature, please add the following permission to your manifest.

                            
   <uses-permission android:name="android.permission.RECORD_AUDIO" />  
   <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />  
                            
                          

Location:

  • If your bot requires Location permission, please add the following permission to your manifest.

                            
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />  
  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />  
                            
                          

Demo App: