This workflow follows the Agent → OpenAI Chat recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Test AI Workflow",
"id": "wf-test",
"nodes": [
{
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"parameters": {
"path": "test",
"authentication": "none"
}
},
{
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"parameters": {
"agentType": "toolsAgent"
}
},
{
"name": "OpenAI",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"parameters": {
"model": "gpt-4o"
},
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
openAiApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Test AI Workflow. Uses agent, lmChatOpenAi. Webhook trigger; 3 nodes.
Source: https://github.com/Trusera/ai-bom/blob/main/tests/fixtures/sample_n8n_workflow.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Siri Ai Agent Apple Shortcuts Powered Voice Template. Uses lmChatOpenAi, stickyNote, respondToWebhook, agent. Webhook trigger; 7 nodes.
Get Airtable data in Obsidian Notes. Uses airtableTool, lmChatOpenAi, agent, stickyNote. Webhook trigger; 7 nodes.
Axia Chat Agent. Uses agent, lmChatOpenAi, memoryBufferWindow, toolMcp. Webhook trigger; 7 nodes.
Luigi. Uses lmChatOpenAi, agent, httpRequestTool. Webhook trigger; 7 nodes.
Mario Speaker. Uses openAi, agent, lmChatOpenAi, memoryBufferWindow. Webhook trigger; 7 nodes.