
setting.gradle, add the following content to dependencyResolutionManagement:repositories {google()mavenCentral()maven {url 'https://mirrors.tencent.com/repository/maven/thirdparty/'}gradlePluginPortal()}
implementation "com.tencentcloud.desk:aideskcustomer:$version"// The latest version can be viewed at https://central.sonatype.com/artifact/com.tencentcloud.desk/aideskcustomer/versions
settings.gradle file in your project to introduce the AI TDesk SDK related code.// Integrate smart customer service related codeinclude ':deskcore'include ':deskcommon'include ':deskchat'include ':deskcontact'include ':deskcustomerserviceplugin'include ':aideskcustomer'
implementation project(':aideskcustomer')
TencentAiDeskCustomerLoginConfig config = new TencentAiDeskCustomerLoginConfig(); // config is optionalTencentAiDeskCustomer.getInstance().login(context, sdkAppID, userID, userSign, config, new TencentAiDeskCustomerLoginCallback() {@Overridepublic void onSuccess() {System.out.println("login success");}@Overridepublic void onError(int code, String desc) {System.out.println("login failed"+code+","+desc);}});
startActivity(TencentAiDeskCustomer.getInstance().getTencentCloudCustomerChatIntent(context));
TencentAiDeskCustomer.setTheme(TencentAiDeskCustomerThemeConfig.DARK);
// When set to true, it will only display if not in manual service status and will auto-hide after manual service.// When set to true, never show the manual service status buttonTencentAiDeskCustomer.getInstance().setShowHumanService(true);
LinkedList<TencentAiDeskCustomerQuickMessageInfo> quickMessages = new LinkedList<TencentAiDeskCustomerQuickMessageInfo>();// for details, see Quick Phrases classTencentAiDeskCustomer.getInstance().setQuickMessages(quickMessages);
TencentAiDeskCustomerProductInfo info = new TencentAiDeskCustomerProductInfo(); // for details, see Product Information classTencentAiDeskCustomer.getInstance().setProductInfo(info);
// Set to English, TencentAiDeskCustomerLanguageConfig.zh is Chinese.TencentAiDeskCustomer.getInstance().setLanguage(v.getContext(), TencentAiDeskCustomerLanguageConfig.en);
Feedback