
Node Details
- Label: Serp API
- Name: serpAPI
- Version: 1.0
- Type: SerpAPI
- Category: Tools
- Description: Wrapper around SerpAPI - a real-time API to access Google search results
Base Classes
The node inherits from the following base classes:- SerpAPI
- Any additional base classes from the SerpAPI implementation in LangChain
Credentials
This node requires a credential to function:- Label: Connect Credential
- Name: credential
- Type: credential
- Credential Names: serpApi
Parameters
This node doesn’t have any additional input parameters beyond the required credential.Initialization
Theinit
method is responsible for setting up the SerpAPI tool:
- It retrieves the credential data associated with the node.
- Extracts the SerpAPI key from the credential data.
- Creates and returns a new instance of the SerpAPI class using the extracted API key.
Usage
The SerpAPI Tool Node is used to integrate Google search capabilities into AI workflows. It allows the AI to perform web searches and retrieve up-to-date information from the internet. This can be particularly useful for:- Answering questions that require current information
- Fact-checking or verification tasks
- Gathering data for research or analysis
- Enhancing the knowledge base of language models with real-time web data