微软人工智能和对话平台--知识商城体验

总目录地址:AI 系列 总目录 

需要最新源码,或技术提问,请加QQ群:538327407

我的各种github 开源项目和代码:https://github.com/linbin524

前言

 

        微软最新发布 知识商城了!这是一个人工智能和对话平台应用的场景。他可以让开发者带着想法 出做天马行空的创造性工作!

你只需要稍微动动手,如:拖拽板块,就可以做到极致对答、代码自动生成!

        想象一下,人工智能帮你写程序!code review 一下,你的机器人就可以增加新技能!太酷了!我们程序员是不是就要失业了!

 

实测

1、输入网址:knowledge.store,进入为微软登录界面进行登录

 

2、登录完成,进入主页面,选择画圈圈地方进入

 

 

 3、进入程序控制面板

 

 4、新建组织

 

 5、选择创建一个新的botlet

 

 6、填写相关信息,选择done

 

 

7、选择新创建QA,在面板中敲入如下代码,并保存

 

# =================================================================
# 2. Communicating with the User
# =================================================================

# Welcome to the Semantic Composition Language (SCL) Editor. The next 
# few lessons will provide an overview of the various commands 
# available, how to use them, and what they do.

# =================================================================
# SAY
#
# Use the SAY command to show text to the user. It behaves the same
# as the print statement in python
# 
# Syntax :
# SAY <text> [, ssml = <SSML Markup>]
# =================================================================

SAY "This is a message"

# =================================================================
# IMAGE
#
# Use the IMAGE command to show an image to the user.
#
# Syntax:
# IMAGE <URL> [, alt = <alternate image text>]
# =================================================================

IMAGE "https://hydra-media.cursecdn.com/overwatch.gamepedia.com/thumb/e/ec/Dorado-streets2.jpg/350px-Dorado-streets2.jpg"

# =================================================================
# GET_INPUT, USER_INPUT
#
# Use the GET_INPUT command to solicit a text input from the user.
# This is a blocking command, meaning that the system will NOT 
# execute other commands until the user has responded with text
#
# The response is placed in a system variable called USER_INPUT 
#
# Syntax:
# GET_INPUT [STORE <variable>]
# USER_INPUT
# =================================================================

SAY "Waiting for input"
GET_INPUT
SAY "The user returned ${USER_INPUT}"

# =================================================================
# CHOICES, USER_INPUT
#
# Use the CHOICES command to show the user an interactive menu.
# 
#
# The response is placed in a system variable called USER_INPUT 
#
# Syntax:
# CHOICES [title=<title>] [, image=<image_url>]
#   [text=<button text>] [, icon=<button icon>] [, id=<button id>]
# USER_INPUT
# =================================================================

CHOICES title = "Title", image = "https://hydra-media.cursecdn.com/overwatch.gamepedia.com/thumb/e/ec/Dorado-streets2.jpg/350px-Dorado-streets2.jpg"
  id = "choice_1", text = "Option 1", icon = "http://icons.iconarchive.com/icons/graphicloads/100-flat/256/home-icon.png"
  id = "choice_2", text = "Option 2"
  id = "choice_3", text = "Option 3"
SAY "The user returned ${USER_INPUT}"

# =================================================================
# To get a location from the user, use the following code. It uses
# commands that will be discussed in later lessons
# =================================================================

CALL "system.utility.get_user_location", "resolve", prompt = "Please provide your location for Tutorial 2"
SAY CALL_RESULT.result
 

 

选择右侧chat 面板进行测试

 

 8、模拟调试聊聊天

 

 9、模拟指令,测试操作,任意打入字符,会根据程序原定的控制流转。

10、完成上述操作,确认没有问题,就可以发布了,选择publish

 

 

总结:这个平台是要结合智能机器人的应用,开发者可能要作的是在上面完成相关规则定义,结合人工智能相关应用操作,实现智能化交互!

posted @ 2017-12-14 21:23  linbin524  阅读(2066)  评论(1编辑  收藏  举报