Skip to main content

Google components

Bundles contain custom components that support specific third-party integrations with Langflow.

This page describes the components that are available in the Google bundle.

BigQuery

See BigQuery component.

Google Generative AI

This component generates text using Google Generative AI models.

Google Generative AI parameters

NameTypeDescription
Google API KeySecretStringInput parameter. Your Google API key to use for the Google Generative AI.
ModelStringInput parameter. The name of the model to use, such as "gemini-pro".
Max Output TokensIntegerInput parameter. The maximum number of tokens to generate.
TemperatureFloatInput parameter. Run inference with this temperature.
Top KIntegerInput parameter. Consider the set of top K most probable tokens.
Top PFloatInput parameter. The maximum cumulative probability of tokens to consider when sampling.
NIntegerInput parameter. Number of chat completions to generate for each prompt.
modelLanguageModelOutput parameter. An instance of ChatGoogleGenerativeAI configured with the specified parameters.

Google Generative AI Embeddings

The Google Generative AI Embeddings component connects to Google's generative AI embedding service using the GoogleGenerativeAIEmbeddings class from the langchain-google-genai package.

For more information about using embedding model components in flows, see Embedding Model components.

Google Generative AI Embeddings parameters

NameDisplay NameInfo
api_keyAPI KeyInput parameter. The secret API key for accessing Google's generative AI service. Required.
model_nameModel NameInput parameter. The name of the embedding model to use. Default: "models/text-embedding-004".
embeddingsEmbeddingsOutput parameter. The built GoogleGenerativeAIEmbeddings object.

Google Search API

This component allows you to call the Google Search API.

Google Search API parameters

NameTypeDescription
google_api_keySecretStringInput parameter. A Google API key for authentication.
google_cse_idSecretStringInput parameter. A Google Custom Search Engine ID.
input_valueStringInput parameter. The search query input.
kIntegerInput parameter. The number of search results to return.
resultsList[Data]Output parameter. A list of search results.
toolToolOutput parameter. A Google Search tool for use in LangChain.

Serper Google Search API

This component allows you to call the Serper.dev Google Search API.

Google Serper API parameters

NameTypeDescription
serper_api_keySecretStringInput parameter. An API key for Serper.dev authentication.
input_valueStringInput parameter. The search query input.
kIntegerInput parameter. The number of search results to return.
resultsList[Data]Output parameter. A list of search results.
toolToolOutput parameter. A Serper Google Search tool for use in LangChain.

Google Vertex AI

For information about Vertex AI components, see the Vertex AI bundle.

Legacy Google components

The following Google components are considered legacy components. You can still use them in your flows, but they are no longer supported and can be removed in future releases.

As an alternative to these components, you can use Composio components to connect your flows to Google services.

Google OAuth Token

The Google OAuth Token component was deprecated in Langflow 1.4.0.

To connect your flows to Google OAuth services, use Composio components.

Gmail Loader

This component loads emails from Gmail using Service Account JSON credentials and label ID filters.

As an alternative, you can use Composio components to connect your flows to Google services.

Google Drive Loader

This component loads documents from Google Drive using Service Account JSON credentials and document ID filters.

While there is no direct replacement, consider using the API Request component to call the Google Drive API.

Google Drive Search

This component searches Google Drive using Service Account JSON credentials and various query strings and filters.

While there is no direct replacement, consider using the API Request component to call the Google Drive API.

See also

Search