際際滷

際際滷Share a Scribd company logo
Integrate Drupal 8
with Alexa
Interact with Websites using Alexa
Presenter: Rakshith
Drupal Developer at Axelerant
Intro
We have seen many talking about integrating Drupal with Chatbots and other AI
based devices. I am here on the same lines, where I will talk about How we can
integrate Drupal with Alexa and we start interacting with websites.
What if websites could be interactive enough to literally hear your customers¨
voices, talk to them, and fulfill their wishes? Easy! It¨s now possible with modern
services like Amazon Alexa.
Prerequisites
- Your site should be Internet accessible
- Should have valid SSL certificate
- Developer account with Amazon
For the first two steps - we can use Pantheon. You can spin up
multiple environments with SSL free of cost !!
Steps to Integrate
- Set up will be much easier when we do this with
composer
- Just install the Alexa module with dependant libraries
- It uses Amazon Alexa PHP Library
- Enable the module and in module¨s alexa configuration
form - fill in the application ID (you will get it once you
create the alexa skill in amazon developer console)
Steps to Integrate
- Create custom module to enforce the Alexa responses
(for each of type of requests created in Alexa skill)
- We just have to subscribe for Alexa Event and send the
responses in event subscribe callback
Amazon Alexa Skill
- We will need to create Alexa skill in Amazon developer
console
- Alexa Skill will have associated invocation name, intents
and the utterances so that Alexa responds with relevant
data
- Endpoint needs to be configured with HTTPS
- Upon creation of skill - just note down the application ID
and fill the same in alexa module¨s configuration
Amazon Alexa Skill
Testing
- The integration can be tested with developer account
and device is not needed though
- Once the skill build is complete, we can test the skill
responses using Test simulator.
Test Simulator
Demo
Demo

More Related Content

Integrate drupal 8 with alexa - Rakshith

  • 1. Integrate Drupal 8 with Alexa Interact with Websites using Alexa Presenter: Rakshith Drupal Developer at Axelerant
  • 2. Intro We have seen many talking about integrating Drupal with Chatbots and other AI based devices. I am here on the same lines, where I will talk about How we can integrate Drupal with Alexa and we start interacting with websites. What if websites could be interactive enough to literally hear your customers¨ voices, talk to them, and fulfill their wishes? Easy! It¨s now possible with modern services like Amazon Alexa.
  • 3. Prerequisites - Your site should be Internet accessible - Should have valid SSL certificate - Developer account with Amazon For the first two steps - we can use Pantheon. You can spin up multiple environments with SSL free of cost !!
  • 4. Steps to Integrate - Set up will be much easier when we do this with composer - Just install the Alexa module with dependant libraries - It uses Amazon Alexa PHP Library - Enable the module and in module¨s alexa configuration form - fill in the application ID (you will get it once you create the alexa skill in amazon developer console)
  • 5. Steps to Integrate - Create custom module to enforce the Alexa responses (for each of type of requests created in Alexa skill) - We just have to subscribe for Alexa Event and send the responses in event subscribe callback
  • 6. Amazon Alexa Skill - We will need to create Alexa skill in Amazon developer console - Alexa Skill will have associated invocation name, intents and the utterances so that Alexa responds with relevant data - Endpoint needs to be configured with HTTPS - Upon creation of skill - just note down the application ID and fill the same in alexa module¨s configuration
  • 8. Testing - The integration can be tested with developer account and device is not needed though - Once the skill build is complete, we can test the skill responses using Test simulator.
  • 10. Demo
  • 11. Demo