Introduction
  • 14 Apr 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Introduction

  • Dark
    Light
  • PDF

Article Summary

Description

The ai object provides a way for scripts to deliver insights to the user experience running your app. This object also provides a way to run machine learning (ML) models and access their results in realtime.


Properties

Below is a list of properties supported by this object.

NameDescriptionUWPWebAvatars
---------------

Functions

Below is a list of functions supported by this object.

NameDescriptionUWPWebAvatars
askAsk ChatGPT a question and get an answerYesYesYes
NameDescriptionUWPWebAvatars
insights.messageToggles a message insightYesYesNo
insights.plotToggles a plot visualization insightYesYesNo
insights.clearRemove insights (all or by category)YesYesNo
NameDescriptionUWPWebAvatars
models.installInstalls a machine learning (ML) modelYesYesNo
models.readyReturns whether or not a model is installed and ready for useYesYesNo
models.runRuns a machine learning (ML) model and returns the resultsYesYesYes

Remarks

Use this graph object when you want to interact with external intelligence resources such as machine learning (ML) models.

This object can also be used to communicate with intelligence features within the host product, when available.


What's Next