Skip to content
Alexa Magento 2 Skill for Magento 2 and Amazon Alexa.
PowerShell Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
hooks
models
README.md
skill.json

README.md

Alexa Magento 2 Skill - C&M

Alexa Magento 2 Skill for Magento 2 and Amazon Alexa.

Alexa Magento 2 Skill allows to send requests to a Magento 2 website and process reponses using an Amazon Alexa device (such as an Amazon Echo).

User: "Alexa, demande à magento le nombre de clients connectés"
Alexa: "Le nombre de clients et visiteurs en ligne est de 10."

Installation

Get the skill

Clone or download this repository:

$ git clone git@github.com:ClickAndMortar/alexa-magento2-skill.git

Configure the skill

Edit skill.json file to add custom endpoint uri (HTTPS URL of Alexa Magento 2 Module route) and sslCertificateType.

Configure the skill with an exposed webserver

For a Magento 2 website available at https://example.com with a certificate from a trusted certificate authority.

Edit skill.json:

...
 "apis": {
      "custom": {
        "endpoint": {
          "uri": "https://example.com/alexa/v1.0",
          "sslCertificateType": "Trusted"
        }
      }
    },
...

Configure the skill with a local webserver

For a Magento 2 website available at http://localhost:2380.

Using ngrok for exposing a local webserver:

ngrok http -host-header=rewrite localhost:2380

Get URI to use:

Forwarding                    https://<id>.ngrok.io -> localhost:2380 

Edit skill.json:

...
 "apis": {
      "custom": {
        "endpoint": {
          "uri": "https://<id>.ngrok.io/alexa/v1.0",
          "sslCertificateType": "Wildcard"
        }
      }
    },
...

Deploy Alexa skill

Using Alexa Skills Kit CLI:

ask deploy

Install Magento 2 Module

In order to communicate with Alexa device, your Magento 2 must have Alexa Magento 2 Module.

You can’t perform that action at this time.