Update 8/7/17: I just realized there is a much much easier way to manually create trips and it doesn't require the use of my scripts.
Just install the Google Trips on your phone and follow the steps in the video below and you will be amazed at how simple this new process is.
Update 2/24/17: Big news for those that travel by Train or Bus. As of today, Inbox by Gmail can now parse Train reservations and Bus reservations into its own trip. In addition, they can also be added to existing trips and the trip summary card will be updated accordingly. But if for some reason a trip is not created, you can use the scripts below to manually create the trips.
Also, please note this is for trips created today. They will be adding existing reservations to trips over the coming weeks.
I have not updated the video below, however I have added files to the repository for Train Reservations and Bus Reservations in case you need to manually create a trip for some reason.
<<<<<End Update>>>>>
Thanks to a skillful Inbox user, I have learned how to manually create trips in Inbox by Gmail. As you all know, the Inbox team has not included to capability of manually creating a trip, however using Google Scripts, this is possible. I know, using Google Scripts sounds a bit scary, but it really is simple, and I have tried lay out the instructions as simple as possible. Please watch the video below to discover how to accomplish this. Links to files referenced in the video can be found below as well as in the video description.
Please note, its not included in my video, but there is also a file below to use for dinner reservations.
Code.gs: https://drive.google.com/open?id=0B6s6FNeXJ2Nfc3RXTGxPaHRkeW8
flight.html: https://drive.google.com/open?id=0B6s6FNeXJ2NfdGM0V2p4bDg5WDA
hotel.html: https://drive.google.com/open?id=0B6s6FNeXJ2NfMm9yTDBLZ3lacGM
autorental.html: https://drive.google.com/open?id=0B6s6FNeXJ2NfUzd1SXMwcXNidlk
reservations.html: https://drive.google.com/open?id=0B6s6FNeXJ2NfeXVha0FsaldQS00
trains.html: https://drive.google.com/file/d/0B6s6FNeXJ2NfX3l3YjcyRTZCdVU/view?usp=sharing
bus.htmls https://drive.google.com/file/d/0B6s6FNeXJ2NfZTU4bllITjFCTm8/view?usp=sharing
IATA Airport Lookup: http://www.iata.org/publications/Pages/code-search.aspx
Just install the Google Trips on your phone and follow the steps in the video below and you will be amazed at how simple this new process is.
Update 2/24/17: Big news for those that travel by Train or Bus. As of today, Inbox by Gmail can now parse Train reservations and Bus reservations into its own trip. In addition, they can also be added to existing trips and the trip summary card will be updated accordingly. But if for some reason a trip is not created, you can use the scripts below to manually create the trips.
Also, please note this is for trips created today. They will be adding existing reservations to trips over the coming weeks.
I have not updated the video below, however I have added files to the repository for Train Reservations and Bus Reservations in case you need to manually create a trip for some reason.
<<<<<End Update>>>>>
Thanks to a skillful Inbox user, I have learned how to manually create trips in Inbox by Gmail. As you all know, the Inbox team has not included to capability of manually creating a trip, however using Google Scripts, this is possible. I know, using Google Scripts sounds a bit scary, but it really is simple, and I have tried lay out the instructions as simple as possible. Please watch the video below to discover how to accomplish this. Links to files referenced in the video can be found below as well as in the video description.
Please note, its not included in my video, but there is also a file below to use for dinner reservations.
Code.gs: https://drive.google.com/open?id=0B6s6FNeXJ2Nfc3RXTGxPaHRkeW8
flight.html: https://drive.google.com/open?id=0B6s6FNeXJ2NfdGM0V2p4bDg5WDA
hotel.html: https://drive.google.com/open?id=0B6s6FNeXJ2NfMm9yTDBLZ3lacGM
autorental.html: https://drive.google.com/open?id=0B6s6FNeXJ2NfUzd1SXMwcXNidlk
reservations.html: https://drive.google.com/open?id=0B6s6FNeXJ2NfeXVha0FsaldQS00
trains.html: https://drive.google.com/file/d/0B6s6FNeXJ2NfX3l3YjcyRTZCdVU/view?usp=sharing
bus.htmls https://drive.google.com/file/d/0B6s6FNeXJ2NfZTU4bllITjFCTm8/view?usp=sharing
IATA Airport Lookup: http://www.iata.org/publications/Pages/code-search.aspx
Thank you for this! I've used it a couple times already. Easy to use even for a non-programmer.
ReplyDeleteWarning I followed this guide. Everything went well and it worked. However 2 days later I found the trip had disappeared and all the emails in it were in the Bin. Fortunately I noticed and was able to rescue them. YMMV.
ReplyDeleteThat is a known issue with trips, not related to this post. It happens on other trips as well
DeleteThat might be the case but it's very annoying for a trip weeks in advamce to have all the emails related deleted. Could cause serious logistic problems.
ReplyDeleteAgreed, that is why the more people that report this using feedback the better
DeleteHave you found a way to include restaurants and custom events?
ReplyDeleteAdd this file to your script: https://drive.google.com/open?id=0B6s6FNeXJ2NfeXVha0FsaldQS00
DeleteChange the script to use reservations.html
Scott, if i'm not mistaken the hotel link actually leads to the reservation (it has the FoodEstablishment code instead of the LodgingReservation code).
ReplyDeleteThanks for the tip.
Sorry was playing around with something. Its fixed now and set for hotel
DeleteThanks, you might also be interested to know that there is a new code avaible to manually add events.
DeleteThe code is avaible here: https://developers.google.com/gmail/markup/reference/event-reservation
Works fine, i just managed to manually add a Bruce Springsteen concert event to my Inbox :-)
Thanks I will put that together as well. Although I have not heard of any issues with people having events created.
DeleteNot all of the hotel reservation or events booking emails are sent with the correct email markup code that Inbox needs to create trips and events bundles.
DeleteFor example: all the emails i received for my Bruce Springsteen shows this summer didn't, but using your usefull tip i can have them added to my Inbox if i need.
Hmmm... I must have missed something. I followed the video to a T, ran code.gs to generate a hotel reservation, and received the email in Inbox. The email looks to be properly marked up but after 30 minutes, a Trip still has not been generated. Any ideas what I might have missed?
ReplyDeleteIn some cases it can take a while (couple hours)
DeleteYou were right Scott, a couple of hours was necessary. Thanks!
DeleteNow if we could just get support for Trains. :-)
Unfortunately there currently is no markup language for trains available yet
DeleteThanks Richard - glad you found it and it helped. I am curious, how is what you put together different from what I put together?
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHi,
ReplyDeleteCan you please explain the times in the flights code ?
I can see there are 4 fields for times, what each means ?
In my files there are only 2 dates/times 1 for arrival and 1 for departure
DeleteThe template is as follows :
Delete2017-02-04T20:15:00-08:00
2 times are mentioned, 20:15:00 & 08:00, same for arrival.
Thanks !
Isn't the -08:00 the GMT offset?
DeleteSo in this case it would be February 4th 2017, 8:15 PM Pacific Standard Time.
I see what you are talking about and yes I think that is the GMT offset, although i did not change that at all when changing the time in my trips.
DeleteYes, it is the time zone offset..
ReplyDeleteHere is more info:
https://www.w3.org/TR/NOTE-datetime
Thanks!
This might not be a good question...but why can't I open the code.gs file? I'm hoping to open it and copy the contents, but I can't get it to work. I'm using Chrome browser. Thanks for this tutorial! I need to get back a trip I accidentally deleted...
ReplyDeleteYou need to download it and open it with an editor application
DeleteThanks :)
DeleteI had a feeling that question had an easy answer...I went through the tutorial and received the new emails in my Inbox. The trip hasn't bundled yet, but I'm hoping it will after some time. Thanks!
What editor application should I use? Very inexperienced user here, Thanks
DeleteYou can use Google Scripts, or just use docs to type everything up and then copy to GOogle Scripts
DeleteThank you Scott I figured that part out. Now getting this when I RUN the script.
DeleteAppears on Flight.gs when I run the script
Syntax error. (line 5, file "Flight")
Appears on Code.gs when I run the script
No HTML file named flight was found. (line 2, file "Code")
Any advice? Thanks
Figured it out. I was naming the script flights not flight. Thanks for coming up with this useful script
DeleteCool - glad you got it figured out
DeleteUsing EventReservation...
ReplyDeletehttps://developers.google.com/gmail/markup/reference/event-reservation
How would one take advantage of subEvents...
https://developers.google.com/schemas/reference/types/Event
For say a 2 day conference (BusinessEvent) and Agenda to work with Trips...
7:15 AM Pre‐Conference Registration / Continental Breakfast
7:45 AM Pre‐ Conference Tracks
9:30 AM Conference Registration / Continental Breakfast
10:30 AM Welcome / Key Note Presentation
12:00 PM Lunch Buffet / Networking
Thanks for your time,
Scott
I do not think you can, however take a look at the markup code, maybe you can figure it out? But i dont see anything there similar
Deletehttps://developers.google.com/gmail/markup/reference/event-reservation#cancel_a_event
I have been trying. I'm not finding much info on them and not even sure where to insert them or what the minimum required info is needed for each subevent.
DeleteThanks for the quick response though.
To be honest I am not sure its possible. I have never seen any show up like that in my inbox.
DeleteHi, thanks for your post!!! Is it possible to add a ferry reservation?
ReplyDeleteNot that I am aware of.
DeleteThanks a lot anyway :-)
DeleteHmm... so i had an itinerary come from my airline.. that automatically created a trip. I had to cancel the itinerary as i had some changes; so i also deleted the trip. Then i rebooked the flight, same time same flight - google didnt create that as a trip.
ReplyDeleteTried to create that manually but it doesnt work now, i can create one manually for a different date but not for the same date that i had deleted.
Any ideas anyone?
Give it a day or so - there has been a delay of trips getting created
DeleteThanks Scott; though the one i created with a different date span created within minutes
Deletei'll run a script and leave it a few days and see if that creates it
appreciate the work you have put in here btw :)
I'm looking for a way to add a cruise to my trips folder though Inbox. Might you have any idea on how to create that?
ReplyDeleteThere is no markup email for cruise ships or trains at this time
DeleteThat's kinda what I thought. Thanks for all the tips and tricks! :)
DeleteI just used the hotel.html as a template to create a cruise.html and modified the name, booking number, address of the port, and departure and return dates to fill in the appropriate fields. Then in the code.gs change to var htmlBody = HtmlService.createHtmlOutputFromFile('cruise').getContent();
DeleteThis worked like a charm. I have a cruise trip bundle now. There is a lot more information that could be included but this is a great start for bundling all of my cruise emails together.
Thanks for the tutorial Scott!
This comment has been removed by the author.
ReplyDeleteHey Scott. I used your scriot today to create emails for an upcoming trip to NY. I have two flights and a hotel stay. It produced the emails and cards for the flights and hotel stay, but hasn't bundled them into a trip. Its been several hours. Any thoughts?
ReplyDeleteHey Kyle, give it up to 3 days for it to create. I have seen it take that long, sometimes quicker.
DeleteI'll give it a few more days. What's funny is I had another hotel confirmation come across today and created a trip for that within minutes.
DeleteFantastic!!
ReplyDeletequick tip -
DeleteI used YOUR flight details, only changed the dates to 2015 and sent the email.
it created trip to Oslo, and now I just added to this trip the actual flight confirmation i have and trashed the email for Oslo. the Trip details were changed right away :-)
now let's see if the system will trash it like it happen to others.
Cheers!!
Interesting workaround Dotan, will be curious to see what happens (hopefully only good stuff)
DeleteExcellent thank you! I'm no coder and you're instructions were easy for me to follow (thankfully!). I only added one "hotel" to the code though then just manually added my other email booking confirmations once the trip created itself in inbox - I may be missing something but unsure why you need to add each individually to the script emails rather than just forcing one instance of the trip you need? All worked well anyway so thanks :)
ReplyDeleteGlad it helped you. Not sure why hotels and flights and cars need to be separated, but that is how it works for now
DeleteDoes not work for me. Even if I try exactly your files I just get normal emails without cards. Maybe because I am using GApps for Work?
ReplyDeleteGive it up to 3 days to create the trip. There have been times for me where it has take that long for the trip to create
DeleteYes, but at least the cards should appear instantly like in the video?
DeleteThe cards can take a few hours as well.
DeleteOk. I just thought they show up immediately like they did in your video
DeleteJust as feedback: With my second google account (not used with gapps) everything worked perfectly. So it seems to be not working on accounts with gapps.
DeleteHi Scott,
ReplyDeleteI've copied things exactly as you have them, but I keep getting error messages. I run this code:
function CreateTripBundle() {
var htmlBody = HtmlService.createHtmlOutputFromFile('hotel').getContent();
MailApp.sendEmail({
to: Session.getActiveUser().getEmail(),
subject: 'Hotel confirmation - Santa Barbara' = new Date(),
htmlBody: htmlBody,
});
}
Error message: Invalid assignment left-hand side. (line 1, file "Code")
Is there something I was supposed to include that I don't see in your code?
Thanks!
You did make some changes and that could be the cause. For one you changed the name of the Function in the first row, but I dont think that should be a problem. Also in the line with the hotel confirmation it says = new Date(), it should be a plus sign not an equal sign.
DeleteYou should consider following the steps exactly and copy things exactly and only change the pieces as instructed.
Hi, Scott.
ReplyDeleteYour script succesfully created a flight confirmation email in inbox, but is still not(have been 4days) ctreating a new trip. I have also tried to delete all the acutal reservation emails and re-forward it. Do you think there will be something else I could try?
I cant think of anything else. it should work and does for me. The only thing I can think of is give it a little more time
ReplyDeleteI ran the script without any change(your original with OSLO) and it created a trip. I am trying to bundle other reservation emails into OSLO trip and see if it changes trip inormation.
DeleteI remembered that I have once deleted a trip in order to make a new one because it didn't have the correct information. Do you think this might somehow making inbox to think as unwanted trip information or something?
Unlikely as I have deleted trips and then was able to recreate them. The trip information wont change after the initial card is created, it will just add the information into the bundle
DeleteGreat application thank you
ReplyDeleteHi, How to add person 2? and terminal?
ReplyDeleteSee here for all the ways you can add to the email setup
Deletehttps://developers.google.com/gmail/markup/reference/flight-reservation
Hi Scott,
ReplyDeleteThis is excellent information :-) Thanks for sharing.
I wonder if you know more about the robot processing this. Lately, I seem to be getting more and more problems.
I just tried adding one missing flight to a trips bundle, and this resulted in the robot adding more than 20 other flights, both in the past and in the future, screwing up everything. (A trip from November 2015 to September 2016).
I'm repeatedly giving feedback within Google Inbox, requesting a manual way to manage trips, where the robot fails, but has (of course) not received any response.
So any info on this would be appreciated.
Br
John Erik
I dont know much more than what is here. How did you add the one missing flight? Was it through these scripts or did you already have the email
DeleteRichard - Does your script only do the hotel reservation for trips? I saw a header for Event, but there were no input boxes.
ReplyDeleteHello Scott,
ReplyDeleteThanks for your great job!
While i'm testing it on my Google Apps for Work account (trip creation seems to be quicker in regular account ?!?! but it's not the purpose)
I found a train reservation schema (and some more like bus reservation) here: https://developers.google.com/schemas/reference/train-reservation.
I hope it could help you to complete your post.
(I found it thanks to the Google Structured Data Markup Helper: https://developers.google.com/gmail/markup/testing-your-schema)
Thanks for this - I am going to test it out and update the post
DeleteLionel, I tested this out, it does in fact create a card in Inbox, but after 2 days it still has not created a Trip. So there is something else needed for that to happen.
DeleteHi Scott.
ReplyDeleteUnfortunately this great trick is no longer working, Sep. 2016. Is there anything I should change/tune in the initial scripts? Because, initially, this August It did work...
Thanks for your great job!
RB
I just tested this out and it created a trip no problem. Make sure everything is correct in your versions of the script
DeleteHello Scott -
ReplyDeleteBack in August, I used the scripts to create 2 flights (departure and return) with 1 connection (i.e. 2 legs) for each flight. It worked great and created the flights and they got bundled together for a trip just as expected. Recently, when I went to locate my Trip it was gone, but I still have the emails and the flights (with lovely city pictures) in my Inbox. Has something happened recently with a Inbox update that has prevented these from being stored as a trip? Will I have to start over again?
Thanks,
Corinne
Nothing has changed that I am aware of. You can try to forward the emails to another account, delete them, then forward back to see if a trip gets recreated.
DeleteThank you so much...Wonderful (y)
ReplyDeleteWeird... I can't open the code.gs file on google drive...
ReplyDeleteis there a way to copy and paste it directly on here?
function manuallyCreateTrips() {
Deletevar htmlBody = HtmlService.createHtmlOutputFromFile('flight').getContent();
MailApp.sendEmail({
to: Session.getActiveUser().getEmail(),
subject: ' Flight Reservation - Test ' + new Date(),
htmlBody: htmlBody,
});
}
Hi Scott,
ReplyDeleteThanks very much for this great tutorial, it works like a charm here in Austria as well. :) Looking forward to an update for trains when this function becomes available!
Cheers from Vienna,
Wolfgang
It worked for me. Also, I managed to get a more useful email by opening the unrecognized email and coping the the html of it.
ReplyDeleteI just pasted after the (/script)
Something like that:
[/script]
[html]
(...)
[/html]
So, i can see every detail I received from email, besides google not recognizing it.
TY!
PS: [ = <
Scott,
ReplyDeleteI really love your script. That makes my travels so easy now as I had most of my reservations bundled but some were not recognized before! Now I just add them manually!
Thanks for your great work.
Hope you will find a way to integrate also the train reservations soon!
Regards from Germany, Florian
Very useful post. Thanks,
ReplyDeleteCouple observation for me:
1/ Seem to work only on gmail account, gapps account using the exact script did not produce the trip card.
2/ Even if I forward the same email which created the trip card in my gmail account to the gapps email account, the trip card won't get produced there!
trying to get a hotel confirmation going, but receiving this message: Missing : after property ID. (line 4, file "Code")
ReplyDeletewhat I have so far:
function manuallyCreateTrips() {
var htmlBody = HtmlService.createHtmlOutputFromFile('Hotel').getContent();
MailApp.sendEmail({
to: Session.getActiveUser().getEmail(),
subject:'Hotel Confirmation - Brooklyn, New York' + 2016-11-04(),
htmlBody: htmlBody,
});
}
*correction this is the message : TypeError: 4.0 is not a function, it is number. (line 4, file "Code")
ReplyDeleteHi Scott,
ReplyDeleteI've followed both your advice here and the correct JSON configuration on the Google documentation, but I just cannot get the system to show two passengers on the card. Is there a trick to multiple passengers?
Make sure you have it formatted exactly like they have it here: https://developers.google.com/gmail/markup/reference/flight-reservation
DeleteOtherwise I am not sure
Here is a question for you. I already have a trip created from a Hotel Reservation from a while ago (the trip is set to start on 11/4 and end on 11/5). I booked another hotel for the next week 11/9 to 11/10 in a different city, and that hotel went in to the 11/4 trip bundle. So I removed it, and I used your trick to jump start a new trip, but that goes into the 11/4 trip too. So then I figured the dates were too close, so I did a trip with your script for 11/25 and that still went in to the 11/4 trip bundle.
ReplyDeleteThe 11/4 trip is to Atlantic City, NJ and the 11/9 trip is to Philadelphia, PA. Now I suppose they are fairly close to each other, but with no reservations from 11/5 to 11/8 why would the Philly trip bundle in the AC trip?
I even tried to create a trip with your script to a completely different country and it STILL went in to the 11/4 bundle.
Thoughts?
That is very very strange and I do not know why that would be happening. Definitely use the feedback in the program to report this to the team
DeleteI have the same problem a lot, and report it every time. I had a hotel reservation creating a trip correctly, but the flights were not added. So I started by adding one of the flights manually. It then included trips back to March, into the same trip. I've tried to tell them to PLEASE not include historic trips when checking for trip information.
DeleteI think the trip feature would work a lot better if:
* Only the inbox was checked (i.e. not archived items)
* Historic trips were ignored
I've told them this about 10 times (yes I do travel a lot). So frustrated that they cannot make this simple fix to the robot.
br
John Erik
hi,
ReplyDeleteI had a bundle for one trip which created by mails I got week ago.
by mistake I deleted it. :-(
I tried to generate this trip again with this script but it doesnt create it.
Do you know why?
if I delete a trip it cannot be recovered?
Thanks m.r.
If you still have the original emails (maybe in trash) forward them to another account, delete them, and then forward them back
DeleteHello and thank you for your blog !
ReplyDeleteScripts works gerat to sending emails.
Unfortunately my trips are only by trains. And as I send only Car confirmation and Hotel Confirmation, no bundle appears even after more than 1 hr.
Have you made any progress in a TRAIN script ? Do you have any advice ?
Nope still can't make trips wth train tickets
DeleteThank anyway ! I manage to create a trip onlu with your originals html. And then I fill it with my reservations and delete the "Oslo" email. As far as I get a way to create a trip your tip is great.
DeleteScott, just found this and it looks awesome.... and easy to use.... one thing though.... the wife and I do a lot of cruising and would it be possible to create another script for cruisers.
ReplyDeleteCurrently there is no email markup for Trains or Cruises
DeleteLike a user above I simply modeled it as a "hotel". Not the best in the world, but I'll take what I can get!
DeleteThanks for this Scott - very cool. It did work for me, sort of. The trip didn't get recreated until I used the script to create a card for a reservation that hadn't been picked up automatically in the original Trip bundle. It then picked up my flights on its own but I had to add all the other reservations manually. Strangely they then vanished ... I've added them back and hopefully they'll stay. Wish they'd get this to work properly :(
ReplyDeleteThanks Scott. Created and ran the script a few hours ago. Got the email - the Trip is yet to be seen. Sigh.
ReplyDeleteIt can take up to a day or two for the trip to create
DeleteExcellent!!!! Thanks a lot. With the Google trips this became awsome
ReplyDeleteIs it possible to rename de trip?
ReplyDeleteIf you install the app Google Trips on android, you can rename the trips there and it will reflect in Inbox
DeleteCreated 2 bus reservation cards and 1 train reservation card. But they were never added to the trip card. After I added them manualy, they are not appeared in the trip bundle. Hate that this thing is still not working.
ReplyDeleteBus and Train tickets, as well as cruises are not currently able to be parsed into a trip
DeleteHi,
ReplyDeleteMaybe what I am going to say sounds absurd, but...
you can create Trips by simply picking up an old email (I did it with the flight resevervation of an old trip), and "forward" to yourself. Then, edit the text, change the dates and flight numbers and airports....and send it. DONE.
It is easier than using coding and all that stuff.
Best regards,
Yes this is true and this is what I first suggest to people in the Inbox help forum. But it only works if you still have the emails.
DeleteHi Scott,
ReplyDeleteJust tried this and it worked great. Thanks so much for this! Such a shame that Google have limited it to hotels, car rental, restaurants and hotels.
I wanted to add my airport parking In London to my trip to Bucharest. As a work around for Google not having this schema in place I simply used the car rental template. It did not get added to the trip automatically so I moved the email into the Bucharest trip in Google Inbox and now I can see it in the app. The annoying thing, which is entirely Google's fault again, is that now it thinks my trip is to both London and Bucharest. It doesn't make the Trips app any less useable, but it is annoying from an OCD point of view! But at least I have all the trip info in one place.
Once Google implement airport parking properly I imagine this would no longer be a problem.
Great Work!
Tino,
ReplyDeleteI hear you loud and clear about the OCD thing. That's why I use the Google Trips app to rename my trips.
Two weeks ago I was taking a business trip first to Minneapolis, MN and then to Columbus, OH. Google named the trip, "Trip to Columbus & Minneapolis". No way did that sit well with me so I renamed the trip to "Trip to Minneapolis & Columbus" with the Google Trips app.
No matter what details I put in, the previous come up saying Oslo for the auto rental and San Francisco for the Hotel (there's not a mention of either in the code though) so the trip is created for San Fran & not my actual destination, any idea how i can work around this?!
ReplyDeleteThanks
Oslo is in the original scripts that I shared - so you may have missed something.
DeleteLooks good. It can take a few hours for the trip to be made
ReplyDeleteVery nice.
ReplyDeleteThanks
I've just tried (it didn't show up in a trip yet), but using the markup from https://schema.org/TrainReservation, Inbox was able to parse the info and it even shows visiting the gare in Maps!
ReplyDeleteANd it wont - train trips can be parsed into nice easy to display cards but they will not (at this time) become a Trip in Inbox.
DeleteBut can it be part of a larger trip?
DeleteNo trains cannot e part of a trip. You can add it to an existing trip but it will only be for keeping all of the emails together.
DeleteBy the way, maybe you can settle this for me: I had a trip but the flight changed, when I deleted the original confirmation email the trip vanished (fortunately, all other mail that I'd bundled with it got back into inbox). That was a couple of weeks ago. The confirmation email for the new date didn't spawn a trip; I've tried copying the email and sending it to me again; I've tried to create a trip in the Trips app; and I've tried sending an email using Schema.org's metadata. Will this trip ever show up again? Or will I be forced to create a label like a barbaric?
ReplyDeleteAnyone figure out how to make this work with a gapps account?
ReplyDeleteWorked great for a train trip but it never showed up in the trips bundle in Google inbox.
ReplyDeleteCorrect - its only making Train cards, but not trips, same with Buses at this point. I am ooking into it tho
Deletehey Scott is there a way to do this with product / receipt emails?
ReplyDeleteBundling into a trip? I am not sure what you mean
DeleteThanks for this. Exactly what I was looking for.
ReplyDeleteAll these maybe fun or adventures for some people to dig. But why not just use Tripit free version? It does all the work.
ReplyDeleteHow does one enter the appropriate info for multi-leg flights? The script seems to only handle one leg. I have tried copying parts and all of the info for one flight and duplicating it, but I'm not seeing that work, no matter what I try. You would think that, with so many hub-dependent airliens these days, that most flights would be multi-leg and that this issue would have come up for others?
ReplyDeleteSee here for the markup language and scroll down to the multiple leg flight section
Deletehttps://developers.google.com/gmail/markup/reference/flight-reservation
Hi Scott - thank you for providing all this great detail on Google trips. Do you know if it is possible to add "Notes" to the app using a script.
ReplyDeleteI do not know -sorry
DeleteFollowed your instructions the the letter. Did not get the initial email.
ReplyDeleteChecked for spelling issues in the .gs and it was fine. Copied and pasted your original flight.html file directly and tried to run it as a test. No email.
First time I ran the script - i did get the permissions and gave the script permissions.
Any ideas?
You still not getting the email? That is very odd. Check other bundles like spam or trash
Delete@Chris: still does not work in (my) google apps accounts! Are you using a regular gmail account?
DeleteThanks Richard and Scott for the help! Much appreciated!
ReplyDeleteThanks for this. I kept trying to work out how to get Inbox to auto-add these when the holiday company didn't embed the metadata needed, this does the trick nicely!
ReplyDeleteI've used this a few times now, but today, I'm getting a syntax error on line three of the 'hotel.gs' code:
ReplyDelete"@context": "http://schema.org",
I ran this exact file (with reservation changes) last week, and it worked. Do you know if anything changed this week?
I am not sure I will have to test this later
DeleteNo issues on my end. Worked fine. You reference in your comment above hotel.gs, however there is no file named hotel.gs
Deleteyep - I clicked the wrong new entry - just tried again and it worked...thanks!
DeleteThanks a million for sharing it with us. One little detail that I found out after hours fighting with it (the trip was not been created on my inbox) is that when you send de email to yourself it must be the @gmail account. I have a connected account that I redirected to my Gmail, but by some reason if I send the reservations to that account the inbox will not create the trip for it.
ReplyDeleteهذا جيد جدا هذا ساعد فى الكثير
ReplyDeleteشكرا لك صديقى
How to send email to clients. I followed your steps its always sending to my inbox only. Please explain how to send mail to client.
ReplyDeleteDid it using both methods, trip still not created after 2 days :(
ReplyDeleteNAKKIRAN make sure you are sending it to your @gmail.com account and not to a pop sync or forwarding email.
ReplyDeleteTried the new simple method by creating a trip in the mobile app. Unfortunately, Inbox did not create the trip. I don't have flights yet, so I just input info for the flights I expect to purchase. Sent the reservation to my gmail address. Opened in Inbox. Waited overnight. Still has not created an Inbox trip. Any ideas why it's not creating the trip?
ReplyDeleteLooks like you may be right - I am testing and still not trip made for me. I ahve reported this to the team. In the meantime the script should still be working
DeleteHi Scott - I am a total novice, but I have followed your instructions. I have received the email for the flight reservation, but still 4 hours later no trip has appeared. Do you have any advice? Thanks!
ReplyDeleteHi Kara, did you send the email to your @gmail.com account? I have noticed that if you send to a connected account (any other email that you receive in the gmail inbox or redirect to it) it will not create the trip
DeleteThanks Bruno - yeah, all of the emails have been sent to my personal gmail account. It has included an email from Qantas, booking.com and another hotel booking. It hasn't recognised any of these. When I followed Scott's instructions, I used the flight booking only. I have even tried forwarding the booking confirmations to my husband's gmail account and that didn't work either! I'm now investigating alternatives!
DeleteIts very odd as it does work for me and others, but for many others it does not. Have you tried the method of using Google Trips?
DeleteHi Scott - I tried setting it up manually in the Trips app, but it doesn't show up in Inbox. Last night my husband's Inbox some how magically recognised the hotel bookings, but still not the flights. But, and this was pretty funny, it disappeared, reappeared 10mins later, and then disappeared again! Haha! It seems to unreliable, so I ended up installing the TripIt app.
ReplyDeleteYeah there seems to be an increase in reports of issues with trips. Definitely use the feedback in the Inbox menu to report these issues directly to the team
DeleteAnybody having success with the script? Like others the Google Trips method did not work for me and neither did the script.
ReplyDeleteGreat info! Please note that for the UTC offset, you need to add the UTC time zone for each airport at the date of the flight. Example: from Zurich to Helsinki on 2019-02-09 (HEL: UTC + 2 ZRH: UTC + 1)
ReplyDelete"departureTime": "2019-02-09T10:55:00-01:00"
"arrivalTime": "2019-02-09T14:45:00-02:00"