question

JIAYI LIANG avatar image
JIAYI LIANG asked

Building the Slack app but got errorMessage: "Exception: Invalid intent"

Hi all, I followed the official tutorial to build the hand-free Slack app. I have completed the lambda function set up and the intent schema setup. When I run the test on the Lamdba function, I received the following error message: errorMessage: "Exception: Invalid intent" Help needed for noob to debug. Also, how to set up and test the app on Echo - aka does the app need to be published before testing? This is the tutorial I am using (copy-pasted the lambda function for this tutorial): https://aws.amazon.com/blogs/compute/slack-dictation-an-amazon-echo-and-aws-lambda-demo/ Video: https://s3.amazonaws.com/awscomputeblogmedia/Lambda+Plus+Echo+Plus+Slack+Demo.mp4 My intent schema (on the alexa dev portal) { "intents":[ { "intent":"MyMessageIntent", "slots":[ { "name":"Message", "type":"LITERAL" } ] }, { "intent":"WhatsMyMessageIntent", "slots":[] } ] }
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

JIAYI LIANG avatar image
JIAYI LIANG answered
*Update: was able to test the app on Echo device and complete the conversation to post message to Slack. However, there was no slack message actually being posted. Debugging.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sebastian avatar image
Sebastian answered
Were you able to get this resolved in the end? I've got the Slack integration up and running, so if you're still having issues let me know and I'll try and help.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Zev Green avatar image
Zev Green answered
Someone should probably document the step-by-step on this. The multitude of intricate steps is a bit frustrating without having done this before. I've followed the existing pieces of information as best I could, but haven't been able to quite get it to work.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

JIAYI LIANG avatar image
JIAYI LIANG answered
So I finally have debugged this and the app is working now - I forgot to update the slack channel (the "#xxx") in my code thus lead to the error. Agree with Zach on the step-to-step guide. I aim to publish a post on this and I will post an update. My takeaway is that to update the following variables: 1) the Slack webhoot/path for your team room 2) the channel name 3) your user name. Let me know if you have questions - love to take a look Message was edited by: JIAYI LIANG
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

JIAYI LIANG avatar image
JIAYI LIANG answered
Marking resolved.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.