I want the user to be prompted with different options, but instead of text, I want them to be pictures, so the user would be able to click the image he/she wants.
I'm working with Microsoft bot framework in node.js.
My question is similar to this but with node instead of C#.
I have also checked prompts documentation but it look as if it weren't possible out of the box.
My bot is running on FaceBook, Perhaps it's not so important.
Currently, this is not a feature of the existing prompt system in BotBuilder SDK as of 5/8/17, but you are welcome to contribute this feature via a pull request to Microsoft/BotBuilder.
Please check out AdaptiveCards: http://adaptivecards.io/
Here is the GitHub repo: https://github.com/Microsoft/AdaptiveCards
Here is the npm package: https://www.npmjs.com/package/microsoft-adaptivecards
Adaptive Cards enable prompting users with images they can click on (just what you're looking for).
Related
is it possible to install copy protection in a telegram bot?
the bot sends docx files, images and text.
I would like to make it so that they cannot be copied but can be viewed. I couldn't find anything in the telegram bot api documentation, I can't Google it either.
the bot is written in node.js. used the node-telegram-bot-api library
For the third day I have been struggling with the question, suddenly who knows if it is possible at all. Maybe it can be done in some other way. For example, to raise a web server where you can watch content and send only links in the bot.
You can de-activate buttons like "Save As..." or "Share to..." by adding a protect_content parameter. It is available for many methods, including sendMessage, sendPhoto, sendDocument.
Of course anything that can be viewed can also be copied in some way or another. Nonetheless it provides some protection.
I would like to develop a new web-app in node.js (using express). I am relatively new to node.js world, so I assume there are frameworks that I am not familiar with.
Is there any framework (like Spring for Java) that manages authentication (and save the trouble from the developer)? Or each developer has to write this code over and over again?
Login/Logout is not all. There are other flows:
registration (create account),
forgot-password (and then set new password),
locking/unlocking an account,
change password
and I think I have covered all flows.
I know that each application has its own UI, forms, maybe with its logo, but the flow itself is similar for most applications.
In addition, I know that it is not that hard to implement, but it could be great to have some kind of tool / framework / infrastructure which implements the flows.
Is there such a tool/framework which helps applications' developers and implements these flows?
I've searched this issue but could not find anything.
Thanks!
Long ago I have developed authentication-flows for Java over Spring, and recently I wrote authentication-flows-js.
It is a module that answers most flows - authentication, registration, forgot-password, change password etc., and it is secured enough so applications can use it without the fear that it will be easily hacked.
It is for node.js applications (written in TypeScript) that use express. It is an open source (in GitHub). A release version is on npm, so you can use it as a dependency in your package.json.
In its README (and of course in the npm page) there are detailed explanations for everything and if something is missing - please let me know. An article will be published soon (I will add a link as a comment).
You can find here an example for a hosting application.
NOTE: I have heard comments like "It's not so difficult to implement". True.
But you have to make sure you take care of all cases. For example,
what happens if a user tries to create account that is already exists?
what happens if a user tries to create account that is already exists
but inactive? what about the policy of the password? (too long/too
short/how many capital etc.) what about sending the email with the
activation link to the user? how you create this link? should you
encrypt it? what about the controller that will receive the click on
the link and activate the account? and more...
I use Google Dialog Flow and I still created a Agent. I want to customize the appeareance of the chat window and I do not know how to do it. It seems like there is no options to do this in the DialogFlow Console. I have seen that there are products like Botcopy, but I want to do it by myself. Do I need to use the API to integrate the bot into my website if I want to change the looks?
the DialogFlow web widget is mean to be used for testing, you can hack the CSS and override the way it looks but it is not a recommended approach.
In order to integrate your DialogFlow chatbot on a website you can indeed use Botcopy or Kommunicate (both provide a Widget to add to the web site with some customisation options).
If you are a UI guru you want to build something yourself you can use the DialogFlow SDK https://github.com/googleapis/nodejs-dialogflow
I am adding a webchat(connected to bot framework) as extension in google chrome. I need to capture windows user details by javascript.
Nope, there's no API that can do it. You're welcome to see the list yourself.
There are 2 ideas that come close:
chrome.identity API can provide you the details of the Google user if the user is signed into Chrome - if you just need some sort of identifier. You'd need "identity" and "identity.email" permissions and would need to call chrome.identity.getProfileUserInfo. Interestingly, that produces no permission warnings.
Native Messaging allows you to create a Windows binary that your extension can talk to. Obviously, a native application can do whatever, including getting the signed-in user details, but that requires users to install another component from outside Web Store. In short: it's a big hammer that's likely not worth it for just this.
I was wondering if there are modules, or code snippets to create a program that connects to the Microsoft store, in the background, and download an app(without pyAutoGUI). Thanks in advance.
There are no Official API's for accessing Microsoft store, A Possible solution is to use requests library or other equivalent to create a bot that can access various fields available on the website and navigate through, if you always want a certain(Same) application to be downloaded may be you can go directly to that links page and use get request for the download button as submit, this should work in theory, but again this will also keep breaking in short durations as Microsoft keeps making changes to it's website.
P.S. You might want to fool the website by adding headers to your request.