Coder Social home page Coder Social logo

alexa-app-example's Introduction

alexa-app-example

An example Alexa Skill project using the alexa-app module with Express.

Deploy

Deploying locally

Make sure you have Node.js and the Heroku Toolbelt installed.

git clone [email protected]:alexa-js/alexa-app-example.git # or clone your own fork
cd alexa-app-example
npm install
npm start

Your app should now be running on http://localhost:8080/test. Put it in your browser to access it's test page.

Deploying to Heroku

heroku create
git push heroku master
heroku open

Alternatively, you can deploy your own copy of the app using this button:

Deploy to Heroku

Your app should now be running on https://<app-name>.herokuapp.com/test, where <app-name> is the heroku app name. Put it in your browser to access it's test page.

Changing the endpoint

Depending on where you deployed your app, the path for the endpoint of the skill should have a path parameter at the end called /test. If you want to change that, simply change this line to your desired name.

alexa-app-example's People

Contributors

tejashah88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

alexa-app-example's Issues

The remote endpoint could not be called, or the response it returned was invalid.

I deployed in heroku using the deployed button in your README file. The /test is showing in the html page with all the things but when I set my HTTPS endpoint in the configuration of my skill I am getting this error.
I don't know what endpoint to set. Please Help.
## The remote endpoint could not be called, or the response it returned was invalid.

Testing example with Postman

I want to test this project locally but I got this response when I try to send a post request with Postman:

{
    "version": "1.0",
    "response": {
        "directives": [],
        "shouldEndSession": true,
        "outputSpeech": {
            "type": "SSML",
            "ssml": "<speak>Error: not a valid request</speak>"
        }
    },
    "sessionAttributes": {}
}

And the console logs:

missing request type: {}
missing request type: {}
missing request type: {}
missing request type: {}
missing request type: {}

But when I deploy the project on heroku and send json from amazon, everything works fine.
What do I wrong?

My request:

{
  "session": {
    "new": false,
    "sessionId": "SessionId.563f99a5-e260-486e-be47-c6811f37d478",
    "application": {
      "applicationId": "amzn1.ask.skill.4b5e9f14-b527-419b-ba0e-8c00beb84dfc"
    },
    "attributes": {},
    "user": {
      "userId": "amzn1.ask.account.AEDUW3PTQSQK2USZY65WZOP63DZVZBKONL2VL2J2JQYZ2FFE3RZNMC6JGUJXAE5OWSPMV4ZOMTMIHDUHQFHPC2WSJND6GITAOA3ZNUWJIJWG42MGGJJHQNTI2UOOMELV2U245Z3B5PLTZST7XLLBT3I5FZAQ2LN7JL6S55PMD2HQGWR26V35USYFDUQGPFM4KHT6QCTRPE2OVKI"
    }
  },
  "request": {
    "type": "IntentRequest",
    "requestId": "EdwRequestId.8c8b2235-9b9f-4145-9c36-74704739d191",
    "intent": {
      "name": "nameIntent",
      "slots": {
        "NAME": {
          "name": "NAME"
        }
      }
    },
    "locale": "en-US",
    "timestamp": "2017-10-14T12:31:58Z"
  },
  "context": {
    "AudioPlayer": {
      "playerActivity": "IDLE"
    },
    "System": {
      "application": {
        "applicationId": "amzn1.ask.skill.4b5e9f14-b527-419b-ba0e-8c00beb84dfc"
      },
      "user": {
        "userId": "amzn1.ask.account.AEDUW8PTQSQK2USZY64WZOP64DZVZBKONL2VL2J2JQYZ2FFE3RZNMC6JGUJXAE5OWSPMV4ZOMTMIHDUHQFHPC2WSJND6GITAOA3ZNUWJIJWG42MGGJJHQNTI2UOOMELV2U245Z3B5PLTZST7XLLBT3I5FZAQ2LN7JL6S55PMD2HQGWR26V35USYFDUQGPFM4KHT6QCTRPE2OVKI"
      },
      "device": {
        "supportedInterfaces": {}
      }
    }
  },
  "version": "1.0"
}

Progressive response

Hello, I try to make progressive response but it drive me absolutely crazy. Could you help me a give me indications about that.
I have already tried custom directives but it doesn't work...

Thank a lot...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.