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."
Clone or download this repository:
$ git clone [email protected]:ClickAndMortar/alexa-magento2-skill.git
Edit skill.json file to add
custom
endpoint
uri (HTTPS URL of Alexa Magento 2 Module route) and
sslCertificateType.
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"
}
}
},
...For a Magento 2 website available at http://localhost:2380.
Using ngrok for exposing a local webserver:
ngrok http -host-header=rewrite localhost:2380Get 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"
}
}
},
...Using Alexa Skills Kit CLI:
ask deployIn order to communicate with Alexa device, your Magento 2 must have Alexa Magento 2 Module.