Alexa – Xenioo Thu, 17 Jun 2021 10:58:10 +0000 en-US hourly 1 https://wordpress.org/?v=5.6.12 /wp-content/uploads/2022/02/cropped-badge_611x611-32x32.png Alexa – Xenioo 32 32 ultimate guide to voice chatbots: why your business needs one /guide-voice-chatbots-your-business-needs-one/ Tue, 04 Feb 2020 13:43:52 +0000 /?p=2594 Any business owner who had the resources to serve every single customer with a highly trained human agent would do exactly that. Who doesn’t like personal customer service from an attentive, informed customer service agent, or maybe a skilled voice chatbots? The reality is different: cost and competitive pressures mean that most companies can’t afford to employ armies of customer service agents. Economic imperatives imply the use of effective tools such as chatbots. But customers can get frustrated entering text ...

Read Moreultimate guide to voice chatbots: why your business needs one

The post ultimate guide to voice chatbots: why your business needs one appeared first on Xenioo.

]]>
Any business owner who had the resources to serve every single customer with a highly trained human agent would do exactly that. Who doesn’t like personal customer service from an attentive, informed customer service agent, or maybe a skilled voice chatbots?

The reality is different: cost and competitive pressures mean that most companies can’t afford to employ armies of customer service agents. Economic imperatives imply the use of effective tools such as chatbots. But customers can get frustrated entering text responses and receiving text replies – most people don’t like typing all that much.

Thankfully, voice chatbots promise to be a happy medium.

But that’s not the whole story.

Voice chatbots are set to become an essential customer service channel, simply because customers love interacting with their devices using voice.

Keep reading to see how voice chatbots deliver both cost-effective customer support, and highly personalized customer experience.

What exactly is a voice chatbot?

OK, to understand what a voice chatbot is we first have to understand what a chatbot is.

In the context of customer service, a chatbot is an online service that interacts with customers, while referencing business data – order history, available products, etc. Chatbots can be delivered over a range of channels: one chatbot could be a pop-up box on a website, another chatbot could message a customer directly on WhatsApp.

Furthermore, chatbots make use of artificial intelligence and its branches – natural language processing and machine learning.

As you may have guessed, the key difference with a voice chatbot is the “voice” element.

Both text chatbots and voice chatbots exist to help customers accomplish day to day tasks without the need to interact with a tired (and expensive!) human agent.

How a text chatbot differs from a voice chatbot

Voice chatbots and text chatbots are, to be honest, not all that different – particularly from a technological perspective. The key difference is the voice component, but in practice voice chatbots merely add an additional computational layer: the ability to process voice.

Behind the scenes, both bots rely on the same AI, and the same enterprise data to serve your customers.

However, that doesn’t mean that voice chatbots are the same as text chatbots. The difference lies in the user experience. And, as leading companies know, user experience is key.

There is a growing trend where users prefer to interact with technology using speech. Think Amazon Alexa, Google’s voice assistant and for Apple fans – Siri. In many situations, it’s just easier to interact with a computing platform using your voice.

After all, voice is hands-free, user-friendly and overall just a more natural way to interact with technology.

So, even though voice chatbots essentially uses the same back-end tech as ordinary text chatbots, the user experience is vastly different.

voice chatbots

Why voice chatbots are a game-changer

It’s the improved user experience that makes voice chatbots such as an appealing choice for businesses who care about their customers. It’s not hard to see why voice interaction delivers big customer service benefits:

Voice is simply more human

Automated text-based chatbots can come across as disconcertingly robotic – it’s very hard to communicate emotional cues in a text box. The best voice chatbots make a much better effort at sounding human: from emotional interjections during the conversation through to the unique personality voice can communicate.

Voice chatbots offer your company the chance to communicate a warmer, more human experience compared to text chatbots. In a world where automated experiences can leave a very impersonal aftertaste, voice chatbots allow businesses to combine the cost-saving effects of automation without sacrificing the human element of customer support.

Voice is hands-free

