GMail RSVPAction to Google Calendar - html-email

I've had success in using this google apps script to test RSVP actions, the action button appears in the inbox, but my end goal is to get it to post an event to the recipient's Google Calendar on a "Yes" or "Maybe". It currently does not display the response options, nor post to the calendar.
I'm using the example code from https://developers.google.com/gmail/actions/reference/rsvp-action
The schema also requires an HttpActionHandler to direct the request (to google calendar in this case). Is there a way to direct this to the users Google Calendar using a generic URL? Any url based invitation I've found seems to require the user to set options in Google Calendar and getting its "Magic Cookie" from there.
(I realize that Google says GMail RSVP actions are 'unsupported' but it seems to work so far)

You can't use the RSVP Action to direct the request from your email to Google Calendar. The RSVP Action is meant to be used with a third party application that can handle the requests, such as Evite or similar apps.

Related

Google Assistant expose incoming webhook

Is it possible to create a webhook on the google assistant that I can http post data to for it to broadcast?
I want to make a real simple application where I can send tweets from specific users to the assistant to read out loud.
That is a "yes, but" question. The Actions platform allows you to send notifications to users whom you have previously queried for permission and who have consented. When they pull down the notification and tap on it, your Action runs a special intent whose name was specified at the time you ask for permission. Details are here:
https://developers.google.com/actions/assistant/updates/notifications

G Suite calendar and mail integration

We use the Google Suite for corporate email, calendar etc. What I am trying to achieve here is, I need to be compose an email in gmail with a link to a calendar invite. I would also be able to fill in the details of the meeting through the invite which is embedded in the email. For example, I should be able to send an invite to xyz at company.com with subject Meeting to discuss status and with the body of Test Message. Is there a way I can do that?
I think the best way to do it is just use standard invitation. You just simply add new calendar event and set guests:
Open Google Calendar
Open an event, or create a new one. Specify event title and description - it will be then stated in the invitation email...
On the right, find the "Guests" section.
Start typing the name of the person and choose someone from your contacts. You can also type an email address to invite people who aren't in your contacts list.
When you're done editing your event, click Save.
When you save your event, an email invitation will be sent to your guests.
What is also good, there is .ics file in attachment of invitation email - can be useful for non google recipients using another email clients.
However, if you need URL of the event, you can get it on the event edit page in google calendar - there is a link on the bottom of the page: "publish event" - you can copy the link of the event there. But please be aware that the Google calendar the event is tied to needs to be public (or shared with the recipients), and not just the event itself. (This link is useful for google calendar users...)

How to trigger message without messaging bot first

I am learning the facebook api and I am curious how to do this.
On this website(https://botacademy.com/), they use manychat and you can click the opt in button (on web) and it automatically accesses your messenger inbox without prompts or auth.
It then sends you a programatic message. All of the tutorials I follow require the user to send a message first..
Do you know what endpoint of the API they are using to accomplish this?
Obviously I do not know what their code looks like, but:
that is a send to messenger button, which allows you to authenticate with a bot and an app, and sends your information to the webhook.
This counts as interacting with the bot, because you clicked the button and opted into the experience.
FBM Platform Policies have this to say about opting into messages and send to messenger:
How messaging is triggered:
...
Person requests a message from a business via a plugin, such as Send to Messenger

How does gmail show "action" without email markup present?

This is the email I received from flipkart - https://gist.github.com/syst3mw0rm/b5fe25633aed78865a0b
When I check the above email using markup tester - https://www.google.com/webmasters/markup-tester
it says, it has no structured data. i.e, it has no email markup in it. How does gmail show "View Order" action then?
Here's the screenshot showing it - https://www.evernote.com/l/ANzpEoWx0gpOOIdRXSupqzqmiWlr0gS7RHc
This is an integration from Gmail that is placed in the email. See this link for how to do it: https://developers.google.com/gmail/markup/reference/order
This data is usually read at the server level and is not displayed in the source shown in the email received. So looking through that you would not see the markup, etc that called this button.
Here is a link for other available actions that can be done in gmail - https://developers.google.com/gmail/markup/reference/go-to-action
Also found this great answer as well: https://webapps.stackexchange.com/questions/47674/new-view-order-button-in-google-mail
It's based on a initiative called Schema.org. Google announced this
feature for Gmail in May 2013:
http://gmailblog.blogspot.dk/2013/05/take-action-right-from-inbox.html
Quotes from the post (emphasis and linkifying mine):
Email is an important part of how we get things done -- from planning
an event with friends to organizing that family vacation to Costa
Rica. And today, getting those things done is getting a little easier
with new quick action buttons in Gmail, designed to help you tackle
your digital to-do’s as quickly as possible. ... and ...
These buttons appear next to certain types of messages in your inbox
and let you take action on an email without ever having to open it.
For example, you can RSVP to your friend's party invitation or rate
that restaurant you went to last night all right from the inbox.
You’ll be checking things off that to-do list in no time. ... and ...
If you are a developer and want to add actions to your emails, check
out http://developers.google.com/gmail/schemas to learn more.

Facebook request dialog with custom message notification

I have a very simple use case. My app lets users send invitations to his friends, say for a birthday party. Friends then accept the invitation(and app).
I am using RequestDialog to send notifications to multiple users. Notification was sent successfully but the message is confusing to the user as it says
"User A Invited you to try APPNAME. Try Now".
Is there a way to customize this message? It should something like
"User A Invited you to his birthday party using APPNAME. Accept it now"
I believe I cannot use app generated requests as invitees hasn't authorized the app yet.
Any other ideas or workarounds to send notification, message with a link so users can click on it and accept the app and thus accept the birthday invitation?
You should use message parameter of Requests Dialog
message - The Request string the receiving user will see. It appears as a question posed by the sending user. The maximum length is 255 characters. The message value is not displayed in Notifications and can only be viewed on the Apps and Games Dashboard. Invites (requests where the recipient has not installed the app) do not display this value.
I memory serves, Facebook used to let you customize (many years ago), but, probably due to abuse, they no longer allow you to customize what the invitee sees. It's all standard. However, when the user comes to your app to authenticate, you can customize the Enhanced Auth dialog to your content.
I don't think there's a way to customize invite messages, and interestingly, to Usman Ashraf's point, as far as I can tell BranchOut can't do this anymore either (or at least I can't replicate it with their app). If anybody else can replicate it, let me know.
What you might want to do would be to allow
new_style_message: true,
Under your
FB.ui({
method: 'apprequests',
new_style_message: true,
message: "is bringing you to the UPicnic !",
display: "iframe"
},somefunction);
What this does is when the notification is sent to the user(s) , it will show up as the message instead. Not much customization but that's the least I can find.