50
Alexa and the Connected Car Emily Lam Alexa Conference Jan. 19-21, 2017

Alexa and the Connected Car

Embed Size (px)

Citation preview

Page 1: Alexa and the Connected Car

Alexa and the Connected Car

Emily Lam

Alexa Conference Jan. 19-21, 2017

Page 2: Alexa and the Connected Car

Emily Lam• Studied Linguistics and

specialized in Computing at UCLA

• Front-end Developer at Lieberman Software

• Won the Worldpay prize at Money 20/20

• 2nd place at Connected Car hackathon

Page 3: Alexa and the Connected Car

Agenda What is a Connected Car? Hyundai & Ford Alexa Skill

Automobility LA & CES 2017

Create an Alexa skill using the Mojio API RoadBuddy Troubleshooting bugs Voice user interface

The state of Artificial Intelligence Future of the connected car Privacy

Page 4: Alexa and the Connected Car

What is a Connected Car?A car that uses technology to gather information, analyze data, and perform tasks.

Page 5: Alexa and the Connected Car
Page 6: Alexa and the Connected Car

What data can you get?SpeedCar’s GPS location Motion alertsGeofencingRecent trip history

Page 7: Alexa and the Connected Car
Page 8: Alexa and the Connected Car

So how does Alexa work witha connected car?

Page 9: Alexa and the Connected Car

Hyundai Blue Link SkillAlexa is embedded in the car itself and can do anything an Echo can.

Page 10: Alexa and the Connected Car

What can Alexa do?Features:

Remote start and stop charging electric modelsRemote engine start with climate controlRemote door lock/unlockRemote horn/lights

Page 11: Alexa and the Connected Car

Ford SYNC 3The Ford SYNC 3 has an Alexa skill called “myFord Mobile”.

Page 12: Alexa and the Connected Car

Alexa is located under Apps > Alexa.

Page 13: Alexa and the Connected Car

The Ford Skill bridges the gap between your home and car.

Page 14: Alexa and the Connected Car

UtterancesAlexa,ask myFord to check my battery status.ask myFord to start my car.ask myFord to lock my car.turn on living room lights.set home thermostat to 72 degrees.turn on garage lights.

Page 15: Alexa and the Connected Car
Page 16: Alexa and the Connected Car

The key takeaway is that you are able to stay connected to your car when you’re at home, and you’re able to stay connected to your home when you’re in your car.

Page 17: Alexa and the Connected Car

So now let’s build our own skill for the connected car.

Page 18: Alexa and the Connected Car

Mojio API

Page 19: Alexa and the Connected Car

Mojio Platform

Mojio collects data from the OBD-II port and sends it to the Mojio server.

Page 20: Alexa and the Connected Car

RoadBuddyRoadBuddy is a connected car platform that

delivers automated real-time road conditions.

Page 21: Alexa and the Connected Car

For the Alexa skill, you can also report incidents and get road conditions.

Page 22: Alexa and the Connected Car