We live in a fast-paced society where multi-tasking is common. Why glue a customer to a keyboard during a support interaction when there’s a voice alternative? In fact, modern-day businesses will increasingly face customers that are used to hands-free interaction thanks to personal assistants like Alexa and Siri.

Furthermore, while customers will wait until they have access to a keyboard to solve a customer support issue, they might not wait if what they intended to do was place an order. Offering your customers the option to order hands-free will give your business a real advantage.

Voice is a fun experience

Your customer may simply want to get their business done when interacting with your support platform, but adding a fun factor is an aspect of voice that supports your brand in the long run. With countless boring, stale companies to deal with consumers will be instantly struck by your more personal, quirky approach.

Indeed, do voice the right way and your voice assistant can be a real ambassador to your company. Quirky and fun, or resolutely professional – it’s your choice. Either way, a voice assistant will leave a real impression.

Voice covers more channels

We all know just how important the omni-channel approach has become. In-store, phone, web, text message and social media – these all matter. However, new channels are emerging – think powerful home assistant embedded in everything from fridges to speakers, and of course the assistants present on almost every smartphone.

Your voice-enabled chatbot allows your company to reach customers over these new channels.  At the moment at least, it gives your company a competitive advantage. In future, not using a voice-enabled chatbot will mean your competitors get more comprehensive access to your customers than you do.

Voice is easy to implement

Finally, voice chatbots pivot off existing chatbot infrastructure including the logic behind it, alongside your existing enterprise data. In other words, harnessing the game-changing benefits of a voice chatbot does not imply huge costs or countless man-hours.

Any company can step up its customer experience game by adding voice functionality to chatbots – if its chatbot platform allows it, of course.

google assistant voice chatbots

Getting voice chatbots right

Understanding your customer environment and the expectations of your customers is key to getting your voice chatbot implementation right.

Next, you also need to ensure you think carefully through your voice chatbot implementation: just like ordinary chatbots, planning is a key aspect to getting voice interaction just right. Here are our top tips.

Put in place a voice chatbot strategy

We hinted earlier at how voice chatbots can provide a more personal experience, while giving customers more – and more fun – opportunities to interact with your company. Indeed, a voice chatbot can make your company a leader.

Yet, you must decide which of these aspects are most important. Is it achieving ultimate operational efficiency, streamlining as many processes as possible thanks to use of a voice chatbot? Do you want to create a more intimate relationship with your customers? Or do you want to stand out as a leader in your field? Give this some thought before jumping in.

Figure out where customer experience suffers most

Voice chatbots can be great at solving particular customer pain points – just like normal chatbots can solve many common customer service difficulties. So, first, do an analysis of the typical customer pain points – find out where the customer experience in your company really lags behind.

In doing so, look at regular processes – changing a shipping destination, modifying an order, etc – and find out which of these causes a degree of frustration for your customer. Next, rely on the fact that voice chatbots are conversational – and the way this more personal, emotive interaction can ease some of the more difficult processes.

Set your voice chatbot’s attitude and work on conversations

It’s difficult to give text chatbots a unique personality – you can try, but without the personal feel of voice text can often come across as tacky. However, a voice chatbot can have a unique personality. Your company needs to give a fair bit of thought as to what exactly this personality is – is it reactive, or proactive? More focused on functionality, or on being entertaining?

These decisions will factor into a lot of on-the-ground voice chatbot factors. Tone of voice, for example. And indeed, the conversation flow of your chatbot. In fact, one could argue that conversation flow is one of the most important factors of getting a voice chatbot just right. The aim should be conversations that are incredibly natural.

Platform choice is key to voice chatbots success

We leave our final tip for this section. Platform choice can make or break your voice chatbot. Remember: your voice chatbot relies on much of the same technology as an ordinary, text chatbot.

Yes, the voice features of your chatbot are crucial: you need a voice that sounds naturally synthesized, and a platform that uses top-end language processing to understand what your users are saying.

Yet platform choice goes so much further. Getting a voice chatbot to say the right stuff at the right time depends on getting the chatbot mechanics perfectly right.

