+
Skip to content

Patch for directive Dialog.Delegate #372

Open
@dulismo

Description

@dulismo

Hi,

After a few hours trying to figure out why alexa raised an error on my directive response instead of speeching configured prompt for missing slots, It turned out that alexa-app includes outputSpeech object in its reply, which seems exactly to be the problem. Given a Dialog.Delegate directive telling to rely only on model dialogs, Alexa expect not to have outputSpeech attribute besides this directive.

So I patched this with an ugly delete before replying, but I guess fixing your response construction might benefits to some other users :-)

The monkey patch, within any alexa-app handler getting response object:

			if (response.response.response.outputSpeech) {
				delete response.response.response.outputSpeech
			}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载