GithubHelp home page GithubHelp logo

Comments (4)

dustincoates avatar dustincoates commented on June 25, 2024 1

@damwhit Can you send me an email at [email protected]? We'll schedule a time for a screenshare.

from algoliasearch-alexa.

damwhit avatar damwhit commented on June 25, 2024

Have been trying to get at least a response back when testing my alexa skill, but it will only return undefined. My lambda function is below. Do I need to hook this up with alexa-sdk to get a proper response?

const algoliaAlexaAdapter = require('algoliasearch-alexa');
const findVolunteerProject = algoliaAlexaAdapter({
  algoliaAppId: 'id',
  algoliaApiKey: 'key',
  defaultIndexName: 'index',
  handlers: {
    'GetNewProjectIntent': {
      answerWith: function (data) {
        if(data.results.length) {
          this.emit(':tell', `There were ${data.results.hits.length} products found.`);
        } else {
          this.emit(':tell', 'We could find no products. Please try again.');
        }
      },
    },
  },
});

module.exports = findVolunteerProject;

from algoliasearch-alexa.

dustincoates avatar dustincoates commented on June 25, 2024

@damwhit Completely agree that we need to have a more in-depth tutorial! Once we fill this out more it's top of the list to complete.

In the meantime, here's a non-Algolia specific that goes into some detail on getting everything set up around Alexa and Lambda: http://tobuildsomething.com/2015/08/14/Amazon-Echo-Alexa-Tutorial-The-Definitive-Guide-to-Coding-an-Alexa-Skill/.

Thanks as well for the follow-up. A few questions that can help us figure out what's going on:

  • Are you testing within Lambda or via Alexa (e.g. speaking to the device)?
  • If testing within Lambda, can you share the test request?
  • What does your intent schema look like?

If you're up for it, I would love to have an on hands video + screen sharing call so we can sort this out together. Won't take long and would be a very good feedback for me as the author.

Also—thank you so much for being one of the early users of the adapter. :) How did you come across it?

from algoliasearch-alexa.

damwhit avatar damwhit commented on June 25, 2024

@dustincoates I really appreciate the quick response! Thanks for passing along the alexa skill tutorial too!

  • I am testing via the Alexa service simulator.
  • Intent schema is:
{
  "intents": [
    {
      "intent": "GetNewProjectIntent"
    },
    {
      "intent": "AMAZON.HelpIntent"
    },
    {
      "intent": "AMAZON.StopIntent"
    },
    {
      "intent": "AMAZON.CancelIntent"
    }
  ]

I would love to screen share with you to help figure this out! Really appreciate you going out of your way. When is a good time for you?

I came across the adapter because I am trying to build an algolia backed alexa skill that can tell folks a random volunteer opportunity from an index of volunteer opportunities.

from algoliasearch-alexa.

Related Issues (3)

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.