Showing AWS Lex Responce cards on chatbot integrated to website - chatbot

I have created a chatbot in AWS Lex and integrated it with my website. After that, I used AWS Lex Response Cards on my chatbot and those response cards are not working in my chatbot integrated into my website. I have integrated the same bot in Facebook page there response cards are working fine.
How to display response cards onto my website's chatbot?

The Chatbot client is responsible for rendering and showing the responses and response cards to the user. Facebook (client) is able to render the response cards sent by Lex.
You could do below:
In your website you should write some logic to render the response
card and convert the JSON into HTML
Instead of sending the response card, send the HTML code from Lambda
function which you want to show on website
Hope it helps.

Related

Watson Assistant to catch the elements in the webpage

I have a Watson Assistant chatbot embedded in a webpage using the Web Chat embedding integration JavaScript.
I need to make the embedded chatbot catch the login information from the webpage the chatbot is embedded in. Like, making the chatbot starts with "Hi Adam" based on that Adam is already logged into the webpage. Or, even how to make the chatbot catch different elements in the page it's embedded into.
Any advice is appreciated..
Thanks..
You will need to extend the IBM Web Chat client, to capture the login info, and then pass this info back into the Watson Assistant payload. I would suggest adding the info to the context, so that it can easily be used in your answers as you have commented about. This will mean extra JS coding. There is more info in the Watson doc's about extending the Web chat bot or on the IBM Github.

Google chatbot: Response cards are suddenly not showing up in chatbot

I have created a chatbot with bot url(API Gateway API using a lambda function). Response messages/cards are correctly returned to the bot. But today response messages are working as expected but suddenly cards are not showing up in the response to Bot , its blank (API logs are fine, I can see that api has returned the card ).
After a while I am able to see the response cards are showing up for the previous requests also.
After refreshing chatbot page, the response cards renders properly
I think this is a bug.
I normally send messages to my hangouts groups with reminders and they are not working since 2 days ago.
As far as i can see, if i have a button with a url link, the card dosent show.
Card without the link work fine.
As you said, if i close and reopen hangouts, the cards show.
I have opened an issue on the chat api tracker about that https://issuetracker.google.com/issues/153412841
Edit: I was putting a textParagraph and buttons in the same widget. It was working before but now it doesn't. See the doc .

IBM watson chatbot for facebook messenger

I am trying to implement IBM Watson chatbot into facebook messenger. I am able to verify my webhook. Also, able to receive and send custom messages through facebook to my webhook.
The problem is that i can't receive messages from IBM Watson. IBM Watson is not able to detect my messages and provide appropriate response. Also, can't receive my welcome message from IBM Watson in facebook messenger when chat window is opened. The tutorial which I followed was on youtube and the link is https://www.youtube.com/watch?v=FdsjS7ZnPLw
Any suggestion would be a great help. Thanks.
The most common cause is not subscribing your webhook to a page after creating it.
The UI doesn't appear until you create your webhook in FB (It's been a year since I have had to do it, so it may have changed).
If that is set up, try connecting to your application layer in postman and make sure you are sending and receiving the right information.
Regarding Welcome message:
The Welcome node of your dialog is not processed by the Facebook Messenger integration. The welcome message is not displayed in the Facebook chat like it is in the "Try it out" pane or in the Preview Link integration web page. It is not triggered from here because nodes with the welcome special condition are skipped in dialog flows that are started by users. Facebook Messenger waits for the user to initiate the conversation. If you need to set default values for context variables at the start of your conversation, do not set them in the welcome node.
for more information check: Integrating IBM Watson Assistant with Facebook Messenger

Facebook sends very compressed image in messenger webhook

In my bot i use Facebook Send Api
I need get image send by user via facebook messenger (from message.attachments[0].payload.url )
But in web version and messenger app I gets VERY different compression
Image in web version
Image in webhook
But it is very compressed and this is a big problem.
Is there any way to get an original or a better-quality image?

Send rich messages like html table in webhook response of api.ai

I'm trying to build a bot using api.ai and connecting it with Facebook & slack integrations. My requirement is to send rich messages like HTML table, Graph snapshots like statsbot in response of the webhook in api.ai
Please anyone show me a demo of how to achieve the same.
Also, I have to make sure that there is minimal changes for the UI for slack & facebook messenger. Does API.ai handle the same automatically