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
Name | Type | Description |
---|---|---|
Google API Key | SecretString | Input parameter. Your Google API key to use for the Google Generative AI. |
Model | String | Input parameter. The name of the model to use, such as "gemini-pro" . |
Max Output Tokens | Integer | Input parameter. The maximum number of tokens to generate. |
Temperature | Float | Input parameter. Run inference with this temperature. |
Top K | Integer | Input parameter. Consider the set of top K most probable tokens. |
Top P | Float | Input parameter. The maximum cumulative probability of tokens to consider when sampling. |
N | Integer | Input parameter. Number of chat completions to generate for each prompt. |
model | LanguageModel | Output 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
Name | Display Name | Info |
---|---|---|
api_key | API Key | Input parameter. The secret API key for accessing Google's generative AI service. Required. |
model_name | Model Name | Input parameter. The name of the embedding model to use. Default: "models/text-embedding-004". |
embeddings | Embeddings | Output parameter. The built GoogleGenerativeAIEmbeddings object. |
Google Search API
This component allows you to call the Google Search API.
Google Search API parameters
Name | Type | Description |
---|---|---|
google_api_key | SecretString | Input parameter. A Google API key for authentication. |
google_cse_id | SecretString | Input parameter. A Google Custom Search Engine ID. |
input_value | String | Input parameter. The search query input. |
k | Integer | Input parameter. The number of search results to return. |
results | List[Data] | Output parameter. A list of search results. |
tool | Tool | Output 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
Name | Type | Description |
---|---|---|
serper_api_key | SecretString | Input parameter. An API key for Serper.dev authentication. |
input_value | String | Input parameter. The search query input. |
k | Integer | Input parameter. The number of search results to return. |
results | List[Data] | Output parameter. A list of search results. |
tool | Tool | Output 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.