We think you should look out for the following features:
  • Comprehensive compatibility: Your platform of choice should allow you to build a voice chatbot across as many channels as possible. There’s no point in getting voice just right only to be restricted by your choice of platforms – don’t settle for a platform restricted to just a few vendors.
  • Pivot off existing chatbot infrastructure. Choose a platform that allows you to link up your existing automation with a voice layer. Or, that acts as an integrated platform that can help you set up a powerful, new automated chatbot platform that stretches across channels – including voice.
  • Powerful chatbot flows. Yes, voice sounds natural to begin with, but matters will soon unravel if you’re unable to get your chatbot flow right. Solid tools are a key element – tools that make it easy to create complex chat flows that feel incredibly natural to your users, while at the same time serving to improve efficiency. Designing chatbot flows must be easy too: a visual designer is essential.
  • Capable AI. While designing intelligent chat flows is a key aspect of setting up a great voice chatbot, humans can only do so much. Why? Well, human behavior is unpredictable and your chat flow cannot take account of every possible human response. Artificial intelligence help: it allows your chatbot to understand customer intent, learning through experience.
  • Natural language processing. Of course, your voice chatbot can only respond sensibly if it understands what is being said. Humans can use complex forms of language – complex to a computer at least. Your platform of choice should have the ability to interpret this language, no matter how unique it is.
  • Integration. In this respect, voice chatbots are just like ordinary chatbots: your chatbot platform must integrate smoothly with your company systems. Even the smoothest voice assistant will be of little help if it does not have deep and comprehensive access to the customer data your company already holds.

In essence, the platform you choose for your voice chatbot must get both the voice aspect right, and the chatbot aspect – excellence in just one of the two respects is not enough.

what is the future of voice chatbots

What is the future of voice chatbots?

One can argue that voice chatbots have their roots in a growing trend towards voice search: rooted, in turn, in personal assistants like Alexa-enabled devices or smartphone services such as Siri. It’s not just a trend in search – overall, consumers are showing signs that they like to interact with their devices using voice, not text.

There are many reasons for this, whether it’s a matter of convenience (a user’s hands are not free at the time, or the physical device is not within reach) or simply a matter of preference (the user finds typing too tedious).

Voice interaction will become more commonplace

However, it’s indisputable that voice interaction is here to stay. We think that voice chatbots will become increasingly important. For now, consumers accept that there is a limited number of businesses that they can interact with using voice.

But we’ve seen this picture before: in the technology arena, it starts with a few first movers – and before you know it, consumer expectation is that every business has that capability. That’s likely going to be the case for voice interaction too.

Early movers have an advantage

There’s something else we know about technological change: early movers have an advantage. Adopt voice chatbots before your competitors and you stand to have happier customers that interact with your business across more channels – so, more opportunities to sell, and a better customer experience.

Countless companies are already adopting chatbots simply out of necessity.

Simply put, there is little reason to delay adopting a voice chatbot – simply because doing so can be part and parcel of your existing chatbot infrastructure.

And, of course, because a voice chatbot gives you a head start over your competitors.

Why Xenioo delivers a top voice chatbots experience

With Xenioo, your business can enjoy all the benefits of a voice chatbot. You can create a skill for Amazon Alexa as well as an action for Google Assistant devices.

What’s more, you can publish your voice chatbot across to a range of other platforms too, with minimal adjustment.

It’s easy to get started with Xenioo – try out Xenioo for free, check out our tutorials or read up on what’s possible with Xenioo.

Want to know more? Just get in touch.

The post ultimate guide to voice chatbots: why your business needs one appeared first on Xenioo.

]]>
Come Creare Una Skill Alexa Con Xenioo (Parte 2) /come-creare-una-skill-alexa-con-xenioo-parte-2/ /come-creare-una-skill-alexa-con-xenioo-parte-2/#respond Sun, 28 Jul 2019 10:59:00 +0000 https://wp-it.xenioo.com/?p=2085 Nella prima parte abbiamo esplorato i concetti di base che stanno dietro la creazione di una skill Alexa pienamente funzionante e realizzata utilizzando la piattaforma chatbot Xenioo. In questa seconda parte andremo a vedere nel dettaglio alcune funzionalità avanzate quali lo streaming audio, la gestione degli stati e l’account linking. Riproduzione audio Per inviare genericamente dell’ audio ad un dispositivo Alexa è possibile operare in due differenti modalità: attraverso l’invio di un piccolo campione, come per esempio un effetto sonoro, ...

