微軟人工智能和對話平臺--知識商城體驗

總目錄地址: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

 

 

總結:這個平臺是要結合智能機器人的應用,開發者可能要做的是在上面完成相關規則定義,結合人工智能相關應用操做,實現智能化交互!

相關文章
相關標籤/搜索