Generate SharePoint Word documents from Outlook emails with OpenAI and Pandoc
Ready for 3.0What this workflow does
This AI workflow has 20 nodes and runs on Microsoft Outlook events. Along the way it connects Microsoft Outlook and OpenAI.
How it runs
Trigger: On Microsoft Outlook events.
- Set Deployment Configuration (Edit Fields (Set)): sets or maps fields
- Validate Sender & Extract Request (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Fetch Template Catalog (HTTP Request): calls an HTTP API
- Build Template Catalog for AI (Code): runs custom JavaScript code
- AI Match Template & Extract Data (OpenAI): uses OpenAI
- Parse Template Match Decision (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Download Template Document (HTTP Request): calls an HTTP API
- Prepare No-Match Reply (Edit Fields (Set)): sets or maps fields
…plus 8 more steps. See the full node list below.
Services it uses
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 (8)
- Microsoft Outlook Trigger
n8n-nodes-base.microsoftOutlookTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - Microsoft Outlook
n8n-nodes-base.microsoftOutlook
From the author
Quick overview This workflow monitors a Microsoft Outlook mailbox for document-generation requests, matches each request to a SharePoint template using OpenAI, converts the filled template to DOCX via a Pandoc service, uploads the result to Microsoft…