Read MoreCome Creare Una Skill Alexa Con Xenioo (Parte 2)

The post Come Creare Una Skill Alexa Con Xenioo (Parte 2) appeared first on Xenioo.

]]>
Nella prima parte abbiamo esplorato i concetti di base che stanno dietro la creazione di una skill Alexa pienamente funzionante e realizzata utilizzando la piattaforma chatbot Xenioo.

In questa seconda parte andremo a vedere nel dettaglio alcune funzionalità avanzate quali lo streaming audio, la gestione degli stati e l’account linking.

Riproduzione audio

Per inviare genericamente dell’ audio ad un dispositivo Alexa è possibile operare in due differenti modalità: attraverso l’invio di un piccolo campione, come per esempio un effetto sonoro, oppure attraverso l’invio di una più lunga e complessa sorgente in streaming.

Entrame le opzioni possono essere usate insieme in una stessa skill, pur funzionando in modo completamente diverso.

Per l’invio di un piccolo campione audio è sufficiente aggiungere al chatbot una Audio Action, specificando la sorgente del file.

Lascia pure tutti i campi vuoti (non è necessario aggiungere ulteriori informazioni per il nostro scopo) e ricordati unicamente di settare il flag “Embed in speech encoding if available”.
Questo flag servirà a Xenioo per automaticamente creare il messaggio SSML audio necessario a riprodurre il tuo mp3 su Alexa.

Se l’audio è lungo (pensa per esempio ad una canzone oppure un podcast) e vorresti dare all’utente la possibilità di mettere in pausa, saltare avanti oppure fermare la riproduzione, è necessario procedere con la seconda opzione di cui abbiamo parlato precedentemente: l’ Audio Streaming.

Streaming audio

Per abilitare lo streaming dell’audio è necessario informare la skill di questa nuova abilità, abilitando l’uso dell’interfaccia Audio Player.

Questa interfaccia deve essere abilitata all’interno della propria Alexa Developer Console.

Non appena questa interfaccia viene abilitata, noterai che sono stati aggiunti automaticamente alcuni nuovi intenti alla skill.

Questo sono gli intenti che Alexa definisce per consentire la navigazione standard di una playlist: riproduci(play), prossimo(next), precedente(previous), fermati(stop) e pausa(pause).

Tutti questi intenti sono gestiti direttamente utilizzando la sezione di AI di Xenioo: è sufficiente abbinare ogni intento Xenioo con la chiave di intento nativa di Alexa, esattamente come abbiamo visto nella prima parte dell’articolo.

Xenioo costruirà automaticamente il modello corretto per gestire la riproduzione streaming dell’audio.

Se per caso stai costruendo una skill multilingua, assicurati di duplicare tutti gli intenti per ogni lingua che desideri supportare: Xenioo costruirà automaticamente il modello Alexa per ogni lingua.

Lavorare con gli eventi di Alexa

Un aspetto importante da considerare quando si lavora con l’audio su Alexa è come rispondere ai cambi di stato che possono avvenire durante lo streaming.

Alexa ci consente di sapere non solo quando lo streaming ha avuto inizio, ma anche quando sta per finire oppure è terminato.

Inoltre sel’utente ferma oppure mette in pausa, Alexa ci comunica l’esatta posizione in cui lo streamin è stato fermato e se la playlist necessita di essere impostata, rinnovata oppure cancellata.

Tutti questi eventi sono automaticamente gestiti dal Xenioo e rediretti al flusso del chatbot per poter essere gestiti nel modo più opportuno.

L’approccio di Xenioo è sempre lo stesso: rimuovere tutti le cose inutili dal flusso mantenendo allo stesso tempo il controllo su tutto.

