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


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

 

 

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM