Need feature like emojiesand feedback to get rendered in every bot responses - botframework

I saw there are emojis attached with every message in microsoft teams.
Is it possible to implement the same scenario in webchat. if yes please help me to achieve it.
i also want a code snippet to render feedback thumbs up and thumbs down button in every bot response.
i need an explanary code snippet using javascript or jquery and a small demo(if possible).

The WebChat is easy to extend, thus your scenario should be possible. There is an example that is close to your needs.
Have a look at the WebChat documentation, sample 09.customization-reaction-buttons. (demo).
Introduces the ability to create custom components for Web Chat that
are unique to your bot's needs. This tutorial demonstrates the ability
to add reaction emoji such as 👍 and 👎 to conversational activities.

Related

Chatbot with map/location picker

I am planning to build a chat bot using either azure framework composer, aws lex or google dialogflow but none seem to offer an easy way to have a map/location picker. It should be an straight forward interaction with user where based on a button click the user can then pick the precise location from the map.
Has anyone done something like that?
Many thanks.
I don't believe that any pure NLU framework is going to offer you that level of functionality.
The true purpose behind the likes of Amazon Lex, Google Diaglogflow is to perform intent detection and classification. It is up to the developer to build out the desired functionality associated with each of the configured intents.
What it may practically come down to is presenting the chat user with a map/location popup within the chat widget. The user could then select their current/desired location which gets sent back to the NLU framework for fulfillment.

Display Charts and Graphs in MS Teams using Microsoft Bot Framework

I am currently working on a bot built using MS Bot Framework and Ii'm looking for a solution to display charts (i.e. pie charts, etc.) inside MS Teams using Bot Framework. The goal is to get data from a SQL database, process it to form a chart and send it as an attachment or adaptive card to MS Teams.
Your question is a bit vague - I'm not exactly sure what you're asking for exactly, but maybe this can help: I can think of 3 possible ways to do this:
1) Generate your graph programmatically, e.g. in C# (there are a bunch of possibly libraries for this), save it to a temporary location (e.g. Azure blob storage) and then embed the link as a message from the bot
2) same as above, but insert it into an adaptive card (not required, but maybe if you want to send other things like text message etc.
3) Create a Tab to go along with your bot, which is basically a web page you host somewhere, that shows the graph using, for example, a javascript library. The tab appears along the top in the bot's conversation with the user, and you can have an adaptive card with a button that deep links to the tab, for instance.
Which approach you choose might depend on the size of the chart, whether it needs to be interactive, and I'm sure other possible factors. There are also other possible ways to tackle this I'm sure, but these are hopefully some good ideas/starting points.

How to create dynamic dialogs from REST API in botframework

I wan't to build a bot that gather its answers and questions from a rest API.
Bot: How are you?
User: I'm fine, how are you?
Bot: I'm fine, also.
So the questions from the bot (even the first one) is gathered via REST API from an external service. Also the answer of the user is sent to this service and the Bots answer "I'm fine, also" is the result of a REST request.
I've first implemented it without using dialog feature at all. Works great, but without a dialog it's impossible to finish a dialog.
Looking around for some example I could only find some with WaterfallDialog. WatefallDialogs are build with steps - and I don't know the number of steps.
Is it possible to build such a dialog or isn't botframework not designed for such things?
In bot framework V4, the dialog/conversation flow you pick for conversations is optional, and you don't need to use them (https://learn.microsoft.com/en-us/azure/bot-service/bot-service-design-conversation-flow?view=azure-bot-service-4.0). All you NEED to do is implement bot state (https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-howto-v4-state?view=azure-bot-service-4.0), so you can store either conversation data (or user data - depends on what state you need.)
I implemented conversational flow using a single activity handler and an FSM (https://en.wikipedia.org/wiki/Finite-state_machine) - I use recognizers for common dialogs (help) but for the most part, my transition handler does regex comparisons to extract keywords and then hit the next state. So, if you can graph out your FSM, and list out all your dialog options, you can build a dialog that appears conversational and natural.
I can't share code at this time, but hopefully you don't need it.

Which bot framework to use (if any) for a Kik, Facebook, & Slack messaging bot using javascript?

I'm building a chatbot that will need to be launched on Kik, Facebook, and Slack. I'm unsure of where to start in terms of using a bot framework or whether I should create something custom myself.
I don't believe I will need any NLP. The user is going to be pushed down a very structured path, that will use buttons to guide the users to the next prompts and will also share with the user links and media.
Microsoft Bot Framework seems like the main framework I should look at, but its unclear to me how useful it will be if I end up wanting to deliver responses that are custom to each messaging platform. Meaning, on Facebook I may want to take advantage of a custom feature that they have like buttons or templates and on Kik I will want to take advantage of suggested keyboards.
Any suggestions or guidance is appreciated.
BotFramework will do the translation for you. Write to the BotFramework schema and it will using buttons for Facebook and keyboards for Kik.

How can i use Dhtmlx Messages in chat application

In your dhtmlx message sample examples you said that we can use
dhtmlx messages to communicate with application users.
That was a great idea.
But how can i do that?
Any hints?
Thanks,
Naresh Adla
you probably misunderstood the whole point of dhtmlxmessage, the purpose of that "module" is to communicate your users about actions they perform on your web application, like sending error messages when they do something wrong,or success message, or being able to confirm certain actions like for example deleting or modifying certain information,.
If you wish a javascript chat application you could check here Jquery CHAT API
or there are plenty of other javascript chat applications, but certainly dhtmlxmessage won't work as a chat.

Resources