0

I am trying to build a gmail add-on which starts automatically when the user opens an email and display them some information. How can I do that?

2 Answers2

0

You could start with this document https://developers.google.com/gsuite/add-ons/how-tos/building-gsuite-addons

  1. you need a script project and standalone script
  2. In Gmail app, there are 3 triggers, homepage trigger (when the user is at homepage), contextual trigger (when the user is reading an email) and compose trigger (when user composing an email), you could declare the triggers on add-on manifest file
  3. create handler as CB function for these triggers and declare them on the manifest file
  4. you could easily install the add-on by Publish -> deploy from manifest -> install add-on (on your Gmail account)

I extremely suggest read the doc, as there is amazing documentation, how to developing G suite add-on

  • this appear to be only callbacks for when the icon to open the add-on is clicked. I want the add-on side bar to open automatically without having to click, on an event such as when an email is opened – Ammar Hassan Mar 04 '20 at 11:33
0

There is an Chrome extension you can use to automatically open any add-on from Gmail, Calendar, Drive and Docs when you open the corresponding web page.

https://chrome.google.com/webstore/detail/auto-open-add-on/bcjnialkobgkdkbdclhdnbdcdgdcgdlo