What are the configuration settings for the ASAP React Native SalesIQ SDK?

What are the configuration settings for the ASAP React Native SalesIQ SDK?

To display details of anonymous users in the chat module to your agents:

When an anonymous user contacts the customer support agent via chat, their details usually do not appear on the agent's screen. Regardless, you can configure the ASAP help widget to display these details after receiving them from the concerned user.
 
To configure this setting, use the following method:
  1. import {ZohoDeskPortalSalesIQ} from '@zohocorp/zohodesk-portal-salesiq';

  2. ZohoDeskPortalSalesIQ.setGuestUser("Your user valid e-mail","user name","user mobile no")
To use the SalesIQ configuration, import the ZohoDeskPortalSalesIQ module:
  1. import {ZohoDeskPortalSalesIQ} from '@zohocorp/zohodesk-portal-salesiq'; 
AlertThis configuration is provided in the ASAP SDK starting from version 3.0.3. In versions below 3.0.3, the preChatForm was disabled by default. From version 3.0.3 onwards, it is enabled by default. Please set your configurations accordingly.
Info
Once the salesIQ is successfully initialized. You can proceed with the additional configurations.
Info
For a smooth user experience, ensure that all necessary configurations are applied after initialization.

SalesIQInitListeners

For SalesIQ configuration, you must set up all the required configurations after addSuccessInitListener is called successfully.
Notes
Ensure that this callback is set before calling ZohoDeskPortalSDK.initialise("orgId", "appId", "dc");

There are two listeners

      1. addSuccessInitListener
That is called when the SalesIQ SDK is successfully initialised:
  1. let successSubscription =ZohoDeskPortalSalesIQ.addSuccessInitListener((data)=>{
  2. // Add configurations here
  3. //ZohoDeskPortalSalesIQ.showOfflineMessage(true)
  4. // ZohoDeskPortalSalesIQ.setChatVisibility(ZohoDeskPortalSalesIQ.chatComponents.PRE_CHAT_FORM,true); 


  5. })
      2. addErrorInitListener
That is when the SalesIQ SDK initialisation fails:
  1. let errorSuccessSubscription = ZohoDeskPortalSalesIQ.addErrorInitListener((data) =>{

  2. })

RemoveListeners

You must remove the success and error listeners after the successful SalesIQ init.
  1. successSubscription.remove();
  2. errorSuccessSubscription.remove();
InfoFor additional code examples, refer to the repo here.  

ShowLauncher

The ZohoDeskPortalSalesIQ.showLauncher(visibilityMode) API allows you to manage the SalesIQ launcher's visibility based on the specified visibility mode.

Parameters of VisibilityMode:
  1. ALWAYS - The launcher will always be visible.
  2. NEVER - The launcher will always be hidden.
  3. WHENACTIVECHAT - The launcher will be visible only when there is an active chat.
  1. ZohoDeskPortalSalesIQ.showLauncher(ZohoDeskPortalSalesIQ.visibilityMode.NEVER)

enableDragToDismiss

The ZohoDeskPortalSalesIQ.enableDragToDismiss(Boolean) lets you close the SalesIQ launcher by dragging it and dropping it onto the close button.
  1. ZohoDeskPortalSalesIQ.enableDragToDismiss(false)

setConversationTitle

This ZohoDeskPortalSalesIQ.setConversationTitle(String) API allows you to set the title for the conversations list screen in SalesIQ.
  1.  ZohoDeskPortalSalesIQ.setConversationTitle("History")

setConversationVisibility

This ZohoDeskPortalSalesIQ.setConversationVisibility(Boolean) API can be used to enable or disable the visitor conversation history in the salesiQ UI

Parameters:
true - Displays the conversation screen (default).
false - Hides the conversation screen.
Notes
This API cannot enable conversation history in UI if the same is disabled in portal settings.
  1. ZohoDeskPortalSalesIQ.setConversationVisibility(true)

showFeedbackAfterSkip

The Zohodeskportalsalesiq.showfeedbackafterskip(Boolean) API allows you to manage the duration of the feedback card for 24 hours after the chat ends.

