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 →
{
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.4,
"position": [
0,
0
],
"id": "116819e8-dc21-4b11-8eb6-38cdbebe6dab",
"name": "When chat message received"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3,
"position": [
208,
0
],
"id": "eb4efa6a-076e-4ea9-9a23-ad36bbb962c6",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"builtInTools": {},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.3,
"position": [
80,
208
],
"id": "a73e3cfa-4a74-4746-881a-8ac57ed3ed89",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"folderId": "1gxflQZvBC1w-vXaP_0GlGjxyY6aQxNAf",
"title": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Title', ``, 'string') }}"
},
"type": "n8n-nodes-base.googleDocsTool",
"typeVersion": 2,
"position": [
560,
192
],
"id": "cec06ca9-7a64-4909-b143-4e743e2315f0",
"name": "Create a document in Google Docs",
"credentials": {
"googleDocsOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
224,
208
],
"id": "c7ebce97-2e37-4ed8-ae89-f56e463acef3",
"name": "Simple Memory"
},
{
"parameters": {
"operation": "update",
"documentURL": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Doc_ID_or_URL', ``, 'string') }}",
"actionsUi": {
"actionFields": [
{
"action": "insert",
"text": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('actionFields0_Text', ``, 'string') }}"
}
]
}
},
"type": "n8n-nodes-base.googleDocsTool",
"typeVersion": 2,
"position": [
368,
208
],
"id": "7fe6b639-5cf5-4886-859b-1789e20ee886",
"name": "Update a document in Google Docs",
"credentials": {
"googleDocsOAuth2Api": {
"name": "<your credential>"
}
}
}
],
"connections": {
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Create a document in Google Docs": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Update a document in Google Docs": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"meta": {
"templateCredsSetupCompleted": true
}
}
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.
googleDocsOAuth2ApiopenAiApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Agente Docs. Uses chatTrigger, agent, lmChatOpenAi, googleDocsTool. Chat trigger; 6 nodes.
Source: https://github.com/mnsosa/automatizacion-n8n/blob/2421d3534f43e49aceff37acd7e38f962940053b/templates/agente_docs.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.
Summarize YouTube Videos & Chat About Content with GPT-4o-mini via Telegram. Uses splitOut, lmChatOpenAi, chainLlm, summarize. Chat trigger; 22 nodes.
This n8n workflow automates the process of summarizing YouTube video transcripts and enables users to interact with the content through AI-powered question answering via Telegram. It leverages the GPT
🤖🧠 AI Agent Chatbot + LONG TERM Memory + Note Storage + Telegram. Uses chatTrigger, stickyNote, lmChatOpenAi, memoryBufferWindow. Chat trigger; 21 nodes.
🤖🧠 AI Agent Chatbot + LONG TERM Memory + Note Storage + Telegram. Uses chatTrigger, stickyNote, lmChatOpenAi, memoryBufferWindow. Chat trigger; 21 nodes.
This workflow template creates an AI agent chatbot with long-term memory and note storage using Google Docs and Telegram integration.