Change a single field in a workflow

I’m trying to workout the cleanest way to do this. I have an input which is at Gmail trigger. From this node I can get information which I will use to create a Google contact.

There’s just one part that is different. Emails will come from different web forms and they will be structured in a similar way. I want to set the Google contact note field with some information about which form came from.

I have something like this so far but I need some way of setting

Google contact note = X

and then I have a sort of mapping between say the email subject and a word.

What’s the easiest way of doing this without duplicating these three nodes once for each mapping/?

Also another issue is I want to be able to set the phone number. I want to do a very simple processing basically if the phone number starts with ‘04’ then set the type to mobile otherwise set it to work.


It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hello @bally

You can set for each form trigger to execute a sub workflow. And in the sub workflow you can define all the logic, so it would be like that:

N flows with triggers

and a sub workflow with the logic

1 Like