Parameters:
enable:
true -The feedback card will be displayed permanently (default).
false - The feedback card will displayed for 24 hours until feedback is given.
Notes
The feedback card will always have the Skip option. When enable is "false" and upon clicking on Skip, the card will not be displayed again until the next chat.
  1. ZohoDeskPortalSalesIQ.showFeedbackAfterSkip(false)

hideQueueTime

The ZohoDeskPortalSalesIQ.hideQueueTime(Boolean) API controls the visibility of the chat queue time in the chat window when connecting to an operator. 

Parameter:
true - This hides chat queue time (default).
false - This displays the chat queue time.
  1. ZohoDeskPortalSalesIQ.hideQueueTime(true)

setLoggerEnabled

This ZohoDeskPortalSalesIQ.setLoggerEnabled(Boolea) lets you request your application debug logs from the visitor. By setting the bool value, you can choose to enable or disable the request app log feature for your operators in the SalesIQ dashboard.

Parameter:
true -  Enables the logs.
false - Disables the logs (default).
  1. ZohoDeskPortalSalesIQ.setLoggerEnabled(true)

showOfflineMessage

This showOfflineMessage( Boolean ) API will set an offline banner in the chat window during non-business hours and when agents are busy to help visitors leave a message even when agents are unavailable.

Parameters:
true - Displays the offline message card (default).
false - Hides the offline message card.
  1. ZohoDeskPortalSalesIQ.showOfflineMessage(true)

setKnowledgeBaseVisibility()           

The ZohoDeskPortalSalesIQ.setKnowledgeBaseVisibility(Boolean) API allows you to manage the resource's visibility in the Mobilisten knowledge base section.

Parameters:
true - This will display the resource type (default).
false - This will hide the resource.
Notes
The API will work when the "Articles" is enabled under brand settings. To check, from your SalesIQ dashboard, navigate to Settings > Brands > Personalisation > Knowledge Base > Article.
  1. ZohoDeskPortalSalesIQ.setKnowledgeBaseVisibility(true)

setChatVisibility

This  ZohoDeskPortalSalesIQ.setChatVisibility(chatComponents, true) API lets you toggle the function of various components in SalesIQ.
Notes
The components' settings are considered only if their function is enabled in portal settings.
  1. ZohoDeskPortalSalesIQ.setChatVisibility(ZohoDeskPortalSalesIQ.chatComponents.PRE_CHAT_FORM,true);      
  2. ZohoDeskPortalSalesIQ.setChatVisibility(ZohoDeskPortalSalesIQ.chatComponents.VISITOR_NAME,true);
  3. //Add other chatComponents here
Parameter of the Chat Component:

Chat component

Function description

Default setting

preChatForm

Enable/disable the pre-chat from before initiating a chat.

Enabled

operatorimage
Enable/disable the attendee's profile image in the chat window.
Enabled
vistorName
This option is used to configure the visibility of the visitor's name for all outgoing messages.
Disabled
screenshot
Enable/disable the ability to take screenshots from the adding attachments menu.
Enabled
rating
Enable/disable the option to rate a chat after it has ended.
Enabled
feedback
Enable/disable the option to give feedback after a chat has ended.
Enabled
emailTranscript
Enable/disable the option to request an email transcript for a chat.
Enabled
fileShare
Enable/disable the access to send files from the files application in chat.
Enabled
end
Controls the visibility of the end action option in the chat window.
Enabled

endWhenBotConnected

Show/hide the end chat option only for the bot-connected chats.

Enabled

endWhenOperatorConnected

Controls the visibility of the end action option in the chat window when a human operator is connected.Enabled

endWhenInQueue

Controls the visibility of the end action option in the chat window when the user is in the queue.Enabled

reopenChat

