Zendesk chat integration in android

Updated 11 October 2021


If you are planning to make more user interaction with your application visitor or want to chat with the customer then this blog is for you.

In this blog, we are going to discuss the Zendesk chat integration in your android application. Zendesk chat allows fast and real-time conversation with the visitor.

It makes the application more attractive where the visitor can ask a question with agent regarding the application or the services offered by the chat interface.

Zendesk chat integration in android

We can use Zendesk chat in our android application with the use of Zendesk chat SDK.

Initial setup

Firstly start with adding zendesk repositories in your project build.gradle file:

Now next we need to add the Gradle dependency to your app/module build.gradle file:

In this integration, we are using the SDK built-in UI components so that we have used two bove dependencies.

Make sure you are using the minimum API level 16 and above for your application.

Initializing the Zendesk SDK

After successful installation of the initial setup it’s time to initialize the Zendesk SDK on your main activity just like below:

You can follow this link for getting your Zendesk account key.

Zendesk Chat SDK configuration

Now we have initialized our chat SDK now it’s time to configure the SDK data like:

Zendesk chat SDK provides ChatConfiguration.builder() for configuring the chat SDK with the help of this we can enable or disable the chat features.

withAgentAvailabilityEnabled is true by default visitor will be informed that no agent is available to serve if its value is true. If we set the value false then the visitor will wait in the queue for the visitor.

withOfflineFormEnabled flag allows us to leave a message to the agent if no agent is available.

withPreChatFormEnabled flag allows visitors to inform the details in a conversational way by default its value is true.

We can also set the profile details of the visitor by visitorInfo.builder() and profileProvider set the details for chat session  like below:

Starting chat

The final step is to start the chat with the help of messaging interface with our chatConfiguration like below:


In this blog, we have learned about the Zendesk chat integration in android for making the chat with your visitor For more information regarding the Zendesk chat you can follow the link.

Thanks for reading this blog. You can also check other blogs from here.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.

Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home