Le azioni chiave in questo caso sono l’azione Control Device State e l’azione Device State Switch. Entrambe queste azioni riceveranno i cambi di stato dal dispositivo Alexa e potranno quindi essere usate per gestire il flusso di conseguenza.

Account Linking

La funzionalità di Account Linking implementa una serie di procedure che possono essere utilizzate per collegare (link) una Skill Alexa con uno specifica registrazione(account) presso un servizio di terze parti.

Per esempio, un utente potrebbe utilizzare la skill unicamente avendo una sottoscrizione attiva al servizio che la skill eroga.

Una volta che l’account linking è stato correttamente configurato e la skill è collegata al servizio, in Xenioo si avrà a disposizione una variabile alexa_account_link_token_variable, disponibile ovunque nel flusso, la quale identifica univocamente l’utente(utile per esempio per chiamare delle api del servizio autenticandosi come quell’utente).

Pubblicazione finale della skill

Dopo aver implementato una skill capace di fare streaming di contenuti audio con tutte le funzionalità come descritto nei paragrafi precedenti, siamo senza dubbio pronti per andare in produzione.

Xenioo ha passato al 100% tutte le verifiche di sicurezza richieste dai servizi Amazon ed è perfettamente adatto ad “ospitare” anche le skill più avanzate.

Stai costruendo una skill per streaming dei tuoi contenuti? Vorresti avere il tuo podcast disponibile in una skill Alexa?

Bene! Abbiamo già costruito un template completo e pronto da pubblicare che copre esattamente quanto abbiamo visto in questo articolo. E’ gratuito e disponibile all’interno del tuo account Xenioo!

Entra in Xenioo e comincia a lavorarci oggi stesso!

The post Come Creare Una Skill Alexa Con Xenioo (Parte 2) appeared first on Xenioo.

]]>
/come-creare-una-skill-alexa-con-xenioo-parte-2/feed/ 0
How to build an Alexa Skill With Xenioo (Part 2) /building-an-alexa-skill-with-xenioo-part-2/ /building-an-alexa-skill-with-xenioo-part-2/#respond Sat, 27 Jul 2019 16:59:09 +0000 /?p=2272 In our previous post, we’ve explored the basic concepts behind the creation of a fully functional Alexa skill with Xenioo. In this second part, we’re going to delve deeper in other parts of advanced skill creation approaching. We will see topics like streaming, state management, and live publishing. Playing audio Sending audio to an Alexa device can be done in two ways. You either send a small sample, like a sound effect, or you send a longer and more complex ...

Read MoreHow to build an Alexa Skill With Xenioo (Part 2)

The post How to build an Alexa Skill With Xenioo (Part 2) appeared first on Xenioo.

]]>
In our previous post, we’ve explored the basic concepts behind the creation of a fully functional Alexa skill with Xenioo.

In this second part, we’re going to delve deeper in other parts of advanced skill creation approaching. We will see topics like streaming, state management, and live publishing.

Playing audio

Sending audio to an Alexa device can be done in two ways. You either send a small sample, like a sound effect, or you send a longer and more complex streaming source.

The two options are not mutually exclusive but work very differently.

To send a small sample you can just add an Audio Action to your chatbot specifying the source file.

Leave all fields empty (as there’s no need for any additional information) and check the “Embed in speech encoding if available”.
This way Xenioo will automatically create an SSML audio message with your mp3.

If your audio is long (like for example a song or a podcast) and you also want to give the user the ability to pause, skip ahead or stop you have to go for the second option: audio streaming.

Epicentric is a full streaming platform supporting complex playlists and effects and so playing simple audio wasn’t enough for us.

Streaming your audio

To enable streaming you have first to let Alexa know that your skill will use the Audio Player interface.

This is done by enabling the interface inside the Alexa Developer Console.

alexa skill audio player

As soon as you enable this interface, you’ll notice that your intents are automatically expanded to support standard playlist navigation: play, previous, next, stop and pause.

alexa skill chatbot intents

All of these intents are managed directly using Xenioo AI: just match each intent with the built-in Alexa intent key like we’ve seen in our previous post and Xenioo will automatically build the correct model to manage your player.

If you are building a multi-language skill, make sure to clone all intents in each language you want.

