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

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

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

个人各类github 开源项目和代码:https://github.com/linbin524git

前言程序员

 

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

你只须要稍微动动手,如:拖拽板块,就能够作到极致对答、代码自动生成!less

        想象一下,人工智能帮你写程序!code review 一下,你的机器人就能够增长新技能!太酷了!咱们程序员是否是就要失业了!ide

 

实测post

一、输入网址:knowledge.store,进入为微软登陆界面进行登陆测试

 

二、登陆完成,进入主页面,选择画圈圈地方进入人工智能

 

 

 三、进入程序控制面板

 

 四、新建组织

 

 五、选择建立一个新的botlet

 

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

 

 

七、选择新建立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 面板进行测试

 

 八、模拟调试聊聊天

 

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

十、完成上述操做,确认没有问题,就能够发布了,选择publish

 

 

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

相关文章
相关标签/搜索