什麼是自訂決策服務?What is Custom Decision Service?

在典型的 Web 或行動應用程式中,前端頁面會連結至數篇文章或其他類型的內容。In a typical web or mobile application, a front page links to several articles or other types of content. 前端頁面載入時,可能會要求自訂決策服務對該前端頁面上包含的文章進行排名。As the front page loads, it could request the Custom Decision Service to rank articles included on that front page. 因此,當使用者點選某篇文章時,第二個要求將可傳送至自訂決策服務,以記錄該使用者決策的結果。So, when a user chooses an article by clicking on it, a second request could be sent to the Custom Decision Service, which will log the outcome of that user decision.

您只需要內容的 RSS 摘要,並將數行 JavaScript 加入至您的應用程式,即可輕鬆使用自訂決策服務。Custom Decision Service is easy to use, as it requires only an RSS feed for your content and a few lines of JavaScript to be added into your application.

自訂決策服務會將您的內容轉換為機器學習的特徵。Custom Decision Service converts your content into features for machine learning. 系統會使用這些特徵,就文字、影像、視訊和整體情緒等方面了解您的內容。The system uses these features to understand your content in terms of its text, images, videos, and overall sentiment. 它也會使用其他數種 Microsoft 認知服務,像是實體連結文字分析情緒電腦視覺等。It uses several other Microsoft Cognitive Services, like Entity Linking, Text Analytics, Emotion, and Computer Vision.

自訂決策服務的一些常見使用案例包括:Some common-use cases for Custom Decision Service include:

  • 個人化新聞網站上的文章Personalizing articles on a news website
  • 個人化媒體入口網站上的視訊內容Personalizing video content on a media portal
  • 最佳化廣告版位或廣告所導向的網頁Optimizing ad placements or web pages that the ad directs to
  • 排名購物網站上的推薦項目。Ranking recommended items on a shopping website.

自訂決策服務目前為免費公開預覽版Custom Decision Service is currently in free public preview. 它可以個人化網站或應用程式上的文章清單。It can personalize a list of articles on a website or an app. 英文內容的特徵擷取功效最佳。The feature extraction works best for English language content. 對於其他語言則提供有限的功能,例如西班牙文、法文、德文、葡萄牙文和日文。Limited functionality is offered for other languages, like Spanish, French, German, Portuguese, and Japanese. 本文件將在有新功能可供使用時修訂。This documentation will be revised as new functionality becomes available.

自訂決策服務適用於不在內容個人化區域中的應用程式。Custom Decision Service can be used in applications that are not in the content personalization domain. 這些應用程式可能適合使用自訂預覽。These applications might be a good fit for a custom preview. 與我們連絡以了解詳情。Contact us to learn more.

API 使用模式API usage modes

自訂決策服務可套用至網頁與行動應用程式。Custom Decision Service can be applied to both webpages and mobile apps. API 可從瀏覽器或應用程式呼叫。The APIs can be called from either a browser or an app. 兩者的 API 使用方式很類似,但在某些方面有些許不同。The API usage is similar on both, but some of the details are different.

詞彙解釋Glossary of terms

數個經常出現在本文件中的詞彙包括:Several terms frequently occur in this documentation:

  • 動作集:自訂決策服務要排名的內容項目集合。Action set: The set of content items for Custom Decision Service to rank. 此集合可指定為 RSSAtom 端點。This set can be specified as an RSS or Atom endpoint.
  • 排名:對自訂決策服務的每個要求會指定一或多個動作集。Ranking: Each request to Custom Decision Service specifies one or more action sets. 系統會從這些集合中選擇所有內容選項,並依排名順序加以傳回,以進行回應。The system responds by picking all the content options from these sets and returns them in ranked order.
  • 回呼函式:此函式 (由您指定) 會呈現您 UI 中的內容。Callback function: This function, which you specify, renders the content in your UI. 內容會依據自訂決策服務所傳回的排名順序來排序。The content is ordered by the rank ordering returned by Custom Decision Service.
  • 報酬:此量值代表使用者對呈現內容的回應程度。Reward: A measure of how the user responded to the rendered content. 自訂決策服務會藉由點擊次數來測量使用者回應。Custom Decision Service measures user response by using clicks. 點擊次數會透過在您的應用程式中插入的自訂程式碼回報給系統。The clicks are reported to the system by using custom code inserted in your application.

後續步驟Next steps