Azure Bot Microsoft Teams Autocomplete/Suggestion similar to "Who" but dynamic - microsoft-teams

In the who bot for MS Teams, suggestions will auto populate to help the user to enter a command.
In my research, this feature can be enjoyed by other bots by editing the Manifest file. Is there some other way to facilitate this behavior more dynamically? I'd really like to be able to provide recent history of say the last 10 commands and have that auto-populate, but don't see a way to do this.

Command menu with a drop-down list of commands is added for your bot, to define a set of core commands that your bot can respond to. The list of commands is presented to the users in the compose message area when they are in conversation with your bot. You can add those commands list in manifest file of your bot app where these are defined.

Related

Open Task pane from command in Outlook add-in using Office.js

I am working on an outlook add-in and I need the ability to open a task pane from one of the button commands.
Long story short the command will reach out to an API. The result of the API call will let the client side know if any user interaction is required. If it is I want to present the user with the task pane to fill in any required information.
From what I have found you should be able to call Office.addin.showAsTaskpane().
However this only works if you are using the Shared runtime requirement set which is only supported in Powerpoint, Word, and Excel.
In Outlook you can open a task pane by clicking on the ribbon button or notification item which can be added programmatically, i.e. dynamically. So, you may consider adding a notification item with a link for opening a task pane as a possible workaround. However, it requires a user interaction.
Web add-ins don't provide any way in Outlook to open a task pane programmatically. You can file a new feature request at https://aka.ms/M365dev-suggestions .
This is not supported yet
You can refer from here Duplicate question OR similar
Thanks

Command line or other tools to collect outlook add-in's installed?

Is there any tool or utility to see the list of admin-managed Outlook add-ins installed on a user machine?
This will be helpful to gather diagnostics using script rather than asking users to take screenshots and upload manually?
Can we get manifest info used by the add-in using any utility tool or from UI?
There is no such tools. You can find the list of web add-ins in the hidden items of your Inbox folder. If you try to use MFCMAPI and navigate to the associated content table of your Inbox where you can find the list of hidden messages:
Every message with a message class set to the IPM.Configuration.ClientExtension.* represents a web add-in installed for your mailbox.
Admins can run this powershell commandlet to get add-ins for individual users:
Get-App -Mailbox <userEmailAddress>

How to prevent aggressive matching of single characters typed in Teams input box to Teams Bot Commands that disrupts typing of messages?

A Teams bot manifest file is allowed to provide a sections called Commands (https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/create-a-bot-commands-menu?tabs=desktop%2Cdotnet) These then appear as suggestions in the input box when a user is chatting with a bot.
The most recent (~late Sep 2021) Teams client release for Desktop and Web seems to have change the manner in which the suggestions popup when a user begins to type a message in the input box. Now it seems that as soon as one clicks to get focus on the input box the suggestions popup. (It is not obvious to most regular end users how to dismiss these suggestions. The answer is to use the Escape key but most users end up clicking on these suggestions as the only way to dismiss them. Some of these commands may be disruptive i.e cause end of a session). The previous behaviour seemed to be that only when a user started to type something that would match the command will the suggestions popup. Now they popup on gaining focus alone.
In addition it seems that the new behaviour is to aggressively match any typed character in the input box with the command. So for example if the command is HELP, then either h, e, l or p typed in the input box will bring up the suggestion box (rather than say h or he or hel). This essentially stops most users from typing a free form text message. Most bots are conversational with only a few suggestion items.
As a result the Teams bots that have any Commands at all have suddenly become virtually unusable in a conversational sense with frequent suggestion popups since commands contain common characters as well.
Starting a sentence with P (for example user was going to type Please.. ) brings up the suggestion popup for Help command even though P is not the start of the Help command.
Is there a way to specify better pattern matching in the Commands or to better control this behaviour from the bot code (unlikely since this is a local Teams client behaviour) or from the Teams Manifest file settings?
(Rolling out new manifest files across 100+ customer tenants is a pain given that a Teams Admin has to do this, and it may take 48 hours to get rolled out)
It is by design. There is no workaround available for it.

Export chat messages in Microsoft Teams channels programmatically to word or pdf without needing admin roles, privileges or permissions

I am looking for a programmatic way to export all chat messages (textual and image contents) of each Microsoft Teams channel to a word or pdf document (any output medium that supports text and messages). I need to be able to do this without needing to seek permissions from the corporate global admin for specific roles. I have studied different methods already like the Graph API (azure app registration) , ediscovery, and extracting this information from a hidden outlook folder. The common theme in these methods is that we will need to seek permissions from the IT admin for a specific need in the export strategy.
So far, I have tried using the web app version of Microsoft Teams and using web scraping methods, I have been able to cycle through messages in each channel and export them into a word document. I was wondering if there was a more elegant, better method with lesser likelihood of being error-prone.
Looking for some suggestions.
Here's a nominal solution. It admittedly is not great/complete. But it does work to some degree.
You inspired me to clean up my attempt and publish it:
https://github.com/poleguy/selenium_teams
Tested on ubuntu 20.04 only.
Clone the repo.
Run the ./setup_python to get a conda environment.
Edit the script to specify your url/login.
Run python ./selenium_teams.py
Log in manually in the browser that pops up.
Go to the chat you want to slurp. Click in the "Type a new message" section.
Press enter to let python continue.
This will start to save all the messages to a text file.
Once you have the text file convert it to pdf or word.
(Incomplete: can't do images, runs very slowly, may run out of memory.... very little testing.)

My Google add-on script is no longer recognizing me as the owner

I don't believe there's any way to contact a human being at Google to help with this, unfortunately.
I have an add-on that I developed years ago: https://chrome.google.com/webstore/detail/doc-variables/ggigadkkljhdchdhpliohdcokbnpcnjn?hl=en
In the last few weeks (last publish 5/29/17) I can no longer publish from the script editor. It says, "Only the owner of a script can publish the script as an add-on.".
I know I own the app/script:dashboard screenshot
One item to mention is that our organization (the account associated with it) recently changed our domain. Is it possible this disconnected my ownership some how? Anyone have any ideas on what I can do?
The screenshot shows that you own the webstore item but not that you own the script itself.
If it's a standalone script, then make sure you also own the script document in Google Drive. Perhaps, the ownership has been changed or you've opened Script Editor with a different account. If the ownership has been changed and you cannot change it back, you can make a copy of the script that you'll own.

Resources