Can Amazon Lex be used with other platforms (eg. Google Home)? - aws-lambda

I'm trying to figure out which open source framework to use to start building a conversational AI for our business. We are a financial technology company so security/ privacy is just as important as ability to build features quickly.
Amazon Lex seems to be a good choice, is it possible to use it with Google Home or other voice assistants?
Also, any additional advice on which platform to use/ architecture would be very much appreciated.
Thank you!

Yes Amazon Lex can work with other services. From the Lex website:
"With Amazon Lex, you can build, test, and deploy your chatbots directly from the Amazon Lex console. Amazon Lex enables you to easily publish your voice or text chatbots to mobile devices, web apps, and chat services such as Facebook Messenger, Slack, Kik, and Twilio SMS. Once published, your Amazon Lex bot processes voice or text input in conversation with your end-users. Amazon Lex is a fully managed service so as your user engagement increases, you don’t need to worry about provisioning hardware and managing infrastructure to power your bot experience."

The answer is a bit more complex than that! Adding a bit more here as this is coming up in Google searches:
Yes, it can integrate with Facebook Messenger, Slack, Kik and Twilio SMS — those have options direct in the Lex interface for linking those services. When it comes to Google Home, you'd need to create your own bridge between Amazon Lex and Google's Actions SDK.
So you'd take what the Google Actions SDK hears someone say when they speak to their Google Home (the fulfilment text), and then need to pass that onto Amazon Lex. To do that, you need to use Amazon Lex's postText or postContent functions (Lex Runtime docs on that). I haven't done this myself just yet, but I've heard of others doing similar and spotted this Stack Overflow post explaining it in a bit more detail when looking for an example.

Related

Logging user responses for IBM Watson Chatbot

I am trying to implement IBM Watson chatbot into a mobile application, and would need logging of user responses to the chatbot. So far, I don't know of any docs or guides to log user responses to the chatbot or the chatbot's responses.
How would I log the user's messages to the bot?
Thanks in advance.
I would suggest that you start investigating the docs about the Watson Assistant API. They are part of the Watson Assistant documentation and describe how to integrate a bot (assistant + skill(s)) into an app.
Watson Assistant provides several ready integrations to link an assistant to platforms like Facebook Messenger, Slack, Zenhub and others. But for a custom application you would need to use the API. The Watson Developer Cloud org on GitHub hosts SDKs for many common programming languages, including code samples.

Sinch integration with chat bot platform

is it possible to use chat bot on platforms like Dialogflow, IBM Watson, Kore.ai etc in integration with CAAS platforms like Sinch? To elaborate my query, I want to use Sinch for making calls to user and use my chatbot to provide dialogue responses to the user instead of doing it manually.
I can answer your query on behalf of Kore.ai & as well can give you insights regarding Watson & DialogFlow
Kore.ai- currently has a very vast library of API integrations available for most of the IVR services available in the market. Kore.ai also has an inbuilt ASR engine & the best TTS feature. This will help the incoming voice to be converted to text & the response can be automated based on the learning you impart to the bot. - I tried a similar one like this for personal use.
In perspective of IBM & Dialogflow - there are some of the integrations missing , since they do not actively collaborate with all vendors in the market (due to their size & presence) - and also, they have their own internal softwares which they'd ideally want to push for public use.
The TTS is IBM Watson & DialogFlow is not state-of the art there are many missing elements in how the voice is intepreted to text. Just the other day I was trying to compare the ASR of DialogFlow & Kore.ai - and I had visible differences. I will soon blog with the transcripts I received from both platforms.
To my view I'd suggest trying out Kore.ai platform & then comparing the same with others.
The chatbot platforms you have cited, Dialogflow an Watson for sure, have an extensive API and various methods to accept incoming messages, elaborate them, create discussion, create responses and send them back to the exterior.
So it is possible in principle to integrate them with the external world, but you need to study the inners of the framework and how it dialogates with external sources.
The principle with these chatbot frameworks, that often integrate also Natural Language Undersanding(NLU) and NLP capabilites, is like this:
text input from external world -> understand text\extract entities(names,addresses,ecc...) -> choose appopriate response/create a discussion/create a question -> send the response back to world

Chatbot handoff from Messenger to Zendesk

