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

23 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/ […]

bandar judi

… [Trackback]

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

colarts Diyala

… [Trackback]

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

insulation

… [Trackback]

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

fivestarbeats.net

… [Trackback]

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

cara membuat aplikasi android

… [Trackback]

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

Wedding Planners in LB Nagar Hyderabad

… [Trackback]

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

Bdsm chat

… [Trackback]

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

Aws coehuman Diyala

… [Trackback]

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

satta matka

… [Trackback]

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

http://iconicafrica.com

… [Trackback]

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

potenzmittel kaufen

… [Trackback]

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

engineer x11

… [Trackback]

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

best barbershops in birmingham al

… [Trackback]

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

serviços informáticos

… [Trackback]

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

Engineer Aws Alkhazraji4

… [Trackback]

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


Leave a Comment

Tell us your thoughts!

Spread the API ❤️