When a web link is clicked is a trigger that starts an automation when someone opens a web link that Tape created for a record (the trigger decides when an automation starts, and the actions decide what happens). It's meant to help people act on a record with one click, for example by selecting an approve link in an email.
You can use this trigger for many things, including:
Letting a manager approve an expense with one link in an email.
Letting a buyer confirm a showing time from a link in a message.
Note:
The link comes from another automation. Add the
Create web linkaction to an automation that sends the link, for example in an email.It works on one record. Every link belongs to the record it was created for.
Check who can open it. People don't need a Tape account to open the link, and the link also works when it's forwarded. Share it only with people who should act.
Who can use the When a web link is clicked trigger?
Automations are available on the Free, Plus, and Premium Plans. The number of automation actions per month depends on your plan. Learn more about plans →
To create, edit, pause, run, or delete automations, you need to be a
Workspace adminin the workspace the database app belongs to. Only workspace admins seeAutomationsin a database app.
Set up the When a web link is clicked trigger
To set up the trigger:
Open the database app and click the automations icon at the top right (
Create and view automations).Select
New automation.Select
When a web link is clickedfrom the list of triggers.Add a filter if the automation should only continue for certain values. Learn more about filters →
Select
Add actionand choose what should happen.Select
Create automation.
The trigger reads like a sentence: When a web link is clicked in {app}. To give the trigger your own name, select its name and type a new one.
If you switch an automation without actions to this trigger with Turn into, Tape adds a Display message action for you.
Hover over the trigger and click ••• to the right of it to find two more settings. Both are off by default:
Pass field valueslets you choose apps whose field values the automation that creates the link hands over.Pass variable valuesadds variables. The automation that creates the link fills them in, for example "approved" in one link and "rejected" in another.
Use the click in your filter and actions
Under Weblink in the list of values, you find two values about the link:
Click counttells you how often the link was opened. Use it to react only to the first click.Creation datetells you when the link was created. Use it to check how old the link is.
Create the link
The trigger only waits for the click. A second automation creates the link and sends it:
In another automation, select
Add action→Create web link.Choose the automation with the
When a web link is clickedtrigger that the link should start.Choose when the link expires. In the action's
•••menu, setWeb link expires, for example toNever(the default) orOn click(the link works only once).Insert the link in an action, for example in the message of
Send email.
Tip: Send the link as plain text as well as a button. Some email programs hide buttons.
Show a message or redirect
With this trigger, Add action offers two actions that you can't use with other triggers. They decide what the person sees in the browser after the click:
Display messageshows a message on a web page.Redirect userssends the person to another web page.
Without Display message, the page shows Thank you very much! after a successful run. If the run fails, it shows An error has occurred.
All the actions for the current record are still available, such as Update record and Add comment. Learn more about both actions →
Let's look at an example
Let's say you want a manager to approve an expense from an email. Here's how:
Create an automation with the trigger
When a web link is clickedinExpenses.Add the filter
WhereStatusIsPending.Select
Add action→Add commentand enter "Approved by web link."Select
Add action→Display messageand enter "Thanks! The expense is approved."Select
Create automation.In your other automation, add
Create web linkand choose the automation from the steps above. Add the link to yourSend emailaction.
When the manager opens the link, you should see the comment on the expense and the message in the browser!
When a web link is clicked errors
If the link can't be used anymore, for example after
On click, the page showsLink is not availableand asks the person to contact the owner. The automation doesn't run.If the called automation is
PausedorBroken, the page showsLink is not availableand no run starts.If the run fails, the page shows
An error has occurred, and the failed run shows up inRuns.If the status next to the automation's name shows
Brokenin red, part of the automation doesn't fit the trigger, often an action that needs a current record. The part that doesn't fit is shown in red. While the automation isBroken, it doesn't run and you can't start a manual run. Tape then showsTrigger runs manually not possible because of broken automation.Lots of automation activity in a short time can delay automations across your organization. The delay is temporary. Tape checks the load again shortly and runs waiting automations automatically. Learn more about limits and throttling →
Test, pause, edit, or delete an automation with this trigger
Manual runruns the automation once on the records you choose. It has real effects, so the comment from the example is posted. In a manual run, nobody opens the link, soDisplay messageandRedirect usersdon't show anything. To test the full path, create a link and open it yourself. Learn more about testing →New automations you create in the editor are
Activeright away. The status,ActiveorPaused, sits below the automation's name in the editor. To pause one, select the status to switch it toPaused, then selectSave changes.To edit an automation, open the app, click the automations icon in the top bar, then select the automation. Select
Save changeswhen you're done.To delete an automation, open it and click
•••at the top right, then selectDelete. Confirm withDelete. You can also click•••next to the automation in the list of automations, then selectDelete. Deleting can't be undone.To switch to another trigger, hover over the trigger and click
•••to the right of it, then selectTurn intoand choose a trigger. The filter and the actions stay. If an action or a filter condition doesn't fit the new trigger, for exampleUpdate recordafter switching to a schedule, orHas changedafter switching away fromWhen a record is updated, the status next to the automation's name turns red and showsBrokenuntil you change or remove it.
Learn more
FAQs
How do I put a button in an email?
How do I put a button in an email?
Create the link with Create web link, then insert it as a link or button in the Send email message. Add the same link as plain text, too. Learn more →
Can I show a message after the click?
Can I show a message after the click?
Yes! Add the Display message action. It's only available with this trigger.
Can I send the person to another page?
Can I send the person to another page?
Yes! Add the Redirect users action, then enter the address of the page.
Can the link work only once?
Can the link work only once?
Yes! Set Web link expires to On click. You can also use Click count in a filter to react only to the first click.
What's the difference between this trigger and When a webhook is received?
What's the difference between this trigger and When a webhook is received?
When a web link is clicked starts from a link that belongs to one record. When a webhook is received starts when another system sends data to a Tape address. Learn more →
Are there other triggers I can use?
Are there other triggers I can use?
Yes! An automation can start when a record is created, updated, or deleted, when a comment is added, when a date arrives, on a schedule, and more. See every trigger in Automation triggers →
Are you a developer using the Tape API for automations?
Are you a developer using the Tape API for automations?
The automation API has its own documentation for developers. Full reference: Triggers in the developer docs →
Still have more questions? Find answers and get help from community experts in the Tape community →.
