Automate synthetic content creation using n8n workflow templates. Combine Bedrijfsdata Web RAG with OpenAI to generate structured company descriptions (in Dutch) and update HubSpot CRM records instantly.
Download this n8n workflow template and start using it instantly.
Generating high-quality, structured company descriptions requires combining factual data with sophisticated content synthesis. This powerful n8n workflow solves the challenge of manually aggregating web data and then manually writing summaries.
It leverages Retrieval-Augmented Generation (RAG) through the Bedrijfsdata.nl platform to pull live content from a company's website and search results. This rich context is then fed into an OpenAI Chat Model, guided by a specialized prompt and a structured output parser to ensure the final result—a description, products/services list, and target audience—is always in a usable JSON format (and specifically in Dutch, as requested in the prompt).
The final synthesized content is then automatically pushed to an external CRM, like HubSpot, dramatically improving data quality and accelerating sales qualification processes. This entire process is orchestrated efficiently within a single n8n workflow, demonstrating the power of modular n8n templates for complex tasks.
This n8n workflow initiates execution based on an input company ID, making it an excellent example of a reusable n8n templates structure.
When Executed by Another Workflow n8n trigger. It accepts a company ID, which is immediately used by the Get prospect n8n node (using ProspectPro) to retrieve essential company details, including the domain name.Company domain is required n8n node acts as a crucial check. If the required domain name is missing, the n8n workflow branches off to error handling (Error type 1: invalid input).Get RAG domain scrapes specific content from the company's website, and Get rag search collects relevant search engine snippets. Both use the Bedrijfsdata n8n node.Prepare content to feed to LLM Code n8n node aggregates all retrieved information—basic company details, website snippets, and search results—into a consolidated JSON object, preparing the context for the LLM.Content available to proceed? n8n node verifies that some RAG content was successfully collected before proceeding to the expensive AI step. Failure routes to Error type 2: RAG error.Basic LLM Chain node receives the context. It utilizes the OpenAI Chat Model (running gpt-4.1-mini) and the Structured Output Parser n8n node. This combination ensures the output is generated according to strict criteria (in Dutch and matching a defined JSON schema for description, products, and target audience).Update company description n8n node (HubSpot) takes the structured output (specifically the company_description) and updates the corresponding company record in HubSpot, completing the n8n workflow automation.To deploy this powerful n8n workflow template, follow these steps:
Get RAG domain and Get rag search).Get prospect).OpenAI Chat Model n8n node.Update company description n8n node to write data.Prepare content to feed to LLM n8n node relies on specific node names (Get prospect, Get RAG domain, Get rag search). If you change the names of these upstream n8n nodes, you must update the references in the Code node accordingly.id to ensure data flows correctly from RAG collection to LLM generation and final CRM update. When Executed by Another Workflow (n8n trigger): The starting point. Designed to receive an execution signal and a companyid input from another n8n workflow or system, enabling decoupled execution.
Get prospect (Bedrijfsdata ProspectPro n8n node): Fetches initial company data based on the input ID, retrieving essential details like the company domain.
Company domain is required (If n8n node): Acts as a critical flow control, verifying that the input contains a usable domain name before initiating expensive RAG lookups.
Get RAG domain & Get rag search (Bedrijfsdata n8n node): Core RAG nodes. They retrieve relevant content snippets directly from the company's website and external search engine results, providing the LLM with up-to-date context.
Prepare content to feed to LLM (Code n8n node): Custom scripting that cleans, validates, and consolidates data received from ProspectPro and the two RAG nodes into a single, structured payload for the subsequent LLM call.
Content available to proceed? (If n8n node): Ensures that at least one source of RAG content (website or search) is available before proceeding to the LLM generation phase.
Basic LLM Chain (LangChain n8n node): Orchestrates the AI process. It combines the RAG context with a specific prompt (requiring output in Dutch) and links to the model and parser.
OpenAI Chat Model (LangChain n8n node): The specific LLM used for generation (configured here as gpt-4.1-mini), responsible for synthesizing human-readable content from the raw inputs.
Structured Output Parser (LangChain n8n node): Enforces that the LLM's output conforms to a strict JSON schema, guaranteeing fields like companydescription and target_audience are present and structured.
Update company description (HubSpot n8n node): The final action. It uses data extracted from the structured LLM output to update the description field for the corresponding company record in HubSpot.
Automate billing with this powerful n8n workflow. Create Stripe customers, generate invoice items, and finalize invoices automatically. Get started with n8n templates today to simplify finance operations.

Automate monthly strategic analysis using the powerful GPT-4 Mini model within an n8n workflow. Generate prioritized tasks in Asana and distribute comprehensive reports via Gmail and Google Sheets.

Use this powerful n8n workflow to automate real-time stock market technical analysis. It uses the TwelveData API to gather key indicators and the Gemini 2.5 Pro model for signal generation, delivered directly via a Telegram bot.

Leverage this powerful n8n workflow to automatically monitor local folders, extract text from scientific PDFs, and generate highly structured research summaries using the advanced GPT-4o model.

Leverage this custom n8n workflow to generate stylized images using the Paigedutcher2/Paige model on Replicate. Includes reliable polling logic for asynchronous AI tasks.









































