您的位置:首页 > 大数据 > 人工智能

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

2017-12-15 00:00 543 查看
前言         微软最新发布 知识商城了!这是一个人工智能和对话平台应用的场景。他可以让开发者带着想法 出做天马行空的创造性工作!你只需要稍微动动手,如:拖拽板块,就可以做到极致对答、代码自动生成!        想象一下,人工智能帮你写程序!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
原文:http://www.cnblogs.com/linbin524/p/8040052.html
.NET社区新闻,深度好文,欢迎访问公众号文章汇总 http://www.csharpkit.com 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: