{"id":105120,"date":"2025-05-06T10:22:09","date_gmt":"2025-05-06T03:22:09","guid":{"rendered":"https:\/\/wiki.tino.org\/?p=105120"},"modified":"2026-10-22T16:34:29","modified_gmt":"2026-10-22T09:34:29","slug":"cach-su-dung-node-ai-agent-tren-n8n","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/cach-su-dung-node-ai-agent-tren-n8n\/","title":{"rendered":"C\u00e1ch d\u00f9ng node AI Agent tr\u00ean n8n: Chat Model, Memory, Tool"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Node AI Agent trong n8n l\u00e0 root node nh\u1eadn c\u00e2u h\u1ecfi, d\u00f9ng m\u1ed9t Chat Model \u0111\u1ec3 suy lu\u1eadn r\u1ed3i t\u1ef1 ch\u1ecdn Tool c\u1ea7n g\u1ecdi, nh\u01b0 Google Sheets hay HTTP Request.<\/strong> T\u1eeb n8n 1.82.0, m\u1ecdi node AI Agent ch\u1ea1y theo ki\u1ec3u Tools Agent v\u00e0 ph\u1ea3i n\u1ed1i \u00edt nh\u1ea5t m\u1ed9t Tool. B\u00e0i n\u00e0y l\u00e0 trang t\u1ed5ng c\u1ee7a c\u1ee5m &#8220;T\u00edch h\u1ee3p v\u00e0 chatbot&#8221; tr\u00ean blog Tino: c\u1ea5u h\u00ecnh t\u1eebng th\u00e0nh ph\u1ea7n, ch\u1ecdn model, MCP, r\u1ed3i d\u1eabn t\u1edbi b\u00e0i chi ti\u1ebft cho Telegram, Zalo, Messenger. N\u1ebfu m\u1edbi l\u00e0m quen, \u0111\u1ecdc tr\u01b0\u1edbc <a href=\"https:\/\/tino.vn\/blog\/n8n-la-gi\/\">n8n l\u00e0 g\u00ec<\/a>.<\/p>\n\n\n\n<h2 id=\"Node_AI_Agent_trong_n8n_l\u00e0_g\u00ec?\">Node AI Agent trong n8n l\u00e0 g\u00ec?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Node AI Agent l\u00e0 node g\u1ed1c (root node) c\u1ee7a nh\u00f3m Advanced AI trong n8n. Node nh\u1eadn \u0111\u1ea7u v\u00e0o t\u1eeb trigger, g\u1eedi c\u00e2u h\u1ecfi c\u00f9ng System Message v\u00e0 danh s\u00e1ch Tool cho Chat Model, ch\u1ea1y Tool m\u00e0 model y\u00eau c\u1ea7u, r\u1ed3i tr\u1ea3 c\u00e2u tr\u1ea3 l\u1eddi \u1edf tr\u01b0\u1eddng <code>output<\/code>. C\u00e1c sub-node g\u1eafn v\u00e0o ba c\u1ed5ng b\u00ean d\u01b0\u1edbi node: Chat Model, Memory v\u00e0 Tool. T\u00e0i li\u1ec7u n8n ghi r\u00f5: &#8220;You must connect at least one tool sub-node to an AI Agent node&#8221; (<a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/cluster-nodes\/root-nodes\/n8n-nodes-langchain.agent\/\" target=\"_blank\" rel=\"noopener nofollow\">docs.n8n.io, node AI Agent<\/a>, \u0111\u1ecdc 22\/10\/2026).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AI Agent n\u00f3i chung l\u00e0 h\u1ec7 th\u1ed1ng t\u1ef1 ra quy\u1ebft \u0111\u1ecbnh v\u00e0 h\u00e0nh \u0111\u1ed9ng \u0111\u1ec3 \u0111\u1ea1t m\u1ee5c ti\u00eau; ph\u1ea7n kh\u00e1i ni\u1ec7m c\u00f3 \u1edf b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/ai-agent-la-gi\/\">AI Agent l\u00e0 g\u00ec<\/a>. Trong n8n, kh\u00e1i ni\u1ec7m \u0111\u00f3 g\u00f3i g\u1ecdn trong m\u1ed9t node k\u00e9o th\u1ea3, n\u00ean b\u1ea1n kh\u00f4ng c\u1ea7n vi\u1ebft v\u00f2ng l\u1eb7p g\u1ecdi model b\u1eb1ng code.<\/p>\n\n\n\n<h3 id=\"Node_AI_Agent_kh\u00e1c_node_OpenAI_\u1edf_\u0111\u00e2u?\">Node AI Agent kh\u00e1c node OpenAI \u1edf \u0111\u00e2u?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Node OpenAI g\u1eedi m\u1ed9t y\u00eau c\u1ea7u v\u00e0 nh\u1eadn m\u1ed9t k\u1ebft qu\u1ea3; node AI Agent \u0111i\u1ec1u ph\u1ed1i nhi\u1ec1u b\u01b0\u1edbc, model c\u00f3 th\u1ec3 g\u1ecdi Tool, \u0111\u1ecdc k\u1ebft qu\u1ea3 r\u1ed3i m\u1edbi tr\u1ea3 l\u1eddi.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Ti\u00eau ch\u00ed<\/th><th>Node OpenAI<\/th><th>Node AI Agent<\/th><\/tr><\/thead><tbody><tr><td>M\u1ee5c \u0111\u00edch<\/td><td>M\u1ed9t t\u00e1c v\u1ee5: t\u1ea1o v\u0103n b\u1ea3n, ph\u00e2n t\u00edch \u1ea3nh, sinh \u1ea3nh, \u00e2m thanh<\/td><td>Chu\u1ed7i suy lu\u1eadn nhi\u1ec1u b\u01b0\u1edbc, t\u1ef1 ch\u1ecdn Tool<\/td><\/tr><tr><td>Nh\u00e0 cung c\u1ea5p model<\/td><td>Ch\u1ec9 OpenAI<\/td><td>OpenAI, Anthropic, Google Gemini, Mistral, Groq, Ollama\u2026 qua sub-node Chat Model<\/td><\/tr><tr><td>Nh\u1edb h\u1ed9i tho\u1ea1i<\/td><td>Kh\u00f4ng c\u00f3 s\u1eb5n<\/td><td>G\u1eafn Memory (Simple Memory, Postgres Chat Memory\u2026)<\/td><\/tr><tr><td>Chi ph\u00ed<\/td><td>Token c\u1ee7a m\u1ed9t l\u1ea7n g\u1ecdi<\/td><td>Token c\u1ee7a m\u1ecdi v\u00f2ng g\u1ecdi model trong m\u1ed9t l\u1ea7n ch\u1ea1y, c\u1ed9ng ph\u00ed API c\u1ee7a Tool<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">So s\u00e1nh theo t\u00e0i li\u1ec7u n8n, 22\/10\/2026<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">C\u00e1ch l\u1ea5y API key v\u00e0 c\u1ea5u h\u00ecnh node OpenAI ri\u00eang c\u00f3 \u1edf b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/cach-ket-noi-api-open-ai-vao-n8n\/\">k\u1ebft n\u1ed1i API OpenAI v\u00e0o n8n<\/a>.<\/p>\n\n\n\n<h2 id=\"M\u1ed9t_AI_Agent_trong_n8n_c\u1ea7n_nh\u1eefng_th\u00e0nh_ph\u1ea7n_n\u00e0o?\">M\u1ed9t AI Agent trong n8n c\u1ea7n nh\u1eefng th\u00e0nh ph\u1ea7n n\u00e0o?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">M\u1ed9t AI Agent trong n8n c\u1ea7n t\u1ed1i thi\u1ec3u ba th\u1ee9: trigger cung c\u1ea5p c\u00e2u h\u1ecfi, m\u1ed9t Chat Model l\u00e0m &#8220;b\u1ed9 n\u00e3o&#8221; v\u00e0 \u00edt nh\u1ea5t m\u1ed9t Tool. Memory v\u00e0 Output Parser l\u00e0 tu\u1ef3 ch\u1ecdn, nh\u01b0ng chatbot nhi\u1ec1u l\u01b0\u1ee3t g\u1ea7n nh\u01b0 lu\u00f4n c\u1ea7n Memory \u0111\u1ec3 hi\u1ec3u c\u00e2u h\u1ecfi n\u1ed1i ti\u1ebfp.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Th\u00e0nh ph\u1ea7n<\/th><th>B\u1eaft bu\u1ed9c?<\/th><th>Node v\u00ed d\u1ee5<\/th><th>Vai tr\u00f2<\/th><\/tr><\/thead><tbody><tr><td>Trigger<\/td><td>C\u00f3<\/td><td>Chat Trigger, Webhook, Telegram Trigger<\/td><td>\u0110\u01b0a c\u00e2u h\u1ecfi v\u00e0o agent<\/td><\/tr><tr><td>Chat Model<\/td><td>C\u00f3<\/td><td>OpenAI Chat Model, Anthropic Chat Model, Google Gemini Chat Model, Ollama Chat Model<\/td><td>Suy lu\u1eadn, quy\u1ebft \u0111\u1ecbnh g\u1ecdi Tool, so\u1ea1n c\u00e2u tr\u1ea3 l\u1eddi<\/td><\/tr><tr><td>Tool<\/td><td>C\u00f3, \u00edt nh\u1ea5t 1<\/td><td>Google Sheets, HTTP Request, Call n8n Workflow, MCP Client Tool, Calculator<\/td><td>L\u1ea5y d\u1eef li\u1ec7u ho\u1eb7c th\u1ef1c hi\u1ec7n h\u00e0nh \u0111\u1ed9ng<\/td><\/tr><tr><td>Memory<\/td><td>Kh\u00f4ng<\/td><td>Simple Memory, Postgres Chat Memory, Redis Chat Memory<\/td><td>Gi\u1eef c\u00e1c l\u01b0\u1ee3t chat tr\u01b0\u1edbc theo Session Key<\/td><\/tr><tr><td>Output Parser<\/td><td>Kh\u00f4ng<\/td><td>Structured Output Parser, Auto-fixing Output Parser<\/td><td>\u00c9p c\u00e2u tr\u1ea3 l\u1eddi theo khu\u00f4n JSON cho node sau<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Theo docs.n8n.io (AI Agent, Tools Agent), \u0111\u1ecdc 22\/10\/2026<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1400\" height=\"750\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/n8n-la-gi-ai-agent.webp\" alt=\"S\u01a1 \u0111\u1ed3 AI Agent trong n8n: \u0111\u1ea7u v\u00e0o Chat Trigger, Webhook ho\u1eb7c Telegram Trigger; root node AI Agent; ba sub-node Chat Model b\u1eaft bu\u1ed9c, Memory tu\u1ef3 ch\u1ecdn, Tool \u00edt nh\u1ea5t m\u1ed9t; \u0111\u1ea7u ra Respond to Webhook ho\u1eb7c Telegram\" class=\"wp-image-131507\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/n8n-la-gi-ai-agent.webp 1400w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/n8n-la-gi-ai-agent-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/n8n-la-gi-ai-agent-1024x549.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/n8n-la-gi-ai-agent-768x411.webp 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Simple Memory l\u01b0u l\u1ecbch s\u1eed trong b\u1ed9 nh\u1edb c\u1ee7a n8n v\u00e0 kh\u00f4ng d\u00f9ng \u0111\u01b0\u1ee3c trong workflow ch\u1ea1y th\u1eadt khi n8n b\u1eadt queue mode, v\u00ec c\u00e1c l\u01b0\u1ee3t g\u1ecdi c\u00f3 th\u1ec3 r\u01a1i v\u00e0o worker kh\u00e1c nhau (<a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/cluster-nodes\/sub-nodes\/n8n-nodes-langchain.memorybufferwindow\/\" target=\"_blank\" rel=\"noopener nofollow\">docs.n8n.io, Simple Memory<\/a>). Khi ch\u1ea1y nhi\u1ec1u worker, chuy\u1ec3n sang Postgres Chat Memory ho\u1eb7c Redis Chat Memory.<\/p>\n\n\n\n<h2 id=\"C\u00e1ch_t\u1ea1o_AI_Agent_\u0111\u1ea7u_ti\u00ean_tr\u00ean_n8n\">C\u00e1ch t\u1ea1o AI Agent \u0111\u1ea7u ti\u00ean tr\u00ean n8n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">C\u00e1ch nhanh nh\u1ea5t \u0111\u1ec3 th\u1eed node AI Agent l\u00e0 d\u1ef1ng workflow 5 node: Chat Trigger, AI Agent, m\u1ed9t Chat Model, Simple Memory v\u00e0 m\u1ed9t Tool Google Sheets ch\u1ee9a b\u1ea3ng c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p. B\u1ea1n chat th\u1eed ngay trong editor, kh\u00f4ng c\u1ea7n webhook c\u00f4ng khai. C\u00e1c b\u01b0\u1edbc d\u01b0\u1edbi \u0111\u00e2y \u00e1p d\u1ee5ng cho n8n 2.x (b\u1ea3n stable 2.44.5 ng\u00e0y 21\/10\/2026 theo GitHub n8n-io\/n8n).<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>B\u01b0\u1edbc 1: T\u1ea1o workflow v\u00e0 th\u00eam Chat Trigger.<\/strong> B\u1ea5m Create Workflow, nh\u1ea5n d\u1ea5u +, ch\u1ecdn <em>On chat message<\/em>. \u0110\u1ec3 t\u1eaft <em>Make Chat Publicly Available<\/em> trong l\u00fac d\u1ef1ng.<\/li>\n\n\n<li><strong>B\u01b0\u1edbc 2: Th\u00eam node AI Agent.<\/strong> Nh\u1ea5n + sau Chat Trigger, t\u00ecm &#8220;AI Agent&#8221;. M\u1ee5c <em>Source for Prompt<\/em> \u0111\u1ec3 <em>Take from previous node automatically<\/em> \u0111\u1ec3 agent \u0111\u1ecdc tr\u01b0\u1eddng <code>chatInput<\/code> c\u1ee7a Chat Trigger.<\/li>\n\n\n<li><strong>B\u01b0\u1edbc 3: G\u1eafn Chat Model.<\/strong> Nh\u1ea5n + \u1edf c\u1ed5ng Chat Model, ch\u1ecdn nh\u00e0 cung c\u1ea5p, t\u1ea1o credential b\u1eb1ng API key r\u1ed3i ch\u1ecdn model trong danh s\u00e1ch. H\u01b0\u1edbng d\u1eabn l\u1ea5y key: <a href=\"https:\/\/tino.vn\/blog\/cach-ket-noi-api-open-ai-vao-n8n\/\">OpenAI<\/a>, <a href=\"https:\/\/tino.vn\/blog\/cach-lay-api-key-cua-google-gemini\/\">Google Gemini<\/a>.<\/li>\n\n\n<li><strong>B\u01b0\u1edbc 4: G\u1eafn Memory.<\/strong> Nh\u1ea5n + \u1edf c\u1ed5ng Memory, ch\u1ecdn Simple Memory. Khi d\u00f9ng Chat Trigger, \u0111\u1ec3 Session ID m\u1eb7c \u0111\u1ecbnh theo phi\u00ean chat; <em>Context Window Length<\/em> l\u00e0 s\u1ed1 l\u01b0\u1ee3t tr\u01b0\u1edbc model \u0111\u01b0\u1ee3c xem, b\u1eaft \u0111\u1ea7u v\u1edbi 5\u201310.<\/li>\n\n\n<li><strong>B\u01b0\u1edbc 5: G\u1eafn Tool v\u00e0 ch\u1ea1y th\u1eed.<\/strong> Nh\u1ea5n + \u1edf c\u1ed5ng Tool, ch\u1ecdn Google Sheets, operation <em>Get Row(s)<\/em>, tr\u1ecf t\u1edbi sheet c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p (credential: <a href=\"https:\/\/tino.vn\/blog\/cach-xac-thuc-credential-cho-google-tren-n8n\/\">x\u00e1c th\u1ef1c Google tr\u00ean n8n<\/a>). B\u1ea5m <em>Open chat<\/em>, g\u00f5 c\u00e2u h\u1ecfi v\u00e0 xem tab Logs \u0111\u1ec3 bi\u1ebft agent \u0111\u00e3 g\u1ecdi Tool n\u00e0o.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1477\" height=\"800\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-6.png\" alt=\"B\u01b0\u1edbc 1: workflow tr\u1ed1ng trong n8n, b\u1ea5m d\u1ea5u + Add first step \u0111\u1ec3 m\u1edf b\u1ea3ng What triggers this workflow? li\u1ec7t k\u00ea Trigger manually, On app event, On a schedule, On webhook call, On form submission\" class=\"wp-image-105126\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-6.png 1477w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-6-300x162.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-6-1024x555.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-6-768x416.png 768w\" sizes=\"(max-width: 1477px) 100vw, 1477px\" \/><figcaption class=\"wp-element-caption\">\u1ea2nh ch\u1ee5p \u1edf b\u1ea3n n8n c\u0169 (c\u00f4ng t\u1eafc Inactive); \u1edf b\u00e0i n\u00e0y ch\u1ecdn On chat message trong c\u00f9ng danh s\u00e1ch thay v\u00ec Trigger manually<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1632\" height=\"797\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-9.png\" alt=\"B\u01b0\u1edbc 2: g\u00f5 AI agent v\u00e0o \u00f4 t\u00ecm ki\u1ebfm c\u1ee7a b\u1ea3ng What happens next? v\u00e0 ch\u1ecdn node AI Agent\" class=\"wp-image-105129\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-9.png 1632w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-9-300x147.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-9-1024x500.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-9-768x375.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-9-1536x750.png 1536w\" sizes=\"(max-width: 1632px) 100vw, 1632px\" \/><figcaption class=\"wp-element-caption\">\u1ea2nh ch\u1ee5p \u1edf b\u1ea3n n8n c\u0169 v\u1edbi Manual Trigger v\u00e0 Edit Fields; lu\u1ed3ng trong b\u00e0i n\u1ed1i AI Agent ngay sau Chat Trigger<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1448\" height=\"834\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-11.png\" alt=\"B\u01b0\u1edbc 3: sub-node OpenAI Chat Model g\u1eafn v\u00e0o AI Agent, ch\u1ecdn credential OpenAI v\u00e0 model From list\" class=\"wp-image-105131\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-11.png 1448w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-11-300x173.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-11-1024x590.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-11-768x442.png 768w\" sizes=\"(max-width: 1448px) 100vw, 1448px\" \/><figcaption class=\"wp-element-caption\">\u1ea2nh ch\u1ee5p \u1edf b\u1ea3n n8n c\u0169; model gpt-3.5-turbo trong \u1ea3nh b\u1ecb OpenAI t\u1eaft ng\u00e0y 23\/10\/2026, h\u00e3y ch\u1ecdn model hi\u1ec7n h\u00e0nh trong danh s\u00e1ch<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1441\" height=\"786\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-12.png\" alt=\"C\u1ea5u h\u00ecnh node Simple Memory trong n8n: Session ID ch\u1ecdn Define below, Key l\u00e0 chat_history, Context Window Length b\u1eb1ng 3\" class=\"wp-image-105132\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-12.png 1441w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-12-300x164.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-12-1024x559.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-12-768x419.png 768w\" sizes=\"(max-width: 1441px) 100vw, 1441px\" \/><figcaption class=\"wp-element-caption\">Simple Memory v\u1edbi kho\u00e1 phi\u00ean t\u1ef1 \u0111\u1eb7t, d\u00f9ng khi trigger kh\u00f4ng ph\u1ea3i Chat Trigger (\u1ea3nh ch\u1ee5p n8n 1.x, c\u00e1c tr\u01b0\u1eddng v\u1eabn gi\u1eef t\u00ean \u1edf 2.x)<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Workflow ch\u1ea1y th\u1eed trong editor b\u1eb1ng <em>Execute workflow<\/em> ho\u1eb7c khung chat. Mu\u1ed1n chatbot nh\u1eadn tin khi b\u1ea1n \u0111\u00f3ng tr\u00ecnh duy\u1ec7t, b\u1ea5m <strong>Publish<\/strong>; \u1edf n8n 2.x n\u00fat n\u00e0y thay cho c\u00f4ng t\u1eafc Active\/Inactive c\u0169.<\/p>\n\n\n\n<h3 id=\"System_Message_l\u00e0_g\u00ec_v\u00e0_vi\u1ebft_th\u1ebf_n\u00e0o?\">System Message l\u00e0 g\u00ec v\u00e0 vi\u1ebft th\u1ebf n\u00e0o?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">System Message l\u00e0 \u0111o\u1ea1n h\u01b0\u1edbng d\u1eabn g\u1eedi cho model tr\u01b0\u1edbc m\u1ecdi c\u00e2u h\u1ecfi, quy \u0111\u1ecbnh vai tr\u00f2, gi\u1ecdng v\u0103n v\u00e0 khi n\u00e0o ph\u1ea3i d\u00f9ng Tool. Th\u00eam b\u1eb1ng <em>Add Option \u2192 System Message<\/em> trong node AI Agent. M\u1ed9t System Message t\u1ed1t n\u00eau r\u00f5 ph\u1ea1m vi tr\u1ea3 l\u1eddi v\u00e0 vi\u1ec7c c\u1ea7n l\u00e0m khi thi\u1ebfu d\u1eef li\u1ec7u.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>B\u1ea1n l\u00e0 tr\u1ee3 l\u00fd ch\u0103m s\u00f3c kh\u00e1ch h\u00e0ng c\u1ee7a c\u1eeda h\u00e0ng ABC.\n- Lu\u00f4n tra Tool \"FAQ\" (Google Sheets) tr\u01b0\u1edbc khi tr\u1ea3 l\u1eddi v\u1ec1 gi\u00e1, ph\u00ed ship, \u0111\u1ed5i tr\u1ea3.\n- Kh\u00f4ng t\u00ecm th\u1ea5y trong FAQ th\u00ec n\u00f3i ch\u01b0a c\u00f3 th\u00f4ng tin v\u00e0 xin s\u1ed1 \u0111\u01a1n h\u00e0ng, kh\u00f4ng t\u1ef1 \u0111o\u00e1n.\n- Tr\u1ea3 l\u1eddi ti\u1ebfng Vi\u1ec7t, t\u1ed1i \u0111a 4 c\u00e2u.<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1463\" height=\"776\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-10.png\" alt=\"Panel node AI Agent trong n8n: Source for Prompt, Prompt (User Message), Require Specific Output Format, m\u1ee5c Options v\u1edbi System Message \u0111\u00e3 \u0111i\u1ec1n vai tr\u00f2 tr\u1ee3 l\u00fd\" class=\"wp-image-105130\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-10.png 1463w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-10-300x159.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-10-1024x543.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105120-10-768x407.png 768w\" sizes=\"(max-width: 1463px) 100vw, 1463px\" \/><figcaption class=\"wp-element-caption\">\u1ea2nh ch\u1ee5p \u1edf b\u1ea3n n8n c\u0169 (n\u00fat Test step, nay l\u00e0 Execute step); Prompt l\u1ea5y t\u1eeb tr\u01b0\u1eddng Question c\u1ee7a Edit Fields, c\u00f2n v\u1edbi Chat Trigger \u0111\u1ec3 Source for Prompt l\u00e0 Take from previous node automatically<\/figcaption><\/figure>\n<\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1400\" height=\"750\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-ai-agent-tren-n8n-vong-lap-tool.webp\" alt=\"S\u01a1 \u0111\u1ed3 node AI Agent ch\u1ecdn v\u00e0 g\u1ecdi Tool trong n8n: c\u00e2u h\u1ecfi v\u00e0o, AI Agent g\u1eedi prompt, System Message v\u00e0 m\u00f4 t\u1ea3 Tool cho Chat Model, model quy\u1ebft \u0111\u1ecbnh g\u1ecdi Tool v\u1edbi tham s\u1ed1 $fromAI, n8n ch\u1ea1y Tool v\u00e0 g\u1eedi k\u1ebft qu\u1ea3 l\u1ea1i, l\u1eb7p t\u1ed1i \u0111a Max Iterations m\u1eb7c \u0111\u1ecbnh 10, r\u1ed3i tr\u1ea3 output, l\u01b0u Memory v\u00e0 g\u1eedi v\u1ec1 k\u00eanh\" class=\"wp-image-131446\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-ai-agent-tren-n8n-vong-lap-tool.webp 1400w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-ai-agent-tren-n8n-vong-lap-tool-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-ai-agent-tren-n8n-vong-lap-tool-1024x549.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-ai-agent-tren-n8n-vong-lap-tool-768x411.webp 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Model ch\u1ec9 bi\u1ebft Tool qua t\u00ean v\u00e0 m\u00f4 t\u1ea3. Khi agent b\u1ecf qua Tool, s\u1eeda m\u00f4 t\u1ea3 Tool cho c\u1ee5 th\u1ec3 v\u00e0 ghi trong System Message l\u00fac n\u00e0o ph\u1ea3i g\u1ecdi. Tham s\u1ed1 Tool c\u00f3 th\u1ec3 \u0111\u1ec3 model t\u1ef1 \u0111i\u1ec1n b\u1eb1ng <code>$fromAI()<\/code>; s\u1ed1 v\u00f2ng g\u1ecdi t\u1ed1i \u0111a \u0111\u1eb7t \u1edf <em>Max Iterations<\/em>, m\u1eb7c \u0111\u1ecbnh 10 (<a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/cluster-nodes\/root-nodes\/n8n-nodes-langchain.agent\/tools-agent\/\" target=\"_blank\" rel=\"noopener nofollow\">docs.n8n.io, Tools Agent<\/a>).<\/p>\n\n\n\n<h2 id=\"N\u00ean_ch\u1ecdn_Chat_Model_n\u00e0o_cho_AI_Agent?\">N\u00ean ch\u1ecdn Chat Model n\u00e0o cho AI Agent?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Chat Model n\u00ean ch\u1ecdn theo vi\u1ec7c agent ph\u1ea3i l\u00e0m: tra c\u1ee9u v\u00e0 tr\u1ea3 l\u1eddi ng\u1eafn d\u00f9ng model nh\u1ecf, r\u1ebb; suy lu\u1eadn nhi\u1ec1u b\u01b0\u1edbc ho\u1eb7c g\u1ecdi nhi\u1ec1u Tool d\u00f9ng model l\u1edbn h\u01a1n. T\u00ean model \u0111\u1ed5i r\u1ea5t nhanh, n\u00ean ch\u1ecdn trong danh s\u00e1ch m\u00e0 sub-node Chat Model hi\u1ec3n th\u1ecb, \u0111\u1ed1i chi\u1ebfu trang model ch\u00ednh th\u1ee9c tr\u01b0\u1edbc khi \u0111\u01b0a v\u00e0o ch\u1ea1y th\u1eadt.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Nh\u00e0 cung c\u1ea5p<\/th><th>Sub-node trong n8n<\/th><th>Model hi\u1ec7n h\u00e0nh (trang ch\u00ednh th\u1ee9c, 22\/10\/2026)<\/th><th>\u0110\u00e3 ng\u1eebng ho\u1eb7c s\u1eafp ng\u1eebng<\/th><\/tr><\/thead><tbody><tr><td>OpenAI<\/td><td>OpenAI Chat Model<\/td><td>gpt-6-astra (model ch\u1ee7 l\u1ef1c), gpt-6.1-sol (c\u00e2n b\u1eb1ng gi\u00e1 v\u00e0 ch\u1ea5t l\u01b0\u1ee3ng), gpt-6-luna (r\u1ebb, kh\u1ed1i l\u01b0\u1ee3ng l\u1edbn)<\/td><td>gpt-3.5-turbo t\u1eaft 23\/10\/2026; Assistants API g\u1ee1 26\/08\/2026<\/td><\/tr><tr><td>Anthropic<\/td><td>Anthropic Chat Model<\/td><td>Claude Fable 5.1, Claude Opus 5.5, Claude Sonnet 5.5, Claude Haiku 5.5<\/td><td>Xem l\u1ecbch retirement tr\u00ean trang Models c\u1ee7a Anthropic<\/td><\/tr><tr><td>Google<\/td><td>Google Gemini Chat Model<\/td><td>Gemini 4 Argon, Gemini 3.8 Flash, Gemini 3.5 Flash-Lite<\/td><td>gemini-2.0-flash v\u00e0 2.0-flash-lite t\u1eaft 01\/06\/2026<\/td><\/tr><tr><td>T\u1ef1 host<\/td><td>Ollama Chat Model<\/td><td>Model m\u00e3 m\u1edf ch\u1ea1y tr\u00ean m\u00e1y ch\u1ee7 c\u1ee7a b\u1ea1n<\/td><td>C\u1ea7n RAM\/GPU \u0111\u1ee7 cho model; ch\u1ea5t l\u01b0\u1ee3ng g\u1ecdi Tool tu\u1ef3 model<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Ngu\u1ed3n: OpenAI Models v\u00e0 Deprecations, Anthropic Models overview, Gemini API Models v\u00e0 Deprecations, \u0111\u1ecdc 22\/10\/2026<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ngu\u1ed3n \u0111\u1ec3 ki\u1ec3m l\u1ea1i: <a href=\"https:\/\/platform.openai.com\/docs\/models\" target=\"_blank\" rel=\"noopener nofollow\">OpenAI Models<\/a>, <a href=\"https:\/\/platform.openai.com\/docs\/deprecations\" target=\"_blank\" rel=\"noopener nofollow\">OpenAI Deprecations<\/a>, <a href=\"https:\/\/docs.anthropic.com\/en\/docs\/about-claude\/models\/overview\" target=\"_blank\" rel=\"noopener nofollow\">Anthropic Models overview<\/a>, <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/models\" target=\"_blank\" rel=\"noopener nofollow\">Gemini API Models<\/a>, <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/deprecations\" target=\"_blank\" rel=\"noopener nofollow\">Gemini deprecations<\/a>. Workflow c\u0169 c\u00f2n ghi <code>gpt-3.5-turbo<\/code> hay <code>models\/gemini-2.0-flash<\/code> s\u1ebd b\u00e1o l\u1ed7i model kh\u00f4ng t\u1ed3n t\u1ea1i: m\u1edf sub-node v\u00e0 ch\u1ecdn l\u1ea1i model.<\/p>\n\n\n\n<h2 id=\"MCP_Client_Tool_trong_n8n_d\u00f9ng_\u0111\u1ec3_l\u00e0m_g\u00ec?\">MCP Client Tool trong n8n d\u00f9ng \u0111\u1ec3 l\u00e0m g\u00ec?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MCP Client Tool l\u00e0 sub-node Tool bi\u1ebfn node AI Agent th\u00e0nh MCP client: agent d\u00f9ng \u0111\u01b0\u1ee3c c\u00e1c tool m\u00e0 m\u1ed9t MCP server b\u00ean ngo\u00e0i cung c\u1ea5p, nh\u01b0 tra c\u1ee9u t\u00e0i li\u1ec7u, \u0111\u1ecdc ticket hay truy v\u1ea5n c\u01a1 s\u1edf d\u1eef li\u1ec7u, m\u00e0 kh\u00f4ng ph\u1ea3i d\u1ef1ng t\u1eebng HTTP Request. MCP (Model Context Protocol) l\u00e0 chu\u1ea9n m\u1edf \u0111\u1ec3 model g\u1ecdi c\u00f4ng c\u1ee5; kh\u00e1i ni\u1ec7m c\u00f3 \u1edf b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/mcp-la-gi\/\">MCP l\u00e0 g\u00ec<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Endpoint:<\/strong> \u0111i\u1ec1n \u0111\u1ecba ch\u1ec9 SSE c\u1ee7a MCP server c\u1ea7n n\u1ed1i.<\/li>\n\n\n<li><strong>X\u00e1c th\u1ef1c:<\/strong> Bearer, header chung, nhi\u1ec1u header ho\u1eb7c OAuth2; ch\u1ecdn None n\u1ebfu server kh\u00f4ng y\u00eau c\u1ea7u.<\/li>\n\n\n<li><strong>Tools to Include:<\/strong> All, Selected ho\u1eb7c All Except. Ch\u1ec9 m\u1edf nh\u1eefng tool agent th\u1eadt s\u1ef1 c\u1ea7n \u0111\u1ec3 gi\u1ea3m r\u1ee7i ro g\u1ecdi nh\u1ea7m.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Th\u00f4ng s\u1ed1 theo <a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/cluster-nodes\/sub-nodes\/n8n-nodes-langchain.toolmcp\/\" target=\"_blank\" rel=\"noopener nofollow\">docs.n8n.io, MCP Client Tool<\/a> (\u0111\u1ecdc 22\/10\/2026). Chi\u1ec1u ng\u01b0\u1ee3c l\u1ea1i, node MCP Server Trigger bi\u1ebfn workflow n8n th\u00e0nh MCP server cho Claude hay ChatGPT g\u1ecdi v\u00e0o.<\/p>\n\n\n\n<h2 id=\"\u0110\u01b0a_AI_Agent_l\u00ean_k\u00eanh_chat_n\u00e0o?\">\u0110\u01b0a AI Agent l\u00ean k\u00eanh chat n\u00e0o?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">AI Agent c\u1ee7a n8n tr\u1ea3 l\u1eddi \u0111\u01b0\u1ee3c tr\u00ean m\u1ecdi k\u00eanh c\u00f3 webhook ho\u1eb7c trigger: Telegram c\u00f3 node ch\u00ednh th\u1ee9c, Messenger n\u1ed1i qua Webhook v\u00e0 Graph API, Zalo n\u00ean \u0111i \u0111\u01b0\u1eddng ch\u00ednh th\u1ee9c b\u1eb1ng Zalo Bot ho\u1eb7c Zalo OA. Ph\u1ea7n AI Agent gi\u1eef nguy\u00ean; ch\u1ec9 trigger \u1edf \u0111\u1ea7u v\u00e0 node g\u1eedi tin \u1edf cu\u1ed1i thay theo k\u00eanh.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>K\u00eanh<\/th><th>\u0110\u1ea7u v\u00e0o<\/th><th>G\u1eedi tr\u1ea3 l\u1eddi<\/th><th>B\u00e0i chi ti\u1ebft<\/th><\/tr><\/thead><tbody><tr><td>Telegram<\/td><td>Telegram Trigger (Bot Token t\u1eeb BotFather)<\/td><td>Node Telegram, Send Message<\/td><td><a href=\"https:\/\/tino.vn\/blog\/tao-bot-telegram\/\">T\u1ea1o bot Telegram<\/a>, <a href=\"https:\/\/tino.vn\/blog\/cach-xac-thuc-credential-telegram-cho-n8n\/\">credential Telegram cho n8n<\/a><\/td><\/tr><tr><td>Zalo<\/td><td>Webhook c\u1ee7a Zalo Bot ho\u1eb7c Zalo OA<\/td><td>HTTP Request t\u1edbi API ch\u00ednh th\u1ee9c c\u1ee7a Zalo<\/td><td><a href=\"https:\/\/tino.vn\/blog\/tao-bot-zalo-ca-nhan\/\">T\u1ea1o bot Zalo b\u1eb1ng Zalo Bot Creator<\/a><\/td><\/tr><tr><td>Facebook Messenger<\/td><td>Webhook (x\u00e1c minh b\u1eb1ng hub.challenge)<\/td><td>HTTP Request t\u1edbi Send API v\u1edbi Page Token<\/td><td><a href=\"https:\/\/tino.vn\/blog\/cach-tao-access-token-facebook-graph-api\/\">L\u1ea5y Page Access Token<\/a> \u2192 <a href=\"https:\/\/tino.vn\/blog\/cach-ket-noi-api-messenger-tren-n8n\/\">k\u1ebft n\u1ed1i Messenger API qua Webhook<\/a> \u2192 <a href=\"https:\/\/tino.vn\/blog\/cach-tao-chatbot-facebook-voi-n8n\/\">chatbot Facebook v\u1edbi n8n<\/a><\/td><\/tr><tr><td>Website<\/td><td>Chat Trigger, ch\u1ebf \u0111\u1ed9 Hosted ho\u1eb7c Embedded Chat<\/td><td>Chat Trigger t\u1ef1 hi\u1ec3n th\u1ecb c\u00e2u tr\u1ea3 l\u1eddi<\/td><td><a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/core-nodes\/n8n-nodes-langchain.chattrigger\/\" target=\"_blank\" rel=\"noopener nofollow\">docs.n8n.io, Chat Trigger<\/a><\/td><\/tr><tr><td>Agent b\u00ean ngo\u00e0i<\/td><td>Webhook<\/td><td>Webhook ho\u1eb7c HTTP Request<\/td><td><a href=\"https:\/\/tino.vn\/blog\/ket-noi-n8n-voi-hermes-agent\/\">K\u1ebft n\u1ed1i n8n v\u1edbi Hermes Agent<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1400\" height=\"750\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-ai-agent-tren-n8n-ban-do-tich-hop.webp\" alt=\"B\u1ea3n \u0111\u1ed3 t\u00edch h\u1ee3p AI Agent n8n: k\u00eanh chat Telegram, Zalo Bot v\u00e0 Zalo OA, Messenger, chat c\u1ee7a n8n; Chat Model OpenAI, Anthropic, Google Gemini, Mistral Cloud, Groq, Ollama; Tool d\u1eef li\u1ec7u Google Sheets, Airtable, Postgres, WordPress, HTTP Request; Tool m\u1edf r\u1ed9ng MCP Client Tool, Call n8n Workflow, thu th\u1eadp web, agent ngo\u00e0i\" class=\"wp-image-131445\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-ai-agent-tren-n8n-ban-do-tich-hop.webp 1400w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-ai-agent-tren-n8n-ban-do-tich-hop-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-ai-agent-tren-n8n-ban-do-tich-hop-1024x549.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-ai-agent-tren-n8n-ban-do-tich-hop-768x411.webp 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">V\u1edbi Zalo, tr\u00e1nh node c\u1ed9ng \u0111\u1ed3ng \u0111\u0103ng nh\u1eadp t\u00e0i kho\u1ea3n c\u00e1 nh\u00e2n b\u1eb1ng m\u00e3 QR: \u0111\u00f3 kh\u00f4ng ph\u1ea3i API c\u1ee7a Zalo v\u00e0 t\u00e0i kho\u1ea3n c\u00f3 th\u1ec3 b\u1ecb kho\u00e1. V\u1edbi Messenger, chatbot ch\u1ec9 tr\u1ea3 l\u1eddi t\u1ef1 do trong 24 gi\u1edd k\u1ec3 t\u1eeb tin g\u1ea7n nh\u1ea5t c\u1ee7a kh\u00e1ch.<\/p>\n\n\n\n<h2 id=\"Cho_AI_Agent_\u0111\u1ecdc_v\u00e0_ghi_d\u1eef_li\u1ec7u_\u1edf_\u0111\u00e2u?\">Cho AI Agent \u0111\u1ecdc v\u00e0 ghi d\u1eef li\u1ec7u \u1edf \u0111\u00e2u?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Tool d\u1eef li\u1ec7u quy\u1ebft \u0111\u1ecbnh AI Agent tr\u1ea3 l\u1eddi \u0111\u00fang hay &#8220;b\u1ecba&#8221;: agent n\u00ean tra gi\u00e1, ch\u00ednh s\u00e1ch, \u0111\u01a1n h\u00e0ng t\u1eeb ngu\u1ed3n th\u1eadt thay v\u00ec tr\u00ed nh\u1edb c\u1ee7a model. C\u00e1c ngu\u1ed3n d\u01b0\u1edbi \u0111\u00e2y \u0111\u1ec1u l\u00e0 node c\u00f3 s\u1eb5n d\u00f9ng \u0111\u01b0\u1ee3c l\u00e0m Tool; th\u00eam \u00fd t\u01b0\u1edfng \u1edf b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/tich-hop-ai-vao-n8n\/\">t\u00edch h\u1ee3p AI v\u00e0o n8n<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Google Sheets, Drive, Gmail:<\/strong> ngu\u1ed3n d\u1ec5 b\u1eaft \u0111\u1ea7u nh\u1ea5t; xem <a href=\"https:\/\/tino.vn\/blog\/cach-xac-thuc-credential-cho-google-tren-n8n\/\">c\u00e1ch x\u00e1c th\u1ef1c credential Google<\/a>.<\/li>\n\n\n<li><strong>Airtable:<\/strong> b\u1ea3ng c\u00f3 ki\u1ec3u d\u1eef li\u1ec7u r\u00f5 h\u01a1n Sheets, h\u1ee3p l\u00e0m CRM nh\u1ecf; xem <a href=\"https:\/\/tino.vn\/blog\/airtable-la-gi\/\">Airtable l\u00e0 g\u00ec<\/a>.<\/li>\n\n\n<li><strong>WordPress:<\/strong> \u0111\u1ecdc b\u00e0i, t\u1ea1o nh\u00e1p qua REST API; xem <a href=\"https:\/\/tino.vn\/blog\/cach-ket-noi-wordpress-voi-n8n\/\">k\u1ebft n\u1ed1i WordPress v\u1edbi n8n<\/a> v\u00e0 <a href=\"https:\/\/tino.vn\/blog\/share-n8n-workflow-seo-automation\/\">workflow vi\u1ebft b\u00e0i t\u1ef1 \u0111\u1ed9ng<\/a>.<\/li>\n\n\n<li><strong>X\u1eed l\u00fd media:<\/strong> c\u1eaft, gh\u00e9p, \u0111\u1ed5i \u0111\u1ecbnh d\u1ea1ng video b\u1eb1ng FFmpeg tr\u00ean n8n t\u1ef1 host; xem <a href=\"https:\/\/tino.vn\/blog\/ffmpeg-la-gi\/\">FFmpeg l\u00e0 g\u00ec<\/a>.<\/li>\n<\/ul>\n\n\n\n<h3 id=\"L\u1ea5y_d\u1eef_li\u1ec7u_t\u1eeb_website\">L\u1ea5y d\u1eef li\u1ec7u t\u1eeb website<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">HTTP Request v\u00e0 HTML node \u0111\u1ee7 \u0111\u1ec3 \u0111\u1ecdc trang c\u00f4ng khai; quy tr\u00ecnh c\u00f3 \u1edf b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/crawl-du-lieu-website-voi-n8n\/\">crawl d\u1eef li\u1ec7u website v\u1edbi n8n<\/a>. Ch\u1ec9 thu th\u1eadp trang \u0111\u01b0\u1ee3c ph\u00e9p theo robots.txt v\u00e0 \u0111i\u1ec1u kho\u1ea3n c\u1ee7a website. Kh\u00f4ng thu email, s\u1ed1 \u0111i\u1ec7n tho\u1ea1i hay d\u1eef li\u1ec7u c\u00e1 nh\u00e2n kh\u00e1c khi ch\u01b0a c\u00f3 c\u0103n c\u1ee9 theo Lu\u1eadt B\u1ea3o v\u1ec7 d\u1eef li\u1ec7u c\u00e1 nh\u00e2n.<\/p>\n\n\n\n<h2 id=\"L\u1ed7i_th\u01b0\u1eddng_g\u1eb7p_khi_ch\u1ea1y_AI_Agent\">L\u1ed7i th\u01b0\u1eddng g\u1eb7p khi ch\u1ea1y AI Agent<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ph\u1ea7n l\u1edbn l\u1ed7i AI Agent n\u1eb1m \u1edf credential c\u1ee7a Chat Model, h\u1ea1n m\u1ee9c API ho\u1eb7c c\u1ea5u h\u00ecnh Tool, kh\u00f4ng ph\u1ea3i \u1edf node AI Agent. Xem tab Logs c\u1ee7a node \u0111\u1ec3 bi\u1ebft l\u1ed7i x\u1ea3y ra \u1edf v\u00f2ng g\u1ecdi model hay \u1edf Tool.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Hi\u1ec7n t\u01b0\u1ee3ng<\/th><th>Nguy\u00ean nh\u00e2n th\u01b0\u1eddng g\u1eb7p<\/th><th>C\u00e1ch x\u1eed l\u00fd<\/th><\/tr><\/thead><tbody><tr><td>401 Unauthorized<\/td><td>API key sai, b\u1ecb thu h\u1ed3i ho\u1eb7c thu\u1ed9c project kh\u00e1c<\/td><td>T\u1ea1o l\u1ea1i key, c\u1eadp nh\u1eadt credential; xem <a href=\"https:\/\/tino.vn\/blog\/khac-phuc-loi-401-unauthorized-authorization-failed\/\">l\u1ed7i 401 Unauthorized<\/a><\/td><\/tr><tr><td>429 Too Many Requests<\/td><td>V\u01b0\u1ee3t h\u1ea1n m\u1ee9c ho\u1eb7c h\u1ebft s\u1ed1 d\u01b0 t\u00e0i kho\u1ea3n API<\/td><td>Ki\u1ec3m tra billing v\u00e0 rate limit; b\u1eadt Retry On Fail \u1edf Settings c\u1ee7a node<\/td><\/tr><tr><td>Model kh\u00f4ng t\u1ed3n t\u1ea1i<\/td><td>Workflow c\u0169 d\u00f9ng model \u0111\u00e3 t\u1eaft (gpt-3.5-turbo, gemini-2.0-flash)<\/td><td>M\u1edf sub-node Chat Model, ch\u1ecdn model hi\u1ec7n h\u00e0nh<\/td><\/tr><tr><td>Agent kh\u00f4ng g\u1ecdi Tool<\/td><td>T\u00ean, m\u00f4 t\u1ea3 Tool m\u01a1 h\u1ed3; System Message kh\u00f4ng y\u00eau c\u1ea7u<\/td><td>\u0110\u1eb7t t\u00ean Tool r\u00f5, m\u00f4 t\u1ea3 khi n\u00e0o d\u00f9ng; th\u00eam quy t\u1eafc v\u00e0o System Message<\/td><\/tr><tr><td>Qu\u00ean ng\u1eef c\u1ea3nh<\/td><td>Thi\u1ebfu Memory, Session Key \u0111\u1ed5i m\u1ed7i l\u1ea7n, ho\u1eb7c Simple Memory ch\u1ea1y \u1edf queue mode<\/td><td>\u0110\u1eb7t Session Key c\u1ed1 \u0111\u1ecbnh theo ng\u01b0\u1eddi d\u00f9ng; d\u00f9ng Postgres ho\u1eb7c Redis Chat Memory<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">C\u00e1c l\u1ed7i k\u1ebft n\u1ed1i API kh\u00e1c trong n8n (timeout, SSL, 403, 500) \u0111\u01b0\u1ee3c gom \u1edf <a href=\"https:\/\/tino.vn\/blog\/loi-ket-noi-api-thuong-gap-trong-n8n\/\">l\u1ed7i k\u1ebft n\u1ed1i API th\u01b0\u1eddng g\u1eb7p trong n8n<\/a>.<\/p>\n\n\n\n<h2 id=\"Ch\u1ea1y_AI_Agent_24\/7:_n8n_Cloud_hay_t\u1ef1_host?\">Ch\u1ea1y AI Agent 24\/7: n8n Cloud hay t\u1ef1 host?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">AI Agent tr\u1ea3 l\u1eddi kh\u00e1ch c\u1ea7n n8n ch\u1ea1y li\u00ean t\u1ee5c v\u00e0 c\u00f3 \u0111\u1ecba ch\u1ec9 HTTPS c\u00f4ng khai \u0111\u1ec3 nh\u1eadn webhook. n8n Cloud lo ph\u1ea7n h\u1ea1 t\u1ea7ng; n8n t\u1ef1 host tr\u00ean VPS cho b\u1ea1n c\u00e0i node c\u1ed9ng \u0111\u1ed3ng, ch\u1ea1y Ollama, \u0111\u1eb7t d\u1eef li\u1ec7u \u1edf m\u00e1y ch\u1ee7 m\u00ecnh ch\u1ecdn.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Ti\u00eau ch\u00ed<\/th><th>n8n Cloud<\/th><th>n8n t\u1ef1 host tr\u00ean VPS<\/th><\/tr><\/thead><tbody><tr><td>Chi ph\u00ed n8n<\/td><td>Theo g\u00f3i, t\u00ednh theo s\u1ed1 execution (trang gi\u00e1 n8n.io, 22\/10\/2026: Starter \u20ac20\/th\u00e1ng tr\u1ea3 theo n\u0103m, kh\u00f4ng c\u00f3 g\u00f3i mi\u1ec5n ph\u00ed)<\/td><td>Kh\u00f4ng tr\u1ea3 ph\u00ed execution cho n8n; tr\u1ea3 ti\u1ec1n m\u00e1y ch\u1ee7<\/td><\/tr><tr><td>Node c\u1ed9ng \u0111\u1ed3ng<\/td><td>Ch\u1ec9 node \u0111\u00e3 \u0111\u01b0\u1ee3c n8n x\u00e1c minh<\/td><td>C\u00e0i \u0111\u01b0\u1ee3c node c\u1ed9ng \u0111\u1ed3ng<\/td><\/tr><tr><td>Model t\u1ef1 host<\/td><td>G\u1ecdi model qua API<\/td><td>Ch\u1ea1y Ollama tr\u00ean c\u00f9ng m\u00e1y ch\u1ee7 ho\u1eb7c m\u00e1y c\u00f3 GPU<\/td><\/tr><tr><td>V\u1eadn h\u00e0nh<\/td><td>n8n c\u1eadp nh\u1eadt v\u00e0 sao l\u01b0u<\/td><td>B\u1ea1n t\u1ef1 c\u1eadp nh\u1eadt, sao l\u01b0u, b\u1ea3o m\u1eadt<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">So s\u00e1nh \u0111\u1ea7y \u0111\u1ee7 \u1edf b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/so-sanh-n8n-self-host-va-n8n-cloud\/\">n8n self-host v\u00e0 n8n Cloud<\/a>. C\u00e1ch c\u00e0i \u1edf <a href=\"https:\/\/tino.vn\/blog\/cach-cai-dat-n8n-tren-vps\/\">c\u00e0i \u0111\u1eb7t n8n tr\u00ean VPS<\/a>; c\u1ea5u h\u00ecnh m\u00e1y ch\u1ee7 cho agent v\u00e0 model \u1edf <a href=\"https:\/\/tino.vn\/blog\/vps-chay-ai-agent\/\">VPS ch\u1ea1y AI Agent<\/a> v\u00e0 <a href=\"https:\/\/tino.vn\/blog\/vps-n8n\/\">VPS n8n<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mu\u1ed1n ch\u1ea1y n8n 24\/7 m\u00e0 kh\u00f4ng t\u1ef1 c\u00e0i? <a href=\"https:\/\/tino.vn\/vps-n8n\">VPS n8n c\u1ee7a Tino<\/a> c\u00e0i s\u1eb5n n8n tr\u00ean VPS NVMe \u0111\u1eb7t t\u1ea1i Vi\u1ec7t Nam; b\u1ea1n v\u1eabn c\u00f3 quy\u1ec1n root \u0111\u1ec3 c\u1ea5u h\u00ecnh. Xem c\u1ea5u h\u00ecnh v\u00e0 gi\u00e1 tr\u00ean trang s\u1ea3n ph\u1ea9m.<\/p>\n\n\n\n<h2 id=\"Khi_n\u00e0o_kh\u00f4ng_n\u00ean_d\u00f9ng_AI_Agent?\">Khi n\u00e0o kh\u00f4ng n\u00ean d\u00f9ng AI Agent?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">AI Agent kh\u00f4ng h\u1ee3p khi quy tr\u00ecnh \u0111\u00e3 c\u1ed1 \u0111\u1ecbnh v\u00e0 c\u1ea7n k\u1ebft qu\u1ea3 gi\u1ed1ng nhau m\u1ecdi l\u1ea7n: model c\u00f3 th\u1ec3 tr\u1ea3 l\u1eddi kh\u00e1c nhau cho c\u00f9ng c\u00e2u h\u1ecfi v\u00e0 t\u1ed1n token m\u1ed7i l\u1ea7n ch\u1ea1y.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Quy tr\u00ecnh r\u1ebd nh\u00e1nh r\u00f5 r\u00e0ng<\/strong> (\u0111\u01a1n tr\u00ean 1 tri\u1ec7u th\u00ec g\u1eedi email A): d\u00f9ng node If ho\u1eb7c Switch; n\u1ec1n t\u1ea3ng \u1edf <a href=\"https:\/\/tino.vn\/blog\/cach-tao-workflow-tren-n8n-co-ban\/\">t\u1ea1o workflow n8n c\u01a1 b\u1ea3n<\/a>.<\/li>\n\n\n<li><strong>Vi\u1ec7c c\u1ea7n s\u1ed1 li\u1ec7u \u0111\u00fang \u0111\u1ebfn t\u1eebng \u0111\u1ed3ng<\/strong> (t\u00ednh l\u01b0\u01a1ng, xu\u1ea5t ho\u00e1 \u0111\u01a1n): t\u00ednh b\u1eb1ng node Code ho\u1eb7c c\u00f4ng th\u1ee9c, ch\u1ec9 d\u00f9ng AI \u0111\u1ec3 di\u1ec5n gi\u1ea3i.<\/li>\n\n\n<li><strong>D\u1eef li\u1ec7u nh\u1ea1y c\u1ea3m<\/strong> ch\u01b0a \u0111\u01b0\u1ee3c ph\u00e9p g\u1eedi cho nh\u00e0 cung c\u1ea5p model: d\u00f9ng model t\u1ef1 host ho\u1eb7c \u1ea9n danh d\u1eef li\u1ec7u tr\u01b0\u1edbc.<\/li>\n\n\n<li><strong>Tool c\u00f3 th\u1ec3 g\u00e2y h\u1ea1i<\/strong> (g\u1eedi tin h\u00e0ng lo\u1ea1t, xo\u00e1 b\u1ea3n ghi): g\u1eafn b\u01b0\u1edbc Human review \u0111\u1ec3 ng\u01b0\u1eddi duy\u1ec7t tr\u01b0\u1edbc khi Tool ch\u1ea1y.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"C\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p_v\u1ec1_node_AI_Agent_trong_n8n\">C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p v\u1ec1 node AI Agent trong n8n<\/h2>\n\n\n\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"Agent_node_l\u00e0_g\u00ec?\">Agent node l\u00e0 g\u00ec?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">Agent node l\u00e0 node AI Agent trong n8n: root node nh\u1eadn c\u00e2u h\u1ecfi, d\u00f9ng Chat Model \u0111\u1ec3 suy lu\u1eadn v\u00e0 g\u1ecdi Tool nh\u01b0 Google Sheets, HTTP Request hay MCP Client Tool, r\u1ed3i tr\u1ea3 c\u00e2u tr\u1ea3 l\u1eddi cho node ph\u00eda sau.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"AI_Agent_node_c\u00f3_c\u1ea7n_Tool_kh\u00f4ng?\">AI Agent node c\u00f3 c\u1ea7n Tool kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">C\u00f3. T\u00e0i li\u1ec7u n8n ghi ph\u1ea3i n\u1ed1i \u00edt nh\u1ea5t m\u1ed9t tool sub-node v\u00e0o node AI Agent. N\u1ebfu ch\u1ec9 c\u1ea7n model tr\u1ea3 l\u1eddi m\u1ed9t prompt, d\u00f9ng node c\u1ee7a nh\u00e0 cung c\u1ea5p (v\u00ed d\u1ee5 node OpenAI) ho\u1eb7c Basic LLM Chain thay cho AI Agent.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"D\u00f9ng_AI_Agent_trong_n8n_c\u00f3_t\u1ed1n_ph\u00ed_kh\u00f4ng?\">D\u00f9ng AI Agent trong n8n c\u00f3 t\u1ed1n ph\u00ed kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">Node AI Agent kh\u00f4ng thu ph\u00ed ri\u00eang. B\u1ea1n tr\u1ea3 ph\u00ed token cho nh\u00e0 cung c\u1ea5p model (tr\u1eeb model t\u1ef1 host), ph\u00ed API c\u1ee7a Tool n\u1ebfu c\u00f3, v\u00e0 ph\u00ed execution n\u1ebfu d\u00f9ng n8n Cloud. M\u1ed9t c\u00e2u h\u1ecfi c\u00f3 th\u1ec3 g\u1ecdi model nhi\u1ec1u v\u00f2ng khi agent d\u00f9ng Tool.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"AI_Agent_nh\u1edb_h\u1ed9i_tho\u1ea1i_b\u1eb1ng_c\u00e1ch_n\u00e0o?\">AI Agent nh\u1edb h\u1ed9i tho\u1ea1i b\u1eb1ng c\u00e1ch n\u00e0o?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">AI Agent nh\u1edb nh\u1edd sub-node Memory. Simple Memory gi\u1eef s\u1ed1 l\u01b0\u1ee3t g\u1ea7n nh\u1ea5t theo Context Window Length v\u00e0 Session Key; m\u1ed7i ng\u01b0\u1eddi d\u00f9ng n\u00ean c\u00f3 Session Key ri\u00eang, v\u00ed d\u1ee5 chat ID. Khi n8n ch\u1ea1y queue mode, d\u00f9ng Postgres ho\u1eb7c Redis Chat Memory.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"C\u00f3_d\u00f9ng_nhi\u1ec1u_node_AI_Agent_trong_m\u1ed9t_workflow_\u0111\u01b0\u1ee3c_kh\u00f4ng?\">C\u00f3 d\u00f9ng nhi\u1ec1u node AI Agent trong m\u1ed9t workflow \u0111\u01b0\u1ee3c kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">\u0110\u01b0\u1ee3c. C\u00f3 th\u1ec3 x\u1ebfp nhi\u1ec1u AI Agent n\u1ed1i ti\u1ebfp, m\u1ed7i agent m\u1ed9t vi\u1ec7c (ph\u00e2n lo\u1ea1i, tr\u1ea3 l\u1eddi, t\u00f3m t\u1eaft), ho\u1eb7c g\u00f3i m\u1ed9t agent th\u00e0nh workflow con v\u00e0 g\u1ecdi n\u00f3 nh\u01b0 m\u1ed9t Tool b\u1eb1ng Call n8n Workflow.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\n<script type=\"application\/ld+json\">\n\t{\n\t\t\"@context\": \"https:\/\/schema.org\",\n\t\t\"@type\": \"FAQPage\",\n\t\t\"mainEntity\": [\n\t\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"Agent node l\u00e0 g\u00ec?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Agent node l\u00e0 node AI Agent trong n8n: root node nh\u1eadn c\u00e2u h\u1ecfi, d\u00f9ng Chat Model \u0111\u1ec3 suy lu\u1eadn v\u00e0 g\u1ecdi Tool nh\u01b0 Google Sheets, HTTP Request hay MCP Client Tool, r\u1ed3i tr\u1ea3 c\u00e2u tr\u1ea3 l\u1eddi cho node ph\u00eda sau.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"AI Agent node c\u00f3 c\u1ea7n Tool kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3. T\u00e0i li\u1ec7u n8n ghi ph\u1ea3i n\u1ed1i \u00edt nh\u1ea5t m\u1ed9t tool sub-node v\u00e0o node AI Agent. N\u1ebfu ch\u1ec9 c\u1ea7n model tr\u1ea3 l\u1eddi m\u1ed9t prompt, d\u00f9ng node c\u1ee7a nh\u00e0 cung c\u1ea5p (v\u00ed d\u1ee5 node OpenAI) ho\u1eb7c Basic LLM Chain thay cho AI Agent.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"D\u00f9ng AI Agent trong n8n c\u00f3 t\u1ed1n ph\u00ed kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Node AI Agent kh\u00f4ng thu ph\u00ed ri\u00eang. B\u1ea1n tr\u1ea3 ph\u00ed token cho nh\u00e0 cung c\u1ea5p model (tr\u1eeb model t\u1ef1 host), ph\u00ed API c\u1ee7a Tool n\u1ebfu c\u00f3, v\u00e0 ph\u00ed execution n\u1ebfu d\u00f9ng n8n Cloud. M\u1ed9t c\u00e2u h\u1ecfi c\u00f3 th\u1ec3 g\u1ecdi model nhi\u1ec1u v\u00f2ng khi agent d\u00f9ng Tool.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"AI Agent nh\u1edb h\u1ed9i tho\u1ea1i b\u1eb1ng c\u00e1ch n\u00e0o?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>AI Agent nh\u1edb nh\u1edd sub-node Memory. Simple Memory gi\u1eef s\u1ed1 l\u01b0\u1ee3t g\u1ea7n nh\u1ea5t theo Context Window Length v\u00e0 Session Key; m\u1ed7i ng\u01b0\u1eddi d\u00f9ng n\u00ean c\u00f3 Session Key ri\u00eang, v\u00ed d\u1ee5 chat ID. Khi n8n ch\u1ea1y queue mode, d\u00f9ng Postgres ho\u1eb7c Redis Chat Memory.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"C\u00f3 d\u00f9ng nhi\u1ec1u node AI Agent trong m\u1ed9t workflow \u0111\u01b0\u1ee3c kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>\u0110\u01b0\u1ee3c. C\u00f3 th\u1ec3 x\u1ebfp nhi\u1ec1u AI Agent n\u1ed1i ti\u1ebfp, m\u1ed7i agent m\u1ed9t vi\u1ec7c (ph\u00e2n lo\u1ea1i, tr\u1ea3 l\u1eddi, t\u00f3m t\u1eaft), ho\u1eb7c g\u00f3i m\u1ed9t agent th\u00e0nh workflow con v\u00e0 g\u1ecdi n\u00f3 nh\u01b0 m\u1ed9t Tool b\u1eb1ng Call n8n Workflow.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t]\n\t}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Node AI Agent trong n8n l\u00e0 root node nh\u1eadn c\u00e2u h\u1ecfi, d\u00f9ng m\u1ed9t Chat Model \u0111\u1ec3 suy lu\u1eadn r\u1ed3i t\u1ef1 ch\u1ecdn Tool c\u1ea7n g\u1ecdi, nh\u01b0 Google Sheets hay HTTP Request. T\u1eeb n8n 1.82.0, m\u1ecdi node AI Agent ch\u1ea1y theo ki\u1ec3u Tools Agent v\u00e0 ph\u1ea3i n\u1ed1i \u00edt nh\u1ea5t m\u1ed9t Tool. B\u00e0i n\u00e0y l\u00e0 trang t\u1ed5ng c\u1ee7a [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":105121,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7397],"tags":[7343],"class_list":["post-105120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-n8n","tag-n8n"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/105120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=105120"}],"version-history":[{"count":8,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/105120\/revisions"}],"predecessor-version":[{"id":131549,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/105120\/revisions\/131549"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/105121"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=105120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=105120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=105120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}