Cross-Channel User Experiences With Drupal
New user experience and distribution platforms only come along every 5-10 years, and when they do, they cause massive shifts in the web's underlying technology. The last big one was mobile, and the web industry adapted. Conversational interfaces could be next for UX.
Join the DZone community and get the full member experience.Join For Free
last year around this time, i wrote that the big reverse of web would force a major re-architecture of the web to bring the right information, to the right person, at the right time, in the right context. i believe that conversational interfaces like amazon echo are further proof that the big reverse is happening.
new user experience and distribution platforms only come along every 5-10 years, and when they do, they cause massive shifts in the web's underlying technology. the last big one was mobile, and the web industry adapted. conversational interfaces could be the next user experience and distribution platform – just look at amazon echo (aka alexa), facebook's messenger or microsoft's conversation-as-a-platform .
today, hardly anyone questions whether to build a mobile-optimized website. a decade from now, we might be saying the same thing about optimizing digital experiences for voice or chat commands. the convenience of a customer experience will be a critical key differentiator. as a result, no one will think twice about optimizing their websites for multiple interaction patterns, including conversational interfaces like voice and chat. anyone will be able to deliver a continuous user experience across multiple channels, devices, and interaction patterns. in some of these cross-channel experiences, users will never even look at a website. conversational interfaces let users disintermediate the website by asking anything and getting instant, often personalized, results.
to prototype this future, my team at acquia built a fully functional demo based on drupal 8 and recorded a video of it. in the demo video below , we show a sample supermarket chain called gourmet market. gourmet market wants their customers to not only shop online using their website, but also use echo or push notifications to do business with them.
we built an alexa integration module to connect alexa to the gourmet market site and to answer questions about sale items. for example, you can speak the command: "alexa, ask gourmet market what fruits are on sale today". from there, alexa would make a call to the gourmet market website, finding what is on sale in the specified category and pull only the needed information related to your ask.
on the website's side, a store manager can tag certain items as "on sale", and alexa's voice responses will automatically and instantly reflect those changes. the marketing manager needs no expertise in programming -- alexa composes its response by talking to drupal 8 using web service apis.
the demo video also shows how a site could deliver smart notifications. if you ask for an item that is not on sale, the gourmet market site can automatically notify you via text once the store manager tags it as "on sale".
from a technical point of view, we've had to teach drupal how to respond to a voice command, otherwise known as a "skill", coming into alexa. alexa skills are fairly straightforward to create. first, you specify a list of "intents", which are basically the commands you want users to run in a way very similar to drupal's routes. from there, you specify a list of "utterances", or sentences you want echo to react to that map to the intents. in the example of gourmet market above, the intents would have a command called
. once the command is executed, your drupal site will receive a webhook callback on
with a payload of the command and any arguments. the
alexa module for drupal 8
will validate that the request really came from alexa, and fire a drupal event that allows any drupal module to respond.
it's exciting to think about how new user experiences and distribution platforms will change the way we build the web in the future . as i referenced in drupalcon new orleans keynote , the drupal community needs to put some thought into how to design and build multichannel customer experiences. voice assistance, chatbots or notifications are just one part of the greater equation. if you have any further thoughts on this topic, please share them in the comments.
Published at DZone with permission of Dries Buytaert, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.