Integrating Custom Live Chat

First step is to go to Settings -> Contact Options -> Live Chat and select Custom Application. Click Activate to save the configuration.

Airim provides a simple API for integration of your custom live chat solution.

One of the possible flow for integration is given below:

  1. User sees Airim widget

  2. User interacts with Airim widget and clicks the live chat icon

  3. Third party live chat software is opened

  4. User closes the live chat, hiding the live chat and showing Airim

You can integrate your own live chat application using the code below :

 window.airim('on','liveChatClick',function(){
   openLiveChatApplication();
   // hide the airim widget so it does not overlap with the live chat
   window.airim('widgetHide');
})

Optionally you can also show the airim widget icon when the user closes the live chat application using a callback that the third party application provides.

function liveChatCloseCallback(){

    // this line of code shows the airim widget icon
    window.airim('widgetShow');
}

Examples

Freshchat Integration

First step is to go to Settings -> Contact Options -> Live Chat and select Custom Application.

Click Activate to save the configuration.

You can directly copy paste the code below to integrate with Freshchat. You can add this code at the end of you HTML file after the <body> tag.

Chaport Integration

First step is to go to Settings -> Contact Options -> Live Chat and select Custom Application.

Click Activate to save the configuration.

You can directly copy paste the code below to integrate with Chaport.

Intercom Integration

First step is to go to Settings -> Contact Options -> Live Chat and select Custom Application.

Click Activate to save the configuration.

You can directly copy paste the code below to integrate with Intercom.

Please make sure you have added the Intercom JS and Airim JS

ConvertFox / Gist Integration

First step is to go to Settings -> Contact Options -> Live Chat and select Custom Application.

Click Activate to save the configuration.

You can directly copy paste the code below to integrate with ConvertFox.

Please make sure you have added the ConvertFox JS and Airim JS

Drift Chat Integration

First step is to go to Settings -> Contact Options -> Live Chat and select Custom Application.

Click Activate to save the configuration.

You can directly copy paste the code below to integrate with Drift.

Please make sure you have added the Drift JS snippet and Airim JS snippet above the following code

Last updated

Was this helpful?