diff --git a/en/usage/platforms/wecom/wecomcs.mdx b/en/usage/platforms/wecom/wecomcs.mdx index 55a3f3911..24ffa371b 100644 --- a/en/usage/platforms/wecom/wecomcs.mdx +++ b/en/usage/platforms/wecom/wecomcs.mdx @@ -12,14 +12,20 @@ title: "Deploy WeCom Customer Service" ![Effect Demonstration](/images/zh/deploy/bots/wecom/wecomcs/wecomcs_01.jpg) -## Connect to LangBot +## Deploy WeCom Customer Service -![Connect to LangBot](/images/zh/deploy/bots/wecom/wecomcs/connect_to_langbot.png) +#### Configure WeCom Customer Service Page -The subsequent configuration method and configuration items are the same as [WeCom Internal Application](wecom), except that `contacts_secret` is not required. +Open the [WeCom Customer Service Admin](https://kf.weixin.qq.com/kf), log in, click on `Enterprise Information`, and obtain the `Enterprise ID`. -## Notes +![Home Page](/images/zh/deploy/bots/wecom/wecomcs/wecomcs_03.png) -1. Be sure to follow the steps in the official WeCom documentation above and add the customer service account to `API Management`. -2. The steps are the same as for WeCom internal applications, don't miss anything. You also need to save the callback address, because essentially it's just adding other permissions to the WeCom internal application. -3. LangBot will not read sensitive information such as chat records and enterprise qualification content. +Save the Enterprise ID, then click on `Developer Settings`, click on `Start Using`, and randomly generate a Token and EncodingAESKey. Fill these three items into the LangBot configuration page. The Secret can be filled in arbitrarily, as shown below: + +![connect](/images/zh/deploy/bots/wecom/wecomcs/connect_to_langbot.png) + +Click Submit on the LangBot configuration page to enable the robot, copy the Webhook callback address, and fill it into the URL in the WeCom Customer Service admin backend (remember to change it to your own IP or domain name), then click Save. If it saves successfully, it means the connection is working. + +Copy the Secret from the page, then open the newly created LangBot WeCom Customer Service robot, fill in the new Secret, and restart. + +Go back to the WeCom Customer Service configuration page, click on Customer Service Accounts, create a customer service account, and you can start using it. diff --git a/images/zh/deploy/bots/wecom/wecomcs/wecomcs_03.png b/images/zh/deploy/bots/wecom/wecomcs/wecomcs_03.png new file mode 100644 index 000000000..73156ca04 Binary files /dev/null and b/images/zh/deploy/bots/wecom/wecomcs/wecomcs_03.png differ diff --git a/ja/usage/platforms/wecom/wecomcs.mdx b/ja/usage/platforms/wecom/wecomcs.mdx index 1104be262..4acf0a9f9 100644 --- a/ja/usage/platforms/wecom/wecomcs.mdx +++ b/ja/usage/platforms/wecom/wecomcs.mdx @@ -1,25 +1,31 @@ --- -title: "WeCom Customer Service のデプロイ" +title: "企業微信カスタマーサービスのデプロイ" --- - + -**WeCom カスタマーサービスアカウントのデプロイには企業資格が必要です**。[WeCom Customer Service 統合ガイド](https://developer.work.weixin.qq.com/document/path/94638)を確認し、このドキュメントに従って対応する企業資格証明書を提供してください。 +**企業微信カスタマーサービスアカウントのデプロイには企業資格が必要です**。[企業微信カスタマーサービス統合ガイド](https://developer.work.weixin.qq.com/document/path/94638)を確認し、このドキュメントに従って対応する企業資格証明書を提供してください。 ## 効果のデモンストレーション -![Effect Demonstration](/images/zh/deploy/bots/wecom/wecomcs/wecomcs_01.jpg) +![効果のデモンストレーション](/images/zh/deploy/bots/wecom/wecomcs/wecomcs_01.jpg) -## LangBot に接続 +## 企業微信カスタマーサービスをデプロイする -![Connect to LangBot](/images/zh/deploy/bots/wecom/wecomcs/connect_to_langbot.png) +#### 企業微信カスタマーサービスページの構成 -後続の設定方法と設定項目は [WeCom 内部アプリケーション](wecom)と同じですが、`contacts_secret` は必要ありません。 +[企業微信カスタマーサービス管理画面](https://kf.weixin.qq.com/kf)を開き、ログイン後、「企業情報」をクリックし、「企業ID」を取得します。 -## 注意事項 +![ホーム画面](/images/zh/deploy/bots/wecom/wecomcs/wecomcs_03.png) -1. 上記の WeCom 公式ドキュメントの手順に必ず従い、カスタマーサービスアカウントを「API 管理」に追加してください。 -2. 手順は WeCom 内部アプリケーションと同じです。何も見逃さないでください。基本的には WeCom 内部アプリケーションに他の権限を追加するだけなので、コールバックアドレスも保存する必要があります。 -3. LangBot は、チャット記録や企業資格コンテンツなどの機密情報を読み取りません。 +企業IDを保存したら、「開発構成」をクリックし、「開始使用」をクリックして、Token と EncodingAESKey をランダムに生成します。この3つの項目を LangBot 設定ページに入力します。Secret は適当に填写如下图所示: + +![connect](/images/zh/deploy/bots/wecom/wecomcs/connect_to_langbot.png) + +LangBot 設定ページの提交をクリックして 로봇を有効化し、Webhook コールバックアドレスをコピーし、企業微信カスタマーサービス管理画面の URL に入力します(自分の IP またはドメインに変更することを忘れないでください)。保存をクリックし、成功すれば正常に接続できることを意味します。 + +ページの Secret をコピーし、新しく作成した LangBot 企業微信カスタマーサービス 로봇を開き、新しい Secret を入力して再起動します。 + +企業微信カスタマーサービス設定画面に戻り、カスタマーサービスアカウントをクリックしてカスタマーサービスアカウントを作成すれば、使用できます。 diff --git a/zh/usage/platforms/wecom/wecomcs.mdx b/zh/usage/platforms/wecom/wecomcs.mdx index 3202acceb..e3cc7ceb8 100644 --- a/zh/usage/platforms/wecom/wecomcs.mdx +++ b/zh/usage/platforms/wecom/wecomcs.mdx @@ -12,14 +12,21 @@ title: "部署企业微信客服" ![效果图](/images/zh/deploy/bots/wecom/wecomcs/wecomcs_01.jpg) -## 对接 LangBot +## 部署企业微信客服 -![对接 LangBot](/images/zh/deploy/bots/wecom/wecomcs/connect_to_langbot.png) +#### 配置企业微信客服页面 -后续的配置方式和配置项和[企业微信内部应用](wecom)一样,只是不需要 `contacts_secret`。 +打开[企业微信客服后台](https://kf.weixin.qq.com/kf),登录之后进入,点击`企业信息`,获取`企业ID`。 -## 注意事项 +![主页](/images/zh/deploy/bots/wecom/wecomcs/wecomcs_03.png) + +保存企业ID,然后点击`开发配置`,点击`开始使用`,进入之后随机获取 Token,EncodingAESKey,随后将此三项填写入 LangBot 配置页中,Secret 随便填写,如图: + +![connect](/images/zh/deploy/bots/wecom/wecomcs/connect_to_langbot.png) + +点击 LangBot 配置页中的提交,启用机器人,复制 WebHook回调地址,填写入企业微信客服后台中的 URl (记得改成自己的 ip 或者域名),点击保存,如果可以保存成功,那么说明可以正常连接。 + +复制页面中的 Secret,然后打开新建好的 LangBot 企业微信客服机器人,填写入新的 Secret,重新启动。 + +回到企业微信客服配置页面,点击客服账号,创建客服账号,即可使用。 -1. 一定要按照上文的企业微信官方文档步骤走,将客服账号添加入 `api 管理`中。 -2. 步骤与企业微信内部应用一样,不要漏看,同样需要保存回调地址,因为本质上只是在企业微信内部应用上增加了其他的权限。 -3. LangBot 不会读取敏感信息如聊天记录和企业资质内容。