You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

启用自动对话委托时出现Alexa技能元数据找不到错误

Alexa对话委托功能触发时出现内部服务错误(无CloudWatch日志)

我在Alexa开发者控制台中使用Dialog Delegation功能,已为EditContactDetailsIntent启用Auto Dialog Delegation,编写了EditContactDetailsIntentHandler和InProgressEditContactDetailsIntentHandler两个处理器。但触发该意图流程时,出现无CloudWatch日志痕迹的异常错误,错误信息如下:

{
  "type": "INTERNAL_SERVICE_ERROR",
  "message": "Can't find skill bundle metadata for skillId amzn1.ask.skill.GUID_HERE locale en-GB stage development"
}

处理器代码

EditContactDetailsIntentHandler

class EditContactDetailsIntentHandler(AbstractRequestHandler):
    def can_handle(self, handler_input):
        return (ask_utils.is_intent_name("EditContactDetailsIntent")(handler_input) and
            ask_utils.request_util.get_dialog_state(handler_input) == "COMPLETED")

    def handle(self, handler_input):
        speak_output = "This is EditContactDetailsIntent initiated when phone number is complete."

        return (
            handler_input.response_builder
                .speak(speak_output)
                .ask(speak_output)
                .response
        )

InProgressEditContactDetailsIntentHandler

class InProgressEditContactDetailsIntentHandler(AbstractRequestHandler):
    def can_handle(self, handler_input):
        # type: (HandlerInput) -> bool
        return (
            ask_utils.is_intent_name("EditContactDetailsIntent")(handler_input) and
            ask_utils.request_util.get_dialog_state(handler_input) != "COMPLETED"
        )

    def handle(self, handler_input):
        currentIntent = handler_input.request_envelope.request.intent

        return (
            handler_input.response_builder
            .add_delegate_directive(currentIntent)
            .response
        )

内容的提问来源于stack exchange,提问作者alshy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.17 00:29:52