Sending notification to custom teams application - microsoft-teams

I am working on a custom app that will load data in the personal tab from an external system. Everything works fine when I am on the app.
If the user is on the Calls or Chat tab and the external system is having something new for the user we want to notify the user in the chat or activity feed so that the user can revisit the custom app and review the data.
Please suggest how to achieve it.
Thanks,
Pratap

Related

Navigate User from slack channel to app home tab

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.

How to create MS Teams Survey App Messaging Extension

I am currently creating a survey app for ms teams similar to Polly.ai/survey monkey
The flow would be
User installs app,
app appears as messaging extension on the chat window,
user clicks app to opens page to create survey,
on submit an adaptive card is generated,
the same is responded back to teams,
The new card appears on the message Hi,
I am currently creating a survey app for ms teams similar to Polly.ai/survey monkey
The flow would be
User installs app,
app appears as messaging extension on the chat window,
user clicks app to opens page to create survey,
on submit an adaptive card is generated=>
the same is responded back to teams =>
The new card appears on the message create pane,
User hits enter to post the survey to the group,
All the group members respond to the survey ,
The same is logged
Can anyone help me in providing some links from where I can start.
Or maybe throw some light on what should be my approach.
My progress so far.
Created a teams bot,
On messaging extension invoke returned url that contains HTML for survey creation which is created in vue.js. Used msteams js to submit the json for created survey back to the bot,
Generated an adaptive card with json received and the a new survey created in db,
Sent the card back to teams as message attachment,
The card is displayed in message create pane,
User hits enter to post the card in the group,
Caught the action.submit event from adaptive card on bot framework.
Also, please note while I am generating the card I don’t have user email in the turncontext as well.
Please throw some light on this
Thanks
Please have a look at App templates available. I think for your case Poll and Survey are the best app template available.
Thanks

Setup alert in LUIS (Azure Cognitive Service) to track user activity

I want to know there's some way I can set up an email alert on the LUIS port if any users are changing established intent and utterances.
I need this feature because many users are able to access/edit my LUIS app using the company's single-sign-on, so I want to set up an alert on the portal if any user add/edit intent is in the current app, then I will get an email alert.
Please suggest ways that I can do this.
Nicholas is correct. Your users should NOT have access to your app.
There is nothing in the LUIS app on LUIS.ai that will send an email or notification any time the app is changed, because the only people who should have access to it are the developers.
You need to request from your admin to ensure you and any devs on your bot are the only contributers to your LUIS app.
https://learn.microsoft.com/en-us/azure/cognitive-services/luis/luis-concept-keys

Laravel notification facebook driver get fb_messenger_user_id

I want to give users the ability to get notifications via the facebook messenger. However, I don't really know how to get the fb_messenger_user_id from a user.
I can get a personalized ID for the chat if a user starts chatting with my bot, but with this, I can't really verify which user that is. Is there something I've overseen? Something like a button similar to the "login with facebook" button?
Also, as far as I understand the docs, I am only allowed to send messages in a time frame of 24h after the last message from the user.
Can someone tell me how to use the facebook notifications properly?
As a side note: I am planning to implement botman into my existing app. I don't know how much this affects the notifications.

How to implement a chat application in codeigniter website?

I need to implement a chat window on my codeigniter website,and the chat option is not like facebook or gmail chat.The Live conversation is entirely between the admin and the user who has logged into the site,ie live chat for direct customer service
Thanks in advance.
A quick search on github gives me this:
https://github.com/Runnable/Chat-Example-App-for-Codeigniter-API-on-PHP
https://github.com/vgoodvin/ci-chat
https://github.com/llbbl/codeigniter-chat
You can think of it like a thread in a forum where someone creating a thread and the other someone make replies.
Depending on how you want to customize your apps, the interaction between the OP and those who will make replies will be rapid.
EDIT 1:
Assuming that you understand how MVC works, you can have something like this:
Your DB Structure:
Table User
Table Session
Table Message
A user can be in many Session (chat room), A message can only be posted to one chat session and a user can send many messages.
In your chat page you will have a to display the conversation, a giant text box where your user can write their message and a submit button.
When a user click the submit button, it will then make an HTTP POST to your controller, where your controller will cleanse the data (i.e. $this->form_validation->set_rules();
If the posted data is valid, send it to your model where it then be stored to your database.
Everytime the chat page is loaded what you want to do is:
Get the chat message for the associated session ID.
Again this is an oversimplified example. You can fork the code from the github i mentioned and try to install it on your local machine.
If you want messaging or chat and specially for codeigniter than use this library, Mahana-Messaging-library-for-CodeIgniter. I have used this, and i preferred you if you are learner. It have it's on database which you can manage and it will integrate in your project easily.
Implemented using Zopim chat widget,which is suitable for both CMS and MVC websites. https://www.zopim.com/

Resources