How to get User- email Id from hangout messages that are being sent to Rasa server after Rasa<->Google chat integration - chatbot

I have integrated Rasa and google chat and able to receive a response in google chat. I am trying to get the user email id of every request I received from google chat. I am not sure how to get the user object from the response as mentioned in google chat API. It will be helpful if you can help me out.
Thanks a lot

the hangouts channel has a method called _extract_sender, see https://github.com/RasaHQ/rasa/blob/master/rasa/core/channels/hangouts.py#L209
If that isn't fetching the ID that you need, you can maybe add a similar method to the channnel that extracts the email ID from the request JSON

Related

Send a message as a user to another one

Is it possible to send messages as a real user (not a page. For example myself) to another user using the Facebook Graph API?
In other words, can I create an app that will make an API call which will send a message as myself to a friend of mine (as if I have sent it myself)
The send and conversation API seems to be only about sending and receiving messages as a page
No, there is only an API for Page to User communication, but not for User to User communication.

Is there a way to send the response that's returned from dialogflow (fulfillment) to another account

I am using slack with dialogflow fulfillment to create a chat bot.
Can userA send a message to dialogflow and dialogflow return a response to userB?
This is not possible, the WebHook responses goes in the conversation which originates the call.
You can create a custom logic (in your Webhook) to initiate a message to another user. This depends on the Channel, for example with the Telegram API you can notify a user having his/her chat ID.

Not able to get skype group chat as well as bot messages

When call this API then getting below error
https://skype.botframework.com/v3/conversations/29%3Adg_yugtechno/activities
{"error":{"code":"BadArgument","message":"Failed to decrypt conversation id"}}

Maximum number of Facebook private message sent by Graph API (per day)

I am using Graph API to send private message as shown in this documentation
https://developers.facebook.com/docs/reference/api/message/
Now, I want to ask about the Maximum number of Facebook private message sent by Graph API (per day)
Thanks a lot
Thankfully, applications can not send private messages via the API (or any other methods).
What you are looking at is the documentation for reading the inbox.
Facebook Chat API is the same as private messages.
An easily way to test is, install Pidgin and log in Facebook Chat with pidgin.
Try to send some messages to other friends and browse "Messages" section in Facebook website.
You will find that all messages sent through Pidgin will appear in Facebook Messages.
And also we could use me/inbox or me/outbox connection of Graph API to retrieve those messages sent through Pidgin.
It is the only way to send messages to friends as I know.
Without special API key in whitelist, it could not send private message by Graph API.

New #facebook.com email - API Howto?

With the new #facebook.com emails being available for all users I'm wondering if there is an Graph API call that can be made to obtain a users facebook email address?
From what I've seen you can simple take the users alias (as we see in the URL) and slap on the #facbook.com to get the email. Until I cam across a friend who had his FB Id instead of the alias listed on his account.
I tested this by sending an email to myself using myid#facebook.com and myalias#facebook.com. The ID failed to send while the alias sent and was received with no issues.
Ideas?
Thanks.
Some people can receive mails from both ID#facebook.com and ALIAS#facebook.com, and some people cannot receive ID#facebook.com with an mailer error saying that it's not in their address book.
I wasn't able to see any pattern here, it was random. Not sure this is an error or a spec.