This workflow follows the Agent → Chat Trigger 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": "n8n_x_python",
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.1,
"position": [
0,
0
],
"id": "4cc3388e-6df1-4f9a-a22c-e5e3cf98ed64",
"name": "When chat message received"
},
{
"parameters": {
"options": {
"systemMessage": "Usa tu herramienta de http para buscar informacion de la biblia haciendo una query enriquecida segun lo que te solicite el usuario"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
220,
0
],
"id": "48570968-1861-4679-8c43-f1c7c9c9b19c",
"name": "AI Agent"
},
{
"parameters": {
"toolDescription": "Usa esta herramienta para recuperar informaci\u00f3n de la biblia",
"method": "POST",
"url": "http://host.docker.internal:8000/search_biblia",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "query",
"value": "={{ $fromAI('consulta','genera una consulta optimiza y con mas contexto para recuperar informacion correctamente de la biblia') }}"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequestTool",
"typeVersion": 4.2,
"position": [
480,
220
],
"id": "594925ef-d57c-410a-8f64-80f698fb1a16",
"name": "HTTP Request"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "gpt-4.1-mini",
"mode": "list",
"cachedResultName": "gpt-4.1-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
120,
200
],
"id": "7b3f0b54-1649-49d6-8b4b-c8491ddddb25",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
}
],
"connections": {
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "82c510fd-4ace-48e9-827e-ab1eab04a72d",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "bCQl13WHXng0Q2mt",
"tags": [
{
"createdAt": "2025-06-23T23:25:14.026Z",
"updatedAt": "2025-06-23T23:25:14.026Z",
"id": "0muwIBVeI17GrJme",
"name": "rag"
}
]
}
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
n8n_x_python. Uses chatTrigger, agent, httpRequestTool, lmChatOpenAi. Chat trigger; 4 nodes.
Source: https://github.com/abratangana/repo_canal/blob/main/n8n_flows/n8n+python/n8n_x_python.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.
This is an n8n workflow designed to implement an advanced AI chatbot with real-time conversation and search capabilities. Configured with a minimalist European design, this chatbot is ready to be inte
Luke. Uses chatTrigger, lmChatOpenAi, httpRequestTool, agent. Chat trigger; 10 nodes.
Real estate investors and analysts evaluating buy-and-hold rentals, BRRRR deals, or any property where you want to triangulate rent estimates from multiple sources rather than trusting a single Zestim
AI Graphic Designer. Uses agent, chatTrigger, lmChatOpenAi, memoryBufferWindow. Chat trigger; 9 nodes.
Build a powerful AI chatbot that provides precise answers from your own company's knowledge base. This template provides a smart AI agent that connects to Lookio, a platform where you can easily uploa