简体   繁体   English

IBM Cloud Watson Assistant:如何获取工作空间的 ID

[英]IBM Cloud Watson Assistant: How to get the ID of a workspace

I made a chatbot using IBM Cloud Watson Assistant and I need to use it in my Android applications.我使用 IBM Cloud Watson Assistant 创建了一个聊天机器人,我需要在我的 Android 应用程序中使用它。 This my config.xml code :这是我的config.xml代码:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- Watson Conversation Service Credentials -->
    <string name="workspace_id">???</string>
    <string name="conversation_username">2m5tAP3W_ELNzcKlc4B5mRN6R-QXtF1C9zS22XzYXYbA</string>
    <string name="conversation_password">2m5tAP3W_ELNzcKlc4B5mRN6R-QXtF1C9zS22XzYXYbA</string>

    <!--Watson Speech-To-Text Service Credentials-->
    <string name="STT_username">yP4_u_mm3mhVNn9zcgIMFakfbcUO2Q4L5cxbLhYpn8WN</string>
    <string name="STT_password">yP4_u_mm3mhVNn9zcgIMFakfbcUO2Q4L5cxbLhYpn8WN</string>

    <!--Watson Text-To-Speech Service Credentials-->
    <string name="TTS_username">-t1Rljl4Mu1pdno09T2OXeMnQOyPPBgrEDieZSwsVzJX</string>
    <string name="TTS_password">-t1Rljl4Mu1pdno09T2OXeMnQOyPPBgrEDieZSwsVzJX</string>

</resources>

I know that the API key is used instead of the userName and password in the services.我知道在服务中使用 API 密钥而不是用户名和密码。 My problem is that I can't find the workspace ID of my chatbot.我的问题是我找不到我的聊天机器人的工作区 ID。 I searched a lot but I can't find it.我搜索了很多,但找不到。

First of all, Workspaces in IBM Watson Assistant are now called Skills .首先,IBM Watson Assistant 中的工作区现在称为Skills So, once you create a Watson Assistant service (under AI in Catalog) on IBM Cloud.因此,一旦您在 IBM Cloud 上创建了 Watson Assistant 服务(在目录中的 AI 下)。

  • Click on Launch Tool点击启动工具
  • Create a New Skill under Skills Tab.在“技能”选项卡下创建新技能。
  • Click on the three vertical dots next to the Skill you just created单击您刚刚创建的技能旁边的三个垂直点
  • Click View API Details单击查看 API 详细信息在此处输入图片说明
  • You should see the Workspace ID as the third entry under Skill Details.您应该看到工作区 ID 作为技能详细信息下的第三个条目。

For Assistant ID,对于 Google 助理 ID,

  • Click on the action menu (three vertical dots) next to your Assistant under Assistants section.单击助手部分下助手旁边的操作菜单(三个垂直点)。
  • Click on Settings to see the Assistant settings page点击设置查看助手设置页面
  • On the left pane, click on API Details在左侧窗格中,单击API 详细信息
  • Copy the Assistant ID复制助理 ID

Update: 26-March-2021更新:2021 年 3 月 26 日

  • Workspaces are now Skills工作区现在是技能
  • You will use Skill ID in-place of Workspace ID您将使用技能 ID 代替工作区 ID

To find the Skill ID and the API Key,要查找技能 ID 和 API 密钥,

  • Once you launch Watson Assistant, on the left pane click on Skills and follow the steps mentioned above.启动 Watson Assistant 后,在左侧窗格中单击Skills并按照上述步骤操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM