Basic Sample Graphs

These sample graphs show action flows of a simple voice intent, such as "Turn on air conditioner" or "Set the volume to 10 on Speaker".

Turn On Device

This sample graph will help you to turn on a device and provide a response based on the execution result. For example, "Turn on the Air Conditioner".

Turn On DeviceCopy

Set the Brightness of the Device to a Value

This sample graph will help you to validate the user input and set the brightness of the device. For example, "Set the brightness of the Light to 30". It first validates the input value using the Between node. If the value falls in the range of 0 to 100, then it sets the brightness using the Command node. Otherwise, the "Out of range" dialog is displayed without changing the brightness.

Set the Brightness of the Device to a ValueCopy

Increase the Brightness of the Device by a Value

This sample graph will help you to increase the brightness of the device by a provided value and it will add the input of the user also after validating it. For example, "Increase the brightness of the Light by 10". It first gets the current brightness of the device using the Attribute node. After adding the user input, it will validate the resulting value using the Between node. If the value falls in between the range of 0 to 100, then it will set the brightness using the the Command node. Otherwise, the "Out of range" dialog is shown without changing the brightness.

Increase the Brightness of the Device by a ValueCopy

Play the Next Song on the Device

This sample graph will help you to play the next song on the device. For example, "Play the next song on the Speaker".

Play the Next Song on the DeviceCopy

Tell Me the Fine Dust Level of the Device

This sample graph will help you to get the value of the dustLevel and the fineDustLevel of the device. For example, "Tell me the fine dust of the Air Monitor". It gets the value of the dustLevel and the fineDustLevel by using the Attribute node. It also gets the value of the locationName by using the Device Information node. Based on these values, the response dialog is constructed.

Tell Me the Fine Dust Level of the DeviceCopy

Change the Humidity of the Device

This sample graph will help you to change the humidity of the device based on the selection of the fan mode by the user. For example, "Change the humidity of Air Conditioner". It first gets the list of supportedAcFanModes and then prompts the user to select the mode using the Ask Selection node. It then sets the fan mode to the selected mode by the user with the Command node.

Change the Humidity of the DeviceCopy

Set the Device Fan Mode to Auto

This sample will help you to control a device based on its feature parameters (such as dustHealthConcern or air Quality) This graph will help you to set the fan mode of a device based on the dustHealthConcern value. For example, "Set the Air Purifier fan mode to auto". The graph first fetches dustHealthConcern of the device, then uses the Select node to maps its value to a fan mode of the device. This selected fan mode is then set using the Command node.

Set the Device Fan Mode to AutoCopy

Set the Volume of the Device to a Value

This sample graph will help you to set the volume of a device by a value, and ask for confirmation if the setting volume is too loud. For example, "Set the volume of the speaker to 30". If the input value is greater than the current value and falls in the range of 80 to 100, then the user is asked to confirm their choice using the Ask Confirmation node before setting it. Otherwise, the volume is set without any confirmation.

Set the Volume of the Device to a ValueCopy

Turn on TV Channel

This sample graph will help you to set a channel on the TV by name. For example, "Turn on CNN" or "Set TV channel to HBO".

Turn on TV ChannelCopy

Set a Cooling Setpoint With or Without Temperature Unit

This sample is for reading a default value from a device when users do not mention an important information. For example, users can say "Set the cooling temperature to 20 F" or "Set the cooling temperature to 20" with or without the temperature unit. If the unit is missing, the following graph reads the current unit from the device and use it as a default value.

Set a Cooling Setpoint With or Without Temperature UnitCopy