Amazon lex response card in Connect chat - amazon-lex

I am working on amazon lex and integrating amazon lex with connect chat So, I used the response card in amazon lex but it didn't show in connect chat so is there any way to show the button response card in connect chat

This cannot be done (at this time - August 2021). However search for amazon connect interactive messages blog and you will find something usable

Related

Amazon Kendra and Botpress

I am trying to integrate my Botpress (Chatbot) with Kendra. So that when a user types a query it will trigger the Kendra and give the results. I have created the s3, Index & Experience. I am getting the response on Kendra experience. But I want to connect my Kendra with a chatbot whose backend is Node.js. In my bot I have to make connections and in the Kendra documentation there is nothing I found to make a connection to my Kendra.
Amazon LEX has a native offering for integrating with Kendra - https://aws.amazon.com/blogs/machine-learning/integrate-amazon-kendra-and-amazon-lex-using-a-search-intent/.
For other chatbots, you need to build the integration using AWS SDKs.

Streaming Google Cloud Monitoring alerts into Twitter

so we previously were able to send Nagios notifications into Twitter. We have since switched to Google Stackdriver, and would like to create an alert notification channel for Twitter. I had a look at both Google Cloud Monitoring API and Twitter API, but I don't think we can do this yet. Has anyone successfully done this?
Unfortunately currently there is no support for Twitter, however it supports this Notifications Channels [1]: Email, Mobile App, PagerDuty, SMS, Slack, Webhooks and Pub/Sub.
There is a Feature Request in their Public Issue Tracker[2] asking for this characteristic on Notifications Channels, and you will be able to follow any progress by Clicking in the “Star” icon, at the top-left of the Feature Request.
__
[1]https://cloud.google.com/monitoring/support/notification-options#creating_channels
[2]issuetracker.google.com/172456245

Can we use Alexa skill from custom iOS app?

Can I use Alexa skill from my iOS application (just like we do it from the Echo dot etc)?
I checked a few old links which are working as follows, and I think it can be done using AVS:
record the message
upload it and get Alexa's response
Play it using some player
For that, it needs token (which can be obtained if a user logs in).
I checked a few SO links (link1, link2) as well but didn't get the answer.
Is there any SDK or API to do it? I didn't get enough info from AWS documentation.
Is it even possible? How to use AVS in my iOS app?
I believe you need to explore AWS LEX. It is the same service that powers Alexa. It allows you to create conversational bots, that can consume voice or text input and can give back voice or text output. You can integrate lex in any application whether it is mobile, web or voice application.
Here is a useful link that you can follow to understand how you can utilize LEX for your iOS app.
Deploying an Amazon Lex Bot in Mobile Applications

Geting the photo sent from Facebook Messenger Charbot to Amazon Lex

Is there a way to receive or get the image sent from Facebook Messenger Chatbot to Amazon Lex?
Currently when I send an image to my chatbot in Facebook Messenger it doesn't reply or have the "seen" status.
Unfortunately, no.
AWS Lex is a conversation bot that only responds to voice and text.
You should setup an API Gateway which will connect to your FB bot.
This API Gateway will forward the request to Lambda function, which will do pre-processing, image processing etc, then forward the request to Lex using PostText (if required) or directly reply to your FB bot. Lex, then, can call one more Lambda function as it normally does.
Your architecture will then look like below image:
Instead of Twillio you can use Facebook, and in the Lambda function you can decide which requests to forward to Lex and where you need to apply image processing or anything.
See this link for detailed information.
Hope it helps.

Using Amazon SNS with React Native

Can anyone provide a simple example of using the Amazon SNS service to send and receive Push Notifications under React Native?
I've got the Amazon SNS service setup, and I can publish a message from the website and have it appear on an iPhone – if I manually enter the device token and initiate the publish on the Amazon website. Now I want to automate the process of registering the Push Token in Amazon SNS, and allow the app to Publish a push to the SNS service.
I know that Amazon has a very new project to integrate their SDK into React Native, but I cannot get it working. Support on that repo is spare too, so I'm hoping someone here can help.
Right now what I get is: Undefined is not an object (evaluating 'cognateClient.initWithOptions')
The GitHub issues mention something similar on Android, but obviously that doesn't help with my iOS app.
What I'm looking for is a step-by-step breakdown of how to integrate Amazon's code in to an existing RN app. They don't provide a standard Node package, so I'm struggling to figure out how to get the React Native code and the SDK to play nice with Xcode.
Any suggestions? Thanks!
There's no 'integration' of AWS into the RN app needed. You just need the device token from RN.
Use a package like RNPN (https://github.com/zo0r/react-native-push-notification) in order to get the device token your phone generates. When you have that, make a call to your api, and your api is then responsible to call out to SNS to register that device token as an SNS 'endpoint'.
Translate this pseudo-code into whatever your API is written in: https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html
In short...
RNPN onRegister ->
POST /registerDevice on your api ->
call AWS
createPlatformEndpoint from your api ->
start sending messages from your api
Most likely you'll want to store some relationship from user -> deviceToken+platformEndpoint in your db/data store.
Then you can send notifications from your api. Wrote up how to do that here: https://medium.com/#duhseekoh/send-a-push-notification-using-aws-sns-javascript-sdk-2f117e9c4180
Im using react-native-fcm with Amazon sns, it will register my device token and then we are sending that token to our php solution that then add the device to a subscription on a topic in SNS, passed back to the app is the subscription token and endsub tokens. Then we Push Messages to the topic thru SNS. Works on both iOS and Android.

Resources