Block 1 - Sticky Note
- Type / Role
- n8n-nodes-base.stickyNote - stickyNote
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
PDF Invoice Extractor (AI) End to end pipeline: Watch Drive ➜ Download PDF ➜ OCR text ➜ AI normalize to JSON ➜ Upsert Buyer (Account) ➜ Create Opportunity ➜ Map Products ➜ Create OLI via Composite ...
n8n-nodes-base.stickynote, n8n-nodes-base.extractfromfile, n8n-nodes-base.googledrivetrigger, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.googledrive, n8n-nodes-base.microsoftonedrive, n8n-nodes-base.salesforce, n8n-nodes-base.code
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Le Nguyen.
Original n8n.io sourceEnd-to-end pipeline: Watch Drive ➜ Download PDF ➜ OCR text ➜ AI normalize to JSON ➜ Upsert Buyer (Account) ➜ Create Opportunity ➜ Map Products ➜ Create OLI via Composite API ➜ Archive to OneDrive.
fileCreatedgoogle drive folder ideveryMinutegoogleDriveOAuth2Api{ id, name, ... } for the new file.download={{ $json.id }}googleDriveOAuth2Apidata) and original metadata.pdf{{ $json.text }}.@n8n/n8n-nodes-langchain.openAigpt-4.1 (or gpt-4.1-mini){{ $json.text }})jsonOutput: trueopenAiApi$.message.content → the parsed JSON (ensure it’s an array).accountupserttax_id__c={{ $json.message.content.buyer.tax_id }}={{ $json.message.content.buyer.name }}salesforceOAuth2ApiId) for downstream Opportunity.opportunity={{ $('Message a model').item.json.message.content.invoice.code }}={{ $('Message a model').item.json.message.content.invoice.issue_date }}Closed Won={{ $('Message a model').item.json.message.content.summary.grand_total }}={{ $json.id }} (from Upsert Account output)salesforceOAuth2ApiId for OLI creation.Pricebook2Id.pricebook2Id (hardcoded in script): e.g., 01sxxxxxxxxxxxxxxx$('Message a model').first().json.message.content.products{ soql, codes }PricebookEntry.Id for each Product2.ProductCode.search={{ $json.soql }}salesforceOAuth2ApiId, Product2.ProductCode (used for mapping).Id ➜ build OpportunityLineItem payloads.={{ $('Create an opportunity').first().json.id }}={{ $('Message a model').first().json.message.content.products }}{ body: { allOrNone:false, records:[{ OpportunityLineItem... }] } }POSThttps://<your-instance>.my.salesforce.com/services/data/v65.0/composite/sobjectssalesforceOAuth2Api (predefined credential)={{ $json.body }}upload={{ $json.name }}onedrive folder idtrue (from the Download node)microsoftOneDriveOAuth2Apiname must equal your Product2.ProductCode in SF.jsonOutput enabled.parsing.warnings to gate Salesforce writes.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 | Automate invoice processing with OCR, GPT-4 & Salesforce opportunity creation |
|---|---|
| Complexity | advanced |
| Nodes | 23 |
| Categories | Invoice Processing, AI Summarization |
| Author | Le Nguyen |
| Published | 22 Oct 2025 |
Use the JSON export at /data/workflows/10029/10029.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.
PDF Invoice Extractor (AI) End to end pipeline: Watch Drive ➜ Download PDF ➜ OCR text ➜ AI normalize to JSON ➜ Upsert Buyer (Account) ➜ Create Opportunity ➜ Map Products ➜ Create OLI via Composite ...
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 Invoice Processing, AI Summarization use case.