Gmail Integration - Create Item when a label is added to an email

The Gmail Integrations thus far are great, but I’d like to see a powerup that offers the following:

When a label is added to an email, an item is added to a board.

Pretty simple - I had this functionality in Asana.

Is this a possibility?

I have the same request, in the meantime I have done with integromat

possible also in appscript, but in my case not practical

Assignment to a label by a gmail or manual filter --> sending mail --> changing the label

Here is an example of code in apps script, I have a problem for the new label assignment.
If a specialist can correct the problem, I’m not against it. :wink:

function autoForwardZoom() {
var s = “”;
var m = “”;
var c = 0;
var b ="";
var a = “”;
var f = “”;
var h = “”;
var myLabel1 = GmailApp.getUserLabelByName(‘monday’);
var myLabel2 = GmailApp.getUserLabelByName(‘mondayOK’);
var label = ‘monday’;
var subject = ‘Disconnected’;
var from = ‘mail@compagny.monday.com’;
var threads = GmailApp.search(" label:" + label, 0, 1);
for (var i = 0; i < threads.length; i++) {
var message = threads[i].getMessages();
c = threads[i].getMessageCount() - 1;
m = threads[i].getMessages()[c];
b = m.getBody();
s = m.getSubject();
a = m.getAttachments();

m.forward(from, {
  replyTo: from,
  subject: s,
  htmlBody: h + " <br>" + b,
  attachments: a
});

// threads[i].moveToTrash(); //delete mail
//threads[i].addLabel(myLabel2);
threads[i].removeLabel(myLabel1);

// GmailApp.markThreadsRead(threads);
}

}

I agree this would be such as simple an awesome way to make monday even more useful. Any response from monday team with respect to your suggestion?

I do not understand how this has not been brought up for two years! I used Zapier to set this up but if I have to go to Zapier and use their clumsy create a Zap every time I want to do this, it almost defeats the purpose of gmail integration. Maybe I am missing something. Maybe once a team is using Monday.com you learn to systematize your subject lines so that the triggers are of use. In gmail, I use labels to make sense of the mess of different subject lines that come in about a single project. I need to be able to control how these are systematized by labeling them – not assuming that everyone else in the organization is going to use a uniform subject line to trigger an item being added to a board.

Hi Yann,

This solution will not work when label is added sometime later after receiving the emails.