9.3.使用方式
1.功能说明:AIHelp客服系统
接口形式:跳转至机器人客服
- (void)showAIHelpSupportWithEntry:(NSString *_Nullable)entry
entranceId:(NSString *_Nullable)entranceId
andIsVip:(BOOL)isVip;
接口参数:
entry:研发调用该事件位置(必须)
entranceId:在 AIHelp 后台配置的自定义入口 ID,联系客服人员获取(必须)
isVip:是否为vip客服,为YES显示右上角人工客服,为NO,用户只能通过故事线以及表单来提交客诉(必须)
接口示例:
[[RNSDKApi sharedInstance] showAIHelpSupportWithEntry:@"aihelp_support" entranceId:@"E001" andIsVip:YES];
切换用户:
功能说明:
研发方可以上传玩家信息到aihelp后台。建议在上报角色后上传,当然别的地方需要的话也可以
- (void)updateUserInfoToAIHelpWithUserId:(NSString *_Nullable)userId
userName:(NSString *_Nullable)userName
userTags:(NSArray *_Nullable)userTags
userServiceId:(NSString *_Nullable)servieceId
customData:(NSDictionary *_Nullable)customData;
接口参数:
userId: 用户id(必须)
userName: 角色名称(必须)
userServiceId: 区服id(必须)
userTags: 用户标签(必须),默认为空字符串
customData: 用户信息附加字段(必须),默认为空字符串
接口示例:
[[RNSDKApi sharedInstance] updateUserInfoToAIHelpWithUserId:nil
userName:nil
userTags:nil
userServiceId:nil
customData:@{
@"r2uid":@"xxxx",//必传
@"deviceId":@"xxx",//必传
@"vip":@"v5",//必传(vip等级根据实际情况定义)
@"level":@"xx"//后面字段根据实际需求随便加
}];
Last updated
Was this helpful?