Instruct your AI Agent to identify and extract specific URLs from the current webpage for navigation or data collection.
Find Links
block is a straightforward yet essential tool that allows your AI Agent to locate and collect URLs (links) present on the current webpage based on your criteria. This is particularly useful when the agent is on a page listing multiple items (like products, articles, or companies) and you need it to navigate to individual item pages or find a specific target link.
If interactive elements like buttons on a page are implemented as actual links (i.e., hovering over them shows a URL in the browser’s status bar), using Find Links
to target these URLs for navigation is often faster and more precise than using the Interact with Page
block, as Find Links
is specifically optimized for URL discovery.
Find Links
block when you want your AI Agent to:
Follow Links
, for subsequent actions.
Find links to each company's pages
Find links to articles in the list that must contain 'example.com/blog/'
Find the link with text 'View Details'
Find all links to PDF documents, for example, ending with .pdf
Find link to user profile for {{username}}
Follow Links
block immediately after this Find Links
block. Using Find Links
by itself typically serves no purpose, as the collected links won’t be acted upon.Screenshot: Find Links block configuration with an example description including patterns
ycombinator.com/companies
).
Find Links
Block:
Find links to each company's page
Follow Links
Block (added next):
Follow Links
block will instruct the agent to navigate to each of those found URLs.Find Links
Block:
Find the link to the "Terms of Service" document, must contain '.pdf'
Follow Links
Block (added next):
Follow Links
for Navigation: This block only finds URLs. To actually visit them, it must be paired with a Follow Links
block placed immediately after it. Using Find Links
in isolation without a subsequent action on the links is generally not useful.Interact
for Link-Buttons: If a button or clickable element is a true hyperlink, using Find Links
(followed by Follow Links
) is often more efficient and reliable for navigation than using Interact with Page
to simulate a click.Follow Links
block.Find Links
block is a simple but crucial component for creating workflows that involve navigating through multiple pages or drilling down into specific items from a list.