How to add pdf in bot composer using File/Attachment prompt? - bots

Hi I'm working on bot framework composer. Suppose a user need to upload a pdf to bot, how can we do that?

There is a similar question which covers this exact scenario. Additionally, you might find the documentation for user input in Composer useful.

Related

How to send form data to email with Bot Framework Composer

I have a form created on Bot Framework Composer and I would like to know if anyone ever try to send the data from the form to an email.
Thank you
The simplest way is to make a call to an outside service to accomplish this.
This question was asked before and answered here. Perhaps this will help you?

is it possible to install copy protection in a telegram bot?

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.

How to build a searchable list with scroll in adaptive card as WhoBot in MS Teams bot framework

I am developing a MS Teams bot using Bot Framework with nodejs.
After the user asks a question, my bot has a list of items to display as WhoBot does, as shown in the below image. Does anybody know how to build this beautiful and clean menu results with a scroll? Or who can guide me on the tutorial or webpage on how to make this? Please help me!
This is the list card implementation. You can find the docs related to it here: https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/design-effective-cards#lists. Regarding the search logic, you will need to implement it at the backend in your application and pass the items to list card.

how to write own logic without using qnamaker

I am still trying to understand Chatbots. Currently i have already made chatbot which is integrated in skype. I have Sharepoint online where user search for FAQ. If they dont find then they ask BOT which sends request to LUIS and Qnamaker.
Qnamaker then sends response back by looking it into its database. I upload FAQ from sharepoint to Qnamaker using sharepoint workflows. But i want to write my own logic and get rid of Qnamaker.
What are ways to do it? Any good tutorials? I also wanted to know how the flow happens. For example if we dont use Qnamaker then we fire queries in sharepoint based on what user asked? I dont understand how i can fire queries in sharepoint if user makes typo then we will not get anything from sharepoint. So any tips on how to implement this without using qnamaker is highly appreciated?
The FAQ bot generator is a subset of the main Microsoft bot framework. You should do some research on the Microsoft Bot Framework. The link above takes you right to the documentation overview of the bot framework and from there you can get into developing one. They have links to a few sample projects as well as a large number of code snippets within some of the article explanations. It has a full setup guide that will walk you through the initial setup so it should be easy to get a basic echo bot running, but if you are not a programmer you should stick to the FAQ generator.
I suggest you use either node.js or c# to develop the bot since these are directly supported by the framework. I am personally using c# to build my bot from the ground up. The purpose of mine is to be used within a customer facing android/ios app that will help with questions, checking the status of different things, and even paying bills.
Just remember you will need to manually set up your cloud hosting. I host mine in azure alongside a web interface I built for it (you can build the website inside your bot if you are using c#, just replace the default.htm file in the web.config with the main page of the interface).

How do I make slash commands work on my bot in Slack?

How do I make slash commands work on my bot in Slack?
I'm using chat.postMessage to have the bot post.
For example, if I type /giphy something, it pulls in a GIF image, but if my bot posts the exact same thing it does not do anything.
It seems like you won't be able to do what you're trying to do. As far as I can tell you can't have one Slack Integration trigger another Integration. It's not hard to replicate the functionality of the /giphy Integration, though.
It seems that Slack is not supporting this feature, because commands are only interpreted when typed in the browser or in the Slack application.
You can maybe workaround this by using a web browser automation tool such as Selenium or a similar tool.
I've already sent the same answer to How do I set a reminder via the Slack API?.

Resources