Navigate User from slack channel to app home tab - slack

I am working on a slack app that can be installed in any channel. It is possible or is there any slack method that allows you to open the slack app home tab from the channel. I mean a method that can navigate the user from the channel to the slack app home-tab

Send a slack message to users with #appname. For example "Click here to open the #ACME Dashboard" (assuming "ACME Dashboard" is the name of your app). #ACME Dashboard will turn into a clickable link that jumps to the app home page. It'll also add the app for users that haven't already added the app.
At least, this worked for me in limited testing with myself and one other person, so I hope it works for you. I haven't tried to figure it out, but I'm sure there's a way to send the '#app name' as part of a message from the API.

Related

Format of Teams Chat URL

I have an app that runs within Teams that shows a list of employees, name, email, presence, title and phone.
For the name column I would like to present it as a link that when clicked will open up a chat within the Teams desktop or mobile app with that employee. If there is an existing chat session, it should go to that, else create a new chat. It should not open the web client and go through the hassle of choosing to then open in the desktop app.
I was previously using this format:
https://teams.microsoft.com/l/chat/0/0?users=user#user.com
This caused the whole web client flow, so after some digging around I changed it to:
MSTeams:/l/chat/0/0?users=user#user.com
This seems to work for an existing chat but does not work for a new chat. The To: field at the top of the page is not completed.
Any ideas?
Thanks
Mar

BotFramework - No recording icon in Bot Emulator

Working on a voice bot that will take as input the voice, I have two concerns.
Technology(.net), Framework(BotFrameWork v4)
The Bot Emulator doesn't contain the recording icon, how to bring that. If by putting the microsoft app id and password, It shows up then where to get these credentials for local development and testing.
How to give the response input to the bot, v4 documentation is a way too confusing for me, I would like someone to tell me specifically what im looking for.
Thanks
You need to add your app id and password to the development endpoint in your bot file to enable the microphone feature on the emulator.
If your bot file has a production endpoint, you can likely find the app id and password there. Most bot files are encrypted, so I would recommend retrieving the id and password through the emulator. In the emulator, right click on production under the Endpoint section on the left and then select Edit Configuration. This should open a window where you can copy the app id and password.
If your bot file does not have a production endpoint and you don't have the app id and password stored somewhere else, you will have to follow this guide to register your bot on the Azure Portal.
Now that you have the app id and password for your bot, you need to add them to the development endpoint in your bot file. Once again, most bot files are encrypted, so open your bot in the BotFramework Emulator. Right click on development under the Endpoint section on the left, and select Edit Configuration. It will open a screen where you can add the Application id and password that we retrieved in the previous step.
Now run your bot and connect to it in the emulator. You should be able to use the microphone to talk to your bot. When the user talks to the bot, the emulator will convert the user's voice to text and will send the message to the bot as an activity like any other interaction the user has with the bot.

Bot Framework receiving Facebook Messenger Event

Referral events should send an event according to the documentation here. See #2 for more information.
I am trying to receive this event, however, it does not seem as though the event is sent to the bot framework. We verified that the permission is granted with Facebook Messenger setup. I am using nGrok and can see all messages routed to the bot, however, this event does not show up when using an http://m.me/ link
Are these events supported?
You need to subscribe to Referral Messages in the Facebook Messenger Developer Portal. Open the settings blade on the left, scroll down to webhooks, and hit edit events.
Then enable messaging referrals and click save.
When the user clicks on the m.me link it will open the conversation and send a message activity to the bot. Note, I could only get this behavior to work if I added a ref parameter to the link - https://m.me/<PAGE_NAME>?ref=<VALUE>.
Hope this helps!

Unable to connect Web App Bot to Cortana Channel

I'm trying to add the Cortana channel to a bot I've been working on today. However, when the page loads, the entire form is greyed out except for the knowledge.store Register button, and the Cancel button.
I've read elsewhere that people have managed to get past this by clicking really quickly on the Save button that appears briefly as the page loads, but I've had no luck with that. The (very helpful) tech support guy suggests it could be due to special characters or numbers in the bot name, but I have the exact same issue with a bot name that's just lowercase letters.
UPDATE: I can now see my knowledge.store organisations in a dropdown next to the Register button. Clicking the Register button throws a "Failed to create bot module" error. I am able to connect the channel successfully on another bot I made to test the issue.

Can't see Grafana images in Slack

I set up a Slack notification channel in Grafana using a webhook as URL.
When I click "Send Test" I see this notification in my Slack channel:
However ordinary notifications are shown without images. I read Grafana's docs, but apparently I haven't understood it.
If you want to include screenshots of the firing alerts in the slack messages you have to configure either the external image destination in Grafana, or a bot integration via Slack Apps. Follow Slack’s guide to set up a bot integration and use the token provided https://api.slack.com/bot-users, which starts with “xoxb”.
Can someone guide me through it? I created a new bot and generated a token for it (starts with xoxb as requested) but how do I keep going from there?
Please assign this permission in your Slack app then try:
Go to <grafana_host>/alerting/notification/new (or click the top-left Menu icon, select "Alerting", select "Notification Channels", click the green "New Channel" button). You should get the page in the screenshot below.
Do the following steps:
Set "Name" for the channel.
Set the channel "Type" to Slack.
Check "Include image" option.
In "Slack settings", set "URL" to incoming
webhook you created in Slack.
Set "Token" to bot token generated for
bot.
And voila!
Update
Ability to configure a Slack token was added in Grafana version 4.6.0
It wasn't mentioned by OP but if your target Slack channel is a private channel, you'll also need to ensure that you've added the bot to the private channel so that it is able upload an image to it.
You can do this by viewing the channel's details, clicking "More" and then "Add apps". On the screen that shows up, you should be able to search for the bot that you created and click the "Add" button aside it.
Good luck!

Resources