Xenioo will then automatically build an Alexa model for each language.

Working with Alexa States

Another important aspect of working with Alexa audio is responding to state changes during streaming.

Alexa will not only let you know that the audio has started but also when it is nearly finished and when it’s over. When the user stops or pause Alexa will let you know at exactly what position it was stopped and if the playlist needs to be set, renewed or cleared.

All of these events are automatically managed by Xenioo and redirect to your flow so that your chat can act accordingly. The usual approach is still here: remove all the nuisances from your workflow while keeping you in control of everything.

alexa skill chatbot flow

The key actions here are the Control Device State action and the Device State Switch Action. Both these actions will receive a state change from an Alexa device. They can be used to manage your flow accordingly.

Account Linking

Account Linking describes a set of procedures that can be used to link an Alexa skill to a specific account. For example, your user may be using your Alexa skill only with an active subscription to your service.

Once you’ve set up the account linking procedure for your application, you can use the alexa_account_link_token variable anywhere in your flow to identify (or login using your own API) your user.

Please note that although mainly static, the Alexa user-id value may be subject to sudden changes. Do not rely on this value to uniquely identify a user.

Final Publish

After implementing a full streaming skill with all the features we wanted, we are now ready to go live.

Xenioo is currently passing 100% of the routine security checks done by Amazon services. It is perfectly suitable for hosting your most advanced skills.

Building streaming skill? Want to have your own Podcast skill on Alexa? We already built a complete production-ready template covering all we’ve seen in this post for free!

Just join Xenioo and add it to your chatbots collection!

The post How to build an Alexa Skill With Xenioo (Part 2) appeared first on Xenioo.

]]>
/building-an-alexa-skill-with-xenioo-part-2/feed/ 0
Come creare una Skill Alexa con Xenioo (Parte 1) /come-creare-una-skill-alexa-con-xenioo-parte-1/ /come-creare-una-skill-alexa-con-xenioo-parte-1/#respond Thu, 27 Dec 2018 13:24:29 +0000 https://wp.xenioo.com/?p=989 La naturale evoluzione dei chatbot conversazionali è con tutta probabilità la trasformazioni verso veri e propri assistenti virtuali vocali. Amazon Alexa, Google Assistant, Duplex ed altre tecnologie emergenti, si integreranno perfettamente all’interno dei nostri dispositivi, consentendo esperienze di conversazione sempre più simili a quelle di solito affrontate con persone reali. Il “business della voce” è un trend in crescita e molte grosse realtà, a partire da Bezos di Amazon, stanno investendo molto nel mercato degli applicativi vocali. Inoltre molti nostri ...

Read MoreCome creare una Skill Alexa con Xenioo (Parte 1)

The post Come creare una Skill Alexa con Xenioo (Parte 1) appeared first on Xenioo.

]]>
La naturale evoluzione dei chatbot conversazionali è con tutta probabilità la trasformazioni verso veri e propri assistenti virtuali vocali.

Amazon Alexa, Google Assistant, Duplex ed altre tecnologie emergenti, si integreranno perfettamente all’interno dei nostri dispositivi, consentendo esperienze di conversazione sempre più simili a quelle di solito affrontate con persone reali.

Il “business della voce” è un trend in crescita e molte grosse realtà, a partire da Bezos di Amazon, stanno investendo molto nel mercato degli applicativi vocali.

Inoltre molti nostri clienti ci hanno chiesto di rendere disponibile questo tipo di integrazione all’interno di Xenioo.

Non potevamo non accettare questa sfida.

Con Xenioo è ora possibile progettare, costruire e pubblicare una Skill Alexa semplicemente creando un chatbot Xenioo come faresti per qualsiasi dei canali già disponibili.

In questo articolo andremo a vedere nel dettaglio esattamente come costruire una Skill Alexa capace di riprodurre la tua musica personale indipendentemente da dove si trova il tuo dispositivo.

Fantastico, vero? Continua a leggere.

Se ti interessa scoprire come costruire una Action Google Assistant, Xenioo supporta anche questo. Dettagli nel nostro articolo dedicato.

