as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
Get started
Connect with Matter
Alexa Connect Kit
Add-ons
Certify
Resources
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

Publish a Device with Custom Capabilities


After you build and test your custom capabilities, use the Smart Home AI Toolkit to publish your device. To publish, generate the UI for the Alexa app, and then submit the device for Amazon review.

Prerequisites

Before you publish, confirm the following items:

  • Every custom capability has a current utterance dataset and a passing batch evaluation.
  • The full device utterance dataset exists, and the batch evaluation passed.

For details about testing requirements, see Test Custom Capabilities. To review the capabilities included in your device, see View the device.

Generate the UI

In this step, you build an interactive UI prototype that Alexa displays in the Alexa app and on Alexa-enabled devices with a screen when the customer interacts with your device. The AI-generated UI gives customers a tap interface to control the device. To enable you to preview real device values in the generated UI, you can simulate discovery, state report, directive, and error responses.

To generate the Alexa app UI for your device

  1. On the menu, choose UI.
  2. To render the UI, choose Generate UI.
  3. Review the generated UI to make sure it reflects the capabilities of your device, including pre-built and custom capabilities.
  4. To make changes to the UI, chat with the agent to add, update, remove, or move UI elements.
  5. To view the rendered UI on receipt of responses from your add-on, open the following tabs:
    • Discovery response – To edit the discovery response, chat with the agent, or update the response directly in the viewer, and then choose Apply.
    • State Report – To change property values, chat with the agent, or update the context directly in the viewer, and then choose Apply.
    • Directive response – To preview UI changes after the customer asks Alexa to control the device, under Directive, open the drop-down, select the directive, and then choose Confirmation or Error.
  6. To review UI changes, open the UI tab.
  7. If you change the definition of any custom capabilities associated with the device, or if you add or remove pre-built capabilities, to update the UI, choose Regenerate.

Publish the device

To include the custom capabilities in your smart home add-on, you publish the device.

A device is ready to publish after it meets the following criteria:

  • Every custom capability has a current evaluation that has passed.
  • A full device utterance dataset exists, and the batch evaluation passed.
  • A device UI exists.

To publish a device

  1. On the menu, choose Deploy.
  2. Review the Deployment readiness checklist. If any items aren't complete, resolve them as follows:
    • If the utterance dataset for a custom capability isn't up to date, return to Test Custom Capabilities to regenerate the dataset.
    • If the utterance evaluation fails for a custom capability, return to Build Custom Capabilities to update the capability definition and rerun the evaluation.
    • If the utterance dataset for the device isn't up to date or the batch evaluation failed, regenerate the utterance dataset and run the evaluation.
  3. After the Deployment readiness status is Complete, under Publish device, choose Submit for Publication.

Next steps

After you publish your device with custom capabilities, you can add the interface to the Amazon Web Services (AWS) Lambda function for your add-on. You implement discovery, state handling, and directive processing for your custom interface in the same way you do for pre-built Alexa interfaces. For details, continue with Step 2 in Steps to Build Smart Home Add-ons.

Review the following examples of a custom capability in a smart home add-on.

Example discovery response

The following example shows an instance of the custom capability in a discovery response. Use the version of the custom capability that you saved in the Smart Home AI Toolkit.

Example directive request and response

The following example shows a custom capability directive to your add-on. Alexa sends the directive to your add-on in the same way that Alexa sends pre-built directives.

The following example shows an Alexa response from your add-on that indicates your add-on processed the directive successfully. Include the state of reported properties for your custom capability in the response. If your custom capability defines a custom error response, use that response instead.

Example state reporting

The following example shows a state report that includes the reportable properties of the custom capability.

The following example shows a change report that you proactively send to Alexa when a reportable property of the custom capability changes.


Was this page helpful?

Last updated: Aug 01, 2026