【问题标题】:IBM Watson Assistant: How can I send an image as chatbot responseIBM Watson Assistant:如何将图像作为聊天机器人响应发送
【发布时间】:2019-12-03 08:46:34
【问题描述】:

我想附加一张图片作为 IBM Watson Assistant 响应。

它必须放在公共存储库中,但我想知道是否可以将它放在 IBM Cloud Object Storage 上,因为我有我的图像。

如果我不能让它成为可能。如何在 watson 助手中发送图像作为响应?我在documentation 中找不到任何内容。

【问题讨论】:

    标签: ibm-cloud watson-assistant ibm-cloud-storage


    【解决方案1】:

    您可以定义image responses in Watson Assistant。这可以通过对话框生成器或使用 JSON 响应编辑器来完成。使用对话框生成器时,there is a form for the image title, description and the URL

    要从 Watson Assistant 中访问 IBM Cloud Object Storage 上的图像并显示它,该图像需要可公开访问。您可以enable public access on the entire bucket or on individual storage objects。第一个可能是安全问题,后者是更多的工作。

    图像的 URL 将由公共端点、存储桶和图像名称组成,例如 https://s3.eu.cloud-object-storage.appdomain.cloud/your-bucket-name/this-is-the-image.png

    这是在我的测试中它在 试用 窗口中的外观,其中图像来自我的公共 IBM COS 存储桶:

    【讨论】:

    猜你喜欢
    • 2019-02-15
    • 1970-01-01
    • 1970-01-01
    • 2019-08-31
    • 2019-01-13
    • 1970-01-01
    • 2019-11-24
    • 2019-08-05
    • 2019-02-22
    相关资源
    最近更新 更多