<commit_before>---
layout: article
title: "Amazon Alexa (Echo)"
excerpt-short: "Trigger Algorithmia microservices from your Alexa-enabled device."
categories: [sample-apps]
tags: [sample-apps]
show_related: true
permalink: /algorithm-development/tutorials/sample-apps/alexa/
redirect_from:
  - /algorithm-development/clients/alexa/
image:
    teaser: /language_logos/alexa.svg
---


It is possible to trigger Algorithmia from Alexa and Alexa-enabled devices by creating an Alexa Skill.

## Creating the Lambda Function

First, we need to create a Lambda Function which will handle the Alexa requests.  This sample asks the user to provide a website (URL), sends it to the [ShareCounts](algorithmia.com/algorithms/web/ShareCounts) algorithm, and speaks the number of Facebook and LinkedIn shares for that site.  But any other algorithm could be easily called with only small tweaks to the inputs and outputs.  <commit_msg>DA-172 Bad link for Alexa integration<commit_after>---
layout: article
title: "Amazon Alexa (Echo)"
excerpt-short: "Trigger Algorithmia microservices from your Alexa-enabled device."
categories: [sample-apps]
tags: [sample-apps]
show_related: true
permalink: /tutorials/sample-apps/alexa/
redirect_from:
  - /algorithm-development/clients/alexa/
  - /algorithm-development/tutorials/sample-apps/alexa/
image:
    teaser: /language_logos/alexa.svg
---


It is possible to trigger Algorithmia from Alexa and Alexa-enabled devices by creating an Alexa Skill.

## Creating the Lambda Function

First, we need to create a Lambda Function which will handle the Alexa requests.  This sample asks the user to provide a website (URL), sends it to the [ShareCounts](algorithmia.com/algorithms/web/ShareCounts) algorithm, and speaks the number of Facebook and LinkedIn shares for that site.  But any other algorithm could be easily called with only small tweaks to the inputs and outputs.  
{'fraction_non_alphanumeric': 0.07736842105263157, 'fraction_numerical': 0.0015789473684210526, 'mean_word_length': 4.674626865671642, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1542316', 'n_tokens_mistral': 558, 'n_tokens_neox': 520, 'n_words': 220}