How to Ensure a String Includes a Specific Prefix (e.g., https://) - Invalid URL in parameter Issue

Hi Makers,

I’m having an issue with a scenario I’m setting up, and I would really appreciate your help.

Scenario description:

  • Trigger: The scenario starts with the Watch Events from Instantly module (Webhook configured correctly).
  • Action: The data received is sent to the Create/Update Contact in Go High Level module.

The issue:
When the data reaches the Go High Level module, I encounter the following error:

type BundleValidationError 
message Validation failed for 1 parameter(s).
detail Invalid URL in parameter 'website'.

The issue seems to be related to the website field, which comes from Instantly. I’ve confirmed that the field is not empty—it contains values like this example: smithpropertygroup.com

It appears that the problem is the missing http:// or https:// prefix, which makes the value invalid as a URL.

What I’ve tried so far:

  1. Added a Set Multiple Variables module to try and add the https:// prefix. I created a variable named formattedWebsite using the following formula:

if(contains([1.website] ; "http://") or contains([1.website]; "https://") ; [1.website]; "https://" & [1.website])

Here the Screenshot of set variable:

  1. After setting this variable, I added a Compose a String module to call the formattedWebsite variable and use it in the next steps.

And this the Screenshot of Compose a string

And This is an example output from the “Set Multiple Variables” module, as you can see it is not adding the “https://” prefix.

What I need help with:

  1. Can someone help me correct the formula in the Set Multiple Variables module?
  2. Is the Compose a String module necessary in this case, or can I pass the formattedWebsite variable directly to the Go High Level module?

Thank you in advance for any suggestions or examples you can share! :pray: