question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No intent gets called - "App Launch" does work

See original GitHub issue

Hi, when using this interaction model:

{
    "interactionModel": {
        "languageModel": {
            "invocationName": "testintent",
            "intents": [
                {
                    "name": "AMAZON.CancelIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.HelpIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.StopIntent",
                    "samples": []
                },
                {
                    "name": "TestIntent",
                    "slots": [],
                    "samples": [
                        "tomato say me hello world"
                    ]
                }
            ],
            "types": []
        }
    }
}

calling “testintent” in amazons test console/alexa simulator correctly response with “You launched the app” (also console logs it), tho when then trying to invoke an intent by calling: “tomato say me hello world” or “testintent tomato say me hello world”, it seems that the endpoint does not get loaded/called actually. So, launching app works but intents doesnt, what am i doing wrong?

Using following nodejs code:

var express = require("express");
var alexa = require("alexa-app");
var app = express();
var http = require("http"),
    https = require("https")
var alexaApp = new alexa.app("test");



alexaApp.express({
  expressApp: app,
  checkCert: false,
  debug: true
});

// now POST calls to /test in express will be handled by the app.request() function

// from here on you can setup any other express routes or middlewares as normal
app.set("view engine", "ejs");

alexaApp.launch(function(request, response) {
  console.log("yay");
  response.say("You launched the app!");
});


alexaApp.intent("TestIntent", {
    "utterances": [
      "tomato say me hello world"
    ]
  },
  function(request, response) {
      console.log("suc");
    response.say("Success!");
  }
);


var fs = require("fs");
var privateKey  = fs.readFileSync("./cer/privkey.pem", "utf8");
var certificate = fs.readFileSync("./cer/cert.pem", "utf8");
var credentials = {key: privateKey, cert: certificate};

var httpsServer = https.createServer(credentials, app);
httpsServer.listen(443);

Does someone may know, what im doing wrong?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

2reactions
kobimcommented, Apr 28, 2018

You can read more about it at Invoking a Skill with a Specific Request , but I’m afraid the closest you will get is Alexa, say me hello world using tomato if your invocationName is tomato and your utterances include “say me hello world”.

I’m pretty sure the usage of “connecting words” is there so Alexa could distinguish between different skills and route the request to the right one. If you want to elaborate on your use-case, we might be able to find the right utterance(s).

1reaction
kobimcommented, Apr 25, 2018

If you are using the test simulator, can you take a look at the request it outputs in the Skill I/O tab? Also, try to invoke ask testintent to tomato say me hello world as your command.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - onNewIntent is not called - Stack Overflow
To my understanding, either onCreate or onNewIntent is called, but never both. So, if you wanna pass data to the activity through the...
Read more >
Broadcasts overview | Android Developers
Android apps can send or receive broadcast messages from the Android system and other Android apps, similar to the publish-subscribe design ...
Read more >
Android launchModes — Understanding the less understood!
Before we start with launch modes, let us try to understand the difference between a Process, and a Task in android.
Read more >
Google Maps Intents for Android | Maps URLs
After creating the Intent , you can request that the system launch the related app in a number of ways. A common method...
Read more >
What is Android Activity "launchMode"? - GeeksforGeeks
If an instance of the activity already exists at the top of the current task in this launch mode, no new instance will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found