Query string syntax
A query string begins with? after the base trigger link URL, with each parameter formatted as key=value. Multiple parameters are separated by &.
| Part | Example | Purpose |
|---|---|---|
| Base URL | https://yoursubdomain.hoopai.com/trigger/abc123 | The trigger link generated by Hoop |
? | First separator | Marks the start of the query string |
key=value | source=email | A single parameter |
& | Between parameters | Separates multiple parameters |
Step 1: Create a trigger link workflow
Create a new workflow
Go to Automation > Workflows in the Hoop platform and create a new workflow. Select Trigger Link as the workflow trigger.
Copy the trigger link URL
After saving the trigger, Hoop generates a unique URL. Copy this URL — it is the base URL you will append query strings to.
Step 2: Use query string values in the workflow
Access the values in workflow actions
In any workflow action, you can reference query string values using the custom values picker. Look for Trigger Link in the values list — each query parameter you passed will be available as a selectable value.
Map values to contact fields
Use an Update Contact action to save query string values to contact custom fields. For example, map
{{trigger_link.source}} to a custom field called “Lead Source.”Passing dynamic values
You can insert dynamic contact data into trigger link query strings when sending them via email or SMS from Hoop.Dynamic values like
{{contact.email}} are resolved at send time. The contact receives a URL with their actual data filled in, not the placeholder text.URL encoding
Special characters in query string values must be URL-encoded to work correctly.| Character | Encoded form | Example |
|---|---|---|
| Space | %20 or + | name=Jane%20Doe |
& | %26 | company=Smith%26Co |
= | %3D | code=A%3D1 |
@ | %40 | email=jane%40example.com |
Common formatting mistakes
Using ? more than once
Using ? more than once
The
? character should only appear once in the URL, right before the first parameter. Additional parameters use & as a separator. A URL like ?source=email?product=starter will not parse correctly.Spaces in parameter names or values
Spaces in parameter names or values
Spaces in URLs cause errors. Use
%20 or + for spaces in values, and avoid spaces in parameter names entirely. Use underscores instead: product_name=starter.Missing values
Missing values
A parameter like
source= with no value will pass an empty string into your workflow. This can cause issues with conditional logic that checks for specific values. Always provide a value for each parameter.Case sensitivity
Case sensitivity
Query parameter names are case-sensitive.
Source=email and source=email are treated as different parameters. Be consistent with casing across your trigger links and workflow logic.Testing trigger links
Open the link in an incognito window
Paste the full trigger link with query parameters into an incognito browser window. This simulates a contact clicking the link without any cached session interfering.
Check the workflow execution log
After clicking the link, go to Automation > Workflows and open your workflow. Check the execution history to confirm the workflow was triggered and that query string values were captured correctly.
.png?fit=max&auto=format&n=EQK5eX9kTD8NzWwA&q=85&s=878008bf159fcc4964d0c0d508b6e400)