Controls the visibility of the queue position in the chat window. Enabled
queuePosition
Show/hide the queue position of the chat in the chat window and conversation history.
Enabled
  1.       chatComponents: {
  2.       PRE_CHAT_FORM: "preChatForm",
  3.       VISITOR_NAME: "visitorName",
  4.       SCREENSHOT_OPTION: "screenshotOption",
  5.       PHOTO_LIBRARY: "photoLibrary",
  6.       MEDIA_CAPTURE: "mediaCapture",
  7.       FILE_SHARING: "fileSharing",
  8.       EMAIL_TRANSCRIPT: "emailTranscript",
  9.       RATING: "rating",
  10.       FEEDBACK: "feedback",
  11.       REOPEN: "reopen",
  12.       END: "end",
  13.       END_WHEN_IN_QUEUE: "endWhenInQueue",
  14.       END_WHEN_BOT_CONNECTED: "endWhenBotConnected",
  15.       END_WHEN_OPERATOR_CONNECTED: "endWhenOperatorConnected",
  16.       QUEUE_POSITION: "queuePosition",
  17.  }

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsRetailOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceForms for Solopreneurs
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit
                              Forms for Government
                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic FormsInsurance
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsWufoo alternativeEncrypted Forms
                              Accessible FormsTypeform alternativeSecure Forms

                              WCAG

                                          Create. Review. Publish.

                                          Write, edit, collaborate on, and publish documents to different content management platforms.

                                          Get Started Now






                                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                Manage your brands on social media

                                                                  Use cases

                                                                  Make the most of Zoho Desk with the use cases.

                                                                   
                                                                    

                                                                  eBooks

                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho Desk.

                                                                   
                                                                    

                                                                  Videos

                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho Desk.

                                                                   
                                                                    

                                                                  Webinar

                                                                  Sign up for our webinars and learn the Zoho Desk basics, from customization to automation and more

                                                                   
                                                                    
                                                                  • Desk Community Learning Series


                                                                  • Meetups


                                                                  • Ask the Experts


                                                                  • Kbase


                                                                  • Resources


                                                                  • Glossary


                                                                  • Desk Marketplace


                                                                  • MVP Corner



                                                                    Zoho Sheet Resources

                                                                     

                                                                        Zoho Forms Resources


                                                                          Secure your business
                                                                          communication with Zoho Mail


                                                                          Mail on the move with
                                                                          Zoho Mail mobile application

                                                                            Stay on top of your schedule
                                                                            at all times


                                                                            Carry your calendar with you
                                                                            Anytime, anywhere




                                                                                  Zoho Sign Resources

                                                                                    Sign, Paperless!

                                                                                    Sign and send business documents on the go!

                                                                                    Get Started Now




                                                                                            Zoho TeamInbox Resources





                                                                                                      Zoho DataPrep Demo

                                                                                                      Get a personalized demo or POC

                                                                                                      REGISTER NOW


                                                                                                        Design. Discuss. Deliver.

                                                                                                        Create visually engaging stories with Zoho Show.

                                                                                                        Get Started Now










                                                                                                                            • Related Articles

                                                                                                                            • How to Integrate the ASAP SDK with React Native

                                                                                                                              After successfully setting up the ASAP SDK on your mobile application, the next step is to integrate it. Code block to installing the react-native plugin: We have the following list of plugins, customers can integrate the SDK based on their ...
                                                                                                                            • Working with the ASAP SDK for React Native

                                                                                                                              The ASAP SDK for mobile provides easy access to help end-users of your React Native app. Using this SDK, you can create and customize a help widget that resides within your app and provides end-users with easy access to the Help Center services: • ...
                                                                                                                            • Introducing ASAP React Native SDK

                                                                                                                              Please note that if you are using an older version of ASAP, the help widgets will be read-only. To enable the new ASAP widgets on your app, use the latest ASAP React-Native SDK 3.0.0. You can use the ASAP React-Native SDK ...
                                                                                                                            • How to enable push notifications for the ASAP SDK via the React Native?

                                                                                                                              You can configure the ASAP help widget to send notifications to end-users when an agent responds via chat. Ensure that Push Notifications settings are configured in the ASAP help widget setup page in Zoho Desk. Ensure that push notifications are ...
                                                                                                                            • What are the configuration settings for the ASAP Flutter SDK?

                                                                                                                              ASAP configuration The ASAP SDK offers methods to show or hide specific features. For example, you can hide the Knowledge Base (KB) module by using the following method: import ...
                                                                                                                              Wherever you are is as good as
                                                                                                                              your workplace

                                                                                                                                Resources

                                                                                                                                Videos

                                                                                                                                Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                eBooks

                                                                                                                                Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                Webinars

                                                                                                                                Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                CRM Tips

                                                                                                                                Make the most of Zoho CRM with these useful tips.



                                                                                                                                  Zoho Show Resources