private void Awake()
 {
     AIHelpSupport.Init(appKey, domain, appId, "en");
     AIHelpSupport.SetOnAIHelpInitializedCallback(OnAIHelpInitializedCallback);
     AIHelpSupport.SetOnSpecificFormSubmittedCallback(OnSpecificFormSubmittedCallback);
     AIHelpSupport.SetOnAIHelpSessionOpenCallback(OnOpenCallBack);
     AIHelpSupport.SetOnAIHelpSessionCloseCallback(OnCloseCallBack);
 }
 void allSectionClick()
 {
     FaqConfig.Builder          faqBuilder          = new FaqConfig.Builder();
     ConversationConfig.Builder conversationBuilder = new ConversationConfig.Builder();
     faqBuilder.SetShowConversationMoment(ConversationMoment.ALWAYS);
     conversationBuilder.SetAlwaysShowHumanSupportButtonInBotPage(true);
     faqBuilder.SetConversationConfig(conversationBuilder.build());
     AIHelpSupport.ShowAllFAQSections(faqBuilder.build());
 }
Ejemplo n.º 3
0
    void robotClick()
    {
        ConversationConfig config = new ConversationConfig.Builder()
                                    .SetAlwaysShowHumanSupportButtonInBotPage(true)
                                    .SetConversationIntent(ConversationIntent.BOT_SUPPORT)
                                    .SetStoryNode("rate message")
                                    .build();

        AIHelpSupport.ShowConversation(config);
    }
Ejemplo n.º 4
0
 private void Awake()
 {
     AIHelpSupport.AdditionalSupportFor(PublishCountryOrRegion.IN);
     AIHelpSupport.enableLogging(true);
     AIHelpSupport.Init(appKey, domain, appId, "en");
     AIHelpSupport.SetOnAIHelpInitializedCallback(OnAIHelpInitializedCallback);
     AIHelpSupport.SetOnSpecificFormSubmittedCallback(OnSpecificFormSubmittedCallback);
     AIHelpSupport.SetOnOperationUnreadChangedCallback(OnOperationUnreadChangedCallback);
     //AIHelpSupport.SetOnAIHelpSessionOpenCallback(OnOpenCallBack);
     //AIHelpSupport.SetOnAIHelpSessionCloseCallback(OnCloseCallBack);
 }
    void updateUserInfoClick()
    {
        UserConfig config = new UserConfig.Builder()
                            .SetUserId("123456789")
                            .SetUserName("AIHelp")
                            .SetUserTags("VIP1")
                            .SetCustomData("")
                            .build();

        AIHelpSupport.UpdateUserInfo(config);
    }
    void manualClick()
    {
        ConversationConfig config = new ConversationConfig.Builder()
                                    .setWelcomeMessage("You can configure special welcome message for your end users at here.")
                                    .SetAlwaysShowHumanSupportButtonInBotPage(false)
                                    .SetConversationIntent(ConversationIntent.HUMAN_SUPPORT)
                                    .SetStoryNode("")
                                    .build();

        AIHelpSupport.ShowConversation();
    }
Ejemplo n.º 7
0
    void updateUserInfoClick()
    {
        UserConfig config = new UserConfig.Builder()
                            .SetUserId("123456789")
                            .SetUserName("AIHelp")
                            .SetUserTags("VIP1")
                            .SetCustomData("{''}")
                            .SetPushToken("pushToken")
                            .SetPushPlatform(PushPlatform.JIGUANG)
                            .SetSyncCrmInfo(true)
                            .build();

        AIHelpSupport.UpdateUserInfo(config);
    }
Ejemplo n.º 8
0
 void runAccelerationClick()
 {
     AIHelpSupport.AdditionalSupportFor(PublishCountryOrRegion.CN);
 }
Ejemplo n.º 9
0
 void showUrlClick()
 {
     AIHelpSupport.ShowUrl("https://www.baidu.com");
 }
Ejemplo n.º 10
0
 void enableLoggingClick()
 {
     AIHelpSupport.enableLogging(true);
 }
Ejemplo n.º 11
0
 void upLoadLogClick()
 {
     AIHelpSupport.SetUploadLogPath("YOUR LOG PATH");
 }
Ejemplo n.º 12
0
 void netWorkCheckClick()
 {
     AIHelpSupport.SetNetworkCheckHostAddress("aihelp.net");
 }
Ejemplo n.º 13
0
 void pushClick()
 {
     AIHelpSupport.SetPushTokenAndPlatform("TOKEN", PushPlatform.FIREBASE);
 }
Ejemplo n.º 14
0
 void unreadMeassageClick()
 {
     AIHelpSupport.StartUnreadMessageCountPolling(OnMessageCountArrivedCallback);
 }
Ejemplo n.º 15
0
 void isHelpShowClick()
 {
     AIHelpSupport.IsAIHelpShowing();
 }
Ejemplo n.º 16
0
 void updateSDKLanguageClick()
 {
     AIHelpSupport.UpdateSDKLanguage("en");
 }
Ejemplo n.º 17
0
 void singleFAQClick()
 {
     AIHelpSupport.ShowSingleFAQ("YOUR FAQID");
 }
Ejemplo n.º 18
0
 void singleSectionClick()
 {
     AIHelpSupport.ShowFAQSection("YOUR SECTIONID");
 }
Ejemplo n.º 19
0
 void SDKVersionClick()
 {
     AIHelpSupport.GetSDKVersion();
 }
Ejemplo n.º 20
0
 void runAccelerationClick()
 {
     AIHelpSupport.RunAccelerationForChina();
 }