Block 1 - Structured Output Parser
- Type / Role
- @n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
- Config choices
- Version 1.2
This workflow is provided as-is. Please review and test before using in production.
This workflow demonstrates how to enrich data from a list of companies in a spreadsheet. While this workflow is production ready if all steps are followed, adding error handling would enhance its r...
@n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.toolworkflow, n8n-nodes-base.httprequest, n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.splitinbatches, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Dataki.
Original n8n.io sourceThis workflow demonstrates how to enrich data from a list of companies in a spreadsheet. While this workflow is production-ready if all steps are followed, adding error handling would enhance its robustness.
WebhookThis node triggers the workflow via a webhook call. You can replace it with any other trigger of your choice, such as form submission, a new row added in Google Sheets, or a manual trigger.
Get Rows from Google SheetThis node retrieves the list of companies from your spreadsheet. here is the Google Sheet Template you can use. The columns in this Google Sheet are:
Company: The name of the company
Website: The website URL of the company
These two fields are required at this step.
Business Area: The business area deduced by OpenAI from the scraped data
Offer: The offer deduced by OpenAI from the scraped data
Value Proposition: The value proposition deduced by OpenAI from the scraped data
Business Model: The business model deduced by OpenAI from the scraped data
ICP: The Ideal Customer Profile deduced by OpenAI from the scraped data
Additional Information: Information related to the scraped data, including:
Loop Over ItemsThis node ensures that, in subsequent steps, the website in "extra workflow input" corresponds to the row being processed. You can delete this node, but you'll need to ensure that the "query" sent to the scraping workflow corresponds to the website of the specific company being scraped (rather than just the first row).
AI AgentThis AI agent is configured with a prompt to extract data from the content it receives. The node has three sub-nodes:
gpt4-o-mini.Update Company Row in Google SheetThis node updates the specific company's row in Google Sheets with the enriched data.
Tool Called from AgentThis is the trigger for when the AI Agent calls the Scraper. A query is sent with:
Set Company URLThis node renames a field, which may seem trivial but is useful for performing transformations on data received from the AI Agent.
ScrapingBee: Scrape Company's WebsiteThis node scrapes data from the URL provided using ScrapingBee. You can use any scraper of your choice, but ScrapingBee is recommended, as it allows you to configure scraper behavior directly. Once configured, copy the provided "curl" command and import it into n8n.
HTML to MarkdownThis node converts the scraped HTML data to Markdown, which is then sent to OpenAI. The Markdown format generally uses fewer tokens than HTML.
It's always a pleasure to share workflows, but creators sometimes want to keep some magic to themselves ✨. Here are some ways you can enhance this workflow:
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Enrich company data from Google Sheet with OpenAI Agent and ScrapingBee |
|---|---|
| Complexity | intermediate |
| Nodes | 13 |
| Categories | Lead Generation, AI Summarization |
| Author | Dataki |
| Published | 16 Oct 2024 |
Use the JSON export at /data/workflows/2463/2463.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
This workflow demonstrates how to enrich data from a list of companies in a spreadsheet. While this workflow is production ready if all steps are followed, adding error handling would enhance its r...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.