I am developing a customer service chatbot, using Azure's Bot Framework in .NET, using the the Messenger channel. I wanted to know if anyone knows what the best way to handle the handoff to a human on Zendesk (which my platform already uses as its CRM platform). I'm not looking for when to do the handoff, but how to manage what happens next.
What I would love to be able to do would be that so when handoff is needed, a ticket on Zendesk would be created, sending for example a file (the transcript of the conversation so far). Then the agent would be able to solve the customer's problem in that ticket, having a conversation with him, having the bot sending messages back and forth between zendesk and messenger.
I don't know if this has been done before, or if it's at all possible. And I'm free to other solutions to the problem of handling this kind of handoff, without having to create a separate "chat" for the customer service agents to use, like it's explained on the azure documentation.
Thank you for your patience while I researched this. I found this resource that I believe will meet your needs. This functionality is built off of the Bot Framework utilizing .NET (it's also available for Nodejs). There are two available methods to connect a client to an agent.
The first (which should apply to you) aggregates different channels into one allowing an agent to pickup in the same channel where the bot handed off. The second opens a new channel when an agent joins the conversation.
Intermediator Bot
I was able to spin up a bot using this and confirmed the bot was listening for outside traffic.
Hope this helps.
Steve.
One thing that I'm about to try is this:
Bot conversation ends.
Bot service calls an Azure Function, passing the conversation content.
The Azure Function integrates with Trello API, creating an entry on a Kanban board.
So, instead of Trello as I want to do, you can make a call to the Zendesk API.
I'm writing a few articles about developing Azure bots. The next two actually are dealing with these very things. You can find out more here. sign up if you'd like to get notified over the next week or so when the new tutorials are online.
Hope that helps!
Tim

Compare Microsoft Bot Framework With Howdy Botkit

I am looking to create a bot and have come across Microsoft Bot Framework (with LUIS or can use C# SDK provided by API.AI) and Howdy.ai Botkit (with Middleware support for LUIS & API.AI).
Can someone help me with comparison between these two?
I am looking for following things in my bot -
Support multiple channels including Email.
Have the bot act in both reactive (reply to some user message) and proactive (send out message to users once a day about something important to them or followups)
manners.
Save and later retrieve user provided data (manage state).
Rich message support.
Respond with delay.
Manage conversation history.
Are there things that are available in one but not in another?
I tried developing a bot in Botkit and MS Bot framework both. Ultimately I went with MS bot framework. Some of my reasons which could help with the comparison:
MSBotFramework has support for skype, slack, telegram, Facebook, and many other channels. BotKit, the last I checked, supported only Facebook and slack. I was targeting skype and telegram and that was a deal breaker.
Botkit currently is node.js only. On the other hand, MSBotFramework has .Net, Node.js and even a REST API (which basically means you can use it from any language you want). Also, there are python wrappers available which internally make use of the REST API.
Being a Microsoft product, MSBotFramework's integration with skype, azure, azure analytics, LUIS and other Microsoft services is very easy. This could be required for developing, deploying or integrating natural language support. Botkit supports LUIS integration, which is fairly easy( maybe as easy as MSBotFramework). The analytics (through botkit studio) (was) very basic and MSBotFramework wins hands down here.
I found the documentation for MSBotFramework more comprehensive than Botkit but both of them have an equal amount of resources and documentation.
Some of the other points you have asked about:
Proactive messages depend on the channel you are developing for. For eg. Facebook allows a time window of 24 hours from the user's last message in which you can reply. Whereas other platforms like skype and telegram allow you to send a message anytime you want.
State management will need to be handled on your end. Bot Framework provides some mechanism, but it is not robust enough to be used in production.msdoc
Rich messages are platform dependent, but bot framework does pretty well in catering to most of them. So, the way this works is, you send back the message to bot framework in its own rich message format. It converts to platform specific format. If you have only one or 2 platforms in mind, you can develop accordingly.
Respond with delay - You will have to implement it yourself, though bot framework has lots of examples of doing this.github
Managing conversation can be done easily if you are using C# and .Net platform in general. The documentation and number of examples are very impressive.github repo for samples
All in all, I would recommend MS bot framework.

Twilio, Tropo - who else for SMS and Voice apps?

I've found Twilio and Tropo so far as services to aid SMS and Voice apps.
Are there others?
I am interested mostly in real-time speech recognition (i.e. the user can speak things and the system can respond based on that).
Also, if anyone knows what the speech recognition quality is like, it'd help!
For reliable SMS delivery we tested Tropo and Twilio and Twilio won hands down... Better API imo (including callbacks that make things like knowing how long a call lasted trivially easy), they manage the sending rate so you don't have to (Tropo discards SMS messages if you send too fast).
On the other hand, Tropo has speech recognition that works very well (although not as well on real-world cell calls in less than silent environments) and has integrated Twitter support.
Both offer excellent support. Tropo is free for development, but Twilio is so inexpensive that's probably a non issue.
My more detailed writeup is at http://pardner.com/2011/04/tropo-not-ready-for-prime-time-went-with-twilio/
(Since the blog was written I've learned Tropo fixed Twitter support, so that's actually a very cool feature in favor of Tropo. Turns out you can mix n match, our app uses BOTH.)
For speech recognition and an API-based telephony service, Tropo's about the only option. If you drop the speech reco requirement CloudVox (hosted asterisk apps) could be a possibility. Or you could install Asterisk yourself and use something like Adhearsion to develop your apps.
If you want to expand your scope beyond cloud telephony APIs, then you could take a look at VoiceXML, a W3C standard for building telephony apps. VoiceXML hosts generally support speech recognition. A search for "VoiceXML Hosting" will turn up several thousand options.
In the interest of disclosure, I'm one of the guys behind Tropo and we're a product from Voxeo, the largest VoiceXML host.
I am reevaluating vendors that provide Voice, SMS, and Email broadcast services. It seems that most of the more reputable names out there (Twilio, Plivo, TelAPI) only offer SMS and Voice capabilities, not Email. SimplyCast is one of the few vendors that seem to provide all three.
Any recommendations on vendors that provide Email/Voice/SMS and the following capabilities through an API?
Submitting and reporting on broadcasts
Create Email broadcasts with attachments
Email templates for customized messages
Submit voice recordings (mp3 preferred) for voice broadcasts
SMS broadcast creation
Reliable uptime and support

Resources