RoadBuddy Intent Schema"intents": [ { "intent": "GetReportIntent", "slots": [ { "name": "Incident", "type": "LIST_OF_INCIDENTS" }] },

Page 23: Alexa and the Connected Car

{ "intent": "GetRoadConditionsIntent", "slots": [ { "name": "Incident", "type": "LIST_OF_INCIDENTS" }] },

Page 24: Alexa and the Connected Car
Page 25: Alexa and the Connected Car

Sample Utterances GetReportIntent report an {Incident} GetReportIntent report a {Incident} GetReportIntent report that {Incident} GetReportIntent report that there's {Incident} GetReportIntent there's {Incident} GetReportIntent {Incident} GetRoadConditionsIntent what are road conditions like GetRoadConditionsIntent what are road conditions up ahead GetRoadConditionsIntent road conditions GetRoadConditionsIntent tell me road conditions

Page 26: Alexa and the Connected Car

Account LinkingAuthorization URLThe url where customers will be redirected in the

companion app to enter login credentials.Ex. https://accounts.moj.io/oauth2/authorize?

response_type=codeClient IdUnique public string used to identify the client

requesting for authentication.

Page 27: Alexa and the Connected Car
Page 28: Alexa and the Connected Car

Domain List (Optional)The list of domains that the authorization URL will

fetch content from. You can provide up to 15 domains.

Scope (Optional)List of permissions to request from the skill user.

You can provide up to 15 scopes.

Page 29: Alexa and the Connected Car

Redirect URLs (Optional)The list of valid HTTPS redirection endpoints that

could be requested during authorization to redirect the user back to after the authorization process.

Page 30: Alexa and the Connected Car

Authorization Grant Type (Optional)Specifies the OAuth authorization grant that Alexa

uses to obtain an access token from Mojio.

Access Token URIThis URI will be used for both access token and

token refresh requests.Ex. https://accounts.moj.io/oauth2/token

Page 31: Alexa and the Connected Car

Client SecretGiven by Mojio

Page 32: Alexa and the Connected Car

Client Authentication SchemeHTTP Basic or Credentials in request body

Privacy Policy URLhttps://www.moj.io/privacy/

Page 33: Alexa and the Connected Car
Page 34: Alexa and the Connected Car
Page 35: Alexa and the Connected Car

Configure a Mojio object with the following key/value pairs.

Page 36: Alexa and the Connected Car

Call the function before you register the handlers.

Page 37: Alexa and the Connected Car
Page 38: Alexa and the Connected Car

Create a variable outside of the handlers object and set it equal to this to avoid getting a null error.

Use mojio_client to get data.

Page 39: Alexa and the Connected Car

Use self.emit for Alexa to say something.

• Get data from lambda request.

Page 40: Alexa and the Connected Car

State of Artificial IntelligenceArtificial intelligence was coined by John McCarthy in

1956.

Defining Artificial IntelligenceThe ability to learn and solve problemsThink like a human (How a brain functions, cognitive

science)Act like a human (Turing test)Think rationally (Using logical formulas)Act rationally (Design intelligent systems to maximize

goals)

Page 41: Alexa and the Connected Car

Alexa and AIAlexa has the ability to learn and solve problems. Can Alexa think like a human? No. It is optimized

to perform complex tasks and cannot multi-task.Can Alexa act like a human? Not so much but it

can sing and show signs of humor.Can Alexa think rationally? Yes. It can apply

algorithms and functions. Can Alexa act rationally? Yes. Ex. It can figure out

the nearest pizza place and buy items from Amazon.

Page 42: Alexa and the Connected Car

State of Artificial IntelligenceNeeds to be more conversational More data = better machine learning

Page 43: Alexa and the Connected Car

The Future of the Connected CarMore skills, more integrations.

Ex. Volkswagen will be integrating with Alexa7000+ skills on the Alexa app

“Consumers increasingly want to stay connected to their homes while on the move”

-  Don Butler, Connected Vehicle and Services executive director of Ford

Self-driving cars

Page 44: Alexa and the Connected Car

Have cars talk to one anotherEx. One car experiences black ice on the road and

other cars are alerted to avoid that area.

Be more efficient

Predict safer routes

Have better car maintenance

Page 45: Alexa and the Connected Car

Amazon delivery to car trunks with help of AlexaArticle by Tylor Orton:https

://www.biv.com/article/2017/1/pop-your-trunk-amazon-has-delivery/

“Eventually we’ll be able to pop [your] trunk and allow Amazon to deliver packages securely there, which will make it more convenient for the customers and a lot more efficient for Amazon to deliver to cars even faster.” – Kenny Hawk, Mojio CEO

Page 46: Alexa and the Connected Car

Privacy concernsAmazon’s Echo & Dot are always onRecords your voice after wake word and transfers

it to a processor for analysisInformation is stored on Amazon’s serversCan delete your data

Page 47: Alexa and the Connected Car

Murder in ArkansasVictor Collins was killed and his body was found in

his friend’s hot tub. There was an Amazon Echo near the crime scene. Law enforcement agents asked Amazon to turn over the audio and other records but they refused.

http://www.inc.com/joseph-steinberg/amazon-alexa-recordings-requested-by-police-in-murder-case.html

Can Alexa be used against you?The issue of using speech recordings as evidence

Page 48: Alexa and the Connected Car

Ultimately, we must find a balance between privacy and convenience. And in the end, Alexa is an incredibly powerful tool and will continue to advance the field of artificial intelligence.

Page 49: Alexa and the Connected Car

Resourceshttps://developer.amazon.comhttps://aws.amazon.comhttps://www.moj.io/developer/

Page 50: Alexa and the Connected Car

Questions? Twitter: hongilyEmail: [email protected]: www.liebsoft.com