Web Search
This component lets you search the web and get results directly within your Nappai automation workflow. It’s like having a built-in web browser that works seamlessly with your other Nappai tools.
Relationship with FirecrawlApp
This component uses FirecrawlApp, a powerful web searching technology, to find and retrieve information from the internet. You don’t need to know about FirecrawlApp to use this component; it handles all the technical details for you.
Inputs
- Search Query: This is where you type the words or phrases you want to search for on the web. For example: “best Italian restaurants near me”.
- Limit search results: This lets you specify how many search results you want to receive. Enter a number (e.g., 5, 10, 20). If left blank, the component will use a default number of results.
- Only Main Content: Check this box if you only want the main text content of the web pages, without all the extra website elements. This is useful for getting the core information quickly. It’s checked by default.
- Fetch Page Content: Check this box if you want to retrieve the actual text content of the web pages. This is checked by default.
Outputs
The component produces two outputs:
- Results: This is a list of the search results. Each result contains the title, link, and (if you selected “Fetch Page Content”) the main text content of the web page. You can use this output to feed information into other Nappai components.
- Tool: This output provides a tool that can be used by other Nappai components to perform web searches. This is more advanced and is typically used for building complex automation workflows.
Usage Example
Let’s say you want to find information about “climate change in Europe”. You would:
- Enter “climate change in Europe” in the Search Query input.
- Optionally, adjust the Limit search results to control the number of results (e.g., 5).
- Leave the Only Main Content and Fetch Page Content boxes checked (the defaults) to get the main text content of the search results.
- Run the component.
- The Results output will contain a list of web pages related to your search, along with their main content. You can then use this information in other parts of your Nappai workflow, such as summarizing the results or extracting key facts.
Templates
[List of templates where the component is used. This section will be populated based on the actual usage of the component in Nappai templates.]
Related Components
- Summarizer: Use this component to summarize the text content retrieved from the web search results.
- Entities extraction: Extract key information (like dates, locations, or people) from the search results.
- OpenAI Function Agent: Use this to process and analyze the text content from the web search results using AI.
- Other components: Many other Nappai components can be used in conjunction with the Web Search component to build complex automation workflows. Refer to the Nappai component library for a complete list.
Tips and Best Practices
- Use specific keywords in your search query for better results.
- Experiment with the “Limit search results” input to find the optimal number of results for your needs.
- If you only need the main content of the pages, keep the “Only Main Content” box checked.
- Consider using the “Summarizer” component to process large amounts of text retrieved from web pages.
Security Considerations
- Be mindful of the information you search for and the websites you access. Avoid searching for sensitive or confidential information.
- Always review the content retrieved from web pages before using it in your automation workflows. The accuracy and reliability of web content can vary.