Latenode

Automatically shorten URLs in Google Sheets with T.LY Link Shortener

This automation allows users to automatically generate shortened URLs using the T.LY service whenever a new row is added or an existing row is updated in a Google Sheet.

The primary purpose is to provide a convenient way to shorten URLs directly within a spreadsheet environment, streamlining the process of sharing and tracking links. This automation is targeted at users who work with data, spreadsheets, and databases, aligning with the Latenode product promise of 'Data, spreadsheets & databases' solutions.

Updated Apr 6, 2026Est. run: 25sEst. cost: $0
How Latenode estimates time and cost

Latenode bills workflow runs in credits: 1 credit = 30 seconds of processing. Minimum charge per run depends on your plan. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how credits work →
Data, spreadsheets & databases

Workflow preview

What this template does

  • Automatically generates shortened URLs using T.LY when a new row is added to a Google Sheet.
  • Eliminates the need to manually shorten URLs in a spreadsheet environment.
  • Provides a convenient way to share and track links directly within a Google Sheet.
  • Streamlines the process of managing and distributing links for users working with data, spreadsheets, and databases.
  • Produces shortened URLs that can be easily copied and shared with others.

How it works

1
Trigger

Connect to Google Sheets

The automation starts by connecting to the Google Sheet where you want to automatically generate shortened URLs. You'll need to authenticate and grant the necessary permissions to access the sheet.

2
Action

Create TinyURL

Once the Google Sheet connection is established, the automation will detect any new rows added or existing rows updated. For each of these rows, the automation will use the T.ly service to generate a shortened URL for the link in the sheet.

3
Action

Write Shortened URL

The generated shortened URL from T.ly will then be written back to the same row in the Google Sheet, providing you with a convenient way to access and share the shortened link directly within the spreadsheet.

4
Logic

Custom Formatting

Optionally, you can apply custom formatting to the shortened URL before writing it to the sheet, such as formatting the URL to include a specific prefix or suffix, or transforming the URL in other ways to fit your needs.

Setup guide

1

Add Google Sheets credential

In the Latenode Credentials panel, add a new credential for Google Sheets. Authenticate with your Google account and grant the necessary permissions to access your Google Sheets.

2

Configure Google Sheets node

Add a Google Sheets node to your workflow. In the node settings, select the Google Sheets credential you added earlier. Then, configure the input parameters such as the spreadsheet ID, sheet name, and the column(s) you want to monitor for new or updated rows.

3

Add TinyURL credential

In the Latenode Credentials panel, add a new credential for TinyURL. Enter your TinyURL API key or generate a new one if you don't have one already.

4

Configure TinyURL node

Add a TinyURL node to your workflow. In the node settings, select the TinyURL credential you added earlier. Map the input data from the Google Sheets node to the appropriate TinyURL node inputs, such as the long URL to be shortened.

5

Add a JavaScript Code node

Add a JavaScript Code node to your workflow. In the node settings, write a code snippet that takes the shortened URL from the TinyURL node and updates the corresponding row in the Google Sheet with the shortened URL.

// Example JavaScript Code node
async function main(input) {
  const { spreadsheetId, sheetName, rowIndex, shortenedUrl } = input;

  // Use Latenode APIs to update the Google Sheet row
  await googleSheetsApi.updateRow(spreadsheetId, sheetName, rowIndex, { shortenedUrl });
}

Requirements

Connect your Google Sheets workspace to Latenode
Obtain a T.LY API key and configure it in your Latenode workspace
Set up a Latenode workflow that automatically shortens URLs when new rows are added or updated in your Google Sheet
Optionally, configure monitoring and error handling for your URL shortening workflow

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.

More templates

You might also like

Browse all templates →
Data, spreadsheets & databases

Automatically sync Notion items to new Google Docs documents

This automation allows users to automatically create a new Google Docs document whenever a new item is added to a Notion database. It streamlines the process of transferring data from Notion to Google Docs, making it easier for teams to collaborate on documents and reports. The automation triggers when a new item is added to the specified Notion database, and it then creates a corresponding Google Docs document with the relevant information. This integration between Notion and Google Docs helps users to centralize their data and workflows, improving productivity and efficiency.

26s$0.0703
Data, spreadsheets & databases

Automatically generate customized Google Docs from new form data

This automation allows users to create a new Google Doc based on a predefined template, using data from a new submission in a linked Google Form. Whenever a new row is added to the associated Google Sheets spreadsheet, the automation will trigger and generate a personalized document using the form data. This streamlines the process of creating documents from structured data, making it more efficient for individuals or teams working with Google's productivity suite. The primary systems involved are Google Forms, Google Sheets, and Google Docs.

26s$0.0703
Data, spreadsheets & databases

Automatically notify via Burst SMS when new rows added to Google Sheets

This Latenode automation allows users to stay focused on their primary workflows by automatically sending SMS messages through the Burst SMS platform whenever a new row is added to a specified Google Sheets spreadsheet. It connects the Google Sheets data source to the Burst SMS service, streamlining the notification process. Users can configure the specific spreadsheet and mobile number to receive the SMS updates, helping them stay informed without getting distracted from their main tasks.

7s$0.0004