Skip to main content

Trigger from a web link

Start an automation when someone opens a link, such as an approve button in an email, then show a message or send the person to another page.

Written by Leo

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 link action 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 admin in the workspace the database app belongs to. Only workspace admins see Automations in a database app.

Set up the When a web link is clicked trigger

To set up the trigger:

  1. Open the database app and click the automations icon at the top right (Create and view automations).

  2. Select New automation.

  3. Select When a web link is clicked from the list of triggers.

  4. Add a filter if the automation should only continue for certain values. Learn more about filters →

  5. Select Add action and choose what should happen.

  6. Select Create automation.

The trigger card for When a web link is clicked in Expenses, with the Display a message on a web page action below

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 values lets you choose apps whose field values the automation that creates the link hands over.

  • Pass variable values adds 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 count tells you how often the link was opened. Use it to react only to the first click.

  • Creation date tells 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:

  1. In another automation, select Add action → Create web link.

  2. Choose the automation with the When a web link is clicked trigger that the link should start.

  3. Choose when the link expires. In the action's ••• menu, set Web link expires, for example to Never (the default) or On click (the link works only once).

  4. 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 message shows a message on a web page.

  • Redirect users sends 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:

  1. Create an automation with the trigger When a web link is clicked in Expenses.

  2. Add the filter Where Status Is Pending.

  3. Select Add action → Add comment and enter "Approved by web link."

  4. Select Add action → Display message and enter "Thanks! The expense is approved."

  5. Select Create automation.

  6. In your other automation, add Create web link and choose the automation from the steps above. Add the link to your Send email action.

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 shows Link is not available and asks the person to contact the owner. The automation doesn't run.

  • If the called automation is Paused or Broken, the page shows Link is not available and no run starts.

  • If the run fails, the page shows An error has occurred, and the failed run shows up in Runs.

  • If the status next to the automation's name shows Broken in 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 is Broken, it doesn't run and you can't start a manual run. Tape then shows Trigger 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 run runs 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, so Display message and Redirect users don'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 Active right away. The status, Active or Paused, sits below the automation's name in the editor. To pause one, select the status to switch it to Paused, then select Save changes.

  • To edit an automation, open the app, click the automations icon in the top bar, then select the automation. Select Save changes when you're done.

  • To delete an automation, open it and click ••• at the top right, then select Delete. Confirm with Delete. You can also click ••• next to the automation in the list of automations, then select Delete. Deleting can't be undone.

  • To switch to another trigger, hover over the trigger and click ••• to the right of it, then select Turn into and choose a trigger. The filter and the actions stay. If an action or a filter condition doesn't fit the new trigger, for example Update record after switching to a schedule, or Has changed after switching away from When a record is updated, the status next to the automation's name turns red and shows Broken until you change or remove it.

Learn more

FAQs

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?

Yes! Add the Display message action. It's only available with this trigger.

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?

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?

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?

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?

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 →.

Did this answer your question?