{"id":105143,"date":"2025-05-08T11:05:12","date_gmt":"2025-05-08T04:05:12","guid":{"rendered":"https:\/\/wiki.tino.org\/?p=105143"},"modified":"2025-11-20T16:20:42","modified_gmt":"2025-11-20T09:20:42","slug":"node-webhook-trong-n8n","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/node-webhook-trong-n8n\/","title":{"rendered":"Ch\u1ee9c n\u0103ng ch\u00ednh c\u1ee7a node Webhook trong n8n l\u00e0 g\u00ec? H\u01b0\u1edbng d\u1eabn c\u00e1ch s\u1eed d\u1ee5ng A-Z"},"content":{"rendered":"\n<p><strong>\u0110\u1ed1i v\u1edbi c\u00e1c workflow n8n l\u1edbn, vi\u1ec7c truy\u1ec1n d\u1eef li\u1ec7u theo th\u1eddi gian th\u1ef1c gi\u1eefa c\u00e1c h\u1ec7 th\u1ed1ng l\u00e0 m\u1ed9t nhu c\u1ea7u thi\u1ebft y\u1ebfu. Webhook l\u00e0 m\u1ed9t trong nh\u1eefng gi\u1ea3i ph\u00e1p ph\u1ed5 bi\u1ebfn nh\u1ea5t \u0111\u1ec3 gi\u1ea3i quy\u1ebft v\u1ea5n \u0111\u1ec1 \u0111\u00f3. V\u1eady Webhook l\u00e0 g\u00ec? C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n nh\u01b0 th\u1ebf n\u00e0o? H\u00e3y c\u00f9ng t\u00ecm hi\u1ec3u chi ti\u1ebft trong b\u00e0i vi\u1ebft d\u01b0\u1edbi \u0111\u00e2y nh\u00e9!<\/strong><\/p>\n\n\n\n<h2 id=\"T\u1ed5ng_quan_v\u1ec1_webhook_trong_n8n\"><a id=\"post-105143-_dgcpgei6qkwb\"><\/a>T\u1ed5ng quan v\u1ec1 webhook trong n8n<\/h2>\n\n\n\n<h3 id=\"Webhook_l\u00e0_g\u00ec?\"><a id=\"post-105143-_6ojisjgeg45a\"><\/a><strong>Webhook l\u00e0 g\u00ec?<\/strong><\/h3>\n\n\n\n<p>Webhook trong <a href=\"https:\/\/tino.vn\/blog\/n8n-la-gi\/\" data-type=\"post\" data-id=\"104774\" target=\"_blank\" rel=\"noreferrer noopener\">n8n<\/a> l\u00e0 m\u1ed9t node \u0111\u1eb7c bi\u1ec7t d\u00f9ng \u0111\u1ec3 nh\u1eadn d\u1eef li\u1ec7u t\u1eeb b\u00ean ngo\u00e0i th\u00f4ng qua URL. Khi m\u1ed9t \u1ee9ng d\u1ee5ng ho\u1eb7c d\u1ecbch v\u1ee5 kh\u00e1c g\u1eedi d\u1eef li\u1ec7u \u0111\u1ebfn \u0111\u1ecba ch\u1ec9 n\u00e0y, node Webhook s\u1ebd t\u1ef1 \u0111\u1ed9ng k\u00edch ho\u1ea1t workflow v\u00e0 x\u1eed l\u00fd d\u1eef li\u1ec7u \u0111\u00f3 theo quy tr\u00ecnh b\u1ea1n \u0111\u00e3 thi\u1ebft l\u1eadp. N\u00f3i c\u00e1ch kh\u00e1c, Webhook gi\u1ed1ng nh\u01b0 m\u1ed9t \u201cc\u00e1nh c\u1ed5ng\u201d \u0111\u1ec3 n8n ti\u1ebfp nh\u1eadn th\u00f4ng tin theo th\u1eddi gian th\u1ef1c m\u00e0 kh\u00f4ng c\u1ea7n ki\u1ec3m tra th\u1ee7 c\u00f4ng li\u00ean t\u1ee5c, gi\u00fap ti\u1ebft ki\u1ec7m th\u1eddi gian v\u00e0 t\u0103ng hi\u1ec7u qu\u1ea3 t\u1ef1 \u0111\u1ed9ng h\u00f3a.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/cach-su-dung-node-webhook-trong-n8n-1.png\" alt=\"Webhook l\u00e0 g\u00ec?\" class=\"wp-image-105159\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/cach-su-dung-node-webhook-trong-n8n-1.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/cach-su-dung-node-webhook-trong-n8n-1-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Webhook l\u00e0 g\u00ec?<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"Webhook_ho\u1ea1t_\u0111\u1ed9ng_nh\u01b0_th\u1ebf_n\u00e0o_trong_n8n?\"><a id=\"post-105143-_4u6jn71187zc\"><\/a><strong>Webhook ho\u1ea1t \u0111\u1ed9ng nh\u01b0 th\u1ebf n\u00e0o trong n8n?<\/strong><\/h3>\n\n\n\n<p>Webhook ho\u1ea1t \u0111\u1ed9ng nh\u01b0 m\u1ed9t &#8220;ng\u01b0\u1eddi \u0111\u01b0a th\u01b0&#8221; si\u00eau nhanh, gi\u00fap n8n nh\u1eadn th\u00f4ng tin t\u1eeb c\u00e1c \u1ee9ng d\u1ee5ng kh\u00e1c ngay l\u1eadp t\u1ee9c. <\/p>\n\n\n\n<p>H\u00e3y t\u01b0\u1edfng t\u01b0\u1ee3ng b\u1ea1n c\u00f3 m\u1ed9t chi\u1ebfc h\u1ed9p th\u01b0 (Webhook) v\u1edbi m\u1ed9t \u0111\u1ecba ch\u1ec9 \u0111\u1eb7c bi\u1ec7t (URL). Khi m\u1ed9t \u1ee9ng d\u1ee5ng, v\u00ed d\u1ee5 nh\u01b0 m\u1ed9t form tr\u00ean website, mu\u1ed1n g\u1eedi d\u1eef li\u1ec7u (nh\u01b0 th\u00f4ng tin kh\u00e1ch h\u00e0ng v\u1eeba \u0111i\u1ec1n), n\u00f3 s\u1ebd &#8220;nh\u00e9t th\u01b0&#8221; v\u00e0o h\u1ed9p th\u01b0 n\u00e0y b\u1eb1ng c\u00e1ch g\u1eedi d\u1eef li\u1ec7u qua URL \u0111\u00f3.<\/p>\n\n\n\n<p>Trong n8n, b\u1ea1n t\u1ea1o m\u1ed9t node Webhook \u0111\u1ec3 thi\u1ebft l\u1eadp h\u1ed9p th\u01b0 n\u00e0y. Sau \u0111\u00f3, b\u1ea1n ch\u1ecdn c\u00e1ch h\u1ed9p th\u01b0 nh\u1eadn d\u1eef li\u1ec7u (v\u00ed d\u1ee5: qua ph\u01b0\u01a1ng th\u1ee9c POST ho\u1eb7c GET) v\u00e0 n8n s\u1ebd cung c\u1ea5p m\u1ed9t URL \u0111\u1ed9c nh\u1ea5t. Khi d\u1eef li\u1ec7u \u0111\u1ebfn, node Webhook s\u1ebd &#8220;m\u1edf th\u01b0&#8221; v\u00e0 k\u00edch ho\u1ea1t c\u00e1c node ti\u1ebfp theo trong workflow.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/cach-su-dung-node-webhook-trong-n8n-2.png\" alt=\"Webhook ho\u1ea1t \u0111\u1ed9ng nh\u01b0 th\u1ebf n\u00e0o trong n8n?\" class=\"wp-image-105160\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/cach-su-dung-node-webhook-trong-n8n-2.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/cach-su-dung-node-webhook-trong-n8n-2-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Webhook ho\u1ea1t \u0111\u1ed9ng nh\u01b0 th\u1ebf n\u00e0o trong n8n?<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 id=\"Ch\u1ee9c_n\u0103ng_ch\u00ednh_c\u1ee7a_node_Webhook_trong_n8n\">Ch\u1ee9c n\u0103ng ch\u00ednh c\u1ee7a node Webhook trong n8n<\/h2>\n\n\n\n<h3 id=\"K\u00edch_ho\u1ea1t_workflow_theo_th\u1eddi_gian_th\u1ef1c_(Real-time_Trigger)\"><strong>K\u00edch ho\u1ea1t workflow theo th\u1eddi gian th\u1ef1c (Real-time Trigger)<\/strong><\/h3>\n\n\n\n<p>Ch\u1ee9c n\u0103ng c\u01a1 b\u1ea3n nh\u1ea5t c\u1ee7a Webhook node l\u00e0 kh\u1edfi \u0111\u1ed9ng m\u1ed9t workflow ngay l\u1eadp t\u1ee9c khi c\u00f3 m\u1ed9t s\u1ef1 ki\u1ec7n x\u1ea3y ra \u1edf b\u00ean ngo\u00e0i. Thay v\u00ec n8n ph\u1ea3i li\u00ean t\u1ee5c &#8220;h\u1ecfi&#8221; \u1ee9ng d\u1ee5ng kh\u00e1c xem c\u00f3 d\u1eef li\u1ec7u m\u1edbi kh\u00f4ng, Webhook cho ph\u00e9p \u1ee9ng d\u1ee5ng kh\u00e1c ch\u1ee7 \u0111\u1ed9ng &#8220;b\u00e1o&#8221; cho n8n bi\u1ebft ngay khi c\u00f3 vi\u1ec7c c\u1ea7n l\u00e0m.<\/p>\n\n\n\n<p><strong>V\u00ed d\u1ee5:<\/strong> Ngay khi kh\u00e1ch h\u00e0ng thanh to\u00e1n th\u00e0nh c\u00f4ng tr\u00ean Stripe, Stripe s\u1ebd g\u1ecdi v\u00e0o Webhook c\u1ee7a n8n \u0111\u1ec3 k\u00edch ho\u1ea1t quy tr\u00ecnh g\u1eedi email c\u1ea3m \u01a1n.<\/p>\n\n\n\n<h3 id=\"Nh\u1eadn_v\u00e0_x\u1eed_l\u00fd_d\u1eef_li\u1ec7u_t\u1eeb_b\u00ean_ngo\u00e0i\"><strong>Nh\u1eadn v\u00e0 x\u1eed l\u00fd d\u1eef li\u1ec7u t\u1eeb b\u00ean ngo\u00e0i<\/strong><\/h3>\n\n\n\n<p>Webhook node kh\u00f4ng ch\u1ec9 b\u00e1o hi\u1ec7u workflow b\u1eaft \u0111\u1ea7u, m\u00e0  c\u00f2n \u0111\u00f3ng vai tr\u00f2 l\u00e0 ng\u01b0\u1eddi <strong>nh\u1eadn d\u1eef li\u1ec7u<\/strong> (data receiver). Node n\u00e0y c\u00f3 th\u1ec3 nh\u1eadn d\u1eef li\u1ec7u qua c\u00e1c ph\u01b0\u01a1ng th\u1ee9c HTTP (HTTP Methods) nh\u01b0:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>POST:<\/strong> Ph\u1ed5 bi\u1ebfn nh\u1ea5t, d\u00f9ng \u0111\u1ec3 nh\u1eadn d\u1eef li\u1ec7u m\u1edbi (v\u00ed d\u1ee5: nh\u1eadn th\u00f4ng tin form \u0111\u0103ng k\u00fd).<\/li>\n\n\n\n<li><strong>GET:<\/strong> Th\u01b0\u1eddng d\u00f9ng \u0111\u1ec3 k\u00edch ho\u1ea1t workflow \u0111\u01a1n gi\u1ea3n ho\u1eb7c l\u1ea5y tham s\u1ed1 t\u1eeb \u0111\u01b0\u1eddng d\u1eabn URL (Query Parameters).<\/li>\n\n\n\n<li><strong>PUT\/DELETE:<\/strong> D\u00f9ng trong c\u00e1c ki\u1ebfn tr\u00fac RESTful API ph\u1ee9c t\u1ea1p h\u01a1n.<\/li>\n<\/ul>\n\n\n\n<p><strong>D\u1eef li\u1ec7u Webhook c\u00f3 th\u1ec3 nh\u1eadn bao g\u1ed3m:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Body:<\/strong> N\u1ed9i dung ch\u00ednh (th\u01b0\u1eddng l\u00e0 \u0111\u1ecbnh d\u1ea1ng JSON).<\/li>\n\n\n\n<li><strong>Query Parameters:<\/strong> C\u00e1c th\u00f4ng s\u1ed1 tr\u00ean URL (v\u00ed d\u1ee5: <code>?userid=123<\/code>).<\/li>\n\n\n\n<li><strong>Headers:<\/strong> Th\u00f4ng tin x\u00e1c th\u1ef1c ho\u1eb7c \u0111\u1ecbnh d\u1ea1ng d\u1eef li\u1ec7u.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/node-webhook-trong-n8n-4.png\" alt=\"Ch\u1ee9c n\u0103ng ch\u00ednh c\u1ee7a node Webhook trong n8n\" class=\"wp-image-120945\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/node-webhook-trong-n8n-4.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/node-webhook-trong-n8n-4-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Ch\u1ee9c n\u0103ng ch\u00ednh c\u1ee7a node Webhook trong n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 id=\"Ph\u1ea3n_h\u1ed3i_l\u1ea1i_n\u01a1i_g\u1eedi_(Response)\"><strong>Ph\u1ea3n h\u1ed3i l\u1ea1i n\u01a1i g\u1eedi (Response)<\/strong><\/h3>\n\n\n\n<p>Webhook node trong n8n c\u00f3 kh\u1ea3 n\u0103ng \u0111\u1ecbnh ngh\u0129a c\u00e1ch ph\u1ea3n h\u1ed3i l\u1ea1i \u1ee9ng d\u1ee5ng \u0111\u00e3 g\u1ecdi n\u00f3.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Immediate Response (Ph\u1ea3n h\u1ed3i ngay):<\/strong> n8n nh\u1eadn \u0111\u01b0\u1ee3c tin v\u00e0 b\u00e1o l\u1ea1i &#8220;T\u00f4i \u0111\u00e3 nh\u1eadn r\u1ed3i&#8221; (HTTP 200 OK) ngay l\u1eadp t\u1ee9c, sau \u0111\u00f3 m\u1edbi ch\u1ea1y workflow ng\u1ea7m.<\/li>\n\n\n\n<li><strong>Last Node Response (Ph\u1ea3n h\u1ed3i sau khi x\u1eed l\u00fd):<\/strong> Workflow s\u1ebd ch\u1ea1y h\u1ebft quy tr\u00ecnh, sau \u0111\u00f3 l\u1ea5y k\u1ebft qu\u1ea3 t\u1eeb node cu\u1ed1i c\u00f9ng \u0111\u1ec3 tr\u1ea3 v\u1ec1 cho ng\u01b0\u1eddi g\u1ecdi. (V\u00ed d\u1ee5: B\u1ea1n g\u1ecdi webhook \u0111\u1ec3 h\u1ecfi th\u1eddi ti\u1ebft -> n8n tra c\u1ee9u -> n8n tr\u1ea3 v\u1ec1 nhi\u1ec7t \u0111\u1ed9).<\/li>\n<\/ul>\n\n\n\n<h3 id=\"B\u1ea3o_m\u1eadt_v\u00e0_x\u00e1c_th\u1ef1c_(Authentication)\"><strong>B\u1ea3o m\u1eadt v\u00e0 x\u00e1c th\u1ef1c (Authentication)<\/strong><\/h3>\n\n\n\n<p>\u0110\u1ec3 \u0111\u1ea3m b\u1ea3o kh\u00f4ng ph\u1ea3i ai c\u0169ng c\u00f3 th\u1ec3 k\u00edch ho\u1ea1t workflow c\u1ee7a b\u1ea1n, Webhook node h\u1ed7 tr\u1ee3 c\u00e1c l\u1edbp b\u1ea3o m\u1eadt:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Basic Auth:<\/strong> Y\u00eau c\u1ea7u username\/password.<\/li>\n\n\n\n<li><strong>Header Auth:<\/strong> Y\u00eau c\u1ea7u m\u1ed9t API Key b\u00ed m\u1eadt trong header.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"Ph\u00e2n_bi\u1ec7t_node_Webhook_v\u00e0_HTTP_Request_trong_n8n_\"><a id=\"post-105143-_zhho54c5f7jj\"><\/a>Ph\u00e2n bi\u1ec7t node Webhook v\u00e0 HTTP Request trong n8n <\/h2>\n\n\n\n<h3 id=\"Node_HTTP_Request\">Node HTTP Request<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>C\u00e1ch ho\u1ea1t \u0111\u1ed9ng<\/strong>:\n<ul class=\"wp-block-list\">\n<li><strong>Ch\u1ee7 \u0111\u1ed9ng g\u1eedi request<\/strong>&nbsp;t\u1eeb n8n \u0111\u1ebfn m\u1ed9t API ho\u1eb7c server b\u00ean ngo\u00e0i.<\/li>\n\n\n\n<li>Gi\u1ed1ng nh\u01b0 vi\u1ec7c b\u1ea1n&nbsp;<strong>g\u1ecdi \u0111i\u1ec7n<\/strong>&nbsp;\u0111\u1ec3 h\u1ecfi th\u00f4ng tin.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Khi n\u00e0o d\u00f9ng?<\/strong>\n<ul class=\"wp-block-list\">\n<li>Khi c\u1ea7n&nbsp;<strong>l\u1ea5y d\u1eef li\u1ec7u t\u1eeb API<\/strong>&nbsp;(v\u00ed d\u1ee5: th\u1eddi ti\u1ebft, Google Sheets).<\/li>\n\n\n\n<li>Khi mu\u1ed1n&nbsp;<strong>g\u1eedi d\u1eef li\u1ec7u \u0111i<\/strong>&nbsp;(POST\/PUT\/PATCH).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u0110\u1eb7c \u0111i\u1ec3m<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Ph\u1ea3i&nbsp;<strong>k\u00edch ho\u1ea1t th\u1ee7 c\u00f4ng<\/strong>&nbsp;(manual) ho\u1eb7c theo l\u1ecbch (schedule).<\/li>\n\n\n\n<li>C\u1ea7n&nbsp;<strong>API key\/token<\/strong>&nbsp;n\u1ebfu API y\u00eau c\u1ea7u x\u00e1c th\u1ef1c.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 id=\"Node_Webhook\">Node Webhook<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>C\u00e1ch ho\u1ea1t \u0111\u1ed9ng<\/strong>:\n<ul class=\"wp-block-list\">\n<li><strong>L\u1eafng nghe request<\/strong>&nbsp;t\u1eeb b\u00ean ngo\u00e0i g\u1eedi \u0111\u1ebfn n8n.<\/li>\n\n\n\n<li>Gi\u1ed1ng nh\u01b0 b\u1ea1n&nbsp;<strong>\u0111\u1ec3 l\u1ea1i s\u1ed1 \u0111i\u1ec7n tho\u1ea1i<\/strong>&nbsp;v\u00e0 ch\u1edd ng\u01b0\u1eddi kh\u00e1c g\u1ecdi l\u1ea1i.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Khi n\u00e0o d\u00f9ng?<\/strong>\n<ul class=\"wp-block-list\">\n<li>Khi c\u1ea7n&nbsp;<strong>nh\u1eadn d\u1eef li\u1ec7u t\u1ef1 \u0111\u1ed9ng<\/strong>&nbsp;t\u1eeb d\u1ecbch v\u1ee5 kh\u00e1c (v\u00ed d\u1ee5: Slack, Telegram, GitHub).<\/li>\n\n\n\n<li>Khi mu\u1ed1n&nbsp;<strong>k\u00edch ho\u1ea1t workflow b\u1eb1ng s\u1ef1 ki\u1ec7n<\/strong>&nbsp;(v\u00ed d\u1ee5: c\u00f3 \u0111\u01a1n h\u00e0ng m\u1edbi, commit code).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u0110\u1eb7c \u0111i\u1ec3m<\/strong>:\n<ul class=\"wp-block-list\">\n<li>T\u1ef1 \u0111\u1ed9ng ch\u1ea1y khi c\u00f3 request \u0111\u1ebfn.<\/li>\n\n\n\n<li>C\u1ea7n public URL (d\u00f9ng ngrok n\u1ebfu test local).<\/li>\n\n\n\n<li>Kh\u00f4ng c\u1ea7n g\u1ecdi th\u1ee7 c\u00f4ng.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/cach-su-dung-node-webhook-trong-n8n-3.png\" alt=\"Khi n\u00e0o c\u1ea7n s\u1eed d\u1ee5ng Webhook trong n8n?\" class=\"wp-image-105161\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/cach-su-dung-node-webhook-trong-n8n-3.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/cach-su-dung-node-webhook-trong-n8n-3-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Khi n\u00e0o c\u1ea7n s\u1eed d\u1ee5ng Webhook trong n8n?<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h2 id=\"H\u01b0\u1edbng_d\u1eabn_c\u00e1ch_s\u1eed_d\u1ee5ng_node_webhook_tr\u00ean_n8n\"><a id=\"post-105143-_3g3vrg6776b5\"><\/a>H\u01b0\u1edbng d\u1eabn c\u00e1ch s\u1eed d\u1ee5ng node webhook tr\u00ean n8n<\/h2>\n\n\n\n<h3 id=\"C\u00e1c_th\u00e0nh_ph\u1ea7n_ch\u00ednh_trong_node_Webhook_tr\u00ean_n8n\"><a id=\"post-105143-_fg5a0dd1g6su\"><\/a><strong>C\u00e1c th\u00e0nh ph\u1ea7n ch\u00ednh trong node Webhook tr\u00ean n8n<\/strong><\/h3>\n\n\n\n<h4 id=\"1._Webhook_URLs\"><a id=\"post-105143-_xzl1gz9m3kfy\"><\/a>1. Webhook URLs<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Test URL:<\/strong> D\u00f9ng trong qu\u00e1 tr\u00ecnh ph\u00e1t tri\u1ec3n v\u00e0 ki\u1ec3m th\u1eed. Khi b\u1ea1n ch\u1ecdn &#8220;Listen for Test Event&#8221;, n8n s\u1ebd k\u00edch ho\u1ea1t webhook n\u00e0y trong 120 gi\u00e2y \u0111\u1ec3 nh\u1eadn d\u1eef li\u1ec7u th\u1eed nghi\u1ec7m.<\/li>\n\n\n\n<li><strong>Production URL:<\/strong> D\u00f9ng khi workflow \u0111\u00e3 s\u1eb5n s\u00e0ng ho\u1ea1t \u0111\u1ed9ng ch\u00ednh th\u1ee9c. B\u1ea1n c\u1ea7n k\u00edch ho\u1ea1t workflow \u0111\u1ec3 n8n \u0111\u0103ng k\u00fd webhook n\u00e0y.<\/li>\n<\/ul>\n\n\n\n<p><strong>L\u01b0u \u00fd:<\/strong> V\u1edbi Test URL, b\u1ea1n c\u00f3 th\u1ec3 xem d\u1eef li\u1ec7u tr\u1ef1c ti\u1ebfp trong giao di\u1ec7n n8n. V\u1edbi Production URL, d\u1eef li\u1ec7u kh\u00f4ng hi\u1ec3n th\u1ecb tr\u1ef1c ti\u1ebfp, nh\u01b0ng b\u1ea1n c\u00f3 th\u1ec3 xem l\u1ea1i trong ph\u1ea7n Executions.<\/p>\n\n\n\n<h4 id=\"2._HTTP_Method\"><a id=\"post-105143-_mcw3zl9ls2al\"><\/a>2. HTTP Method<\/h4>\n\n\n\n<p>Ch\u1ecdn ph\u01b0\u01a1ng th\u1ee9c HTTP m\u00e0 webhook s\u1ebd l\u1eafng nghe, bao g\u1ed3m: GET, POST, PUT, PATCH, DELETE, HEAD.<\/p>\n\n\n\n<p>B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 b\u1eadt t\u00f9y ch\u1ecdn <strong>Allow Multiple HTTP Methods<\/strong> \u0111\u1ec3 webhook ch\u1ea5p nh\u1eadn nhi\u1ec1u ph\u01b0\u01a1ng th\u1ee9c c\u00f9ng l\u00fac.<\/p>\n\n\n\n<h4 id=\"3._Path\"><a id=\"post-105143-_l0h11tb4n39\"><\/a>3. Path<\/h4>\n\n\n\n<p>\u0110\u1ecbnh ngh\u0129a \u0111\u01b0\u1eddng d\u1eabn URL cho webhook. M\u1eb7c \u0111\u1ecbnh, n8n t\u1ea1o m\u1ed9t \u0111\u01b0\u1eddng d\u1eabn ng\u1eabu nhi\u00ean \u0111\u1ec3 tr\u00e1nh xung \u0111\u1ed9t. B\u1ea1n c\u00f3 th\u1ec3 t\u00f9y ch\u1ec9nh \u0111\u01b0\u1eddng d\u1eabn n\u00e0y, bao g\u1ed3m c\u1ea3 tham s\u1ed1 \u0111\u1ed9ng, v\u00ed d\u1ee5:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\/webhook\/:id<\/li>\n\n\n\n<li>\/api\/:userId\/data<\/li>\n<\/ul>\n\n\n\n<p>\u0110i\u1ec1u n\u00e0y h\u1eefu \u00edch khi b\u1ea1n mu\u1ed1n t\u1ea1o c\u00e1c endpoint API linh ho\u1ea1t.<\/p>\n\n\n\n<h4 id=\"4._Authentication\"><a id=\"post-105143-_f3adu7wrlljd\"><\/a>4. Authentication<\/h4>\n\n\n\n<p>Thi\u1ebft l\u1eadp ph\u01b0\u01a1ng th\u1ee9c x\u00e1c th\u1ef1c cho webhook, bao g\u1ed3m:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Kh\u00f4ng x\u00e1c th\u1ef1c (None)<\/li>\n\n\n\n<li>Basic Auth<\/li>\n\n\n\n<li>Header Auth<\/li>\n\n\n\n<li>JWT Auth<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1543\" height=\"847\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-5.png\" alt=\"T\u00ecm hi\u1ec3u c\u00e1c th\u00e0nh ph\u1ea7n ch\u00ednh trong node Webhook tr\u00ean n8n\" class=\"wp-image-105148\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-5.png 1543w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-5-300x165.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-5-1024x562.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-5-768x422.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-5-1536x843.png 1536w\" sizes=\"(max-width: 1543px) 100vw, 1543px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u00ecm hi\u1ec3u c\u00e1c th\u00e0nh ph\u1ea7n ch\u00ednh trong node Webhook tr\u00ean n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h4 id=\"5._Respond\"><a id=\"post-105143-_wj1jygro0nv0\"><\/a>5. Respond<\/h4>\n\n\n\n<p>X\u00e1c \u0111\u1ecbnh c\u00e1ch webhook ph\u1ea3n h\u1ed3i sau khi nh\u1eadn request:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Immediately: <\/strong>Ph\u1ea3n h\u1ed3i ngay l\u1eadp t\u1ee9c v\u1edbi th\u00f4ng \u0111i\u1ec7p &#8220;Workflow got started&#8221;.<\/li>\n\n\n\n<li><strong>When Last Node Finishes:<\/strong> Ch\u1edd \u0111\u1ebfn khi node cu\u1ed1i c\u00f9ng trong workflow ho\u00e0n th\u00e0nh, sau \u0111\u00f3 ph\u1ea3n h\u1ed3i v\u1edbi d\u1eef li\u1ec7u \u0111\u1ea7u ra.<\/li>\n\n\n\n<li><strong>Using &#8216;Respond to Webhook&#8217; Node: <\/strong>S\u1eed d\u1ee5ng node ri\u00eang bi\u1ec7t \u0111\u1ec3 t\u00f9y ch\u1ec9nh ph\u1ea3n h\u1ed3i chi ti\u1ebft.<\/li>\n<\/ul>\n\n\n\n<h4 id=\"6._Response_Data\"><a id=\"post-105143-_j6o0ykeq2gmr\"><\/a><strong>6. Response Data<\/strong><\/h4>\n\n\n\n<p><strong>Response Data: <\/strong>X\u00e1c \u0111\u1ecbnh d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 trong ph\u1ea7n th\u00e2n ph\u1ea3n h\u1ed3i:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>T\u1ea5t c\u1ea3 m\u1ee5c (All Entries)<\/li>\n\n\n\n<li>M\u1ee5c \u0111\u1ea7u ti\u00ean d\u01b0\u1edbi d\u1ea1ng JSON (First Entry JSON)<\/li>\n\n\n\n<li>M\u1ee5c \u0111\u1ea7u ti\u00ean d\u01b0\u1edbi d\u1ea1ng nh\u1ecb ph\u00e2n (First Entry Binary)<\/li>\n\n\n\n<li>Kh\u00f4ng c\u00f3 d\u1eef li\u1ec7u ph\u1ea3n h\u1ed3i (No Response Body)<\/li>\n<\/ul>\n\n\n\n<p>\u00c1p d\u1ee5ng khi ch\u1ecdn &#8220;<strong>Respond<\/strong> -&gt; <strong>When Last Node Finishes<\/strong>&#8220;.<\/p>\n\n\n\n<h4 id=\"7._Node_Options_(T\u00f9y_ch\u1ecdn_n\u00e2ng_cao)\"><a id=\"post-105143-_e4ctb54qyjsl\"><\/a>7. Node Options (T\u00f9y ch\u1ecdn n\u00e2ng cao)<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Allowed Origins (CORS):<\/strong> Thi\u1ebft l\u1eadp c\u00e1c domain \u0111\u01b0\u1ee3c ph\u00e9p g\u1eedi request (m\u1eb7c \u0111\u1ecbnh l\u00e0 *).<\/li>\n\n\n\n<li><strong>IP(s) Whitelist:<\/strong> Ch\u1ec9 cho ph\u00e9p c\u00e1c \u0111\u1ecba ch\u1ec9 IP c\u1ee5 th\u1ec3 truy c\u1eadp webhook.<\/li>\n\n\n\n<li><strong>Ignore Bots:<\/strong> B\u1ecf qua c\u00e1c request t\u1eeb bot ho\u1eb7c tr\u00ecnh thu th\u1eadp d\u1eef li\u1ec7u.<\/li>\n\n\n\n<li><strong>Raw Body: <\/strong>Nh\u1eadn d\u1eef li\u1ec7u \u1edf d\u1ea1ng th\u00f4 (raw), nh\u01b0 JSON ho\u1eb7c XML.<\/li>\n\n\n\n<li><strong>Binary Property: <\/strong>Cho ph\u00e9p nh\u1eadn d\u1eef li\u1ec7u nh\u1ecb ph\u00e2n, v\u00ed d\u1ee5: h\u00ecnh \u1ea3nh ho\u1eb7c t\u1ec7p \u00e2m thanh.<\/li>\n\n\n\n<li><strong>Response Headers:<\/strong> Th\u00eam c\u00e1c header t\u00f9y ch\u1ec9nh v\u00e0o ph\u1ea3n h\u1ed3i.<\/li>\n\n\n\n<li><strong>Response Content-Type: <\/strong>Ch\u1ecdn lo\u1ea1i n\u1ed9i dung cho ph\u1ea3n h\u1ed3i, v\u00ed d\u1ee5: application\/json.<\/li>\n<\/ul>\n\n\n\n<p>C\u00e1c t\u00f9y ch\u1ecdn n\u00e0y gi\u00fap b\u1ea1n ki\u1ec3m so\u00e1t chi ti\u1ebft c\u00e1ch webhook ho\u1ea1t \u0111\u1ed9ng v\u00e0 ph\u1ea3n h\u1ed3i.<\/p>\n\n\n\n<h3 id=\"C\u00e1ch_s\u1eed_d\u1ee5ng_node_Webhook_trong_n8n_(v\u00ed_d\u1ee5_c\u1ee5_th\u1ec3)\"><a id=\"post-105143-_mrylnic0ad2s\"><\/a><strong>C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n (v\u00ed d\u1ee5 c\u1ee5 th\u1ec3)<\/strong><\/h3>\n\n\n\n<p><strong>M\u1ee5c ti\u00eau: <\/strong>T\u1ea1o m\u1ed9t workflow trong n8n s\u1eed d\u1ee5ng node Webhook \u0111\u1ec3 nh\u1eadn d\u1eef li\u1ec7u t\u1eeb m\u1ed9t bi\u1ec3u m\u1eabu li\u00ean h\u1ec7 tr\u00ean website. Khi ng\u01b0\u1eddi d\u00f9ng g\u1eedi bi\u1ec3u m\u1eabu, n8n s\u1ebd nh\u1eadn d\u1eef li\u1ec7u v\u00e0 g\u1eedi email th\u00f4ng b\u00e1o.<\/p>\n\n\n\n<p><strong>C\u00e1c b\u01b0\u1edbc th\u1ef1c hi\u1ec7n:<\/strong><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 1:<\/strong> Truy c\u1eadp v\u00e0o n8n (c\u00f3 th\u1ec3 l\u00e0 b\u1ea3n <a href=\"https:\/\/tino.vn\/blog\/cach-cai-dat-n8n-tren-vps\/\" target=\"_blank\" data-type=\"post\" data-id=\"104896\" rel=\"noreferrer noopener\">self-hosted<\/a> ho\u1eb7c <a href=\"https:\/\/tino.vn\/blog\/cach-dang-ky-n8n-tren-n8n-io\/\" target=\"_blank\" data-type=\"post\" data-id=\"104879\" rel=\"noreferrer noopener\">n8n Cloud<\/a>).<\/p>\n\n\n\n<p>T\u1ea1o m\u1ed9t workflow m\u1edbi, \u0111\u1eb7t t\u00ean (v\u00ed d\u1ee5: Webhook &#8211; Contact Form) v\u00e0 th\u00eam node Webhook<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1222\" height=\"690\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-6.png\" alt=\"C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n\" class=\"wp-image-105149\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-6.png 1222w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-6-300x169.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-6-1024x578.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-6-768x434.png 768w\" sizes=\"(max-width: 1222px) 100vw, 1222px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 2: <\/strong>C\u1ea5u h\u00ecnh node Webhook nh\u01b0 sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>HTTP Method: <\/strong>Ch\u1ecdn POST (ph\u00f9 h\u1ee3p v\u1edbi vi\u1ec7c g\u1eedi d\u1eef li\u1ec7u t\u1eeb bi\u1ec3u m\u1eabu).<\/li>\n\n\n\n<li><strong>Path:<\/strong> \u0110\u1eb7t \u0111\u01b0\u1eddng d\u1eabn t\u00f9y ch\u1ec9nh, v\u00ed d\u1ee5: contact-form.<\/li>\n\n\n\n<li><strong>Respond: <\/strong>Ch\u1ecdn Using &#8216;<strong>Respond to Webhook<\/strong>&#8216; node \u0111\u1ec3 t\u00f9y ch\u1ec9nh ph\u1ea3n h\u1ed3i.<\/li>\n<\/ul>\n\n\n\n<p>Sau khi c\u1ea5u h\u00ecnh, b\u1ea1n s\u1ebd th\u1ea5y hai URL:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Test URL: <\/strong>D\u00f9ng \u0111\u1ec3 ki\u1ec3m tra trong qu\u00e1 tr\u00ecnh ph\u00e1t tri\u1ec3n.<\/li>\n\n\n\n<li><strong>Production URL:<\/strong> D\u00f9ng khi workflow \u0111\u00e3 \u0111\u01b0\u1ee3c k\u00edch ho\u1ea1t.<\/li>\n<\/ul>\n\n\n\n<p>\u0110\u1ec3 ki\u1ec3m tra, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng <strong>Test URL<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1575\" height=\"895\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-7.png\" alt=\"C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n\" class=\"wp-image-105150\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-7.png 1575w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-7-300x170.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-7-1024x582.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-7-768x436.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-7-1536x873.png 1536w\" sizes=\"(max-width: 1575px) 100vw, 1575px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 3: <\/strong>Th\u00eam node<strong> Set <\/strong>\u0111\u1ec3 \u0111\u1ecbnh d\u1ea1ng d\u1eef li\u1ec7u nh\u1eadn \u0111\u01b0\u1ee3c t\u1eeb bi\u1ec3u m\u1eabu.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1382\" height=\"777\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-8.png\" alt=\"C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n\" class=\"wp-image-105151\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-8.png 1382w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-8-300x169.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-8-1024x576.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-8-768x432.png 768w\" sizes=\"(max-width: 1382px) 100vw, 1382px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n<\/strong><\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Trong node Set, nh\u1ea5n<strong> Add Field<\/strong> v\u00e0 c\u1ea5u h\u00ecnh c\u00e1c tr\u01b0\u1eddng nh\u01b0:<\/p>\n\n\n\n<p>Tr\u01b0\u1eddng Name:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Name: Name (ho\u1eb7c t\u00ean t\u00f9y \u00fd b\u1ea1n mu\u1ed1n \u0111\u1eb7t cho d\u1eef li\u1ec7u \u0111\u1ea7u ra).<\/li>\n\n\n\n<li>Value: <code>{{ $json[\"name\"] }}<\/code> (l\u1ea5y gi\u00e1 tr\u1ecb c\u1ee7a tr\u01b0\u1eddng name t\u1eeb JSON \u0111\u1ea7u v\u00e0o). V\u00ed d\u1ee5: <strong>Name: &#8220;Nguyen Van A&#8221;<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Tr\u01b0\u1eddng Email:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Name: Email.<\/li>\n\n\n\n<li>Value: <code>{{ $json[\"email\"] }}<\/code>. V\u00ed d\u1ee5: <strong>Email: &#8220;nguyenvana@example.com&#8221;<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Tr\u01b0\u1eddng Message:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Name: Message.<\/li>\n\n\n\n<li>Value: <code>{{ $json[\"message\"] }}<\/code>. V\u00ed d\u1ee5: <strong>Message: &#8220;\u0111\u00e2y l\u00e0 tin nh\u1eafn th\u1eed nghi\u1ec7m&#8221;<\/strong><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"516\" height=\"866\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-9.png\" alt=\"C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n\" class=\"wp-image-105152\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-9.png 516w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-9-179x300.png 179w\" sizes=\"(max-width: 516px) 100vw, 516px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 4: <\/strong>Th\u00eam node <strong>Send Email<\/strong> (ho\u1eb7c s\u1eed d\u1ee5ng node t\u01b0\u01a1ng \u1ee9ng v\u1edbi d\u1ecbch v\u1ee5 email b\u1ea1n \u0111ang d\u00f9ng, nh\u01b0 Gmail, SMTP, \u2026.).<\/p>\n\n\n\n<p>C\u1ea5u h\u00ecnh c\u00e1c tr\u01b0\u1eddng:<\/p>\n\n\n\n<p><strong>To:<\/strong> \u0110\u1ecba ch\u1ec9 email nh\u1eadn th\u00f4ng b\u00e1o.<\/p>\n\n\n\n<p><strong>Subject:<\/strong> V\u00ed d\u1ee5: New Contact Form Submission.<\/p>\n\n\n\n<p><strong>Text: <\/strong>S\u1eed d\u1ee5ng d\u1eef li\u1ec7u t\u1eeb node Set:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Name: {{ $json&#91;\"Name\"] }}\nEmail: {{ $json&#91;\"Email\"] }}\nMessage: {{ $json&#91;\"Message\"] }}<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"528\" height=\"858\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-10.png\" alt=\"C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n\" class=\"wp-image-105153\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-10.png 528w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-10-185x300.png 185w\" sizes=\"(max-width: 528px) 100vw, 528px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>L\u01b0u \u00fd: <\/strong>Thay <strong>Name<\/strong> b\u1eb1ng t\u00ean b\u1ea1n \u0111\u1eb7t trong node Set.<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 5: <\/strong>Th\u00eam node <strong>Respond to Webhook<\/strong> \u0111\u1ec3 g\u1eedi ph\u1ea3n h\u1ed3i v\u1ec1 cho ng\u01b0\u1eddi d\u00f9ng sau khi x\u1eed l\u00fd xong.<\/p>\n\n\n\n<p>C\u1ea5u h\u00ecnh:<\/p>\n\n\n\n<p><strong>Respond With:<\/strong> JSON<\/p>\n\n\n\n<p><strong>Response Body:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n\"status\": \"success\",\n\"message\": \"C\u1ea3m \u01a1n b\u1ea1n \u0111\u00e3 li\u00ean h\u1ec7!\"\n}<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1361\" height=\"815\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-11.png\" alt=\"C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n\" class=\"wp-image-105154\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-11.png 1361w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-11-300x180.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-11-1024x613.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-11-768x460.png 768w\" sizes=\"(max-width: 1361px) 100vw, 1361px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>C\u00e1c node s\u1ebd \u0111\u01b0\u1ee3c theo th\u1ee9 t\u1ef1 nh\u01b0 sau: <strong>Webhook<\/strong> \u2192 <strong>Set <\/strong>\u2192 <strong>Send Email <\/strong>\u2192 <strong>Respond to Webhook<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1403\" height=\"779\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-12.png\" alt=\"C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n\" class=\"wp-image-105155\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-12.png 1403w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-12-300x167.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-12-1024x569.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-12-768x426.png 768w\" sizes=\"(max-width: 1403px) 100vw, 1403px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 6: <\/strong>Nh\u1ea5n <strong>Test Workflow<\/strong>.<\/p>\n\n\n\n<p>Sau \u0111\u00f3, b\u1ea1n s\u1ebd ki\u1ec3m tra b\u1eb1ng c\u00e1ch g\u1eedi d\u1eef li\u1ec7u th\u1eed nghi\u1ec7m \u0111\u1ebfn <strong>Test URL<\/strong> b\u1eb1ng c\u00f4ng c\u1ee5 nh\u01b0 <strong>Postman<\/strong> ho\u1eb7c t\u1eeb bi\u1ec3u m\u1eabu tr\u00ean website.<\/p>\n\n\n\n<p>Tino s\u1ebd s\u1eed d\u1ee5ng <a href=\"https:\/\/www.postman.com\/\" target=\"_blank\" rel=\"noopener nofollow\">Postman<\/a> l\u00e0m v\u00ed d\u1ee5:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>M\u1edf Postman v\u00e0 t\u1ea1o m\u1ed9t y\u00eau c\u1ea7u m\u1edbi.<\/li>\n\n\n\n<li>Ch\u1ecdn <strong>POST<\/strong> l\u00e0m HTTP Method.<\/li>\n\n\n\n<li>D\u00e1n <strong>Test URL<\/strong> v\u00e0o tr\u01b0\u1eddng URL.<\/li>\n\n\n\n<li>Trong ph\u1ea7n <strong>Body<\/strong>, ch\u1ecdn <strong>raw<\/strong> v\u00e0 \u0111\u1ecbnh d\u1ea1ng <strong>JSON<\/strong>.<\/li>\n\n\n\n<li>Nh\u1eadp d\u1eef li\u1ec7u m\u1eabu kh\u1edbp v\u1edbi c\u1ea5u h\u00ecnh c\u1ee7a node Set (d\u1ef1a tr\u00ean {{ $json[&#8220;name&#8221;] }}, {{ $json[&#8220;email&#8221;] }}, {{ $json[&#8220;message&#8221;] }}):<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n\"name\": \"Nguyen Van A\",\n\"email\": \"nguyenvana@example.com\",\n\"message\": \"\u0110\u00e2y l\u00e0 tin nh\u1eafn th\u1eed nghi\u1ec7m\"\n}<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1391\" height=\"759\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-13.png\" alt=\"C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n\" class=\"wp-image-105156\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-13.png 1391w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-13-300x164.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-13-1024x559.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-13-768x419.png 768w\" sizes=\"(max-width: 1391px) 100vw, 1391px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Ki\u1ec3m tra xem:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>n8n nh\u1eadn \u0111\u01b0\u1ee3c d\u1eef li\u1ec7u.<\/li>\n\n\n\n<li>Email \u0111\u01b0\u1ee3c g\u1eedi \u0111\u1ebfn \u0111\u1ecba ch\u1ec9 \u0111\u00e3 c\u1ea5u h\u00ecnh.<\/li>\n\n\n\n<li>Ng\u01b0\u1eddi d\u00f9ng nh\u1eadn \u0111\u01b0\u1ee3c ph\u1ea3n h\u1ed3i JSON nh\u01b0 \u0111\u00e3 thi\u1ebft l\u1eadp.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1045\" height=\"607\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-14.png\" alt=\"C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n\" class=\"wp-image-105157\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-14.png 1045w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-14-300x174.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-14-1024x595.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105143-14-768x446.png 768w\" sizes=\"(max-width: 1045px) 100vw, 1045px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 7:<\/strong> K\u00edch ho\u1ea1t workflow b\u1eb1ng c\u00e1ch nh\u1ea5n n\u00fat <strong>Activate<\/strong>.<\/p>\n\n\n\n<p>S\u1eed d\u1ee5ng <strong>Production URL<\/strong> \u0111\u1ec3 t\u00edch h\u1ee3p v\u00e0o bi\u1ec3u m\u1eabu tr\u00ean website.<\/p>\n\n\n\n<h3 id=\"Nh\u1eefng_l\u01b0u_\u00fd_khi_s\u1eed_d\u1ee5ng_webhook_tr\u00ean_n8n\"><a id=\"post-105143-_37btkm3lverm\"><\/a><strong>Nh\u1eefng l\u01b0u \u00fd khi s\u1eed d\u1ee5ng webhook tr\u00ean n8n<\/strong><\/h3>\n\n\n\n<h4 id=\"Ph\u00e2n_bi\u1ec7t_r\u00f5_gi\u1eefa_Test_URL_v\u00e0_Production_URL\"><a id=\"post-105143-_p9tcc9w6w8mi\"><\/a>Ph\u00e2n bi\u1ec7t r\u00f5 gi\u1eefa Test URL v\u00e0 Production URL<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Test URL ch\u1ec9 ho\u1ea1t \u0111\u1ed9ng khi b\u1ea1n nh\u1ea5n \u201cListen for Test Event\u201d trong 2 ph\u00fat \u2192 d\u00f9ng \u0111\u1ec3 ph\u00e1t tri\u1ec3n.<\/li>\n\n\n\n<li>Production URL ch\u1ec9 ho\u1ea1t \u0111\u1ed9ng khi workflow \u0111\u01b0\u1ee3c k\u00edch ho\u1ea1t \u2192 d\u00f9ng \u0111\u1ec3 nh\u1eadn d\u1eef li\u1ec7u th\u1ef1c t\u1ebf.<\/li>\n\n\n\n<li>Kh\u00f4ng d\u00f9ng Test URL trong \u1ee9ng d\u1ee5ng th\u1eadt v\u00ec c\u00f3 th\u1ec3 ng\u1eaft qu\u00e3ng ho\u1eb7c h\u1ebft th\u1eddi gian ch\u1edd.<\/li>\n<\/ul>\n\n\n\n<h4 id=\"X\u00e1c_\u0111\u1ecbnh_\u0111\u00fang_HTTP_Method\"><a id=\"post-105143-_frlszch9nhq0\"><\/a>X\u00e1c \u0111\u1ecbnh \u0111\u00fang HTTP Method<\/h4>\n\n\n\n<p>Ch\u1ecdn \u0111\u00fang ph\u01b0\u01a1ng th\u1ee9c HTTP (POST, GET, v.v.) \u0111\u1ec3 ph\u00f9 h\u1ee3p v\u1edbi b\u00ean g\u1eedi d\u1eef li\u1ec7u. N\u1ebfu kh\u00f4ng ch\u1eafc b\u00ean th\u1ee9 ba g\u1eedi b\u1eb1ng method n\u00e0o, b\u1ea1n c\u00f3 th\u1ec3 b\u1eadt t\u00f9y ch\u1ecdn <strong>Allow Multiple HTTP Methods<\/strong> \u0111\u1ec3 ch\u1ea5p nh\u1eadn nhi\u1ec1u lo\u1ea1i request.<\/p>\n\n\n\n<h4 id=\"Lu\u00f4n_ki\u1ec3m_tra_d\u1eef_li\u1ec7u_\u0111\u1ea7u_v\u00e0o\"><a id=\"post-105143-_k64oh5h2vzg3\"><\/a>Lu\u00f4n ki\u1ec3m tra d\u1eef li\u1ec7u \u0111\u1ea7u v\u00e0o<\/h4>\n\n\n\n<p>D\u1eef li\u1ec7u g\u1eedi v\u00e0o t\u1eeb webhook c\u00f3 th\u1ec3 kh\u00e1c nhau t\u00f9y b\u00ean th\u1ee9 ba, n\u00ean b\u1ea1n n\u00ean d\u00f9ng node Set, IF ho\u1eb7c Switch \u0111\u1ec3 ki\u1ec3m tra v\u00e0 x\u1eed l\u00fd tr\u01b0\u1edbc khi \u0111\u01b0a v\u00e0o c\u00e1c b\u01b0\u1edbc ch\u00ednh. Tr\u00e1nh x\u1eed l\u00fd logic ph\u1ee9c t\u1ea1p tr\u1ef1c ti\u1ebfp tr\u00ean d\u1eef li\u1ec7u th\u00f4.<\/p>\n\n\n\n<h4 id=\"Qu\u1ea3n_l\u00fd_ph\u1ea3n_h\u1ed3i_tr\u1ea3_v\u1ec1\"><a id=\"post-105143-_pnhfofh33qzw\"><\/a>Qu\u1ea3n l\u00fd ph\u1ea3n h\u1ed3i tr\u1ea3 v\u1ec1<\/h4>\n\n\n\n<p>Tr\u00e1nh \u0111\u1ec3 webhook ch\u1edd qu\u00e1 l\u00e2u m\u00e0 kh\u00f4ng ph\u1ea3n h\u1ed3i \u2192 c\u00f3 th\u1ec3 khi\u1ebfn b\u00ean th\u1ee9 ba b\u1ecb timeout. N\u1ebfu c\u1ea7n x\u1eed l\u00fd l\u00e2u, d\u00f9ng node <strong>Respond to Webhook<\/strong> \u0111\u1ec3 ph\u1ea3n h\u1ed3i ngay, sau \u0111\u00f3 ti\u1ebfp t\u1ee5c x\u1eed l\u00fd ng\u1ea7m.<\/p>\n\n\n\n<p>Ngo\u00e0i ra, tr\u1ea3 v\u1ec1 status HTTP r\u00f5 r\u00e0ng: 200 OK, 400 Bad Request, v.v. \u0111\u1ec3 gi\u00fap b\u00ean g\u1eedi d\u1ec5 debug.<\/p>\n\n\n\n<h4 id=\"X\u1eed_l\u00fd_d\u1eef_li\u1ec7u_kh\u00f4ng_h\u1ee3p_l\u1ec7\"><a id=\"post-105143-_6hf2ulcb7ntt\"><\/a>X\u1eed l\u00fd d\u1eef li\u1ec7u kh\u00f4ng h\u1ee3p l\u1ec7<\/h4>\n\n\n\n<p>Lu\u00f4n c\u00f3 nh\u00e1nh x\u1eed l\u00fd l\u1ed7i ho\u1eb7c tr\u1ea3 v\u1ec1 th\u00f4ng b\u00e1o khi d\u1eef li\u1ec7u g\u1eedi \u0111\u1ebfn thi\u1ebfu tr\u01b0\u1eddng quan tr\u1ecdng (nh\u01b0 email tr\u1ed1ng, message kh\u00f4ng h\u1ee3p l\u1ec7). B\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng node IF \u0111\u1ec3 ki\u1ec3m tra v\u00e0 ph\u1ea3n h\u1ed3i l\u1ed7i c\u00f3 ki\u1ec3m so\u00e1t.<\/p>\n\n\n\n<h4 id=\"Tr\u00e1nh_g\u1ecdi_webhook_l\u1eb7p_l\u1ea1i_(Loop)\"><a id=\"post-105143-_z7b9qlw5gc9s\"><\/a>Tr\u00e1nh g\u1ecdi webhook l\u1eb7p l\u1ea1i (Loop)<\/h4>\n\n\n\n<p>N\u1ebfu b\u1ea1n d\u00f9ng webhook l\u00e0m \u0111i\u1ec3m kh\u1edfi \u0111\u1ea7u cho workflow v\u00e0 sau \u0111\u00f3 ch\u00ednh workflow \u0111\u00f3 l\u1ea1i g\u1ecdi webhook \u0111\u00f3 \u2192 d\u1ec5 d\u1eabn \u0111\u1ebfn v\u00f2ng l\u1eb7p v\u00f4 h\u1ea1n g\u00e2y treo h\u1ec7 th\u1ed1ng. H\u00e3y th\u00eam c\u00e1c \u0111i\u1ec1u ki\u1ec7n ng\u1eaft ho\u1eb7c delay n\u1ebfu c\u1ea7n v\u00f2ng l\u1eb7p c\u00f3 ki\u1ec3m so\u00e1t.<\/p>\n\n\n\n<h3 id=\"K\u1ebft_lu\u1eadn\"><a id=\"post-105143-_b6ha871z69ir\"><\/a><strong>K\u1ebft lu\u1eadn<\/strong><\/h3>\n\n\n\n<p>Khi k\u1ebft h\u1ee3p v\u1edbi n\u1ec1n t\u1ea3ng m\u1ea1nh m\u1ebd nh\u01b0 n8n, node Webhook gi\u00fap b\u1ea1n d\u1ec5 d\u00e0ng x\u00e2y d\u1ef1ng c\u00e1c quy tr\u00ecnh x\u1eed l\u00fd theo th\u1eddi gian th\u1ef1c, linh ho\u1ea1t v\u00e0 hi\u1ec7u qu\u1ea3. Hy v\u1ecdng qua b\u00e0i vi\u1ebft n\u00e0y, b\u1ea1n \u0111\u00e3 hi\u1ec3u r\u00f5 Webhook l\u00e0 g\u00ec v\u00e0 n\u1eafm \u0111\u01b0\u1ee3c c\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n \u0111\u1ec3 t\u1ed1i \u01b0u h\u00f3a c\u00f4ng vi\u1ec7c t\u1ef1 \u0111\u1ed9ng h\u00f3a c\u1ee7a m\u00ecnh.<\/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=\"V\u00ec_sao_khi_g\u1eedi_d\u1eef_li\u1ec7u_\u0111\u1ebfn_Webhook_kh\u00f4ng_th\u1ea5y_ph\u1ea3n_h\u1ed3i?\">V\u00ec sao khi g\u1eedi d\u1eef li\u1ec7u \u0111\u1ebfn Webhook kh\u00f4ng th\u1ea5y ph\u1ea3n h\u1ed3i?<\/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>C\u00f3 th\u1ec3 b\u1ea1n ch\u01b0a th\u00eam node \u201cRespond to Webhook\u201d ho\u1eb7c workflow ch\u01b0a tr\u1ea3 v\u1ec1 ph\u1ea3n h\u1ed3i \u0111\u00fang. H\u00e3y \u0111\u1ea3m b\u1ea3o:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ki\u1ec3m tra Execution Logs \u0111\u1ec3 t\u00ecm l\u1ed7i.<\/li>\n\n\n\n<li>Workflow c\u00f3 node ph\u1ea3n h\u1ed3i \u0111\u00fang \u0111\u1ecbnh d\u1ea1ng.<\/li>\n\n\n\n<li>Workflow \u0111ang ho\u1ea1t \u0111\u1ed9ng (Activate).<\/li>\n<\/ul>\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_th\u1ec3_d\u00f9ng_nhi\u1ec1u_ph\u01b0\u01a1ng_th\u1ee9c_HTTP_cho_m\u1ed9t_webhook_kh\u00f4ng?\">C\u00f3 th\u1ec3 d\u00f9ng nhi\u1ec1u ph\u01b0\u01a1ng th\u1ee9c HTTP cho m\u1ed9t webhook 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>C\u00f3, b\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn Allow GET, POST, PUT, PATCH, DELETE trong c\u1ea5u h\u00ecnh node Webhook \u0111\u1ec3 h\u1ed7 tr\u1ee3 nhi\u1ec1u lo\u1ea1i request.<\/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=\"M\u1ed9t_webhook_c\u00f3_th\u1ec3_x\u1eed_l\u00fd_nhi\u1ec1u_lo\u1ea1i_s\u1ef1_ki\u1ec7n_kh\u00e1c_nhau_kh\u00f4ng?\">M\u1ed9t webhook c\u00f3 th\u1ec3 x\u1eed l\u00fd nhi\u1ec1u lo\u1ea1i s\u1ef1 ki\u1ec7n kh\u00e1c nhau 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>C\u00f3 th\u1ec3. B\u1ea1n n\u00ean th\u00eam logic ph\u00e2n nh\u00e1nh b\u1eb1ng c\u00e1c node IF ho\u1eb7c Switch \u0111\u1ec3 x\u00e1c \u0111\u1ecbnh lo\u1ea1i s\u1ef1 ki\u1ec7n g\u1eedi \u0111\u1ebfn (d\u1ef1a tr\u00ean tr\u01b0\u1eddng event, type, v.v.) r\u1ed3i x\u1eed l\u00fd t\u01b0\u01a1ng \u1ee9ng.<\/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=\"Webhook_trong_n8n_c\u00f3_th\u1ec3_nh\u1eadn_file_(h\u00ecnh_\u1ea3nh,_PDF,&#8230;)_kh\u00f4ng?\">Webhook trong n8n c\u00f3 th\u1ec3 nh\u1eadn file (h\u00ecnh \u1ea3nh, PDF,&#8230;) 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>C\u00f3. Webhook c\u00f3 th\u1ec3 nh\u1eadn multipart\/form-data ho\u1eb7c base64 n\u1ebfu b\u00ean g\u1eedi h\u1ed7 tr\u1ee3. Sau \u0111\u00f3 b\u1ea1n c\u00f3 th\u1ec3 x\u1eed l\u00fd file qua c\u00e1c node nh\u01b0 HTTP Request, Move Binary Data, &#8230;<\/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=\"Webhook_trong_n8n_c\u00f3_gi\u1edbi_h\u1ea1n_v\u1ec1_k\u00edch_th\u01b0\u1edbc_d\u1eef_li\u1ec7u_kh\u00f4ng?\">Webhook trong n8n c\u00f3 gi\u1edbi h\u1ea1n v\u1ec1 k\u00edch th\u01b0\u1edbc d\u1eef li\u1ec7u 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>n8n kh\u00f4ng c\u00f3 gi\u1edbi h\u1ea1n c\u1ee9ng v\u1ec1 k\u00edch th\u01b0\u1edbc d\u1eef li\u1ec7u m\u00e0 Webhook c\u00f3 th\u1ec3 nh\u1eadn, nh\u01b0ng hi\u1ec7u su\u1ea5t ph\u1ee5 thu\u1ed9c v\u00e0o t\u00e0i nguy\u00ean h\u1ec7 th\u1ed1ng (CPU, RAM) c\u1ee7a instance n8n. V\u1edbi d\u1eef li\u1ec7u l\u1edbn, h\u00e3y:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Th\u00eam Node \u0111\u1ec3 l\u1ecdc ho\u1eb7c x\u1eed l\u00fd d\u1eef li\u1ec7u tr\u01b0\u1edbc khi l\u01b0u tr\u1eef ho\u1eb7c g\u1eedi ti\u1ebfp.<\/li>\n\n\n\n<li>Chia nh\u1ecf d\u1eef li\u1ec7u n\u1ebfu c\u00f3 th\u1ec3.<\/li>\n<\/ul>\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\": \"V\u00ec sao khi g\u1eedi d\u1eef li\u1ec7u \u0111\u1ebfn Webhook kh\u00f4ng th\u1ea5y ph\u1ea3n h\u1ed3i?\",\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 b\u1ea1n ch\u01b0a th\u00eam node \u201cRespond to Webhook\u201d ho\u1eb7c workflow ch\u01b0a tr\u1ea3 v\u1ec1 ph\u1ea3n h\u1ed3i \u0111\u00fang. H\u00e3y \u0111\u1ea3m b\u1ea3o:<\/p><ul><li>Ki\u1ec3m tra Execution Logs \u0111\u1ec3 t\u00ecm l\u1ed7i.<\/li><li>Workflow c\u00f3 node ph\u1ea3n h\u1ed3i \u0111\u00fang \u0111\u1ecbnh d\u1ea1ng.<\/li><li>Workflow \u0111ang ho\u1ea1t \u0111\u1ed9ng (Activate).<\/li><\/ul>\"\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 th\u1ec3 d\u00f9ng nhi\u1ec1u ph\u01b0\u01a1ng th\u1ee9c HTTP cho m\u1ed9t webhook 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\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn Allow GET, POST, PUT, PATCH, DELETE trong c\u1ea5u h\u00ecnh node Webhook \u0111\u1ec3 h\u1ed7 tr\u1ee3 nhi\u1ec1u lo\u1ea1i request.<\/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\": \"M\u1ed9t webhook c\u00f3 th\u1ec3 x\u1eed l\u00fd nhi\u1ec1u lo\u1ea1i s\u1ef1 ki\u1ec7n kh\u00e1c nhau 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. B\u1ea1n n\u00ean th\u00eam logic ph\u00e2n nh\u00e1nh b\u1eb1ng c\u00e1c node IF ho\u1eb7c Switch \u0111\u1ec3 x\u00e1c \u0111\u1ecbnh lo\u1ea1i s\u1ef1 ki\u1ec7n g\u1eedi \u0111\u1ebfn (d\u1ef1a tr\u00ean tr\u01b0\u1eddng event, type, v.v.) r\u1ed3i x\u1eed l\u00fd t\u01b0\u01a1ng \u1ee9ng.<\/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\": \"Webhook trong n8n c\u00f3 th\u1ec3 nh\u1eadn file (h\u00ecnh \u1ea3nh, PDF,...) 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. Webhook c\u00f3 th\u1ec3 nh\u1eadn multipart\/form-data ho\u1eb7c base64 n\u1ebfu b\u00ean g\u1eedi h\u1ed7 tr\u1ee3. Sau \u0111\u00f3 b\u1ea1n c\u00f3 th\u1ec3 x\u1eed l\u00fd file qua c\u00e1c node nh\u01b0 HTTP Request, Move Binary Data, ...<\/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\": \"Webhook trong n8n c\u00f3 gi\u1edbi h\u1ea1n v\u1ec1 k\u00edch th\u01b0\u1edbc d\u1eef li\u1ec7u kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>n8n kh\u00f4ng c\u00f3 gi\u1edbi h\u1ea1n c\u1ee9ng v\u1ec1 k\u00edch th\u01b0\u1edbc d\u1eef li\u1ec7u m\u00e0 Webhook c\u00f3 th\u1ec3 nh\u1eadn, nh\u01b0ng hi\u1ec7u su\u1ea5t ph\u1ee5 thu\u1ed9c v\u00e0o t\u00e0i nguy\u00ean h\u1ec7 th\u1ed1ng (CPU, RAM) c\u1ee7a instance n8n. V\u1edbi d\u1eef li\u1ec7u l\u1edbn, h\u00e3y:<\/p><ul><li>Th\u00eam Node \u0111\u1ec3 l\u1ecdc ho\u1eb7c x\u1eed l\u00fd d\u1eef li\u1ec7u tr\u01b0\u1edbc khi l\u01b0u tr\u1eef ho\u1eb7c g\u1eedi ti\u1ebfp.<\/li><li>Chia nh\u1ecf d\u1eef li\u1ec7u n\u1ebfu c\u00f3 th\u1ec3.<\/li><\/ul>\"\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>\u0110\u1ed1i v\u1edbi c\u00e1c workflow n8n l\u1edbn, vi\u1ec7c truy\u1ec1n d\u1eef li\u1ec7u theo th\u1eddi gian th\u1ef1c gi\u1eefa c\u00e1c h\u1ec7 th\u1ed1ng l\u00e0 m\u1ed9t nhu c\u1ea7u thi\u1ebft y\u1ebfu. Webhook l\u00e0 m\u1ed9t trong nh\u1eefng gi\u1ea3i ph\u00e1p ph\u1ed5 bi\u1ebfn nh\u1ea5t \u0111\u1ec3 gi\u1ea3i quy\u1ebft v\u1ea5n \u0111\u1ec1 \u0111\u00f3. V\u1eady Webhook l\u00e0 g\u00ec? C\u00e1ch s\u1eed d\u1ee5ng node Webhook trong n8n nh\u01b0 th\u1ebf n\u00e0o? H\u00e3y [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":105162,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7397],"tags":[7343],"class_list":["post-105143","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\/105143","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=105143"}],"version-history":[{"count":6,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/105143\/revisions"}],"predecessor-version":[{"id":120946,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/105143\/revisions\/120946"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/105162"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=105143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=105143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=105143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}