Skip to main content

Web links in automations

Let people start an automation by clicking a link. Create the link, send it in an email or comment, then show a message or send the person to another page.

Written by Leo

A web link is a link that starts an automation when someone clicks it (the Create web link action makes the link, and the When a web link is clicked trigger starts the automation that the link points to). Web links are meant to help you let people act on a record straight from an email, a comment, or a PDF, without opening Tape first.

You can use web links for many things, including:

  • Letting a manager approve or reject an expense with one click from an email.

  • Letting a candidate confirm an interview slot from a message.

Note:

  • You build the automation that the link starts first. Create web link can only point to an automation that starts with When a web link is clicked in the same app.

  • Anyone who has the link can click it. Treat a web link like a password: share it only with the people who should be able to act. If the link should work only once, let it expire On click. People don't need a Tape account to use a web link, and anyone who has the link can open it, even if it was forwarded.

How web links work

A web link uses two automations:

  1. The automation that starts the link. It has a Create web link action. It makes a link for the current record and saves it in a variable called Link.

  2. The automation that runs when the link is clicked. It starts with When a web link is clicked, runs on the same record, and can show a message or send the person to another page.

In the first automation, you insert the Link variable into another action, for example Send email or Add comment. When the recipient clicks, the second automation runs on the record the link was made for.

Create the automation that runs on click

Build this one first, because the other automation needs to select it.

To create it:

  1. Open the database app and click the automations icon in the top bar (tooltip Create and view automations), then select New automation. The icon is only there for workspace admins, and not on mobile.

  2. Choose the trigger When a web link is clicked. In an existing automation, hover over the trigger, click ••• to the right of it, and select Turn into → Web link clicked. If the automation has no actions yet, Tape adds a Display message action for you.

  3. Select Add action and add what should happen, for example Update record.

  4. Add Display message or Redirect users to show the person what happened.

  5. Select Create automation.

The When a web link is clicked trigger in the automation editor.

Create the link

In the other automation, add the action that creates the link:

  1. Select Add action → Create web link. The step reads Create a web link for the current record.

  2. Check the automation after to call. Tape preselects the first callable automation. To choose another one, select its name and pick it under Callable automations. Without one, it reads Select an automation. If you see No callable automation found, select Create automation to build one.

  3. Open the action's menu ••• and select Web link expires. The default is Never. To let the link work only once, choose On click.

  4. The link is saved in a variable called Link. Select Link to rename it.

  5. Select Create automation for a new automation, or Save changes for an existing one.

The action Create a web link for the current record to call Handle approval link on click and save URL in Link

Add the action before the step that uses the link. A variable is only available to actions that come after it.

Use the link

Insert the Link variable where you want it, for example in Send email or Add comment. Type @ to open the list of variables. The Link variable inserts the web address as plain text.

Show a message or redirect the person

The trigger When a web link is clicked has two actions that are only for web links:

  • Display message displays a message on a web page. Use it to confirm what happened, for example "Thanks, the expense is approved."

  • Redirect users redirects users to another web page, for example to the record or to your website.

Without Display message, the page shows Thank you very much! after a successful run. If the run fails, it shows An error has occurred.

In the clicked automation, you can also use two values under Weblink in the list of values: Click count tells you how often the link was opened, and Creation date tells you when it was created. Use Click count to react only to the first click.

Let's look at an example

Let's say your finance team wants managers to approve expenses with a link:

  1. Create the automation Approve expense by link with the trigger When a web link is clicked.

  2. Add Update record and set Status to Approved. After When a web link is clicked, the action list adds Display message and Redirect users. All other actions stay available.

  3. Add Display message with the text "Thanks, the expense is approved."

  4. In the automation that notifies managers, add Create web link and select Approve expense by link.

  5. In Send email, write "Approve this expense:" and insert the Link variable.

The next time an expense is submitted, the manager gets an email. Clicking the link approves the expense and shows the thank-you message.

Web link errors

  • If Select an automation shows No callable automation found, the target doesn't exist yet or isn't in the same app. Create it with Create automation.

  • If the link doesn't do anything, check that the link hasn't expired and that the automation that runs on click is active. If the link has expired, the page shows Link is not available and the automation doesn't run.

  • If the click starts a run that fails, the failed run appears in the Runs panel of the clicked automation. Learn more about error handling →

Test, pause, or edit web links

  • To test the click side, copy the link from a run of the first automation and open it yourself. A link created in a Simulated run starts a simulated run when you click it. To find the link, open the run and look for the step that starts with Create a web link for the current record. The variable at the end of that step, for example Link, is the generated link. Selecting it opens the link and starts the automation, like a click by a recipient.

  • To pause the click side, select Active below its automation's name, then select Save changes. The status switches to Paused. While it's paused, the link shows Link is not available and nothing runs.

  • To change what happens on click, open the automation, edit its actions, then select Save changes.

Learn more

FAQs

Can I add a button instead of a plain link?

Yes. Insert the Link variable into an HTML button in your email or PDF, and also add the plain link as text for email clients that block buttons.

Can the link expire?

Yes! Open the menu ••• of Create web link and select Web link expires. The default is Never. To let the link work only once, choose On click.

Can I start an automation from a link in another app?

Not directly. The link points to an automation in the same app as the action that creates it. To act on a record in another database app, have the clicked automation call another automation. Learn more about Call automation →

Can I pass values to the automation through the link?

Yes! On the clicked automation, hover over the trigger, click •••, and turn on Pass variable values. Rename the variables as you like. In Create web link, fill in a value for each variable. The clicked automation runs on the record the link was made for, so its field values are available anyway.

Can the same link be used more than once?

Yes, unless it expires. Each click starts a new run. To allow only one click, set Web link expires to On click.

Are you a developer using the Tape API for automations?

The automation API has its own documentation for developers. Full reference: current_record_generate_automation_weblink 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?