In this help article, we will learn how to display the individual help center services as modules on the ASAP help Widget. The modules can be viewed based on their default configuration and the settings configured in your Zoho Desk portal. It's important to note that the default configuration of modules may differ depending on the edition of your Zoho Desk account.
The configuration of the help center components is based on your Zoho Desk Help Center settings.
You need to include the relevant code snippets to display the available components in your application.
Home Screen
To display the ASAP SDK home screen, use the following code snippet:
- import 'package:zohodesk_portal_core/zohodesk_portal_core.dart' show ZohodeskPortalCore;
ZohodeskPortalCore.showHome();
Knowledge Base Module
To display the Knowledge Base screen, use the following code snippet:
import 'package:zohodesk_portal_kb/zohodesk_portal_kb.dart' show ZohodeskPortalKb;
ZohodeskPortalKb.show();
To display the Community screen, use the following code snippet:
import 'package:zohodesk_portal_community/zohodesk_portal_community.dart' show ZohodeskPortalCommunity;
ZohodeskPortalCommunity.show();
To display the Add Topic screen, use the following code snippet:
import 'package:zohodesk_portal_community/zohodesk_portal_community.dart' show ZohodeskPortalCommunity;
ZohodeskPortalCommunity.showTopicForm();
Tickets Module
To display the Tickets List screen, use the following code snippet:
import 'package:zohodesk_portal_ticket/zohodesk_portal_ticket.dart' show ZohodeskPortalTicket;
ZohodeskPortalTicket.show();
To display the Add Ticket screen, use the following code snippet:
import 'package:zohodesk_portal_ticket/zohodesk_portal_ticket.dart' show ZohodeskPortalSubmitTicket;
ZohodeskPortalSubmitTicket.show();
SalesIQ Chat Module
Chat provides a real-time communication channel for end-users to interact with a customer support agents.
The following method displays the SalesIQ chat module:
import 'package:zohodesk_portal_chat/zohodesk_portal_chat.dart' show ZDPortalChat;
ZDPortalChat.show();
Guided Conversations Module
To display GC or Answer Bot, use the following code snippet:
import 'package:zohodesk_portal_gc/zohodesk_portal_gc.dart' show ZDPortalGC;
ZDPortalGC.show();
Code is standard for both iOS and Android platforms.
Session Variables
These
variables are dynamically retrieved during the bot conversations. These
variables are org-specific and accessible across GC flows.
You can perform these actions with the session variable as mentioned:
Set Session Variable:
- import 'package:zohodesk_portal_gc/zohodesk_portal_gc.dart' show ZDPortalGC;
List<Map<String, String>> sessionVariable = [{"name": "YOUR VARIABLE NAME", "value" : "YOUR VARIABLE VALUE"}, {"name": "YOUR VARIABLE NAME", "value": "YOUR VARIABLE VALUE" }];
ZDPortalGC.setGCSessionVariable(sessionVariable);
Update Session Variable:
- import 'package:zohodesk_portal_gc/zohodesk_portal_gc.dart' show ZDPortalGC;
List<Map<String, String>> sessionVariable = [{"name": "YOUR VARIABLE NAME", "value" : "YOUR VARIABLE VALUE"}, {"name": "YOUR VARIABLE NAME", "value": "YOUR VARIABLE VALUE" }];
ZDPortalGC.updateGCSessionVariable(sessionVariable);
Answer Bot Module
Answer Bot helps end-users find answers from a bot trained on the available articles in the portal's KB module.
The following methods display the Answer Bot:
- import 'package:zohodesk_portal_gc/zohodesk_portal_gc.dart' show ZDPortalGC;
ZDPortalGC.showAnswerBot();
Code is standard for both iOS and Android platforms. Business Messaging Module
Business Messaging helps end-users chat with agents directly or with a guided conversation flow.
The following methods display the Business Messaging:
- import 'package:zohodesk_portal_gc/zohodesk_portal_gc.dart' show ZDPortalGC;
ZDPortalGC.showBM();
Code is standard for both iOS and Android platforms.
You can perform these actions with the session variable as mentioned:
Set Session Variables
- import 'package:zohodesk_portal_gc/zohodesk_portal_gc.dart' show ZDPortalGC;
List<Map<String, String>> sessionVariable = [{"name": "YOUR VARIABLE NAME", "value" : "YOUR VARIABLE VALUE"}, {"name": "YOUR VARIABLE NAME", "value": "YOUR VARIABLE VALUE" }];
ZDPortalGC.setBMSessionVariable(sessionVariable);
Update Session Variable:
- import 'package:zohodesk_portal_gc/zohodesk_portal_gc.dart' show ZDPortalGC;
List<Map<String, String>> sessionVariable = [{"name": "YOUR VARIABLE NAME", "value" : "YOUR VARIABLE VALUE"}, {"name": "YOUR VARIABLE NAME", "value": "YOUR VARIABLE VALUE" }];
ZDPortalGC.updateBMSessionVariable(sessionVariable);