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 provided credentials and filters.

InputTypeDescription
json_stringSecretStrInputInput parameter. A JSON string containing OAuth 2.0 access token information for service account access. For information about creating a service account JSON, see Service Account JSON.
label_idsMessageTextInputInput parameter. A comma-separated list of label IDs to filter emails.
max_resultsMessageTextInputInput parameter. The maximum number of emails to load.
dataDataOutput parameter.The loaded email data.
Google Calendar Loader

This component accepts the following parameters:

InputTypeDescription
json_stringSecretStrInputInput parameter. A JSON string containing OAuth 2.0 access token information for service account access. For information about creating a service account JSON, see Service Account JSON.
document_idMessageTextInputInput parameter. A single Google Drive document ID.
docsDataOutput parameter. The loaded document data.
Google Drive Search

This component searches Google Drive files using provided credentials and query parameters.

InputTypeDescription
token_stringSecretStrInputInput parameter. A JSON string containing OAuth 2.0 access token information for service account access. For information about creating a service account JSON, see Service Account JSON.
query_itemDropdownInputInput parameter. The field to query.
valid_operatorDropdownInputInput parameter. The operator to use in the query.
search_termMessageTextInputInput parameter. The value to search for in the specified query item.
query_stringMessageTextInputInput parameter. The query string used for searching.
doc_urlsList[str]Output parameter. The URLs of the found documents.
doc_idsList[str]Output parameter. The IDs of the found documents.
doc_titlesList[str]Output parameter. The titles of the found documents.
DataDataOutput parameter. The document titles and URLs in a structured format.

See also

Search