Creaiamo il Developer Account di Alexa

Ogni Skill di Alexa deve essere creata all’interno di un account di sviluppatore Alexa (Alexa Development Account).

La creazione di questo account è gratuita e puoi utilizzare, se preferisci, lo stesso account che già utilizzi per gli acquisti su Amazon.

Ogni Skill in stato di test viene automaticamente distribuita su tutti i dispositivi associati al tuo account di sviluppo. E’ quindi una buona idea utilizzare lo stesso account che stai utilizzando sui tuoi dispositivi.

Tieni presente che se desideri aggiornare lo stato del tuo account su ogni dispositivo, sarà necessario procedere prima alla de-registrazione e successivamente alla registrazione, come spiegato nella documentazione tecnica di Alexa.

Dopo che l’account di sviluppo è stato impostato, sei pronto per creare la tua prima Skill Alexa.

Esistono una moltitudine di templates che ti permettono di creare Skills con uno sforzo minimo e molto rapidamente, ma con il limite di lasciare poco controllo su quelle che la Skill potrà fare.

Per il nostro esempio andremo a selezionare una Skill completamente personalizzata (“Custom”).

Successivamente, andremo a selezionare che intendiamo cominciare da zero (“Start from scratch”), proseguendo nella sezione Builder.

Dal momento che vogliamo costruire una Skill che faccia streaming audio, andremo a cliccare sul bottone “Interfaces” per poi abilitare l’interfaccia “Audio Player”.

Perfetto! Per ora non ci serve più niente dal pannello sviluppatore di Alexa. Possiamo quindi procedere nella configurazione del servizio di streaming.

Configuriamo il servizio di Streaming

Nel nostro esempio non vogliamo usare un servizio di streaming generico, come tanti disponibili online.

Ci interessa invece ascoltare musica dalla nostra collezione musicale che abbiamo pazientemente creato e curato nel corso degli anni e che si trova depositata su uno o più dischi del nosto network casalingo.

Per fare tutto questo, dobbiamo integrare Xenioo con un altro eccezionale servizio: Epicentric.

Epicentric è un servizio online che ti consente di caricare la tua musica personale per ascoltarla ovunque ti trovi.

Inoltre ti permette di creare playlist multiple ed avanzata, basate su mappe mentali e che verranno automaticamente gestite dalla intelligenza artificiale della piattaforma.

Esattamente come abbiamo fatto per l’account Alexa, dovremo procedere a creare un account anche su Epicentric. E’ gratuito e dopo una veloce introduzione per capire come utilizzarlo, saremo pronti per procedere con la creazione della nostra Skill.

La conversazione con Alexa

Alexa è costruito attorno al concetto di interazione conversazionale libera: la conversazione tra l’utente ed Alexa (e quindi il tuo chatbot) non può avere veri flussi predefiniti.

Infatti un utente potrebbe dire qualsiasi cosa, in qualsiasi momento e con diversi livelli di informazioni presenti.

Vediamo un esempio qui sotto:

Seppure estramente semplice, l’esempio di conversazione sopra riportato rappresenta il perfetto scambio utente – Alexa: l’utente esprime esattamente la sua richiesta e la Skill risponde di conseguenza.

Purtroppo non possiamo aspettarci che tutte le conversazioni siano cosi lineari e precise. Anzi, molto spesso il tipo di conversazione che avvine è più simile all’esempio sottostante:

Come puoi vedere, l’utente non stà dando tutte le informazioni alla prima interazione, e questo porta la Skill a dover riformulare alcune domande per poter arrivare ad ottenere tutte le informazioni necessarie a completare la richiesta.

Le informazioni richieste dalla Skill sono chiamate Slots e possono essere paragonate a quelle che in Xenioo sono le Entità NLP e Variabili durante un conversazione standard con un chatbot.

Creiamo il chatbot vocale

Con le informazioni che abbiamo appreso nel paragrafo precedente, possiamo ora proseguire finalmente nella creazione del nostro chatbot per Alexa.

