Options for chat API in V2? - facebook

We have an education National Program called "Dale Aceptar"[1], where using a ChatBot creator we teach high school kids basic programing concepts like variables and regular expressions.
One of the key part of it is the kids connecting their chatbot to Facebook chat and let it chat with their friends get feedback.
Also with this software the National university of Cordoba won the "Google Roots in Science and Engineering (RISE) Awards"
I'm part of the team who build the software # Lvklabs.com [2]. Can you please point me some options to have access to the FB chat api after migration to V2 is complete?
Thanks
PDA
[1]http://www.daleaceptar.gob.ar/
[2]http://www.lvklabs.com/#/theproducts

https://developers.facebook.com/docs/chat/
The service and API this document covers has been deprecated with the release of Platform API v2.0. Once version 1.0 is deprecated, chat.facebook.com will no longer be available.
There are no plans to replace the Chat API. But even with the Chat API, i would see 2 problems:
User profiles can only be created for real users. A chat bot is not a real user.
The messages must bei user generated, bot messages would not be allowed.
Not sure if that would be good enough for you, but you could also create a Facebook Page for the bot and use the conversations endpoint: https://developers.facebook.com/docs/graph-api/reference/v2.2/page/conversations
You canĀ“t initiate a conversation, but you can reply: https://developers.facebook.com/docs/graph-api/reference/v2.2/conversation/messages

Related

Is there Kakao Talk Messaging API which is equivalent to LINE's Messaging API?

Is there Kakao Talk Messaging API which is equivalent to LINE's Messaging API?
LINE has "Messaging API" which allows 3rd party application to do following.
Auto-reply to message from LINE user
Push message to LINE user in an arbitrary timing
etc.
https://developers.line.me/en/services/messaging-api/
I'd like to do same thing with Kakao Talk, but I haven't been able to find 2 API to push message to Kakao Talk user in an arbitrary timing.
I studied Kakao Talk APIs in the Kakao Talk developer site, but I couldn't find the equivalent APIs...
https://developers.kakao.com/features/platform
Also, I found the stackoverflow question KakaoTalk API - Bot, which suggests that I can do this in the Plus Friends account.
So I created an app in the Plus Friend account from the link below. The page is in Korean only, so I tried to understand the contents with Google Translate...
https://center-pf.kakao.com/
I found an Smart Chat API to receive and auto-reply message between Plus Friend account and Kakao Talk user.
However, this API does not support push message feature...
Could someone please advise where I can find the API to push message to Kakao Talk user from 3rd party app?
I found that Kakao Talk does not disclose API for push message to Kakao Talk user to public. It is only available through their channel partner. So, I will close this question.

Microsoft Teams : REST APIs

I'm interested in getting data (metadata and content of files) out of Microsoft Teams into my application using REST APIs. I have looked at Office 365 APIs and Graph APIs but, I could not find supporting documentation for Microsoft Teams.
Teams API is now added to beta endpoint in Microsoft Graph. In documentation, you can find it together with Groups. Post, Channel and Chat Thread are available.
For example, documentation for "channel" resource is here:
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/channel
Microsoft Teams REST API is now included into MS Graph API
https://learn.microsoft.com/en-us/graph/api/resources/team?view=graph-rest-1.0
At the time of writing this answer there are not too many APIs around Teams. However more are being added and they are in Beta (sending messages, adding apps to team, uploading team image, and more).
https://learn.microsoft.com/en-us/graph/api/resources/team?view=graph-rest-beta
It is not recommended to use Beta APIs in production environment as they might change.
It is also worth of mentioning that Teams are actually Office365 Groups.
Please take a look at Graph API
https://learn.microsoft.com/en-us/graph/api/resources/team?view=graph-rest-1.0
https://learn.microsoft.com/en-us/graph/api/resources/team?view=graph-rest-beta
Expand "Teamwork" at left side, you can get all Teams related API
We do not have Teams APIs available at this time. Our extensibility options are limited to experiences within the Teams application.
The Microsoft Graph API is constantly changing and we're currently using the following to monitor/interact with our Microsoft Teams application:
https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview
It gives access to the following (at the time of writing this):
We also monitor the general usage via the reports section in the Graph API:
This gives access to:
Device Usage:
Get details about Microsoft Teams device usage by user.
Get the number of daily unique users by device type.
Get the number of unique users by device type over the selected time period.
User Usage:
Get details about Microsoft Teams user activity by user.
Get the number of Microsoft Teams activities by activity type. The activities are performed by Microsoft Teams licensed users.
Get the number of users by activity type. The activity types are number of teams chat messages, private chat messages, calls, or meetings.
https://learn.microsoft.com/en-us/graph/api/resources/microsoft-teams-device-usage-reports?view=graph-rest-1.0

Integrate Facebook messenger into CRM without bot?

we have built a very simple bot that simply passes any message onto our own application. (we want to answer questions asked from our customers to be handled straight from our CRM application for customer service purpose)
Now, the bot is declined with message:
Thank you for your submission. We tested the messenger experience on your associated page and received either no response from your messenger bot or received a human response. Please resubmit with the new, improved version of your bot.
Which raises the question for me: is it even allowed to do human assistance via the messenger API? Or is it bot only? I have read through all the platform policies, use case examples, etc.
So, how do I create the simplest integration? (send message straight through to one of our customer service users?)
Making a bot is easy if you use Wit.ai which is an NLP and speech API. It can integrate with the messenger/graph API. Basically, you send text to wit.ai and it returns the intent. For example: you send "get me a large pizza" to Wit and it returns something like (intent = pizza, size=large, time = now) You could also try api.ai but in my opinion, it is not as good yet.

Microsoft Bot Framework for Skype do not works for other users

I've made Bot for Skype with Microsoft Bot Framework
The bot was registered on MS site (now in the review status).
It answered on my messages in the Skype.
when I share it to other users the Skype shows for them:
Messaging unavailable.
Could somebody give me some direction how to found where is problem?
This may depend on how many other users.
Initially Skype will have your bot in a pending state which limits your bot to 100 users. You can go to the Skype bot portal and request that your bot be elevated from that initial status.
If however nobody can get to your bot I would consider:
Do they have the latest skype client with support for bots?
Maybe there's something going on with the bot framework.
If you think the latter, you can send us your bot id at bf-reports#microsoft.com and we can investigate.
--jim

Facebook Chat limitations

My company develop a product for customer support on Facebook and we want to give the representatives a way to contact the customer via Facebook Chat.
I have read the Chat API documentations and it is not clear whether users MUST be friends on Facebook in order to chat or is it just enough they both installed a Facebook app? more limitations?
any insight will be appreciated.
Thanks in advance for you answers,
Yaniv Hakim
Facebook provides an XMPP port to the outside world while internally it implements MQTT. As per XMPP specs, messaging works between two entities without they being in each other roster list (friend/contact list). However, Facebook seems to have this limitation as part of their own business requirement. I think even GoogleTalk disallows this if two federated entities try to send message to each other without being on the roster list.
In short, yes you can just send the message. You don't need a presence authorization from someone in order to send messages to them (in XMPP world). HOWEVER, some services has a policy of requiring this, despite the fact that this is not mandated by the XMPP specifications.