Press enter to see results or esc to cancel.

Build an Alexa Flight Departure Time Skill [TUTORIAL]

We’ve all been there. You *think* your flight is on time. But sure enough, by the time you get to the airport, you find that it’s been delayed for hours.

Source: GIPHY
Source: GIPHY

What if you could ask Alexa about your flight status before heading out the door? We built a skill that connects Alexa to the Laminar Flight API so that you can ask Alexa the status of your flight. Even better? We created a video tutorial that walks you through every step of the process. Check out the video tutorial below or visit our GitHub to see the code.

This video tutorial will go through…

  1. Adding the departure time skill to Amazon Alexa
  2. Creating the skill’s backend in AWS Lambda
  3. Connecting Alexa to the Laminar Flight API using RapidAPI

The result

The end result will look something like this…

 alexalaminar-gif

What you’ll need:

  • Amazon Echo device
  • Amazon account

Let the hacking begin! Watch the tutorial below, follow along on GitHub and feel free to leave any questions in the comments.

Feeling inspired? 

One Alexa skill is never enough. Here are other project ideas that you could build by connecting to RapidAPI:

Let us know what you come up with and happy hacking.

Comments

8 Comments

countesscrawley

Hi David, really helpful tutorial. I was trying to build a skill for events using the Ticketmaster API on RapidAPI. I was having trouble parsing the responses. I receive an error:

TypeError: Cannot read property ‘name’ of undefined
at Object.EventHub.rapid.call.on [as success] (/var/task/index.js:25:41)
at Request.e [as _callback] (/var/task/node_modules/rapidapi-connect/index.js:90:46)

The error refers to the var eventName line in the index.js code below. I have tried but am having trouble parsing the response. It seems that the callback is successful but it cannot access the slots. Any ideas?

var Alexa = require(‘alexa-sdk’);
const RapidAPI = new require(‘rapidapi-connect’);
const rapid = new RapidAPI(‘EventHub’, ‘####’);

var handlers = {
‘LaunchRequest’: function() {
this.emit(‘:ask’, ‘Welcome to Event Hub. Ask something like, find rock concerts near Seattle’);
},

‘EventHub’: function() {
var keyword = this.event.request.intent.slots.keyword.value;
//var region = this.event.request.Events.slots.Region.value;

rapid.call(‘Ticketmaster’, ‘searchEvents’, {
‘apiKey’: ‘####’,
‘keyword’: keyword

}).on (‘success’, (payload) => {
//console.log(payload);
var eventList = payload[0][“_embedded”][“events”];
this.emit(‘:tell’, ‘Listing 5 most recents events for ‘ + keyword);

for (var i = 0; i {
this.emit(‘:tell’, ‘Sorry, there was an error finding the event.’);
});
}
};

exports.handler = function(event, context, callback) {
var alexa = Alexa.handler(event, context);
alexa.appId = “####”;
alexa.registerHandlers(handlers);
alexa.execute();
};

www.cpns2016.com

… [Trackback]

[…] Read More on|Read More|Read More Informations here|There you will find 13136 more Informations|Infos to that Topic: blog.rapidapi.com/2017/02/07/alexa-skill-flight-departure/ […]

다음드

… [Trackback]

[…] Read More here|Read More|Read More Informations here|Here you will find 57177 additional Informations|Informations on that Topic: blog.rapidapi.com/2017/02/07/alexa-skill-flight-departure/ […]

DMPK Studies

… [Trackback]

[…] Find More here|Find More|Read More Infos here|Here you can find 31490 additional Infos|Informations to that Topic: blog.rapidapi.com/2017/02/07/alexa-skill-flight-departure/ […]

option wealth solutions reviews

… [Trackback]

[…] Read More on|Read More|Read More Infos here|Here you will find 89169 additional Infos|Informations on that Topic: blog.rapidapi.com/2017/02/07/alexa-skill-flight-departure/ […]

jogos friv

… [Trackback]

[…] Read More here|Read More|Find More Infos here|Here you can find 30009 more Infos|Informations to that Topic: blog.rapidapi.com/2017/02/07/alexa-skill-flight-departure/ […]

kari satilir

… [Trackback]

[…] Find More on|Find More|Find More Informations here|Here you can find 98478 more Informations|Informations on that Topic: blog.rapidapi.com/2017/02/07/alexa-skill-flight-departure/ […]

criminal defense lawyer ny

… [Trackback]

[…] Read More here|Read More|Read More Informations here|Here you will find 99604 additional Informations|Infos on that Topic: blog.rapidapi.com/2017/02/07/alexa-skill-flight-departure/ […]


Leave a Comment

Tell us your thoughts!

Spread the API ❤️