Kommunicate Developer Docs | AI Customer Support Integration Guides

Kommunicate Developer Docs | AI Customer Support Integration Guides

  • Book a Demo
  • Try For Free

›React Native

Web

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

Android

  • Installation
  • Authentication
  • push notification
  • Conversation
  • Customization
  • Localization
  • Migration
  • Troubleshooting

React Native

  • Installation
  • Expo Installation
  • Authentication
  • push notification
  • Conversation
  • Customization
  • 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
  • Resolving Errors

Ionic/Capacitor

  • Installation
  • Authentication
  • push notification
  • Customization

Rich Messages

  • How To Use
  • Types of Rich Messages

AI Agents

  • AI agents Setup
  • OpenAI, Anthropic and Gemini
  • Dialogflow Integration
  • Lex Integration
  • Kompose AI agent Builder
  • IBM Watson Integration
  • Google CES (CX Agent Studio) 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 you need to 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.

 RNKommunicateChat.initialize(<KOMMUNICATE-APP-ID>, (responseArray: any[]) => {
   const [initResponse, initMessage] = responseArray;
   if (initResponse === 'Error') {
     console.error('Initialization Error:', initMessage);
     Alert.alert('Initialization Error', initMessage);
     return;
   }
   console.log('Initialization Success:', initMessage);
 });

There are 2 ways to Login

1. Visitors

Whenever users come to your app and starts the chat, you can assign them a random ID. This behaviour is best suited for anonymous user. Add below function to generate a random userId:

 public getRandomId() : string {
  var text = "";
  var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  for (var i = 0; i < 32; i++)
      text += possible.charAt(Math.floor(Math.random() * possible.length));
  return text;
}

Then create the User object using random Id:

 var kmUser = {
  'userId' : this.getRandomId(),
  'applicationId' : '<APP_ID>',  //replace this with your APP_ID from Kommunicate Dashboard
  'deviceApnsType' : 0    //Set 0 for Development and 1 for Distribution (Release)
  };

Then call the loginUser function:

RNKommunicateChat.loginUser(kmUser, (response, message) => {
    if(response == 'Success') {
        console.log(message);
    } else if (response == 'Error') {
        console.log(message);
    }
});

2. Logged in Users

If the user is already logged in to your app, then pass the user details to create a user object:

var kmUser = {
    'userId' : this.userId,   //Replace it with the userId of the logged in user
    'password' : this.password,  //Put password here
    'authenticationTypeId' : 1,
    'imageLink' : <image-link-for-user>,
    'applicationId' : '<APP_ID>',  //replace this with your APP_ID from Kommunicate Dashboard
    'deviceApnsType' : 0    //Set 0 for Development and 1 for Distribution (Release)
};

Then call the loginUser function:

RNKommunicateChat.loginUser(kmUser, (response, message) => {
    if(response == 'Success') {
        console.log(message);
    } else if (response == 'Error') {
        console.log(message);
    }
});

You can check if the user is logged in or not by calling the isLoggedIn function:

 RNKommunicateChat.isLoggedIn((response) => {
    if(response == "True") {
      //the user is logged in
    } else {
      //user is not logged in
    }
  });

Update User

You can update the user details whenever you want after the login by using below function.

let kmuser = {
  'displayName' : '<name>',
  'imageLink': '<image url>',
  'contactNumber': '<mobile number>',
  'email': '<email>',
  'metadata': {
    "test": "value"
  }
}

RNKommunicateChat.updateConversationInfo(kmuser, (response: string, responseMessage: string) => {
  console.log(response + responseMessage);
});
← Expo Installationpush notification →
  • Initialize SDK
  • There are 2 ways to Login
    • 1. Visitors
    • 2. Logged in Users
  • Update User

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