Hangouts Chat Email alert like slack email app - gmail-api

I'm looking to move from Slack to Hangouts Chat, but heavily rely on getting alerts on chat sent from email. What's the easiest way to create an Alert in Hangouts Chat like the Email App in Slack.
The way the Slack App works is that it provides a specialized email address like: randomKey#company.slack.com
then when an email is received to the specialized email address it posts the contents to a channel.
any help would be appreciated. Currently I see other suggestions out there that do time-based triggers with email filters (How to trigger a Google Apps Script once an email get in the inbox?). But not sure if this is the easiest way / best way.

As of now, there is no direct integration between hangouts chat and Gmail. There are some workarounds that you can use to achieve your goal. The most popular approach is to use Push Notification Services of Gmail API using Pub/Sub which reads a particular email received in your inbox. Receiving this email you can then invoke your hangouts chat or send alerts to hangouts chat room via webhook.
Push Notification Documentation
Hangouts Chat API Documentation
Hope this answers your question!!!

Related

I want to use teams outgoing webhook to send comments on a post to salesforce. Is there a way to send comments from teams to salesforce

My scenario is, if someone posts a discussion in salesforce community, we are sending it to teams through incoming webhook. I would like to explore if we can reply in the post, can we send it back to salesforce
I tried teams integration for salesforce but it doesn't work for salesforce communities.

IBM Watson - Facebook ChatBot

I am trying to implement IBM Watson chatbot into facebook messenger. I am able to verify my webhook. Also, able to receive and send custom messages through facebook to my webhook locally.
But when another user tries to access my page and then send message from facebook to my chatbot, it fails to respond unlike when i message it locally. I donot understand why it could be failing? Any help/direction is much appreciated.
This is because you have not yet had your messenger bot reviewed and approved by Facebook. Until your bot goes through the review process, it can only be accessed by you.
You can invite other users to test your chatbot, and as #chughts mentions before you can go public Facebook has to approve.

Auto subscribe a user when signing up to app

This is so interesting question, I think. I am developing a chat application using xmpp in google go. Upon testing, I could not send chat message to a google user unless that user would add my app as contact or initiate the chat session via gtalk/chat at his gmail account. Is it possible to subscribe the user to my app when he signup for membership in my app? User service does not have any properties for this nor a hash or code or cookie for me to store and know that this user has approved sending chat from the app. Thanks a lot!
No, this is not possible. The user has to give explicit permission to add your bot to their contact list; simply signing in is not enough.

Send email with Google App Engine and store it in Sent Mail in Gmail

I create a web application in Python for Google App Engine that sends a mail when I make some stuff. I used my Gmail account to send the email and I would like to save that email in my sent mail. It's possible?
No this is not possible since Google App Engine is not directly connected with your Gmail account and in the sent items only items that are sent through Gmail are appearing. As Sebastian Kreft pointed it out, you could sent a copy to yourself and create a filter for it.
I'm not sure if the non delivery reports are coming back on sender's email address, but either case make sure that you have access to that email or set the reply_to field.
You cannot be sure your e-mail will reach it's destination with app engine mail api, because you never receive any information about e-mail delivery from the GAE mail api and you cannot use a return-path.
Because of that I use app engine together with Amazon SES.
Another trick is to use the gmail api of google apps script:
See: https://developers.google.com/apps-script/service_gmail
Apps script is also able to talk to GAE.

Unsubscribed User's IM Status in Google App Engine

I am implementing an GAE application where I need to show the chat status of any user using user's gmail address that belongs to a certain domain.
The user has no idea of the application and the application has not being added to the user's contact/IM list.
Is it possible?
No, that's not possible. XMPP only exposes status messages for contacts that have accepted a subscribe request.

Resources