Kommunicate Developer Docs | AI Customer Support Integration Guides

Kommunicate Developer Docs | AI Customer Support Integration Guides

  • Book a Demo
  • Try For Free

›Flutter Mobile

Web

  • Installation
  • CMS Installation
  • Authentication
  • Conversation
  • Conversation Assignment
  • Customization
  • Localization
  • Logout
  • Troubleshooting

Android

  • Installation
  • Authentication
  • Push Notification
  • Conversation
  • Customization
  • Localization
  • Logout
  • Migration
  • Troubleshooting

iOS

  • Installation
  • SwiftUI Setup (Optional)
  • Authentication
  • Push Notification
  • Conversation
  • Customization
  • Configuration
  • Localization
  • Logout
  • Troubleshooting

React Native

  • Installation
  • Expo Installation
  • Authentication
  • Push Notification
  • Conversation
  • Customization
  • Logout
  • Troubleshooting

Flutter Mobile

  • Installation
  • Authentication
  • Push Notification
  • Conversation
  • Customization
  • Localization
  • Troubleshooting

Flutter Web

  • Installation
  • Authentication
  • Conversation

Ionic/Cordova

  • Installation
  • Authentication
  • Push Notification
  • Conversation
  • Customization
  • Localization
  • Logout
  • Resolving Errors

Ionic/Capacitor

  • Installation
  • Authentication
  • Push notification
  • Customization

Rich Messages

  • How To Use
  • Types of Rich Messages

AI Agents

  • AI Agents Setup
  • Dialogflow Integration
  • Lex Integration
  • Kompose AI Agent Builder
  • IBM Watson Integration
  • Custom AI Agent Integration
  • Import Kompose AI Agent
  • AI Agent Samples

Integrations

  • Zapier
  • WhatsApp
  • WhatsApp 360Dialog
  • WhatsApp Twilio
  • WhatsApp Cloud API
  • Instagram Integration
  • Telegram Integration
  • Sunshine Integration
  • Freshdesk Integration
  • Pipedrive Integration
  • Agile Integration
  • Slack Integration
  • Google Analytics

Platform APIs

  • Authentication
  • Endpoints

Dashboard Features

  • Analytics
  • Conversations
  • Users
  • AI Agent Integration
  • Helpcenter
  • Campaign Messaging
  • Settings

Configuration

  • Single Sign On (SSO) Setup
  • Webhooks
  • Access Token URL
  • Email Fallback

Authentication

To authenticate a user, create a user object and then pass it to the login function. The User object has the following properties:

parametersdescription
userIdUnique ID for the user
displayNameDisplay name of the user. Agents will identify users by this display name
emailEmail ID of logged in user
passwordUser's password
imageLinkThe image of the end-user, which will be visible to the agents in the kommunicate dashboard
authenticationTypeIdPass 1 for authentication from kommunicate
APP_IDPass your APP_ID here
deviceApnsType0 for development, 1 for release

Initialize SDK

Call the initialization function once when the app starts. You don’t need to call it every time, but make sure it runs at least once before using any Kommunicate functions. Place it at the app launch entry point.

    KommunicateFlutterPlugin.init(APP_ID).then((value) {
      print("Initialization successful : " + value.toString()); 
      // Usually returns null; sometimes it may return the appID.
    }).catchError((error) {
      print("Initialization error occurred : " + error.toString());
    });

There are 2 ways to Login:

1. Visitors

Login the user anonymously as below:

 KommunicateFlutterPlugin.loginAsVisitor(APP_ID).then((result) {
      print("Login as visitor successful : " + result.toString());
    }).catchError((error) {
      print("Login as visitor failed : " + error.toString());
    });

2. Existing Users

If you have the user details, then pass the user details to create a user object:

    dynamic user = {
      'userId': <USER_ID>,  //unique userId
      'password': <PASWWORD>,   //password is optional
      'appId': APP_ID
    };

Then pass the user object in the login function as below:

KommunicateFlutterPlugin.login(user).then((result) {
      print("Login successful : " + result.toString());
    }).catchError((error) {
      print("Login failed : " + error.toString());
    });

If the user is logged in or not, one can check by calling the 'isLoggedIn' function:

 KommunicateFlutterPlugin.isLoggedIn().then((value) {
        if (value) {
          print("User is already logged in");
        } else {
          print("User is not logged in");
        }
      });

Update user details

Use the below function to update the details of the logged in user.

    dynamic kmUser = {
       'displayName': 'New display name',
       'contactNumber': 'New contact number',
       'imageLink': 'New pofile image url',
       'email': 'New email Id',
       'metadata': {   //Pass any Key-Value pair(String, String) here. This will be displayed under User Info section in the dashboard
               'key1': 'value1',
               'key2': 'value2'
           }
     };
      
    KommunicateFlutterPlugin.updateUserDetail(kmUser)
        .then((response) {
      print("User details updated successfully : " + response.toString());
    }).catchError((error) {
      print("Error occurred while update user details : " + error.toString());
    });

Note: All the fields in the kmUser object above are optional. updateUserDetail function has to be called after conversationBuilder's success

Here is the sample app which implements this SDK: https://github.com/Kommunicate-io/Kommunicate-Flutter-Plugin/tree/master/example

Logout

You can call the logout method to logout the user from Kommunicate. Use the method as below:

  KommunicateFlutterPlugin.logout();
← InstallationPush Notification →
  • Initialize SDK
  • There are 2 ways to Login:
    • 1. Visitors
    • 2. Existing Users
  • Update user details
  • Logout

Start Small. Prove Value. Scale Safely

You don't need to bet your entire support operation on AI.
Start with the conversations that are safe to automate using an AI agent.
Expand as confidence grows.

Get StartedSee a Live Demo
Kommunicate logo
*Subscribe to our newsletter
Product
No-Code AI Agent BuilderGenerative AI ChatbotVoice AIAI Email TicketingFAQ ChatbotLive Chat
OpenAI IntegrationGoogle Gemini IntegrationAnthropic IntegrationAI Agent Features
Industries
Healthcare AI AgentEcommerce AI AgentEducation AI AgentBanking AI Agent
Gaming AI AgentTravel AI AgentTelecom AI AgentInsurance AI Agent
Integrations
WhatsApp AI AgentZendesk AI AgentWordpress AI AgentAndroid Chatbot SDKiOS Chatbot SDK
Facebook Messenger AI AgentInstagram AI Agent
All Integrations
Resources
Chatbot TemplatesCase StudiesWhitepapersAI Customer Service Guide
Chatbot GuideVideosKnowledge HubComparisons
ROI CalculatorBlogsGlossary
Company
About UsPricingContact UsAffiliate ProgramPartner ProgramMediaHelp CenterTrust CenterAPI Status
Languages
ArabicSpanishFrenchGermanPortugueseItalianSwedishRussian
© Kommunicate 2026
T&CPrivacy PolicyCareerSLADPASitemap