{"id":105575,"date":"2025-05-21T18:13:01","date_gmt":"2025-05-21T11:13:01","guid":{"rendered":"https:\/\/wiki.tino.org\/?p=105575"},"modified":"2026-10-23T18:29:48","modified_gmt":"2026-10-23T11:29:48","slug":"cach-su-dung-node-if-va-node-switch-trong-n8n","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/cach-su-dung-node-if-va-node-switch-trong-n8n\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e1ch s\u1eed d\u1ee5ng node If v\u00e0 node Switch trong n8n"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Node If<\/strong> ki\u1ec3m tra m\u1ed9t ho\u1eb7c nhi\u1ec1u \u0111i\u1ec1u ki\u1ec7n v\u00e0 \u0111\u01b0a m\u1ed7i item v\u00e0o nh\u00e1nh true ho\u1eb7c false. <strong>Node Switch<\/strong> so m\u1ed9t gi\u00e1 tr\u1ecb v\u1edbi nhi\u1ec1u quy t\u1eafc v\u00e0 \u0111\u01b0a item v\u00e0o \u0111\u00fang nh\u00e1nh, c\u00f3 th\u00eam nh\u00e1nh Fallback khi kh\u00f4ng kh\u1edbp quy t\u1eafc n\u00e0o. D\u00f9ng If cho c\u00e2u h\u1ecfi c\u00f3\/kh\u00f4ng, d\u00f9ng Switch khi c\u00f3 t\u1eeb ba nh\u00e1nh tr\u1edf l\u00ean.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">B\u00e0i n\u00e0y h\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh hai node \u0111i\u1ec1u ki\u1ec7n trong <a href=\"https:\/\/tino.vn\/blog\/n8n-la-gi\/\">n8n<\/a> qua hai v\u00ed d\u1ee5 c\u00f3 \u1ea3nh ch\u1ee5p t\u1eebng b\u01b0\u1edbc, n\u1eb1m trong lo\u1ea1t <a href=\"https:\/\/tino.vn\/blog\/cach-tao-workflow-tren-n8n-co-ban\/\">h\u01b0\u1edbng d\u1eabn t\u1ea1o workflow tr\u00ean n8n<\/a>. Email trong v\u00ed d\u1ee5 l\u00e0 \u0111\u1ecba ch\u1ec9 minh h\u1ecda thu\u1ed9c t\u00ean mi\u1ec1n example.com.<\/p>\n\n\n\n<h2 id=\"Node_If_v\u00e0_node_Switch_trong_n8n_l\u00e0_g\u00ec?\">Node If v\u00e0 node Switch trong n8n l\u00e0 g\u00ec?<\/h2>\n\n\n\n<h3 id=\"Node_If\">Node If<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Node If trong n8n ho\u1ea1t \u0111\u1ed9ng nh\u01b0 c\u00e2u l\u1ec7nh &#8220;n\u1ebfu&#8230; th\u00ec&#8230;&#8221; trong l\u1eadp tr\u00ecnh: ki\u1ec3m tra \u0111i\u1ec1u ki\u1ec7n r\u1ed3i chia lu\u1ed3ng th\u00e0nh hai nh\u00e1nh <strong>true<\/strong> v\u00e0 <strong>false<\/strong>. M\u1ed7i \u0111i\u1ec1u ki\u1ec7n g\u1ed3m gi\u00e1 tr\u1ecb b\u00ean tr\u00e1i, to\u00e1n t\u1eed (equals, contains, ends with, is greater than&#8230;) v\u00e0 gi\u00e1 tr\u1ecb b\u00ean ph\u1ea3i; nhi\u1ec1u \u0111i\u1ec1u ki\u1ec7n gh\u00e9p b\u1eb1ng AND ho\u1eb7c OR (<a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/core-nodes\/n8n-nodes-base.if\/\" target=\"_blank\" rel=\"noopener nofollow\">If node, docs.n8n.io<\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">V\u00ed d\u1ee5: ki\u1ec3m tra ng\u01b0\u1eddi d\u00f9ng c\u00f3 \u0111i\u1ec1n s\u1ed1 \u0111i\u1ec7n tho\u1ea1i trong form kh\u00f4ng. C\u00f3 th\u00ec g\u1eedi SMS, kh\u00f4ng th\u00ec g\u1eedi email nh\u1eafc.<\/p>\n\n\n\n<h3 id=\"Node_Switch\">Node Switch<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Node Switch trong n8n ph\u00e2n lu\u1ed3ng d\u1eef li\u1ec7u theo nhi\u1ec1u quy t\u1eafc, m\u1ed7i quy t\u1eafc m\u1ed9t nh\u00e1nh \u0111\u1ea7u ra (Output 0, Output 1&#8230;). Item kh\u00f4ng kh\u1edbp quy t\u1eafc n\u00e0o c\u00f3 th\u1ec3 \u0111i v\u00e0o nh\u00e1nh ri\u00eang nh\u1edd t\u00f9y ch\u1ecdn Fallback Output (<a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/core-nodes\/n8n-nodes-base.switch\/\" target=\"_blank\" rel=\"noopener nofollow\">Switch node, docs.n8n.io<\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">V\u00ed d\u1ee5: chia \u0111\u01a1n h\u00e0ng theo ph\u01b0\u01a1ng th\u1ee9c thanh to\u00e1n (th\u1ebb, chuy\u1ec3n kho\u1ea3n, v\u00ed \u0111i\u1ec7n t\u1eed, COD), m\u1ed7i lo\u1ea1i m\u1ed9t nh\u00e1nh x\u1eed l\u00fd.<\/p>\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-if-va-node-switch-trong-n8n-fallback.webp\" alt=\"S\u01a1 \u0111\u1ed3 so s\u00e1nh node If v\u00e0 Switch trong n8n: If ki\u1ec3m tra email k\u1ebft th\u00fac b\u1eb1ng @example.com v\u00e0 chia hai nh\u00e1nh true, false; Switch d\u00f9ng Rules theo role chia b\u1ed1n nh\u00e1nh Output 0 admin, Output 1 editor, Output 2 viewer v\u00e0 Fallback cho role kh\u00e1c\" class=\"wp-image-131668\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-fallback.webp 1400w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-fallback-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-fallback-1024x549.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-fallback-768x411.webp 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<h2 id=\"Khi_n\u00e0o_d\u00f9ng_node_If,_khi_n\u00e0o_d\u00f9ng_node_Switch?\">Khi n\u00e0o d\u00f9ng node If, khi n\u00e0o d\u00f9ng node Switch?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">D\u00f9ng If khi c\u00e2u h\u1ecfi ch\u1ec9 c\u00f3 hai \u0111\u00e1p \u00e1n (\u0111\u00fang\/sai, c\u00f3\/kh\u00f4ng). D\u00f9ng Switch khi m\u1ed9t tr\u01b0\u1eddng c\u00f3 t\u1eeb ba gi\u00e1 tr\u1ecb tr\u1edf l\u00ean c\u1ea7n x\u1eed l\u00fd kh\u00e1c nhau, thay cho chu\u1ed7i node If n\u1ed1i ti\u1ebfp kh\u00f3 \u0111\u1ecdc.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>T\u00ecnh hu\u1ed1ng<\/th><th>Node n\u00ean d\u00f9ng<\/th><th>L\u00fd do<\/th><\/tr><\/thead><tbody><tr><td>Email c\u00f3 ch\u1ee9a t\u1eeb &#8220;kh\u1ea9n c\u1ea5p&#8221; kh\u00f4ng<\/td><td>If<\/td><td>Ch\u1ec9 hai nh\u00e1nh<\/td><\/tr><tr><td>Kh\u00e1ch \u0111\u00e3 \u0111\u0103ng k\u00fd d\u1ecbch v\u1ee5 ch\u01b0a<\/td><td>If<\/td><td>C\u00f3\/kh\u00f4ng<\/td><\/tr><tr><td>Gi\u00e1 \u0111\u01a1n h\u00e0ng tr\u00ean 1 tri\u1ec7u \u0111\u1ed3ng<\/td><td>If<\/td><td>So s\u00e1nh s\u1ed1, hai nh\u00e1nh<\/td><\/tr><tr><td>Ph\u01b0\u01a1ng th\u1ee9c thanh to\u00e1n: th\u1ebb, chuy\u1ec3n kho\u1ea3n, COD<\/td><td>Switch<\/td><td>Nhi\u1ec1u gi\u00e1 tr\u1ecb c\u1ee7a m\u1ed9t tr\u01b0\u1eddng<\/td><\/tr><tr><td>Webhook c\u00f3 tr\u01b0\u1eddng eventType: signup, purchase, unsubscribe<\/td><td>Switch<\/td><td>M\u1ed7i s\u1ef1 ki\u1ec7n m\u1ed9t nh\u00e1nh, c\u00f3 Fallback cho s\u1ef1 ki\u1ec7n l\u1ea1<\/td><\/tr><tr><td>\u0110ang n\u1ed1i 3 node If ki\u1ec3m c\u00f9ng m\u1ed9t tr\u01b0\u1eddng<\/td><td>Switch<\/td><td>G\u1ecdn, d\u1ec5 b\u1ea3o tr\u00ec h\u01a1n<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Chi ti\u1ebft h\u01a1n:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Node If:<\/strong> ki\u1ec3m tra \u0111i\u1ec1u ki\u1ec7n \u0111\u01a1n gi\u1ea3n, x\u1eed l\u00fd c\u00f3\/kh\u00f4ng, l\u1ecdc d\u1eef li\u1ec7u c\u01a1 b\u1ea3n theo ng\u01b0\u1ee1ng s\u1ed1, quy tr\u00ecnh ch\u1ec9 c\u1ea7n hai h\u01b0\u1edbng.<\/li>\n\n\n<li><strong>Node Switch:<\/strong> ph\u00e2n lo\u1ea1i theo nhi\u1ec1u gi\u00e1 tr\u1ecb c\u1ee5 th\u1ec3, ch\u1ecdn h\u00e0nh \u0111\u1ed9ng theo lo\u1ea1i s\u1ef1 ki\u1ec7n, \u0111\u1ecbnh tuy\u1ebfn workflow theo nhi\u1ec1u \u0111i\u1ec1u ki\u1ec7n r\u00f5 r\u00e0ng.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"C\u00e1ch_s\u1eed_d\u1ee5ng_node_If_trong_n8n_(v\u00ed_d\u1ee5)\">C\u00e1ch s\u1eed d\u1ee5ng node If trong n8n (v\u00ed d\u1ee5)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">V\u00ed d\u1ee5: ki\u1ec3m tra ng\u01b0\u1eddi \u0111\u0103ng k\u00fd d\u00f9ng email thu\u1ed9c t\u00ean mi\u1ec1n c\u00f4ng ty <code>@example.com<\/code> hay kh\u00f4ng. C\u00f3 th\u00ec g\u1eedi email ch\u00e0o m\u1eebng nh\u00e2n vi\u00ean n\u1ed9i b\u1ed9; kh\u00f4ng th\u00ec g\u1eedi email ch\u00e0o m\u1eebng kh\u00e1ch b\u00ean ngo\u00e0i. \u1ea2nh ch\u1ee5p l\u00e0m tr\u00ean n8n b\u1ea3n 1.x: n\u00fat Test step, Test workflow trong \u1ea3nh nay l\u00e0 Execute step, Execute workflow; c\u00f4ng t\u1eafc Inactive nay l\u00e0 n\u00fat Publish.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 1:<\/strong> M\u1edf n8n, b\u1ea5m <strong>Create Workflow<\/strong> \u0111\u1ec3 t\u1ea1o workflow m\u1edbi.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 2:<\/strong> B\u1ea5m <strong>+<\/strong> tr\u00ean canvas, t\u00ecm <strong>Manual Trigger<\/strong> v\u00e0 ch\u1ecdn l\u00e0m \u0111i\u1ec3m b\u1eaft \u0111\u1ea7u.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1266\" height=\"711\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-5.png\" alt=\"B\u1ea3ng What triggers this workflow trong n8n, t\u00ecm manual v\u00e0 ch\u1ecdn Manual Trigger l\u00e0m \u0111i\u1ec3m b\u1eaft \u0111\u1ea7u\" class=\"wp-image-105580\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-5.png 1266w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-5-300x168.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-5-1024x575.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-5-768x431.png 768w\" sizes=\"(max-width: 1266px) 100vw, 1266px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 3:<\/strong> Th\u00eam node <strong>Edit Fields (Set)<\/strong> sau Manual Trigger \u0111\u1ec3 t\u1ea1o d\u1eef li\u1ec7u m\u1eabu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1470\" height=\"804\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-6.png\" alt=\"T\u00ecm Set trong \u00f4 What happens next c\u1ee7a n8n v\u00e0 ch\u1ecdn node Edit Fields (Set) sau Manual Trigger\" class=\"wp-image-105581\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-6.png 1470w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-6-300x164.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-6-1024x560.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-6-768x420.png 768w\" sizes=\"(max-width: 1470px) 100vw, 1470px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">C\u1ea5u h\u00ecnh node Edit Fields:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mode: <strong>Manual Mapping<\/strong>, b\u1ea5m <strong>Add Field<\/strong>.<\/li>\n\n\n<li>Name: <code>email<\/code>, ki\u1ec3u String.<\/li>\n\n\n<li>Value: <code>nhanvien@example.com<\/code>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1518\" height=\"816\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-01.webp\" alt=\"Node Edit Fields trong n8n \u1edf ch\u1ebf \u0111\u1ed9 Manual Mapping, tr\u01b0\u1eddng email ki\u1ec3u String c\u00f3 gi\u00e1 tr\u1ecb nhanvien@example.com\" class=\"wp-image-131669\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-01.webp 1518w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-01-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-01-1024x550.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-01-768x413.webp 768w\" sizes=\"(max-width: 1518px) 100vw, 1518px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 4:<\/strong> Th\u00eam node <strong>If<\/strong> sau Edit Fields \u0111\u1ec3 ki\u1ec3m t\u00ean mi\u1ec1n email.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1466\" height=\"765\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-8.png\" alt=\"T\u00ecm If trong \u00f4 What happens next c\u1ee7a n8n, node If chia item th\u00e0nh nh\u00e1nh true, false\" class=\"wp-image-105583\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-8.png 1466w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-8-300x157.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-8-1024x534.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-8-768x401.png 768w\" sizes=\"(max-width: 1466px) 100vw, 1466px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Trong m\u1ee5c <strong>Conditions<\/strong> c\u1ee7a node If:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u00d4 b\u00ean tr\u00e1i (gi\u00e1 tr\u1ecb c\u1ea7n ki\u1ec3m): <code>{{ $json.email }}<\/code> (c\u00e1ch vi\u1ebft c\u0169 <code>{{$json[\"email\"]}}<\/code> trong \u1ea3nh v\u1eabn ch\u1ea1y).<\/li>\n\n\n<li>To\u00e1n t\u1eed: <strong>String<\/strong> \u2192 <strong>ends with<\/strong>.<\/li>\n\n\n<li>\u00d4 b\u00ean ph\u1ea3i: <code>@example.com<\/code>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1447\" height=\"816\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-02.webp\" alt=\"M\u1ee5c Conditions c\u1ee7a node If trong n8n: gi\u00e1 tr\u1ecb tr\u00e1i {{$json[&quot;email&quot;]}}, to\u00e1n t\u1eed String ends with, gi\u00e1 tr\u1ecb ph\u1ea3i @example.com\" class=\"wp-image-131670\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-02.webp 1447w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-02-300x169.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-02-1024x577.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-02-768x433.webp 768w\" sizes=\"(max-width: 1447px) 100vw, 1447px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nh\u01b0 v\u1eady, email k\u1ebft th\u00fac b\u1eb1ng @example.com \u0111i v\u00e0o nh\u00e1nh true; email kh\u00e1c \u0111i v\u00e0o nh\u00e1nh false. C\u1ea7n th\u00eam \u0111i\u1ec1u ki\u1ec7n (v\u00ed d\u1ee5 email kh\u00f4ng r\u1ed7ng), b\u1ea5m <strong>Add condition<\/strong> v\u00e0 ch\u1ecdn AND ho\u1eb7c OR.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 5:<\/strong> Th\u00eam node <strong>Gmail \u2192 Send a message<\/strong> v\u00e0o nh\u00e1nh <strong>true<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To: <code>{{ $json.email }}<\/code><\/li>\n\n\n<li>Subject: Ch\u00e0o m\u1eebng b\u1ea1n \u0111\u1ebfn v\u1edbi c\u00f4ng ty!<\/li>\n\n\n<li>Message: Ch\u00fang t\u00f4i r\u1ea5t vui m\u1eebng ch\u00e0o \u0111\u00f3n b\u1ea1n l\u00e0 th\u00e0nh vi\u00ean m\u1edbi c\u1ee7a c\u00f4ng ty.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1533\" height=\"877\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-10.png\" alt=\"Node Gmail tr\u00ean nh\u00e1nh true trong n8n: Resource Message, Operation Send, To l\u00e0 expression email, Subject Ch\u00e0o m\u1eebng b\u1ea1n \u0111\u1ebfn v\u1edbi c\u00f4ng ty\" class=\"wp-image-105585\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-10.png 1533w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-10-300x172.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-10-1024x586.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-10-768x439.png 768w\" sizes=\"(max-width: 1533px) 100vw, 1533px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 6:<\/strong> Th\u00eam node <strong>Gmail \u2192 Send a message<\/strong> v\u00e0o nh\u00e1nh <strong>false<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To: <code>{{ $json.email }}<\/code><\/li>\n\n\n<li>Subject: Ch\u00e0o m\u1eebng b\u1ea1n \u0111\u1ebfn v\u1edbi d\u1ecbch v\u1ee5 c\u1ee7a ch\u00fang t\u00f4i!<\/li>\n\n\n<li>Message: C\u1ea3m \u01a1n b\u1ea1n \u0111\u00e3 \u0111\u0103ng k\u00fd. Ch\u00fang t\u00f4i r\u1ea5t mong \u0111\u01b0\u1ee3c ph\u1ee5c v\u1ee5 b\u1ea1n.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1498\" height=\"883\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-11.png\" alt=\"Node Gmail1 tr\u00ean nh\u00e1nh false trong n8n v\u1edbi Subject Ch\u00e0o m\u1eebng b\u1ea1n \u0111\u1ebfn v\u1edbi d\u1ecbch v\u1ee5 c\u1ee7a ch\u00fang t\u00f4i v\u00e0 n\u1ed9i dung c\u1ea3m \u01a1n \u0111\u00e3 \u0111\u0103ng k\u00fd\" class=\"wp-image-105586\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-11.png 1498w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-11-300x177.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-11-1024x604.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-11-768x453.png 768w\" sizes=\"(max-width: 1498px) 100vw, 1498px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 7:<\/strong> B\u1ea5m <strong>Execute workflow<\/strong> \u0111\u1ec3 ch\u1ea1y th\u1eed. Khi th\u1eed th\u1eadt, thay email m\u1eabu \u1edf Edit Fields b\u1eb1ng h\u1ed9p th\u01b0 b\u1ea1n nh\u1eadn \u0111\u01b0\u1ee3c.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1650\" height=\"899\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-12.png\" alt=\"Workflow If trong n8n ch\u1ea1y th\u00e0nh c\u00f4ng: Manual Trigger, Edit Fields, If v\u00e0 Gmail tr\u00ean nh\u00e1nh true c\u00f3 d\u1ea5u t\u00edch xanh, th\u00f4ng b\u00e1o Workflow executed successfully\" class=\"wp-image-105587\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-12.png 1650w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-12-300x163.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-12-1024x558.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-12-768x418.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-12-1536x837.png 1536w\" sizes=\"(max-width: 1650px) 100vw, 1650px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m h\u1ed9p th\u01b0: email \u0111i \u0111\u00fang nh\u00e1nh \u0111\u00e3 thi\u1ebft l\u1eadp.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1048\" height=\"600\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-03.webp\" alt=\"Email Ch\u00e0o m\u1eebng b\u1ea1n \u0111\u1ebfn v\u1edbi c\u00f4ng ty do n8n g\u1eedi qua nh\u00e1nh true, \u0111\u1ecba ch\u1ec9 ng\u01b0\u1eddi g\u1eedi v\u00e0 \u1ea3nh \u0111\u1ea1i di\u1ec7n \u0111\u00e3 \u0111\u01b0\u1ee3c che\" class=\"wp-image-131671\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-03.webp 1048w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-03-300x172.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-03-1024x586.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-03-768x440.webp 768w\" sizes=\"(max-width: 1048px) 100vw, 1048px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u1ed5i gi\u00e1 tr\u1ecb email trong Edit Fields sang m\u1ed9t \u0111\u1ecba ch\u1ec9 kh\u00e1c t\u00ean mi\u1ec1n (v\u00ed d\u1ee5 <code>khach@example.net<\/code>), ch\u1ea1y l\u1ea1i \u0111\u1ec3 ki\u1ec3m nh\u00e1nh false.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1240\" height=\"676\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-14.png\" alt=\"Workflow If trong n8n ch\u1ea1y l\u1ea1i, l\u1ea7n n\u00e0y item \u0111i nh\u00e1nh false t\u1edbi node Gmail1\" class=\"wp-image-105589\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-14.png 1240w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-14-300x164.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-14-1024x558.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-14-768x419.png 768w\" sizes=\"(max-width: 1240px) 100vw, 1240px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"962\" height=\"534\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-04.webp\" alt=\"Email Ch\u00e0o m\u1eebng b\u1ea1n \u0111\u1ebfn v\u1edbi d\u1ecbch v\u1ee5 c\u1ee7a ch\u00fang t\u00f4i g\u1eedi qua nh\u00e1nh false, \u0111\u1ecba ch\u1ec9 ng\u01b0\u1eddi g\u1eedi v\u00e0 \u1ea3nh \u0111\u1ea1i di\u1ec7n \u0111\u00e3 \u0111\u01b0\u1ee3c che\" class=\"wp-image-131672\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-04.webp 962w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-04-300x167.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-04-768x426.webp 768w\" sizes=\"(max-width: 962px) 100vw, 962px\" \/><\/figure>\n\n\n\n<h2 id=\"C\u00e1ch_s\u1eed_d\u1ee5ng_node_Switch_trong_n8n_(v\u00ed_d\u1ee5)\">C\u00e1ch s\u1eed d\u1ee5ng node Switch trong n8n (v\u00ed d\u1ee5)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">V\u00ed d\u1ee5: danh s\u00e1ch ng\u01b0\u1eddi d\u00f9ng c\u00f3 thu\u1ed9c t\u00ednh <code>role<\/code>, c\u1ea7n g\u1eedi th\u00f4ng b\u00e1o kh\u00e1c nhau cho t\u1eebng nh\u00f3m: admin nh\u1eadn th\u00f4ng b\u00e1o qu\u1ea3n tr\u1ecb, editor nh\u1eadn th\u00f4ng b\u00e1o ch\u1ec9nh s\u1eeda, viewer nh\u1eadn th\u00f4ng b\u00e1o xem.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 1:<\/strong> B\u1ea5m <strong>Create Workflow<\/strong> \u0111\u1ec3 t\u1ea1o workflow m\u1edbi.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 2:<\/strong> B\u1ea5m <strong>+<\/strong>, ch\u1ecdn <strong>Manual Trigger<\/strong> l\u00e0m \u0111i\u1ec3m b\u1eaft \u0111\u1ea7u.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 3:<\/strong> Th\u00eam node <strong>Edit Fields (Set)<\/strong> \u0111\u1ec3 t\u1ea1o d\u1eef li\u1ec7u m\u1eabu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"977\" height=\"574\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-16.png\" alt=\"Workflow Switch trong n8n b\u1eaft \u0111\u1ea7u b\u1eb1ng Manual Trigger n\u1ed1i t\u1edbi node Edit Fields\" class=\"wp-image-105591\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-16.png 977w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-16-300x176.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-16-768x451.png 768w\" sizes=\"(max-width: 977px) 100vw, 977px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">C\u1ea5u h\u00ecnh: Mode <strong>Manual Mapping<\/strong>, th\u00eam tr\u01b0\u1eddng Name <code>role<\/code>, Value <code>editor<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1459\" height=\"799\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-17.png\" alt=\"Node Edit Fields trong n8n \u1edf ch\u1ebf \u0111\u1ed9 Manual Mapping, tr\u01b0\u1eddng role ki\u1ec3u String c\u00f3 gi\u00e1 tr\u1ecb editor\" class=\"wp-image-105592\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-17.png 1459w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-17-300x164.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-17-1024x561.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-17-768x421.png 768w\" sizes=\"(max-width: 1459px) 100vw, 1459px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 4:<\/strong> Th\u00eam node <strong>Switch<\/strong> sau Edit Fields. Ch\u1ecdn Mode <strong>Rules<\/strong>, m\u1ed7i Routing Rule l\u00e0 m\u1ed9t \u0111i\u1ec1u ki\u1ec7n:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Rule 1: <code>{{ $json.role }}<\/code> \u00b7 String is equal to \u00b7 <code>admin<\/code><\/li>\n\n\n<li>Rule 2 (b\u1ea5m Add Routing Rule): <code>{{ $json.role }}<\/code> \u00b7 is equal to \u00b7 <code>editor<\/code><\/li>\n\n\n<li>Rule 3: <code>{{ $json.role }}<\/code> \u00b7 is equal to \u00b7 <code>viewer<\/code><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1569\" height=\"872\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-18.png\" alt=\"Node Switch trong n8n \u1edf Mode Rules v\u1edbi ba Routing Rules: role is equal to admin, editor, viewer\" class=\"wp-image-105593\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-18.png 1569w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-18-300x167.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-18-1024x569.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-18-768x427.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-18-1536x854.png 1536w\" sizes=\"(max-width: 1569px) 100vw, 1569px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">C\u00e1c t\u00f9y ch\u1ecdn trong Options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Fallback Output:<\/strong> ch\u1ecdn <em>Extra Output<\/em> \u0111\u1ec3 item kh\u00f4ng kh\u1edbp quy t\u1eafc n\u00e0o (v\u00ed d\u1ee5 role &#8220;guest&#8221;) \u0111i v\u00e0o nh\u00e1nh ri\u00eang; m\u1eb7c \u0111\u1ecbnh l\u00e0 None (b\u1ecf qua item).<\/li>\n\n\n<li><strong>Ignore Case:<\/strong> kh\u00f4ng ph\u00e2n bi\u1ec7t ch\u1eef hoa, ch\u1eef th\u01b0\u1eddng khi so.<\/li>\n\n\n<li><strong>Less Strict Type Validation:<\/strong> cho n8n t\u1ef1 \u0111\u1ed5i ki\u1ec3u d\u1eef li\u1ec7u (s\u1ed1, chu\u1ed7i) khi so s\u00e1nh; t\u00ean c\u0169 trong \u1ea3nh l\u00e0 Convert types where required.<\/li>\n\n\n<li><strong>Send data to all matching outputs:<\/strong> g\u1eedi item v\u00e0o m\u1ecdi nh\u00e1nh kh\u1edbp, thay v\u00ec ch\u1ec9 nh\u00e1nh kh\u1edbp \u0111\u1ea7u ti\u00ean.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c chuy\u1ec3n h\u01b0\u1edbng: Output 0 khi role = admin, Output 1 khi role = editor, Output 2 khi role = viewer, v\u00e0 nh\u00e1nh Fallback n\u1ebfu b\u1ea1n b\u1eadt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 5:<\/strong> N\u1ed1i m\u1ed7i nh\u00e1nh t\u1edbi m\u1ed9t node <strong>Gmail \u2192 Send a message<\/strong> v\u1edbi n\u1ed9i dung ri\u00eang cho admin, editor, viewer. V\u00ed d\u1ee5 v\u1edbi role editor:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"504\" height=\"850\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/AD_4nXcHC4iz3VSLiOQu7QBR3q10CVfc40fKNwRIxRQXhINOGFg4OhGSrN2QcmhHDx6m1sgKBxoDx2Oz6v9WUMvgzyiJztmPfYxv-XwAktkyKkevN-2cPFdC013co_LzauXdw6GJOE46Uwkey6OcID-hSNcVKIsG7ikCJxA.png\" alt=\"Node Gmail1 cho nh\u00e1nh editor c\u1ee7a Switch trong n8n: ch\u1ecdn credential, Resource Message, Operation Send\" class=\"wp-image-116739\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/AD_4nXcHC4iz3VSLiOQu7QBR3q10CVfc40fKNwRIxRQXhINOGFg4OhGSrN2QcmhHDx6m1sgKBxoDx2Oz6v9WUMvgzyiJztmPfYxv-XwAktkyKkevN-2cPFdC013co_LzauXdw6GJOE46Uwkey6OcID-hSNcVKIsG7ikCJxA.png 504w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/AD_4nXcHC4iz3VSLiOQu7QBR3q10CVfc40fKNwRIxRQXhINOGFg4OhGSrN2QcmhHDx6m1sgKBxoDx2Oz6v9WUMvgzyiJztmPfYxv-XwAktkyKkevN-2cPFdC013co_LzauXdw6GJOE46Uwkey6OcID-hSNcVKIsG7ikCJxA-178x300.png 178w\" sizes=\"(max-width: 504px) 100vw, 504px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Thi\u1ebft l\u1eadp Gmail t\u01b0\u01a1ng t\u1ef1 cho c\u00e1c role c\u00f2n l\u1ea1i.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 6:<\/strong> B\u1ea5m <strong>Execute workflow<\/strong> \u0111\u1ec3 ch\u1ea1y th\u1eed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1510\" height=\"795\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-20.png\" alt=\"Workflow Switch trong n8n ch\u1ea1y th\u00e0nh c\u00f4ng, item role editor \u0111i v\u00e0o nh\u00e1nh Output 1 t\u1edbi node Gmail1\" class=\"wp-image-105595\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-20.png 1510w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-20-300x158.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-20-1024x539.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105575-20-768x404.png 768w\" sizes=\"(max-width: 1510px) 100vw, 1510px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m h\u1ed9p th\u01b0: email g\u1eedi \u0111\u00fang theo role \u0111\u00e3 \u0111\u1eb7t.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"896\" height=\"494\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-05.webp\" alt=\"Email Th\u00f4ng b\u00e1o d\u00e0nh cho Bi\u00ean t\u1eadp vi\u00ean do n8n g\u1eedi qua nh\u00e1nh editor, \u0111\u1ecba ch\u1ec9 ng\u01b0\u1eddi g\u1eedi v\u00e0 \u1ea3nh \u0111\u1ea1i di\u1ec7n \u0111\u00e3 \u0111\u01b0\u1ee3c che\" class=\"wp-image-131673\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-05.webp 896w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-05-300x165.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-su-dung-node-if-va-node-switch-trong-n8n-sua-05-768x423.webp 768w\" sizes=\"(max-width: 896px) 100vw, 896px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u1ed5i gi\u00e1 tr\u1ecb role trong Edit Fields (admin, viewer, ho\u1eb7c m\u1ed9t gi\u00e1 tr\u1ecb l\u1ea1 \u0111\u1ec3 th\u1eed Fallback) r\u1ed3i ch\u1ea1y l\u1ea1i \u0111\u1ec3 ki\u1ec3m t\u1eebng nh\u00e1nh.<\/p>\n\n\n\n<h3 id=\"K\u1ebft_lu\u1eadn\">K\u1ebft lu\u1eadn<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If v\u00e0 Switch l\u00e0 hai node r\u1ebd nh\u00e1nh c\u01a1 b\u1ea3n nh\u1ea5t trong n8n: If cho hai h\u01b0\u1edbng, Switch cho nhi\u1ec1u h\u01b0\u1edbng c\u00f3 Fallback. K\u1ebft h\u1ee3p ch\u00fang v\u1edbi <a href=\"https:\/\/tino.vn\/blog\/node-webhook-trong-n8n\/\">node Webhook<\/a> \u0111\u1ec3 x\u1eed l\u00fd d\u1eef li\u1ec7u t\u1eeb form hay h\u1ec7 th\u1ed1ng kh\u00e1c theo t\u1eebng tr\u01b0\u1eddng h\u1ee3p; danh s\u00e1ch c\u00e1c node hay d\u00f9ng kh\u00e1c c\u00f3 \u1edf b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/cac-node-duoc-su-dung-pho-bien-trong-n8n\/\">c\u00e1c node ph\u1ed5 bi\u1ebfn trong n8n<\/a>.<\/p>\n\n\n\n<h2 id=\"Nh\u1eefng_c\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\">Nh\u1eefng c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/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=\"Node_If_c\u00f3_h\u1ed7_tr\u1ee3_nhi\u1ec1u_\u0111i\u1ec1u_ki\u1ec7n_c\u00f9ng_l\u00fac_kh\u00f4ng?\">Node If c\u00f3 h\u1ed7 tr\u1ee3 nhi\u1ec1u \u0111i\u1ec1u ki\u1ec7n c\u00f9ng l\u00fac 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. B\u1ea5m Add condition \u0111\u1ec3 th\u00eam \u0111i\u1ec1u ki\u1ec7n, r\u1ed3i ch\u1ecdn AND (th\u1ecfa t\u1ea5t c\u1ea3) ho\u1eb7c OR (th\u1ecfa m\u1ed9t trong s\u1ed1 \u0111\u00f3) \u1edf \u00f4 n\u1eb1m gi\u1eefa c\u00e1c \u0111i\u1ec1u ki\u1ec7n.<\/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=\"Node_If_tr\u1ea3_v\u1ec1_d\u1eef_li\u1ec7u_g\u00ec_\u1edf_nh\u00e1nh_true_ho\u1eb7c_false?\">Node If tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u g\u00ec \u1edf nh\u00e1nh true ho\u1eb7c false?<\/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 If kh\u00f4ng \u0111\u1ed5i d\u1eef li\u1ec7u: item th\u1ecfa \u0111i\u1ec1u ki\u1ec7n \u0111i ra nh\u00e1nh true nguy\u00ean v\u1eb9n, item kh\u00f4ng th\u1ecfa \u0111i ra nh\u00e1nh false. Nh\u00e1nh n\u00e0o kh\u00f4ng c\u00f3 item th\u00ec c\u00e1c node ph\u00eda sau nh\u00e1nh \u0111\u00f3 kh\u00f4ng ch\u1ea1y.<\/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_gi\u1edbi_h\u1ea1n_s\u1ed1_l\u01b0\u1ee3ng_nh\u00e1nh_trong_node_Switch_kh\u00f4ng?\">C\u00f3 gi\u1edbi h\u1ea1n s\u1ed1 l\u01b0\u1ee3ng nh\u00e1nh trong node Switch 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\">Kh\u00f4ng c\u00f3 gi\u1edbi h\u1ea1n c\u1ed1 \u0111\u1ecbnh. N\u00ean gi\u1eef s\u1ed1 nh\u00e1nh v\u1eeba ph\u1ea3i \u0111\u1ec3 workflow d\u1ec5 \u0111\u1ecdc; n\u1ebfu qu\u00e1 nhi\u1ec1u, c\u00e2n nh\u1eafc t\u00e1ch b\u1edbt sang sub-workflow ho\u1eb7c d\u00f9ng Mode Expression tr\u1ea3 v\u1ec1 s\u1ed1 th\u1ee9 t\u1ef1 nh\u00e1nh.<\/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=\"Switch_c\u00f3_th\u1ec3_d\u00f9ng_\u0111\u1ec3_thay_th\u1ebf_If_kh\u00f4ng?\">Switch c\u00f3 th\u1ec3 d\u00f9ng \u0111\u1ec3 thay th\u1ebf If 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 th\u1ec3, Switch v\u1edbi hai quy t\u1eafc t\u01b0\u01a1ng \u0111\u01b0\u01a1ng m\u1ed9t node If. Tuy v\u1eady, v\u1edbi c\u00e2u h\u1ecfi c\u00f3\/kh\u00f4ng, If g\u1ecdn v\u00e0 d\u1ec5 \u0111\u1ecdc h\u01a1n.<\/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=\"Switch_c\u00f3_h\u1ed7_tr\u1ee3_nh\u00e1nh_m\u1eb7c_\u0111\u1ecbnh_(default)_khi_kh\u00f4ng_kh\u1edbp_gi\u00e1_tr\u1ecb_n\u00e0o_kh\u00f4ng?\">Switch c\u00f3 h\u1ed7 tr\u1ee3 nh\u00e1nh m\u1eb7c \u0111\u1ecbnh (default) khi kh\u00f4ng kh\u1edbp gi\u00e1 tr\u1ecb n\u00e0o 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. M\u1edf Options, b\u1eadt Fallback Output v\u00e0 ch\u1ecdn Extra Output \u0111\u1ec3 item kh\u00f4ng kh\u1edbp \u0111i v\u00e0o m\u1ed9t nh\u00e1nh ri\u00eang, ho\u1eb7c ch\u1ecdn Output 0 \u0111\u1ec3 g\u1ed9p v\u00e0o nh\u00e1nh c\u1ee7a quy t\u1eafc \u0111\u1ea7u ti\u00ean.<\/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\": \"Node If c\u00f3 h\u1ed7 tr\u1ee3 nhi\u1ec1u \u0111i\u1ec1u ki\u1ec7n c\u00f9ng l\u00fac 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. B\u1ea5m Add condition \u0111\u1ec3 th\u00eam \u0111i\u1ec1u ki\u1ec7n, r\u1ed3i ch\u1ecdn AND (th\u1ecfa t\u1ea5t c\u1ea3) ho\u1eb7c OR (th\u1ecfa m\u1ed9t trong s\u1ed1 \u0111\u00f3) \u1edf \u00f4 n\u1eb1m gi\u1eefa c\u00e1c \u0111i\u1ec1u ki\u1ec7n.<\/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\": \"Node If tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u g\u00ec \u1edf nh\u00e1nh true ho\u1eb7c false?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Node If kh\u00f4ng \u0111\u1ed5i d\u1eef li\u1ec7u: item th\u1ecfa \u0111i\u1ec1u ki\u1ec7n \u0111i ra nh\u00e1nh true nguy\u00ean v\u1eb9n, item kh\u00f4ng th\u1ecfa \u0111i ra nh\u00e1nh false. Nh\u00e1nh n\u00e0o kh\u00f4ng c\u00f3 item th\u00ec c\u00e1c node ph\u00eda sau nh\u00e1nh \u0111\u00f3 kh\u00f4ng ch\u1ea1y.<\/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 gi\u1edbi h\u1ea1n s\u1ed1 l\u01b0\u1ee3ng nh\u00e1nh trong node Switch kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Kh\u00f4ng c\u00f3 gi\u1edbi h\u1ea1n c\u1ed1 \u0111\u1ecbnh. N\u00ean gi\u1eef s\u1ed1 nh\u00e1nh v\u1eeba ph\u1ea3i \u0111\u1ec3 workflow d\u1ec5 \u0111\u1ecdc; n\u1ebfu qu\u00e1 nhi\u1ec1u, c\u00e2n nh\u1eafc t\u00e1ch b\u1edbt sang sub-workflow ho\u1eb7c d\u00f9ng Mode Expression tr\u1ea3 v\u1ec1 s\u1ed1 th\u1ee9 t\u1ef1 nh\u00e1nh.<\/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\": \"Switch c\u00f3 th\u1ec3 d\u00f9ng \u0111\u1ec3 thay th\u1ebf If 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 th\u1ec3, Switch v\u1edbi hai quy t\u1eafc t\u01b0\u01a1ng \u0111\u01b0\u01a1ng m\u1ed9t node If. Tuy v\u1eady, v\u1edbi c\u00e2u h\u1ecfi c\u00f3\/kh\u00f4ng, If g\u1ecdn v\u00e0 d\u1ec5 \u0111\u1ecdc h\u01a1n.<\/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\": \"Switch c\u00f3 h\u1ed7 tr\u1ee3 nh\u00e1nh m\u1eb7c \u0111\u1ecbnh (default) khi kh\u00f4ng kh\u1edbp gi\u00e1 tr\u1ecb n\u00e0o 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. M\u1edf Options, b\u1eadt Fallback Output v\u00e0 ch\u1ecdn Extra Output \u0111\u1ec3 item kh\u00f4ng kh\u1edbp \u0111i v\u00e0o m\u1ed9t nh\u00e1nh ri\u00eang, ho\u1eb7c ch\u1ecdn Output 0 \u0111\u1ec3 g\u1ed9p v\u00e0o nh\u00e1nh c\u1ee7a quy t\u1eafc \u0111\u1ea7u ti\u00ean.<\/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\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","protected":false},"excerpt":{"rendered":"<p>Node If ki\u1ec3m tra m\u1ed9t ho\u1eb7c nhi\u1ec1u \u0111i\u1ec1u ki\u1ec7n v\u00e0 \u0111\u01b0a m\u1ed7i item v\u00e0o nh\u00e1nh true ho\u1eb7c false. Node Switch so m\u1ed9t gi\u00e1 tr\u1ecb v\u1edbi nhi\u1ec1u quy t\u1eafc v\u00e0 \u0111\u01b0a item v\u00e0o \u0111\u00fang nh\u00e1nh, c\u00f3 th\u00eam nh\u00e1nh Fallback khi kh\u00f4ng kh\u1edbp quy t\u1eafc n\u00e0o. D\u00f9ng If cho c\u00e2u h\u1ecfi c\u00f3\/kh\u00f4ng, d\u00f9ng Switch khi c\u00f3 t\u1eeb [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":105576,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7397],"tags":[7343],"class_list":["post-105575","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\/105575","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=105575"}],"version-history":[{"count":6,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/105575\/revisions"}],"predecessor-version":[{"id":131701,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/105575\/revisions\/131701"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/105576"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=105575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=105575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=105575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}