Google Search

A guide on using the Google Search action to find real-time information on the web.

The Google Search Action allows your workflow to perform a Google search and retrieve the top results. This is an essential tool for gathering real-time information, researching topics, or finding relevant links based on dynamic data.

Configuration

You configure the action by specifying what you want to search for.

Input Parameters

Parameter
Type
Description

Search Query

Text

The keyword or phrase you want to search for on Google. This can be static text or contain variables from previous actions (e.g., latest news about {{company_name}}).

Top k

Integer

The number of top search results you want the action to return (e.g., 5 will return the top 5 results).

Example Configuration

{
  "search_query": "What is AgenticFlow?",
  "top_k": 3
}

Output

The action returns a list of search results, with each result containing the title, a snippet of the content, and a direct link to the page.

Output Parameter

Parameter
Type
Description

search_results

List of JSON

A list of search result objects. Each object contains a title, snippet, and link.

Accessing the Output

The search_results output is a list, so you will often need to use a Code Action or a Loop Action to process it. For example, to get the link of the very first result, you would use {{google_search_action.search_results[0].link}}.

Example Output

A sample {{google_search_action.search_results}} output would look like this:

[
  {
    "title": "AgenticFlow | The Future of AI Automation",
    "snippet": "Build powerful AI agents and automate your workflows with AgenticFlow's no-code platform...",
    "link": "https://www.agenticflow.ai/"
  },
  {
    "title": "What is an Agentic Workflow? - TechTarget",
    "snippet": "An agentic workflow is a sequence of tasks performed by an AI agent to achieve a goal...",
    "link": "https://www.techtarget.com/whatis/definition/agentic-workflow"
  },
  {
    "title": "AgenticFlow on LinkedIn",
    "snippet": "AgenticFlow | 5,432 followers on LinkedIn. Automate anything with autonomous AI agents.",
    "link": "https://www.linkedin.com/company/agenticflow"
  }
]

Last updated

Was this helpful?