微软人工智能和对话平台--知识商城体验
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
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
相关文章推荐
- 微软人工智能和对话平台--知识商城体验
- 体验下一代微软平台开发Visual Studio 2005(2)
- 微软YY公开课[《微软中国云计算Azure平台体验与新企业架构设计》 周六晚9点
- 微软YY公开课[《微软中国云计算Azure平台体验与新企业架构设计》 周六晚9点
- 体验下一代微软平台开发Visual Studio 2005
- 体验下一代微软平台开发Visual Studio 2005(1)
- 微软人工智能平台开源:利用《我的世界》测试AI软件
- 下一版Win10,微软人工智能平台Windows ML要和你见面了
- 体验下一代微软平台开发Visual Studio 2005(3)
- 解读 --- 基于微软企业商务应用平台 (Microsoft Dynamics 365) 之上的人工智能 (AI) 解决方案
- 浅析微软大数据平台HDInsight (2) 分布式文件系统(上)
- Intergraph G/Technology平台上的一些知识积累
- 微软CodePlex平台开源项目TOP10
- 清华大学开源OpenKE:知识表示学习平台
- .NET简谈互操作(五:基础知识之提升平台调用性能)
- 领域驱动设计(DDD)在微软平台的设计架构实现
- 体验嘉为微软Active Directory快速恢复课程
- Android开发平台搭建及基础知识
- 参观微软新产品 体验微软公有云Windows Azure