Non sarà molto diverso dalla creazione di un chatbot conversazionale standard: dal momento che, come abbiamo detto precedentemente, non ci sarà un vero e proprio flusso guidato, possiamo andare direttamente nella sezione AI per configurare tutta la NLP necessario per guidare la nostra Skill.

All’interno della sezione AI di Xenioo, andremo a definire tutti gli intenti e le espressioni che saranno usate per creare il modello conversazionale della Skill, definendo allo stesso tempo come verrà eseguito il flusso.

In base al tipo di Skill che si sta creando, potrebbe essere necessario implementare degli specifici intenti.

Per la nostra Skill di streaming, per esempio, è necessario implementare almeno due tipi di intenti specifici: Pause e Resume.

Oltre questi due, obbligatori, potrai poi creare quanti più intenti ti servono per far gestire la conversazione ad Alexa nel modo desiderato.

Qualsiasi cosa venga detto ad Alexa verrà processato dagli intenti definiti e passato a Xenioo, che a sua volta redirigerà il flusso alle interazioni configurate.

Lo schema sottostante illustra cosa effettivamente accade dietro le quinte:

Xenioo utilizza l’ Alexa SSML in ogni testo che è spedito indietro all’utente. Sei quindi libero di poter usare ogni interruzione, sospiro o qualsiasi altro tag supportato per ottenere specifici effetti vocali.

Una volta che hai creato i tuoi intenti, ricordati di collegarli alle interazioni del chatbot. Infatti qualsiasi cosa detta dall’utente attiverà uno degli intenti esistenti e solo gli intenti che sono collegati ad una interazione esistente saranno pubblicati nella Skill.

Inoltre, se vuoi implementare o sovrascrivere uno degli intenti predefiniti in Alexa (come per esempio il Resume oppure Pause), ricorda di specificare la chiave Alexa nel campo Key dell’intento, come mostrato nell’immagine sottostante.

Pubblichiamo il chabot in una Skill Alexa

Siamo arrivati al punto in cui finalmente possiamo pubblicare il nostro chatbot nella nostra prima Skill Alexa e cominciare a fare dei veri test sui dispositivi.

Possiamo farlo come sempre cliccando sul bottone Publish dalla sezione Build del chatbot.

Nella sezione dei canali, selezioniamo Alexa e clicchiamo sul bottone di login con logo Amazon. Seguite la procedura che vi porterà a connettere il vostro profilo Amazon con Xenioo: è in questo modo che Xenioo potrà pubblicare la vostra Skill per voi.

Dopo aver confermato il collegamento tra gli account ed i permessi richiesti, possiamo continuare con la configurazione della pubblicazione della Skill.

Nella sezione Deploy dovrete selezionare la Skill da pubblicare, la localizzazione ed il testo per l’attivazione.

Il testo di attivazione sarà usato da Alexa per attivare la tua skill, quindi cerca di utilizzare una parola o una frase che isa semplice da ripetere e che non possa andare in conflitto che le frasi di default di Alexa.

La configurazione più importante in questa sezione è l’ Hook Url: copiate questo URL ed incollatelo nella configurazione dell’endpoint nel pannello di Alexa per skill che si sta configurando.

Tieni presente che Xenioo aggiornerà unicamente l’ Invocation Model della Skill, dal momenteo che è ciò che permette la gestione della conversazione. Xenioo non andrà mai a sovrascrivere nessun settaggio configurato dal pannello nativo di configurazione della Skill Alexa.

Xenioo è il “middleware back-end” perfetto e la piattaforma basata su intelligenza artificiale ideale per progettare anche le skill più compesse. E lo fa decisamente bene.

Una volta che tutto è stato configurato correttamente, cliccate Publish e la Skill sarà pronta per essere testata dal dispositivo.

Nel nostro prossimo articolo, vedremo come funzionano nel dettaglio lo Streaming, Account Linking (collegamento degli account) e Device State Management (gestione dello stato del dispositivo).

The post Come creare una Skill Alexa con Xenioo (Parte 1) appeared first on Xenioo.

]]>
/come-creare-una-skill-alexa-con-xenioo-parte-1/feed/ 0