Brevo - Create and Update Contact Flow

Hello everyone,
I am new to make.com but am getting used it to the learning curve and how powerful it is. However, i recently encountered a problem and spent hours on it with no real solution.

I have a webhook that gets form data from Heyflow landing page and sends it to Brevo. But we get a lot of duplicate leads (same email) and we would want to update/enrich the existing lead with extra information.

The problem is I cannot put update and create New contact in one flow and no way to route it.
Scenario 1: Email doesnt exist. This works with create but not with update.
Scenario 2: Email exists. This works with update but not with create.

So I would need to check if the email already exists in Brevo and route it likewise, but if the email is not found, then it runs into an error. Any solutions/ideas?

This is my current setup.

Hi,
You can give it a shot by first creating the contact. If Make pops up with an error saying the email is already in use, you can just switch to the error handling path and then look for that existing lead to update instead…as such you would be covering both bases…creating new contacts or updating existing ones…