Automate Invoice Processing with OCR, GPT-4 & Salesforce Opportunity Creation — n8n 工作流
概览
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 API ➜ Archive to OneDrive.
Node by node (what it does & key setup)
- Google Drive Trigger Purpose**: Fire when a new file appears in a specific Google Drive folder. Key settings**: Event: fileCreated Folder ID: google drive folder id Polling: everyMinute Creds: googleDriveOAuth2Api Output**
使用的节点
HTTP RequestGoogle DriveMicrosoft OneDriveSalesforceCodeOpenAI
工作流预览
E
Extract from File
⚡
G
Google Drive Trigger
Message a model
Download File From Google
Update File to One Drive
Create an opportunity
Create or update an acco…
Build SOQL
Query PricebookEntries
Code in JavaScript
Create Opportunity Line …
11 nodes10 edges
工作原理
- 1
触发器
工作流由 触发器 触发器启动。
- 2
处理
数据流经 11 个节点, connecting code, extractfromfile, googledrive。
- 3
输出
工作流完成自动化并将结果发送到配置的目标。
节点详情 (11)
HT#1
HTTP Request
httpRequest
GO#2
Google Drive
googleDrive
MI#3
Microsoft OneDrive
microsoftOneDrive
SA#4
Salesforce
salesforce
CO#5
Code
code
OP#6
OpenAI
n8n-nodes-langchain.openAi
如何导入此工作流
- 1点击右侧 下载 JSON 按钮保存工作流文件。
- 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入。
- 3选择下载的
automate-invoice-processing-with-ocr-gpt-4-salesforce-opportunity-creation文件并点击导入。 - 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
- 5点击 测试工作流 验证一切正常,然后激活它。
或直接在 n8n → 从 JSON 导入 中粘贴:
{ "name": "Automate Invoice Processing with OCR, GPT-4 & Salesforce Opportunity Creation", "nodes": [...], ...}
集成
codeextractfromfilegoogledrivegoogledrivetriggerhttprequestmicrosoftonedriveopenaisalesforce
创建者
Le Nguyen
@leeseifer
标签
codeextractfromfilegoogledrivegoogledrivetriggerhttprequestmicrosoftonedriveopenaisalesforce