Seems like you rely on the chrome extension to initiate the script? I.e. for the mail merge from airtable, you figure out which page the users is on to know which table to merge from correct?
If so, might I suggest inboxsdk.com for help with your extension dealing with Gmail.