Extract structured data from D&B company reports with GPT-4o
Ready for 3.0What this workflow does
This AI workflow has 8 nodes and runs from “Get Token” (no trigger node, so run it manually or call it from another workflow). Along the way it connects OpenAI Chat Model. It also calls plus.dnb.com over HTTP.
How it runs
Trigger: From “Get Token” (no trigger node, so run it manually or call it from another workflow).
- Get Token (HTTP Request): calls plus.dnb.com
- D&B Report (HTTP Request): calls plus.dnb.com
- Convert to PDF File (Convert to File): converts data to a file (to binary)
- Extract Binary (Extract from File): extracts data from a file (pdf)
- Analyze PDF (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output
Services it uses
HTTP calls to: plus.dnb.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - HTTP Request
n8n-nodes-base.httpRequest - Convert to File
n8n-nodes-base.convertToFile - Extract from File
n8n-nodes-base.extractFromFile - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
Pull a Dun & Bradstreet Business Information Report (PDF) by DUNS, convert the response into a binary PDF file, extract readable text, and use OpenAI to return a clean, flat JSON with only the key fields you care about (e.g., report date, Paydex, viability…