Process and triage contact form leads with Webhook, GPT-4.1, SharePoint and Outlook
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Microsoft SharePoint and Microsoft Outlook.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Workflow Configuration (Edit Fields (Set)): sets or maps fields
- Normalize & Validate Submission (Code): runs custom JavaScript code
- Respond to Form (Respond to Webhook): sends the response back to the webhook caller
- Is Valid Submission? (If): checks a condition and branches into true / false
- AI Triage (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Triage Output Parser
- Mark as Rejected (Edit Fields (Set)): sets or maps fields
- Assemble Lead Record (Edit Fields (Set)): sets 15 fields: name, email, phone…
- Record in SharePoint (Microsoft SharePoint): create (item)
- Should Notify? (If): checks a condition and branches into true / false
- Build Email HTML (Code): runs custom JavaScript code
…plus 3 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 (10)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Microsoft SharePoint
n8n-nodes-base.microsoftSharePoint - Microsoft Outlook
n8n-nodes-base.microsoftOutlook
From the author
Quick overview This workflow receives website contact form submissions via a webhook, logs each submission to Microsoft SharePoint, generates a branded HTML email, and sends a notification through Microsoft Outlook. How it works 1. Receives a POST webhook…