如何通过 flask-assistant 和 dialogflow 的集成将图像发送到 skype

how to send imges to skype with integration of flask-assistant and dialogflow

我目前在 Dialogflow 和 flask 的帮助下开发 Skypebot-assistant.I 我在通过 flask 将图像发送到 Skype 时遇到了麻烦 assistant.It 通过 dialogflow 可以正常工作,但它会不适用于 Flask 助手。 在 Dialogflow 中,我创建了一个 'images' 的意图和 'show' 的用户响应。但在结果中它不会显示图像,只显示文本 'pythonlogo'。 我正在使用 resp.card() 方法发送图像:

@assist.action('images')
def show_card():
resp = ask("python")
resp.card(text="Python logo",
          title="logo",
          img_url='http://mherman.org/presentations/flask- 
                        kubernetes/images/flask-logo.png'
          )
return resp

服务器端的响应只显示文本,不显示图片

2019-03-13 17:50:40:flask_assistant:INFO: Request: {
   " Incoming Contexts": [],
   "Intent": "images",
   "Missing Params": [],
    "Received Params": {},
   "Source": "skype"
}

在 Skypebot 中,它将仅显示文本 "python logo",但不会通过图像 url.

获取任何图像

拥有图像、卡片等丰富的对话可能仅限于 Google 通过 Flask 的助手 assistant.Wait 直到升级