Skip to main content

Auto Complete

Generates search query suggestions using Google's autocomplete API with support for prefixes and suffixes.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Query - The main search query for which to generate autocomplete suggestions.
  • Prefixes - An array of prefix strings that are combined with the main search query to generate diverse autocomplete suggestions. Example: ["Why", "What", "How"]
  • Suffixes - An array of suffix strings that when appended to the main search query expand the range of autocomplete suggestions. Example: ["a", "b", "c", "d", "e"]

Options

  • Proxy Settings - Configure proxy settings for the request (No Proxy, Manual Proxy, Robomotion Proxy).
  • Proxy Address - The proxy server address when using Manual Proxy.
  • Proxy Authentication - Authentication method for the proxy (No Authentication, Basic Authentication).
  • Proxy Credentials - Username and password credentials when using Basic Authentication.

Output

  • Results - An array of suggestion objects, each containing a term and its relevance score. Results are sorted by relevance in descending order.

How It Works

The Auto Complete node generates search suggestions by:

  1. Taking the main query and combining it with provided prefixes and suffixes to create expanded search terms
  2. Sending requests to Google's autocomplete API for each expanded term
  3. Collecting and formatting the suggestions returned by Google
  4. Sorting all suggestions by relevance score in descending order
  5. Returning the sorted results as the output

Requirements

  • A valid internet connection to access Google's autocomplete API
  • Valid proxy configuration if using proxy settings

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Query input
  • Invalid proxy configuration when using Manual Proxy
  • Empty or invalid proxy credentials when using Basic Authentication
  • Network errors when connecting to Google's autocomplete API

Usage Notes

  • The node combines prefixes with the query using the format "prefix query" and suffixes with the format "query suffix"
  • Results are automatically sorted by relevance, with the most relevant suggestions appearing first
  • The Proxy Settings option allows you to configure how requests are made, which can be useful for avoiding rate limits or accessing region-specific results
  • When using Manual Proxy with Basic Authentication, both username and password must be provided in the Proxy Credentials