Last Updated on : 2025-07-30 07:30:21download
Tuya offers a comprehensive home control solution that supports multi-device connectivity and automation rule configuration. This topic describes how to create a home device control AI Agent on the Tuya Developer Platform, enabling intelligent control of smart home devices.
A home device control AI agent is a system that uses large AI models to remotely or automatically control home devices, such as lights, air conditioners, and curtains. The agent can operate devices via mobile apps or voice assistants, making people’s lives more convenient.
By following this guide, you will learn how to:
For more information about AI agent development, see AI Agent Development.
Click Create Agent.
Configure the agent information and click OK.
In the section 01 Model Configuration, select the AI model, plugin (select Device Control > Device Control Skills > Smart Home Device Control Tool), max context messages, audio, and dialog style.
Develop a prompt.
{tools}
and select the most suitable function and parameters. In device control scenarios, query device parameters and make sure they are fully matched. Then, commands can be sent.{tools}
.{{names}}
{{categories}}
{{attributes}}
{{rooms}}
{{sceneNames}}
{{latitude}}
{{longitude}}
{{currentTime}}
{{names}}
for device control. Do not include room names in device names.Click Release on the top right corner and deploy a version to the China Data Center.
Switch to the Western America Data Center and release a version.
Switch to the Central Europe Data Center and release a version.
In the Operation columm, choose … > Publish to publish the agent.
The agent can only be released after it is deployed in three data centers: China, Western America, and Central Europe.
Follow the steps below to link the specified PID with the agent.
You have now successfully created a Tuya-enabled home device control AI agent.
Hope this tutorial has been helpful to you. If you have any questions, please feel free to contact us.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback