Google Search

Automate research with a Google Search

The "Google Search" Step allows you to automate a Google Search and pass the results as input into your applications.

Configuring a "Google Search" Step

Configuring the step requires setting the three different parameters shown below:

Search Query

The "Search Query" input field is the exact phrase that will be Googled when the step runs, i.e. what do you want to search in Google?

To search from a specific site, you can type site:www.example.com followed by your search phrase

Search Parameters

To narrow down the results of your search, you can configure specific parameters based on the SERP API documentation:

For example:

  • Search within a specific region

  • Limit the number of results returned

  • Enable or disable similar/omitted results

When filtering by one or multiple parameters, it is important that you format them as JSON. Similarly, the expected output of the Google Search Step will be formatted as JSON, as shown in the example below.

To dynamically set variables as query or search parameters referencing an input (defined in the "Start" step) or output variable ( generated by any step), you will need to use Liquid syntax:

Output Types

The following Output Types are currently supported by the "Google Search" Step:

Links Only: A list with links to the organic URL results.

[
  "https://www.zdnet.com/article/six-skills-you-need-to-become-an-ai-prompt-engineer/",
  "https://en.wikipedia.org/wiki/Prompt_engineering",
  "https://www.mckinsey.com/featured-insights/mckinsey-explainers/what-is-prompt-engineering",
  "https://www.techtarget.com/searchenterpriseai/definition/AI-prompt-engineer",
  "https://www.datacamp.com/blog/what-is-prompt-engineering-the-future-of-ai-communication",
  "https://www.promptingguide.ai/",
  "https://aws.amazon.com/what-is/prompt-engineering/",
  "https://hbr.org/2023/06/ai-prompt-engineering-isnt-the-future",
  "https://www.iit.edu/blog/unlock-career-opportunities-ai-how-become-ai-prompt-engineer",
  "https://www.coursera.org/articles/how-to-become-a-prompt-engineer"
]

Title, Snippet, Links (Markdown): Title, Snippet and Links for each organic result in Markdown format.

**Six skills you need to become an AI prompt engineer**
Six skills you need to become an AI prompt engineer · 1. Understand AI, ML, and NLP · 2. Define problem statements clearly and specify detailed ...
https://www.zdnet.com/article/six-skills-you-need-to-become-an-ai-prompt-engineer/


**Prompt engineering**
Prompt engineering is the process of structuring text that can be interpreted and understood by a generative AI model. ... A prompt is natural language text ...
https://en.wikipedia.org/wiki/Prompt_engineering


**What is prompt engineering?**
Prompt engineering is the practice of designing inputs for generative AI tools that will produce optimal outputs.
https://www.mckinsey.com/featured-insights/mckinsey-explainers/what-is-prompt-engineering

...

Organic Results (JSON): Organic results in JSON format.

[
  {
    "position": 1,
    "title": "Six skills you need to become an AI prompt engineer",
    "link": "https://www.zdnet.com/article/six-skills-you-need-to-become-an-ai-prompt-engineer/",
    "displayed_link": "https://www.zdnet.com › ... › Artificial Intelligence",
    "favicon": "https://serpapi.com/searches/65579a96e815af000b7dab68/images/a5422e713e6bc3f59a76b766eb80117740cc3058315f42d3df7f4337510ce3b6.png",
    "date": "Oct 3, 2023",
    "snippet": "Six skills you need to become an AI prompt engineer · 1. Understand AI, ML, and NLP · 2. Define problem statements clearly and specify detailed ...",
    "snippet_highlighted_words": [
      "prompt engineer"
    ],
    "about_page_link": "https://www.google.com/search?q=About+https://www.zdnet.com/article/six-skills-you-need-to-become-an-ai-prompt-engineer/&tbm=ilp",
    "about_page_serpapi_link": "https://serpapi.com/search.json?engine=google_about_this_result&google_domain=google.com&q=About+https%3A%2F%2Fwww.zdnet.com%2Farticle%2Fsix-skills-you-need-to-become-an-ai-prompt-engineer%2F",
    "cached_page_link": "https://webcache.googleusercontent.com/search?q=cache:QnozTEs7HoMJ:https://www.zdnet.com/article/six-skills-you-need-to-become-an-ai-prompt-engineer/&hl=en&gl=us",
    "source": "ZDNet"
  },
  ...
]

Raw: Complete results from Serp API in JSON format.

{
  "search_metadata": {
    "id": "65ad949daf5af14fb1f744b3",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/c058cc17ce2a376c/65ad949daf5af14fb1f744b3.json",
    "created_at": "2024-01-21 22:03:09 UTC",
    "processed_at": "2024-01-21 22:03:09 UTC",
    "google_url": "https://www.google.com/search?q=How+does+an+LLM+work%3F%0A%0A&oq=How+does+an+LLM+work%3F%0A%0A&num=1&sourceid=chrome&ie=UTF-8",
    "raw_html_file": "https://serpapi.com/searches/c058cc17ce2a376c/65ad949daf5af14fb1f744b3.html",
    "total_time_taken": 2.5
  },
  "search_parameters": {
    "engine": "google",
    "q": "How does an LLM work?\n\n",
    "google_domain": "google.com",
    "num": "1",
    "device": "desktop"
  },
  ...

Last updated