{"id":105420,"date":"2025-05-21T16:49:12","date_gmt":"2025-05-21T09:49:12","guid":{"rendered":"https:\/\/wiki.tino.org\/?p=105420"},"modified":"2025-07-09T19:39:05","modified_gmt":"2025-07-09T12:39:05","slug":"cach-tao-chatbot-facebook-voi-n8n","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/cach-tao-chatbot-facebook-voi-n8n\/","title":{"rendered":"B\u1eadt m\u00ed c\u00e1ch t\u1ea1o chatbot Facebook v\u1edbi n8n \u0111\u01a1n gi\u1ea3n"},"content":{"rendered":"\n<p><strong>B\u1ea1n \u0111ang t\u00ecm m\u1ed9t m\u1ed9t gi\u1ea3i ph\u00e1p chatbot tr\u00ean <a href=\"https:\/\/tino.vn\/blog\/facebook-la-gi\/\" target=\"_blank\" data-type=\"post\" data-id=\"82309\" rel=\"noreferrer noopener\">Facebook<\/a> nh\u01b0ng mu\u1ed1n ti\u1ebft ki\u1ec7m chi ph\u00ed v\u00e0 t\u1ef1 ki\u1ec3m so\u00e1t, kh\u00f4ng ph\u1ee5 thu\u1ed9c v\u00e0o b\u00ean th\u1ee9 ba? <a href=\"https:\/\/tino.vn\/blog\/n8n-la-gi\/\" target=\"_blank\" data-type=\"post\" data-id=\"104774\" rel=\"noreferrer noopener\">n8n<\/a> s\u1ebd gi\u00fap b\u1ea1n l\u00e0m \u0111\u01b0\u1ee3c \u0111i\u1ec1u \u0111\u00f3. B\u00e0i vi\u1ebft d\u01b0\u1edbi \u0111\u00e2y s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o chatbot Facebook v\u1edbi n8n chi ti\u1ebft, gi\u00fap b\u1ea1n thi\u1ebft l\u1eadp m\u1ed9t h\u1ec7 th\u1ed1ng tr\u1ea3 l\u1eddi t\u1ef1 \u0111\u1ed9ng hi\u1ec7u qu\u1ea3, t\u1ed1i \u01b0u ng\u00e2n s\u00e1ch v\u00e0 kh\u00f4ng c\u1ea7n vi\u1ebft code ph\u1ee9c t\u1ea1p.<\/strong><\/p>\n\n\n\n<h2 id=\"V\u00ec_sao_n\u00ean_ch\u1ecdn_n8n_\u0111\u1ec3_t\u1ea1o_chatbot_Facebook?\"><a id=\"post-105420-_t1w7runi2lfd\"><\/a><strong>V\u00ec sao n\u00ean ch\u1ecdn n8n \u0111\u1ec3 t\u1ea1o chatbot Facebook?<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed v\u00e0 m\u00e3 ngu\u1ed3n m\u1edf:<\/strong> Kh\u00f4ng gi\u1ed1ng nhi\u1ec1u c\u00f4ng c\u1ee5 chatbot gi\u1edbi h\u1ea1n t\u00ednh n\u0103ng \u1edf g\u00f3i mi\u1ec5n ph\u00ed, n8n l\u00e0 m\u00e3 ngu\u1ed3n m\u1edf v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 t\u1ef1 host tr\u00ean server ri\u00eang, \u0111\u1ea3m b\u1ea3o quy\u1ec1n ki\u1ec3m so\u00e1t v\u00e0 b\u1ea3o m\u1eadt tuy\u1ec7t \u0111\u1ed1i.<\/li>\n\n\n\n<li><strong>Kh\u00f4ng c\u1ea7n vi\u1ebft code ph\u1ee9c t\u1ea1p:<\/strong> V\u1edbi giao di\u1ec7n k\u00e9o \u2013 th\u1ea3 tr\u1ef1c quan, n8n gi\u00fap b\u1ea1n x\u00e2y d\u1ef1ng lu\u1ed3ng x\u1eed l\u00fd tin nh\u1eafn d\u1ec5 d\u00e0ng m\u00e0 kh\u00f4ng c\u1ea7n ki\u1ebfn th\u1ee9c l\u1eadp tr\u00ecnh chuy\u00ean s\u00e2u. B\u1ea1n c\u00f3 th\u1ec3 thi\u1ebft k\u1ebf lu\u1ed3ng tr\u00f2 chuy\u1ec7n ch\u1ec9 b\u1eb1ng v\u00e0i c\u00fa click.<\/li>\n\n\n\n<li><strong>T\u00edch h\u1ee3p m\u1ea1nh m\u1ebd v\u1edbi nhi\u1ec1u n\u1ec1n t\u1ea3ng: <\/strong>n8n h\u1ed7 tr\u1ee3 k\u1ebft n\u1ed1i v\u1edbi h\u01a1n 400 d\u1ecbch v\u1ee5. \u0110i\u1ec1u n\u00e0y gi\u00fap b\u1ea1n m\u1edf r\u1ed9ng kh\u1ea3 n\u0103ng chatbot nh\u01b0 l\u01b0u tr\u1eef d\u1eef li\u1ec7u kh\u00e1ch h\u00e0ng, g\u1eedi email t\u1ef1 \u0111\u1ed9ng ho\u1eb7c \u0111\u1ed3ng b\u1ed9 d\u1eef li\u1ec7u sang h\u1ec7 th\u1ed1ng CRM.<\/li>\n\n\n\n<li><strong>D\u1ec5 d\u00e0ng m\u1edf r\u1ed9ng v\u00e0 t\u00f9y bi\u1ebfn:<\/strong> B\u1ea1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng vi\u1ebft script <a href=\"https:\/\/tino.vn\/blog\/javascript-la-gi\/\" target=\"_blank\" data-type=\"post\" data-id=\"47711\" rel=\"noreferrer noopener\">JavaScript<\/a> trong c\u00e1c node \u0111\u1ec3 x\u1eed l\u00fd logic ph\u1ee9c t\u1ea1p ho\u1eb7c t\u00f9y ch\u1ec9nh h\u00e0nh vi chatbot theo nhu c\u1ea7u m\u00e0 kh\u00f4ng b\u1ecb r\u00e0ng bu\u1ed9c b\u1edfi n\u1ec1n t\u1ea3ng cloud c\u1ee7a b\u00ean th\u1ee9 ba.<\/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-tao-chatbot-facebook-voi-n8n-1.png\" alt=\"V\u00ec sao n\u00ean ch\u1ecdn n8n \u0111\u1ec3 t\u1ea1o chatbot Facebook?\" class=\"wp-image-105571\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/cach-tao-chatbot-facebook-voi-n8n-1.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/cach-tao-chatbot-facebook-voi-n8n-1-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>V\u00ec sao n\u00ean ch\u1ecdn n8n \u0111\u1ec3 t\u1ea1o chatbot Facebook?<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h2 id=\"Chu\u1ea9n_b\u1ecb_tr\u01b0\u1edbc_khi_b\u1eaft_\u0111\u1ea7u_t\u1ea1o_chatbot_Facebook\"><a id=\"post-105420-_fv3sxvvsiej2\"><\/a><strong>Chu\u1ea9n b\u1ecb tr\u01b0\u1edbc khi b\u1eaft \u0111\u1ea7u t\u1ea1o chatbot Facebook<\/strong><\/h2>\n\n\n\n<h3 id=\"T\u00e0i_kho\u1ea3n_Facebook_v\u00e0_Fanpage_\u0111\u00e3_x\u00e1c_minh\"><a id=\"post-105420-_ppwz6ufks1v1\"><\/a><strong>T\u00e0i kho\u1ea3n Facebook v\u00e0 Fanpage \u0111\u00e3 x\u00e1c minh<\/strong><\/h3>\n\n\n\n<p>\u0110\u1ec3 s\u1eed d\u1ee5ng chatbot tr\u00ean Facebook, b\u1ea1n b\u1eaft bu\u1ed9c ph\u1ea3i c\u00f3:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>M\u1ed9t t\u00e0i kho\u1ea3n Facebook c\u00e1 nh\u00e2n \u0111\u00e3 \u0111\u01b0\u1ee3c x\u00e1c minh (c\u00f3 s\u1ed1 \u0111i\u1ec7n tho\u1ea1i v\u00e0 email h\u1ee3p l\u1ec7).<\/li>\n\n\n\n<li>M\u1ed9t Trang Facebook (Fanpage) m\u00e0 b\u1ea1n c\u00f3 quy\u1ec1n qu\u1ea3n tr\u1ecb vi\u00ean.<\/li>\n\n\n\n<li>X\u00e1c minh \u1ee9ng d\u1ee5ng v\u00e0 ch\u1ea5p thu\u1eadn quy\u1ec1n g\u1eedi \u2013 nh\u1eadn tin nh\u1eafn th\u00f4ng qua Facebook Developer (trong m\u00f4i tr\u01b0\u1eddng development ho\u1eb7c production).<\/li>\n<\/ul>\n\n\n\n<p>Vi\u1ec7c x\u00e1c minh Fanpage v\u00e0 c\u1ea5u h\u00ecnh quy\u1ec1n truy c\u1eadp l\u00e0 \u0111i\u1ec1u ki\u1ec7n ti\u00ean quy\u1ebft \u0111\u1ec3 Facebook cho ph\u00e9p b\u1ea1n t\u00edch h\u1ee3p webhook t\u1eeb chatbot b\u00ean ngo\u00e0i nh\u01b0 n8n.<\/p>\n\n\n\n<h3 id=\"C\u00e0i_\u0111\u1eb7t_v\u00e0_c\u1ea5u_h\u00ecnh_n8n\"><a id=\"post-105420-_5joe9xrd0x0h\"><\/a><strong>C\u00e0i \u0111\u1eb7t v\u00e0 c\u1ea5u h\u00ecnh n8n<\/strong><\/h3>\n\n\n\n<p>B\u1ea1n c\u00f3 th\u1ec3 l\u1ef1a ch\u1ecdn m\u1ed9t trong hai c\u00e1ch sau \u0111\u1ec3 ch\u1ea1y n8n:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Self-hosted: <\/strong>C\u00e0i \u0111\u1eb7t n8n tr\u00ean m\u00e1y ch\u1ee7 ri\u00eang (VPS) \u0111\u1ec3 to\u00e0n quy\u1ec1n qu\u1ea3n l\u00fd v\u00e0 t\u00f9y ch\u1ec9nh.<\/li>\n\n\n\n<li><strong>n8n.cloud:<\/strong> D\u1ecbch v\u1ee5 n8n \u0111\u01b0\u1ee3c host s\u1eb5n b\u1edfi nh\u00e0 ph\u00e1t tri\u1ec3n \u2013 b\u1ea1n ch\u1ec9 c\u1ea7n \u0111\u0103ng k\u00fd v\u00e0 s\u1eed d\u1ee5ng ngay m\u00e0 kh\u00f4ng c\u1ea7n c\u1ea5u h\u00ecnh ph\u1ee9c t\u1ea1p.<\/li>\n<\/ul>\n\n\n\n<p>B\u1ea1n mu\u1ed1n self-hosted m\u00e0 ng\u1ea1i c\u1ea5u h\u00ecnh ph\u1ee9c t\u1ea1p? VPS N8N &#8211; AI Workflow c\u1ee7a Tino l\u00e0 gi\u1ea3i ph\u00e1p b\u1ea1n c\u1ea7n. S\u1eed d\u1ee5ng VPS N8N &#8211; AI Workflow, b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c c\u00e0i s\u1eb5n n8n v\u1edbi c\u1ea5u h\u00ecnh ch\u1ea5t l\u01b0\u1ee3ng.<\/p>\n\n\n\n<p>B\u1ea1n ch\u1ec9 c\u1ea7n: <strong>\u0110\u0103ng k\u00fd VPS<\/strong> -&gt; <strong>\u0110\u1ed5i t\u00ean mi\u1ec1n ri\u00eang (n\u1ebfu c\u00f3)<\/strong> -&gt; <strong>Truy c\u1eadp v\u00e0 s\u1eed d\u1ee5ng n8n ngay<\/strong>.<\/p>\n\n\n\n<p><strong>\u0110\u0103ng k\u00fd t\u1ea1i:<\/strong> <a href=\"http:\/\/tino.vn\" target=\"_blank\" rel=\"noreferrer noopener\">Tino.vn<\/a>. Nh\u1eadp m\u00e3 <strong>TINO03 <\/strong>\u0111\u1ec3 \u0111\u01b0\u1ee3c gi\u1ea3m 30%.<\/p>\n\n\n\n<p>Ho\u1eb7c tham kh\u1ea3o b\u00e0i vi\u1ebft:<a href=\"https:\/\/tino.vn\/blog\/dang-ky-vps-cai-san-n8n\/\" target=\"_blank\" rel=\"noreferrer noopener\"> C\u00e1ch \u0111\u0103ng k\u00fd VPS c\u00e0i s\u1eb5n n8n<\/a> \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u01b0\u1edbng d\u1eabn chi ti\u1ebft.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1340\" height=\"678\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-3.png\" alt=\" VPS N8N - AI Workflow\" class=\"wp-image-105423\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-3.png 1340w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-3-300x152.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-3-1024x518.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-3-768x389.png 768w\" sizes=\"(max-width: 1340px) 100vw, 1340px\" \/><figcaption class=\"wp-element-caption\"><strong> VPS N8N &#8211; AI Workflow<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>M\u1ed9t s\u1ed1 l\u01b0u \u00fd khi c\u00e0i \u0111\u1eb7t n8n:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0110\u1ea3m b\u1ea3o n8n c\u00f3 th\u1ec3 truy c\u1eadp c\u00f4ng khai t\u1eeb internet (Facebook y\u00eau c\u1ea7u webhook ph\u1ea3i c\u00f3 \u0111\u1ecba ch\u1ec9 HTTPS h\u1ee3p l\u1ec7).<\/li>\n\n\n\n<li>N\u00ean s\u1eed d\u1ee5ng domain ri\u00eang v\u00e0 ch\u1ee9ng ch\u1ec9 SSL \u0111\u1ec3 tr\u00e1nh l\u1ed7i khi k\u1ebft n\u1ed1i v\u1edbi Facebook API.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"H\u01b0\u1edbng_d\u1eabn_c\u00e1ch_t\u1ea1o_chatbot_Facebook_v\u1edbi_n8n\"><a id=\"post-105420-_2w4zskttp05c\"><\/a><strong>H\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o chatbot Facebook v\u1edbi n8n<\/strong><\/h2>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_1:_T\u1ea1o_webhook_\u0111\u1ec3_g\u1ecdi_API_Messenger\"><a id=\"post-105420-_96vrx5ax6tsz\"><\/a><strong>B\u01b0\u1edbc 1: T\u1ea1o webhook \u0111\u1ec3 g\u1ecdi API Messenger<\/strong><\/h3>\n\n\n\n<p>T\u1ea1o m\u1ed9t workflow m\u1edbi -&gt; nh\u1ea5n <strong>d\u1ea5u +<\/strong> -&gt; th\u00eam node <strong>Webhook<\/strong>.<\/p>\n\n\n\n<p>B\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o chi ti\u1ebft b\u00e0i vi\u1ebft: <a href=\"https:\/\/tino.vn\/blog\/wp-admin\/post.php?post=105383&amp;action=edit\" target=\"_blank\" rel=\"noreferrer noopener\">C\u00e1ch k\u1ebft n\u1ed1i API Messenger v\u1edbi n8n th\u00f4ng qua node Webhook<\/a>.<\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_2:_Th\u00eam_node_IF_\u0111\u1ec3_ph\u00e2n_lo\u1ea1i_tin_nh\u1eafn\"><a id=\"post-105420-_qkdcx0ris6qk\"><\/a><strong>B\u01b0\u1edbc 2: Th\u00eam node IF \u0111\u1ec3 ph\u00e2n lo\u1ea1i tin nh\u1eafn<\/strong><\/h3>\n\n\n\n<p>\u0110\u1ec3 workflow hi\u1ec3u \u0111\u01b0\u1ee3c \u0111\u01b0\u1ee3c tin nh\u1eafn d\u1ea1ng text hay ch\u1ec9 l\u00e0 m\u1ed9t icon (v\u00ed d\u1ee5 kh\u00e1ch h\u00e0ng l\u1ee1 tay nh\u1ea5n like), b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng node IF \u0111\u1ec3 ph\u00e2n lo\u1ea1i.<\/p>\n\n\n\n<p>Th\u00eam node <strong>IF<\/strong> ph\u00eda sau node Webhook v\u00e0 c\u1ea5u h\u00ecnh node n\u00e0y nh\u01b0 sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>K\u00e9o ph\u1ea7n <strong>Text<\/strong> t\u1eeb m\u1ee5c <strong>Messenger <\/strong>\u1edf ph\u1ea7n b\u00ean tr\u00e1i v\u00e0o \u00f4 <strong>Value 1 <\/strong>ho\u1eb7c nh\u1eadp: {{ $json.body.entry[0].messaging[0].message.text }}<\/li>\n\n\n\n<li>Ch\u1ecdn <strong>String <\/strong>-&gt;<strong> Exists<\/strong><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1596\" height=\"824\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-4.png\" alt=\"Th\u00eam node IF \u0111\u1ec3 ph\u00e2n lo\u1ea1i tin nh\u1eafn\" class=\"wp-image-105424\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-4.png 1596w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-4-300x155.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-4-1024x529.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-4-768x397.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-4-1536x793.png 1536w\" sizes=\"(max-width: 1596px) 100vw, 1596px\" \/><figcaption class=\"wp-element-caption\"><strong>Th\u00eam node IF \u0111\u1ec3 ph\u00e2n lo\u1ea1i tin nh\u1eafn<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Khi \u0111\u00f3:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>N\u1ebfu tin nh\u1eafn kh\u00f4ng ph\u1ea3i l\u00e0 v\u0103n b\u1ea3n (v\u00ed d\u1ee5 kh\u00e1ch h\u00e0ng l\u1ee1 tay th\u1ea3 like) lu\u1ed3ng th\u00f4ng tin s\u1ebd ch\u1ea1y qua nh\u00e1nh <strong>False<\/strong><\/li>\n\n\n\n<li>N\u1ebfu tin nh\u1eafn l\u00e0 v\u0103n b\u1ea3n lu\u1ed3ng th\u00f4ng tin s\u1ebd ch\u1ea1y qua nh\u00e1nh <strong>True<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Nh\u1ea5n <strong>Test workflow <\/strong>v\u00e0 nh\u1eadp th\u1eed tin nh\u1eafn \u0111\u1ec3 ki\u1ec3m tra.<\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_3:_Th\u00eam_node_Set_(Edit_Fields)\"><a id=\"post-105420-_a7bz6znfswu0\"><\/a><strong>B\u01b0\u1edbc 3: Th\u00eam node Set (Edit Fields)<\/strong><\/h3>\n\n\n\n<p>Node n\u00e0y c\u00f3 vai tr\u00f2 l\u1ecdc c\u00e1c th\u00f4ng tin c\u1ea7n thi\u1ebft \u0111\u1ec3 c\u1ea5u h\u00ecnh cho node AI Agent ph\u00eda sau.<\/p>\n\n\n\n<p>Th\u00eam node <strong>Set<\/strong> sau nh\u00e1nh <strong>True<\/strong>. C\u1ea5u h\u00ecnh nh\u01b0 sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Nh\u1ea5n <strong>Add Field<\/strong> &#8211; \u0110\u1eb7t t\u00ean \u201cID kh\u00e1ch h\u00e0ng\u201d v\u00e0 k\u00e9o ph\u1ea7n<strong> id<\/strong> t\u1ea1i m\u1ee5c <strong>Sender<\/strong> v\u00e0o \u00f4 <strong>Value<\/strong><\/li>\n\n\n\n<li>Nh\u1ea5n <strong>Add Field <\/strong>&#8211; \u0110\u1eb7t t\u00ean \u201cID page\u201d v\u00e0 k\u00e9o ph\u1ea7n<strong> id<\/strong> t\u1ea1i m\u1ee5c <strong>Recipient<\/strong> v\u00e0o \u00f4 <strong>Value<\/strong><\/li>\n\n\n\n<li>Nh\u1ea5n <strong>Add Field<\/strong> &#8211; \u0110\u1eb7t t\u00ean \u201cN\u1ed9i dung tin nh\u1eafn\u201d v\u00e0 k\u00e9o ph\u1ea7n <strong>text <\/strong>t\u1ea1i m\u1ee5c <strong>Message<\/strong> v\u00e0o \u00f4 <strong>Value <\/strong><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1323\" height=\"826\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-5.png\" alt=\"Th\u00eam node IF \u0111\u1ec3 ph\u00e2n lo\u1ea1i tin nh\u1eafn\" class=\"wp-image-105425\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-5.png 1323w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-5-300x187.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-5-1024x639.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-5-768x479.png 768w\" sizes=\"(max-width: 1323px) 100vw, 1323px\" \/><figcaption class=\"wp-element-caption\"><strong>Th\u00eam node IF \u0111\u1ec3 ph\u00e2n lo\u1ea1i tin nh\u1eafn<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Sau khi t\u1ea1o xong, nh\u1ea5n <strong>Test workflow <\/strong>v\u00e0 th\u1eed g\u1eedi 1 tin nh\u1eafn \u0111\u1ec3 ti\u1ec7n cho vi\u1ec7c l\u1ea5y d\u1eef li\u1ec7u \u1edf c\u00e1c node sau.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1374\" height=\"794\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-6.png\" alt=\"Th\u00eam node IF \u0111\u1ec3 ph\u00e2n lo\u1ea1i tin nh\u1eafn\" class=\"wp-image-105426\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-6.png 1374w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-6-300x173.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-6-1024x592.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-6-768x444.png 768w\" sizes=\"(max-width: 1374px) 100vw, 1374px\" \/><figcaption class=\"wp-element-caption\"><strong>Th\u00eam node IF \u0111\u1ec3 ph\u00e2n lo\u1ea1i tin nh\u1eafn<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_4:_T\u1ea1o_node_AI_Agent\"><a id=\"post-105420-_lwwb5oasvn8t\"><\/a><strong>B\u01b0\u1edbc 4: T\u1ea1o node AI Agent<\/strong><\/h3>\n\n\n\n<p>Th\u00eam node AI Agent sau node Set (Edit Fields). C\u1ea5u h\u00ecnh chung:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ch\u1ecdn <strong>Define below<\/strong> t\u1ea1i m\u1ee5c <strong>Source for Prompt<\/strong><\/li>\n\n\n\n<li>Nh\u01b0 \u0111\u00e3 n\u00f3i \u1edf ph\u1ea7n tr\u00ean, vi\u1ec7c t\u1ea1o node Set gi\u00fap b\u1ea1n l\u1ecdc c\u00e1c d\u1eef li\u1ec7u ch\u00ednh, b\u1ea1n ch\u1ec9 vi\u1ec7c k\u00e9o <strong>N\u1ed9i dung tin nh\u1eafn<\/strong> v\u00e0o \u00f4 <strong>Prompt<\/strong> ho\u1eb7c nh\u1eadp tr\u1ef1c ti\u1ebfp: <strong>{{ $json[&#8216;N\u1ed9i dung tin nh\u1eafn&#8217;] }}<\/strong><\/li>\n\n\n\n<li>Nh\u1ea5n <strong>Add Option <\/strong>-&gt; ch\u1ecdn <strong>System Message <\/strong>-&gt; nh\u1eadp ng\u1eef c\u1ea3nh \u0111\u1ec3 m\u00f4 t\u1ea3 quy t\u1eafc cho AI (tham kh\u1ea3o \u1edf b\u00e0i vi\u1ebft li\u00ean quan \u0111\u01b0\u1ee3c nh\u1eafc \u0111\u1ebfn b\u00ean d\u01b0\u1edbi).<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1306\" height=\"833\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-7.png\" alt=\"T\u1ea1o node AI Agent\" class=\"wp-image-105427\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-7.png 1306w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-7-300x191.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-7-1024x653.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-7-768x490.png 768w\" sizes=\"(max-width: 1306px) 100vw, 1306px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o node AI Agent<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>V\u1edbi node AI Agent, b\u1ea1n c\u1ea7n chu\u1ea9n b\u1ecb:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Chat Model: <\/strong>Google Gemini Chat Model \u0111\u00e3 x\u00e1c th\u1ef1c \u0111\u1ec3 k\u1ebft n\u1ed1i API (c\u00f3 th\u1ec3 thay th\u1ebf b\u1eb1ng OpenAI n\u1ebfu c\u1ea7n AI ch\u1ea5t l\u01b0\u1ee3ng h\u01a1n nh\u01b0ng ph\u1ea3i tr\u1ea3 ph\u00ed).<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1313\" height=\"784\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-8.png\" alt=\"T\u1ea1o node AI Agent\" class=\"wp-image-105428\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-8.png 1313w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-8-300x179.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-8-1024x611.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-8-768x459.png 768w\" sizes=\"(max-width: 1313px) 100vw, 1313px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o node AI Agent<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Memory: <\/strong>S\u1eed d\u1ee5ng Memory m\u1eb7c \u0111\u1ecbnh c\u1ee7a n8n (Simple Memory)<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1298\" height=\"767\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-9.png\" alt=\"T\u1ea1o node AI Agent\" class=\"wp-image-105429\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-9.png 1298w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-9-300x177.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-9-1024x605.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-9-768x454.png 768w\" sizes=\"(max-width: 1298px) 100vw, 1298px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o node AI Agent<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Tools: <\/strong>B\u1ea3ng d\u1eef li\u1ec7u Google Sheet, ch\u1ee9a demo c\u00e2u h\u1ecfi c\u1ee7a kh\u00e1ch h\u00e0ng v\u00e0 c\u00e2u tr\u1ea3 l\u1eddi \u0111\u01b0\u1ee3c thi\u1ebft l\u1eadp s\u1eb5n. C\u1ea7n x\u00e1c th\u1ef1c Credential cho Google Sheets.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1317\" height=\"785\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-10.png\" alt=\"T\u1ea1o node AI Agent\" class=\"wp-image-105430\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-10.png 1317w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-10-300x179.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-10-1024x610.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-10-768x458.png 768w\" sizes=\"(max-width: 1317px) 100vw, 1317px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o node AI Agent<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>V\u00ec c\u00e1ch thi\u1ebft l\u1eadp <strong>System Message<\/strong>, <strong>Chat Model<\/strong>, <strong>Tools<\/strong> v\u00e0 <strong>Memory<\/strong> c\u1ee7a AI Agent cho chatbot gi\u1ed1ng nhau tr\u00ean c\u1ea3 Zalo v\u00e0 Facebook n\u00ean b\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o h\u01b0\u1edbng d\u1eabn c\u00e1ch th\u1ef1c hi\u1ec7n t\u1ea1i b\u00e0i vi\u1ebft: <a href=\"https:\/\/tino.vn\/blog\/cach-tao-chatbot-zalo-ca-nhan-voi-n8n\/\" target=\"_blank\" rel=\"noreferrer noopener\">C\u00e1ch t\u1ea1o chatbot Zalo c\u00e1 nh\u00e2n tr\u00ean n8n<\/a>.<\/p>\n\n\n\n<p>Sau khi thi\u1ebft l\u1eadp xong, nh\u1ea5n <strong>Test Workflow <\/strong>v\u00e0 nh\u1eafn th\u1eed 1 tin nh\u1eafn v\u00e0o Fanpage Messenger \u0111\u1ec3 ki\u1ec3m tra.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1208\" height=\"900\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-11.png\" alt=\"T\u1ea1o node AI Agent\" class=\"wp-image-105431\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-11.png 1208w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-11-300x224.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-11-1024x763.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-11-768x572.png 768w\" sizes=\"(max-width: 1208px) 100vw, 1208px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o node AI Agent<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_5:_T\u1ea1o_node_Code\"><a id=\"post-105420-_z678kjhaicg1\"><\/a><strong>B\u01b0\u1edbc 5: T\u1ea1o node Code<\/strong><\/h3>\n\n\n\n<p>V\u00ec n8n ch\u01b0a h\u1ed7 tr\u1ee3 node Messenger tr\u1ef1c ti\u1ebfp n\u00ean b\u1ea1n c\u1ea7n x\u1eed l\u00fd \u0111\u1ea7u ta th\u1ee7 c\u00f4ng th\u00f4ng qua node Code v\u00e0 HTTP Request.<\/p>\n\n\n\n<p>Th\u00eam node <strong>Code<\/strong> sau node <strong>AI Agent<\/strong> v\u00e0 x\u00f3a n\u1ed9i dung code b\u00ean trong c\u1ea5u h\u00ecnh<\/p>\n\n\n\n<p>Sau \u0111\u00f3, quay l\u1ea1i trang Developers Facebook, v\u00e0o <strong>C\u00f4ng c\u1ee5<\/strong> -&gt; ch\u1ecdn <strong>Tr\u00ecnh kh\u00e1m ph\u00e1 API \u0110\u1ed3 th\u1ecb<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1472\" height=\"818\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-12.png\" alt=\" T\u1ea1o node Code\" class=\"wp-image-105432\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-12.png 1472w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-12-300x167.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-12-1024x569.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-12-768x427.png 768w\" sizes=\"(max-width: 1472px) 100vw, 1472px\" \/><figcaption class=\"wp-element-caption\"><strong> T\u1ea1o node Code<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Th\u00eam quy\u1ec1n <strong>pages_read_engagement<\/strong> v\u00e0 nh\u1ea5n <strong>Generate Access Token.<\/strong><\/p>\n\n\n\n<p>Ti\u1ebfn h\u00e0nh k\u1ebft n\u1ed1i v\u1edbi t\u00e0i kho\u1ea3n Facebook qu\u1ea3n tr\u1ecb vi\u00ean Fanpage c\u1ee7a b\u1ea1n.<\/p>\n\n\n\n<p>Sau khi k\u1ebft n\u1ed1i xong, nh\u1ea5n n\u00fat<strong> G\u1eedi <\/strong>\u0111\u1ec3 l\u1ea5y ID c\u1ee7a \u1ee9ng d\u1ee5ng.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1502\" height=\"796\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-13.png\" alt=\" T\u1ea1o node Code\" class=\"wp-image-105433\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-13.png 1502w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-13-300x159.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-13-1024x543.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-13-768x407.png 768w\" sizes=\"(max-width: 1502px) 100vw, 1502px\" \/><figcaption class=\"wp-element-caption\"><strong> T\u1ea1o node Code<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>D\u00e1n ID l\u00ean \u00f4 b\u00ean tr\u00ean r\u1ed3i nh\u1eadp th\u00eam ph\u00eda sau <strong>\/messages\/<\/strong><\/p>\n\n\n\n<p>Ti\u1ebfp theo, chuy\u1ec3n <strong>GET<\/strong> th\u00e0nh <strong>POST <\/strong>r\u1ed3i nh\u1ea5n v\u00e0o n\u00fat <strong>JSON<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"949\" height=\"581\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-14.png\" alt=\" T\u1ea1o node Code\" class=\"wp-image-105434\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-14.png 949w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-14-300x184.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-14-768x470.png 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><figcaption class=\"wp-element-caption\"><strong> T\u1ea1o node Code<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Nh\u1eadp v\u00e0o gi\u1eefa 2 d\u1ea5u ngo\u1eb7c <strong>{}<\/strong> \u0111o\u1ea1n code sau:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\"recipient\":{\n\"id\":\u201c{PSID}\u201d\n},\n\"message\":{\n\"text\":\"Hello, World!\"\n}}<\/code><\/pre>\n\n\n\n<p>Thay <strong>\u201c{PSID}\u201d<\/strong> b\u1eb1ng <strong>ID kh\u00e1ch h\u00e0ng <\/strong>trong n8n v\u00e0 \u0111\u1ed5i ph\u1ea7n text <strong>Hello, World!<\/strong> th\u00e0nh <strong>Xin ch\u00e0o! <\/strong>(ho\u1eb7c m\u1ed9t c\u00e2u ch\u00e0o t\u00f9y b\u1ea1n) r\u1ed3i nh\u1ea5n n\u00fat <strong>G\u1eedi<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1882\" height=\"839\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-15.png\" alt=\" T\u1ea1o node Code\" class=\"wp-image-105435\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-15.png 1882w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-15-300x134.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-15-1024x457.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-15-768x342.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-15-1536x685.png 1536w\" sizes=\"(max-width: 1882px) 100vw, 1882px\" \/><figcaption class=\"wp-element-caption\"><strong> T\u1ea1o node Code<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>(<strong>L\u01b0u \u00fd:<\/strong> \u0111\u00e2y ch\u1ec9 l\u00e0 ID c\u1ee7a t\u00e0i kho\u1ea3n b\u1ea1n d\u00f9ng \u0111\u1ec3 g\u1eedi tin nh\u1eafn trong qu\u00e1 tr\u00ecnh test workflow, l\u00e1t n\u1eefa ch\u00fang ta s\u1ebd thay b\u1eb1ng th\u00f4ng tin trong n8n).<\/p>\n\n\n\n<p>N\u1ebfu th\u00e0nh c\u00f4ng, b\u1ea1n s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c th\u00f4ng b\u00e1o trong Messenger c\u1ee7a Fanpage.<\/p>\n\n\n\n<p>D\u00e1n \u0111o\u1ea1n code sau v\u00e0o node <strong>Code<\/strong> trong n8n v\u00e0 th\u1ef1c hi\u1ec7n c\u00e1c thao t\u00e1c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const body = {\n\"recipient\": {\n\"id\": `${$('Edit Fields').first().json&#91;'ID kh\u00e1ch h\u00e0ng']}`\n},\n\"message\": {\n\"text\": `${$input.first().json.output}`\n}\n};\nreturn {\ndata: body\n};<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1453\" height=\"896\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-16.png\" alt=\" T\u1ea1o node Code\" class=\"wp-image-105436\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-16.png 1453w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-16-300x185.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-16-1024x631.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-16-768x474.png 768w\" sizes=\"(max-width: 1453px) 100vw, 1453px\" \/><figcaption class=\"wp-element-caption\"><strong> T\u1ea1o node Code<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Nh\u1ea5n <strong>Test step <\/strong>\u0111\u1ec3 ki\u1ec3m tra, th\u1ea5y t\u00edch xanh \u1edf ph\u1ea7n<strong> Output <\/strong>l\u00e0 th\u00e0nh c\u00f4ng!<\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_6:_Th\u00eam_node_HTTP_Request_\u0111\u1ec3_Messenger_tr\u1ea3_l\u1eddi_tin_nh\u1eafn_kh\u00e1ch_h\u00e0ng\"><a id=\"post-105420-_aosgsej4kh8\"><\/a><strong>B\u01b0\u1edbc 6: Th\u00eam node HTTP Request \u0111\u1ec3 Messenger tr\u1ea3 l\u1eddi tin nh\u1eafn kh\u00e1ch h\u00e0ng<\/strong><\/h3>\n\n\n\n<p>Th\u00eam node<strong> HTTP Request <\/strong>sau node Code.<\/p>\n\n\n\n<p>Chuy\u1ec3n Method <strong>GET<\/strong> th\u00e0nh <strong>POST.<\/strong><\/p>\n\n\n\n<p>Nh\u1eadp URL: https:\/\/graph.facebook.com\/v22.0\/108629477616764\/messages\/. Thay 108629477616764 th\u00e0nh ID c\u1ee7a \u1ee9ng d\u1ee5ng trong <strong>Tr\u00ecnh kh\u00e1m ph\u00e1 API \u0110\u1ed3 th\u1ecb<\/strong> m\u00e0 b\u1ea1n \u0111\u00e3 thao t\u00e1c \u1edf b\u01b0\u1edbc Code.<\/p>\n\n\n\n<p>K\u00edch ho\u1ea1t <strong>Send Header <\/strong>v\u00e0 nh\u1eadp Header Parameters nh\u01b0 sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Name: <\/strong>Authorization<\/li>\n\n\n\n<li><strong>Value:<\/strong> Bearer <strong>[m\u00e3 truy c\u1eadp c\u1ee7a b\u1ea1n trong Tr\u00ecnh kh\u00e1m ph\u00e1 API \u0111\u1ed3 th\u1ecb]<\/strong><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1395\" height=\"891\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-17.png\" alt=\"Th\u00eam node HTTP Request \" class=\"wp-image-105437\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-17.png 1395w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-17-300x192.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-17-1024x654.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-17-768x491.png 768w\" sizes=\"(max-width: 1395px) 100vw, 1395px\" \/><figcaption class=\"wp-element-caption\"><strong>Th\u00eam node HTTP Request <\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>K\u00edch ho\u1ea1t<strong> Send Body<\/strong>, ch\u1ecdn<strong> Using JSON<\/strong> t\u1ea1i m\u1ee5c <strong>Specify Body <\/strong>r\u1ed3i nh\u1eadp v\u00e0o \u00f4: <strong>{{ $json.data }}<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1417\" height=\"885\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-18.png\" alt=\"Th\u00eam node HTTP Request \" class=\"wp-image-105438\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-18.png 1417w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-18-300x187.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-18-1024x640.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-18-768x480.png 768w\" sizes=\"(max-width: 1417px) 100vw, 1417px\" \/><figcaption class=\"wp-element-caption\"><strong>Th\u00eam node HTTP Request <\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"B\u01b0\u1edbc_7:_Th\u00eam_c\u00e2u_tr\u1ea3_l\u1eddi_n\u1ebfu_d\u1eef_li\u1ec7u_\u0111i_v\u00e0o_nh\u00e1nh_False_\"><a id=\"post-105420-_4gmcfsbes6rs\"><\/a><strong>B\u01b0\u1edbc 7: Th\u00eam c\u00e2u tr\u1ea3 l\u1eddi n\u1ebfu d\u1eef li\u1ec7u \u0111i v\u00e0o nh\u00e1nh False <\/strong><\/h3>\n\n\n\n<p>Gi\u1ea3 s\u1eed kh\u00e1ch nh\u1ea5n nh\u1ea7m icon Like, d\u1eef li\u1ec7u s\u1ebd \u0111i v\u00e0o nh\u00e1nh False v\u00ec \u0111\u00e2y kh\u00f4ng ph\u1ea3i l\u00e0 m\u1ed9t v\u0103n b\u1ea3n. Khi \u0111\u00f3, chatbot s\u1ebd kh\u00f4ng ph\u1ea3n h\u1ed3i l\u1ea1i kh\u00e1ch h\u00e0ng.<\/p>\n\n\n\n<p>Trong tr\u01b0\u1eddng h\u1ee3p n\u00e0y, n\u1ebfu v\u1eabn mu\u1ed1n t\u01b0\u01a1ng t\u00e1c v\u1edbi kh\u00e1ch, b\u1ea1n c\u1ea7n c\u1ea5u h\u00ecnh \u0111\u1ea7u ra t\u1ea1i nh\u00e1nh False.<\/p>\n\n\n\n<p>C\u00e1ch l\u00e0m nh\u01b0 sau:<\/p>\n\n\n\n<p>B\u1ea1n copy 2 node Code v\u00e0 HTTP Requests r\u1ed3i n\u1ed1i v\u1edbi nh\u00e1nh False trong workflow.<\/p>\n\n\n\n<p>Sau \u0111\u00f3, c\u1ea5u h\u00ecnh l\u1ea1i \u0111o\u1ea1n code trong node Code nh\u01b0 sau:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const body = {\n\"recipient\": {\n\"id\": `${$input.first().json.body.entry&#91;0].messaging&#91;0].sender.id}`\n},\n\"message\": {\n\"text\": `Xin ch\u00e0o, r\u1ea5t vui \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 b\u1ea1n, b\u1ea1n mu\u1ed1n m\u00ecnh t\u01b0 v\u1ea5n v\u1ec1 h\u1ea1t macca v\u00e0 s\u1eefa h\u1ea1t \u1ea1!`\n}\n};\nreturn {\ndata: body\n};<\/code><\/pre>\n\n\n\n<p>Nh\u1edb thay ph\u1ea7n<strong> text<\/strong> b\u1eb1ng l\u1eddi ch\u00e0o c\u1ee7a ri\u00eang b\u1ea1n nh\u00e9!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"969\" height=\"824\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-19.png\" alt=\"Th\u00eam c\u00e2u tr\u1ea3 l\u1eddi n\u1ebfu d\u1eef li\u1ec7u \u0111i v\u00e0o nh\u00e1nh False \" class=\"wp-image-105439\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-19.png 969w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-19-300x255.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-19-768x653.png 768w\" sizes=\"(max-width: 969px) 100vw, 969px\" \/><figcaption class=\"wp-element-caption\"><strong>Th\u00eam c\u00e2u tr\u1ea3 l\u1eddi n\u1ebfu d\u1eef li\u1ec7u \u0111i v\u00e0o nh\u00e1nh False <\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>B\u1ea1n c\u00f3 th\u1ec3 nh\u1ea5n <strong>Test workflow<\/strong> \u0111\u1ec3 ki\u1ec3m tra.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1651\" height=\"820\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-20.png\" alt=\"Th\u00eam c\u00e2u tr\u1ea3 l\u1eddi n\u1ebfu d\u1eef li\u1ec7u \u0111i v\u00e0o nh\u00e1nh False \" class=\"wp-image-105440\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-20.png 1651w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-20-300x149.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-20-1024x509.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-20-768x381.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-20-1536x763.png 1536w\" sizes=\"(max-width: 1651px) 100vw, 1651px\" \/><figcaption class=\"wp-element-caption\"><strong>Th\u00eam c\u00e2u tr\u1ea3 l\u1eddi n\u1ebfu d\u1eef li\u1ec7u \u0111i v\u00e0o nh\u00e1nh False <\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 8: K\u00edch ho\u1ea1t workflow<\/strong><\/p>\n\n\n\n<p>Tr\u01b0\u1edbc khi cho ch\u1ea1y workflow, b\u1ea1n c\u1ea7n \u0111\u1ed5i link webhook t\u1eeb Test URL sang Production URL.<\/p>\n\n\n\n<p>C\u00e1ch th\u1ef1c hi\u1ec7n:<\/p>\n\n\n\n<p>Nh\u1ea5n n\u00fat <strong>Active <\/strong>\u0111\u1ec3 kh\u1edfi \u0111\u1ed9ng workflow.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1643\" height=\"898\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-21.png\" alt=\"K\u00edch ho\u1ea1t workflow\" class=\"wp-image-105447\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-21.png 1643w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-21-300x164.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-21-1024x560.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-21-768x420.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-21-1536x840.png 1536w\" sizes=\"(max-width: 1643px) 100vw, 1643px\" \/><figcaption class=\"wp-element-caption\"><strong>K\u00edch ho\u1ea1t workflow<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Copy <strong>Production URL<\/strong> trong node Webhook.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"964\" height=\"760\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-22.png\" alt=\"K\u00edch ho\u1ea1t workflow\" class=\"wp-image-105449\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-22.png 964w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-22-300x237.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-22-768x605.png 768w\" sizes=\"(max-width: 964px) 100vw, 964px\" \/><figcaption class=\"wp-element-caption\"><strong>K\u00edch ho\u1ea1t workflow<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Chuy\u1ec3n qua trang <strong>C\u00e0i \u0111\u1eb7t API Messenger <\/strong>b\u00ean Developer Facebook -&gt; v\u00e0o m\u1ee5c \u0110\u1eb7t c\u1ea5u h\u00ecnh webhook -&gt; d\u00e1n<strong> URL <\/strong>v\u00e0o \u00f4 -&gt; \u0111\u1eb7t <strong>M\u00e3 x\u00e1c minh<\/strong> -&gt; nh\u1ea5n <strong>X\u00e1c minh v\u00e0 l\u01b0u<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1215\" height=\"675\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-23.png\" alt=\"K\u00edch ho\u1ea1t workflow\" class=\"wp-image-105452\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-23.png 1215w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-23-300x167.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-23-1024x569.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-23-768x427.png 768w\" sizes=\"(max-width: 1215px) 100vw, 1215px\" \/><figcaption class=\"wp-element-caption\"><strong>K\u00edch ho\u1ea1t workflow<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>L\u00fac n\u00e0y, b\u1ea1n \u0111\u00e3 ho\u00e0n t\u1ea5t vi\u1ec7c t\u1ea1o chatbot cho Facebook. H\u00e3y th\u1eed l\u1ea1i m\u1ed9t t\u00e0i kho\u1ea3n kh\u00e1c v\u00e0 nh\u1eafn tin v\u1edbi chatbot \u0111\u1ec3 ki\u1ec3m tra nh\u00e9!<\/p>\n\n\n\n<p>K\u1ebft qu\u1ea3:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1011\" height=\"830\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-24.png\" alt=\"K\u1ebft qu\u1ea3\" class=\"wp-image-105454\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-24.png 1011w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-24-300x246.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-24-768x631.png 768w\" sizes=\"(max-width: 1011px) 100vw, 1011px\" \/><figcaption class=\"wp-element-caption\"><strong>K\u1ebft qu\u1ea3<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>L\u01b0u \u00fd:<\/strong> M\u00e3 truy c\u1eadp s\u1ebd h\u1ebft h\u1ea1n sau m\u1ed9t kho\u1ea3ng th\u1eddi gian, b\u1ea1n c\u1ea7n t\u1ea1o m\u1edbi v\u00e0 nh\u1eadp v\u00e0o node HTTP Request \u0111\u1ec3 workflow ho\u1ea1t \u0111\u1ed9ng b\u00ecnh th\u01b0\u1eddng nh\u00e9!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1482\" height=\"813\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-25.png\" alt=\"K\u1ebft qu\u1ea3\" class=\"wp-image-105455\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-25.png 1482w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-25-300x165.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-25-1024x562.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/05\/word-image-105420-25-768x421.png 768w\" sizes=\"(max-width: 1482px) 100vw, 1482px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u1eadp nh\u1eadt token<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"K\u1ebft_lu\u1eadn\"><a id=\"post-105420-_gcl28ubx6qz6\"><\/a><strong>K\u1ebft lu\u1eadn<\/strong><\/h3>\n\n\n\n<p>V\u1edbi c\u00e1c b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn chi ti\u1ebft trong b\u00e0i vi\u1ebft, b\u1ea1n ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 t\u1ef1 thi\u1ebft l\u1eadp chatbot m\u00e0 kh\u00f4ng c\u1ea7n thu\u00ea c\u1ee7a b\u00ean th\u1ee9 ba. N\u1ebfu b\u1ea1n mu\u1ed1n kh\u00e1m ph\u00e1 th\u00eam nhi\u1ec1u gi\u1ea3i ph\u00e1p t\u1ef1 \u0111\u1ed9ng h\u00f3a m\u1ea1nh m\u1ebd kh\u00e1c v\u1edbi n8n, \u0111\u1eebng qu\u00ean theo d\u00f5i blog c\u1ee7a Tino \u0111\u1ec3 c\u1eadp nh\u1eadt c\u00e1c h\u01b0\u1edbng d\u1eabn m\u1edbi nh\u1ea5t!<\/p>\n\n\n\n<h2 id=\"Nh\u1eefng_c\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\"><a id=\"post-105420-_aoodxeofwsty\"><\/a><strong>Nh\u1eefng c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/strong><\/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=\"T\u00f4i_c\u00f3_c\u1ea7n_tr\u1ea3_ph\u00ed_\u0111\u1ec3_s\u1eed_d\u1ee5ng_AI_Agent_trong_n8n_kh\u00f4ng?\">T\u00f4i c\u00f3 c\u1ea7n tr\u1ea3 ph\u00ed \u0111\u1ec3 s\u1eed d\u1ee5ng AI Agent trong n8n 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>Vi\u1ec7c s\u1eed d\u1ee5ng node AI Agent kh\u00f4ng t\u1ed1n ph\u00ed, tuy nhi\u00ean, n\u1ebfu b\u1ea1n ch\u1ecdn OpenAI GPT-4, b\u1ea1n s\u1ebd ph\u1ea3i tr\u1ea3 ph\u00ed theo m\u1ee9c s\u1eed d\u1ee5ng API c\u1ee7a OpenAI. V\u1edbi Google Gemini, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng mi\u1ec5n ph\u00ed gi\u1edbi h\u1ea1n t\u00f9y t\u00e0i kho\u1ea3n.<\/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=\"V\u00ec_sao_khi_g\u1eedi_tin_nh\u1eafn_v\u00e0o_Fanpage,_chatbot_kh\u00f4ng_ph\u1ea3n_h\u1ed3i?\">V\u00ec sao khi g\u1eedi tin nh\u1eafn v\u00e0o Fanpage, chatbot kh\u00f4ng 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 do m\u1ed9t trong c\u00e1c l\u00fd do sau:<\/p>\n\n\n\n<p>Tin nh\u1eafn kh\u00f4ng ph\u1ea3i l\u00e0 v\u0103n b\u1ea3n, n\u00ean \u0111i v\u00e0o nh\u00e1nh False m\u00e0 b\u1ea1n ch\u01b0a c\u1ea5u h\u00ecnh ph\u1ea3n h\u1ed3i<\/p>\n\n\n\n<p>Workflow ch\u01b0a \u0111\u01b0\u1ee3c k\u00edch ho\u1ea1t (Active)<\/p>\n\n\n\n<p>Webhook ch\u01b0a \u0111\u01b0\u1ee3c c\u1ea5u h\u00ecnh \u0111\u00fang Production URL<\/p>\n\n\n\n<p>Token Facebook b\u1ecb h\u1ebft h\u1ea1n ho\u1eb7c sai quy\u1ec1n<\/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=\"L\u00e0m_sao_\u0111\u1ec3_chatbot_hi\u1ec3u_r\u00f5_s\u1ea3n_ph\u1ea9m_c\u1ee7a_t\u00f4i?\">L\u00e0m sao \u0111\u1ec3 chatbot hi\u1ec3u r\u00f5 s\u1ea3n ph\u1ea9m c\u1ee7a t\u00f4i?<\/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>H\u00e3y c\u1ea5u h\u00ecnh r\u00f5 ph\u1ea7n System Message trong AI Agent v\u00e0 k\u1ebft n\u1ed1i v\u1edbi Google Sheet ch\u1ee9a c\u00e1c th\u00f4ng tin s\u1ea3n ph\u1ea9m, c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p. AI s\u1ebd d\u1ef1a v\u00e0o d\u1eef li\u1ec7u \u0111\u00f3 \u0111\u1ec3 ph\u1ea3n h\u1ed3i ch\u00ednh x\u00e1c.<\/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\u1ea7n_quy\u1ec1n_g\u00ec_\u0111\u1ec3_k\u1ebft_n\u1ed1i_v\u1edbi_Fanpage?\">C\u1ea7n quy\u1ec1n g\u00ec \u0111\u1ec3 k\u1ebft n\u1ed1i v\u1edbi Fanpage?<\/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>T\u00e0i kho\u1ea3n Facebook c\u1ee7a b\u1ea1n ph\u1ea3i c\u00f3 quy\u1ec1n Qu\u1ea3n tr\u1ecb vi\u00ean (Admin) cao nh\u1ea5t c\u1ee7a Fanpage th\u00ec m\u1edbi c\u00f3 th\u1ec3 k\u1ebft n\u1ed1i \u1ee9ng d\u1ee5ng v\u1edbi trang v\u00e0 \u0111\u0103ng k\u00fd webhook th\u00e0nh c\u00f4ng.<\/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=\"Chatbot_c\u00f3_th\u1ec3_tr\u1ea3_l\u1eddi_nhi\u1ec1u_ng\u01b0\u1eddi_c\u00f9ng_l\u00fac_kh\u00f4ng?\">Chatbot c\u00f3 th\u1ec3 tr\u1ea3 l\u1eddi nhi\u1ec1u ng\u01b0\u1eddi 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>C\u00f3. Workflow ho\u1ea1t \u0111\u1ed9ng theo t\u1eebng phi\u00ean b\u1ea3n x\u1eed l\u00fd webhook \u0111\u1ed9c l\u1eadp, n\u00ean b\u1ea1n c\u00f3 th\u1ec3 x\u1eed l\u00fd h\u00e0ng lo\u1ea1t ng\u01b0\u1eddi d\u00f9ng c\u00f9ng l\u00fac m\u00e0 kh\u00f4ng b\u1ecb xung \u0111\u1ed9t.<\/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\": \"T\u00f4i c\u00f3 c\u1ea7n tr\u1ea3 ph\u00ed \u0111\u1ec3 s\u1eed d\u1ee5ng AI Agent trong n8n kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Vi\u1ec7c s\u1eed d\u1ee5ng node AI Agent kh\u00f4ng t\u1ed1n ph\u00ed, tuy nhi\u00ean, n\u1ebfu b\u1ea1n ch\u1ecdn OpenAI GPT-4, b\u1ea1n s\u1ebd ph\u1ea3i tr\u1ea3 ph\u00ed theo m\u1ee9c s\u1eed d\u1ee5ng API c\u1ee7a OpenAI. V\u1edbi Google Gemini, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng mi\u1ec5n ph\u00ed gi\u1edbi h\u1ea1n t\u00f9y t\u00e0i kho\u1ea3n.<\/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\": \"V\u00ec sao khi g\u1eedi tin nh\u1eafn v\u00e0o Fanpage, chatbot kh\u00f4ng 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 do m\u1ed9t trong c\u00e1c l\u00fd do sau:<\/p><p>Tin nh\u1eafn kh\u00f4ng ph\u1ea3i l\u00e0 v\u0103n b\u1ea3n, n\u00ean \u0111i v\u00e0o nh\u00e1nh False m\u00e0 b\u1ea1n ch\u01b0a c\u1ea5u h\u00ecnh ph\u1ea3n h\u1ed3i<\/p><p>Workflow ch\u01b0a \u0111\u01b0\u1ee3c k\u00edch ho\u1ea1t (Active)<\/p><p>Webhook ch\u01b0a \u0111\u01b0\u1ee3c c\u1ea5u h\u00ecnh \u0111\u00fang Production URL<\/p><p>Token Facebook b\u1ecb h\u1ebft h\u1ea1n ho\u1eb7c sai quy\u1ec1n<\/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\": \"L\u00e0m sao \u0111\u1ec3 chatbot hi\u1ec3u r\u00f5 s\u1ea3n ph\u1ea9m c\u1ee7a t\u00f4i?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>H\u00e3y c\u1ea5u h\u00ecnh r\u00f5 ph\u1ea7n System Message trong AI Agent v\u00e0 k\u1ebft n\u1ed1i v\u1edbi Google Sheet ch\u1ee9a c\u00e1c th\u00f4ng tin s\u1ea3n ph\u1ea9m, c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p. AI s\u1ebd d\u1ef1a v\u00e0o d\u1eef li\u1ec7u \u0111\u00f3 \u0111\u1ec3 ph\u1ea3n h\u1ed3i ch\u00ednh x\u00e1c.<\/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\u1ea7n quy\u1ec1n g\u00ec \u0111\u1ec3 k\u1ebft n\u1ed1i v\u1edbi Fanpage?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>T\u00e0i kho\u1ea3n Facebook c\u1ee7a b\u1ea1n ph\u1ea3i c\u00f3 quy\u1ec1n Qu\u1ea3n tr\u1ecb vi\u00ean (Admin) cao nh\u1ea5t c\u1ee7a Fanpage th\u00ec m\u1edbi c\u00f3 th\u1ec3 k\u1ebft n\u1ed1i \u1ee9ng d\u1ee5ng v\u1edbi trang v\u00e0 \u0111\u0103ng k\u00fd webhook th\u00e0nh c\u00f4ng.<\/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\": \"Chatbot c\u00f3 th\u1ec3 tr\u1ea3 l\u1eddi nhi\u1ec1u ng\u01b0\u1eddi 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. Workflow ho\u1ea1t \u0111\u1ed9ng theo t\u1eebng phi\u00ean b\u1ea3n x\u1eed l\u00fd webhook \u0111\u1ed9c l\u1eadp, n\u00ean b\u1ea1n c\u00f3 th\u1ec3 x\u1eed l\u00fd h\u00e0ng lo\u1ea1t ng\u01b0\u1eddi d\u00f9ng c\u00f9ng l\u00fac m\u00e0 kh\u00f4ng b\u1ecb xung \u0111\u1ed9t.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t]\n\t}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>B\u1ea1n \u0111ang t\u00ecm m\u1ed9t m\u1ed9t gi\u1ea3i ph\u00e1p chatbot tr\u00ean Facebook nh\u01b0ng mu\u1ed1n ti\u1ebft ki\u1ec7m chi ph\u00ed v\u00e0 t\u1ef1 ki\u1ec3m so\u00e1t, kh\u00f4ng ph\u1ee5 thu\u1ed9c v\u00e0o b\u00ean th\u1ee9 ba? n8n s\u1ebd gi\u00fap b\u1ea1n l\u00e0m \u0111\u01b0\u1ee3c \u0111i\u1ec1u \u0111\u00f3. B\u00e0i vi\u1ebft d\u01b0\u1edbi \u0111\u00e2y s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o chatbot Facebook v\u1edbi n8n chi ti\u1ebft, gi\u00fap b\u1ea1n thi\u1ebft l\u1eadp m\u1ed9t [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":105572,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7397],"tags":[7343],"class_list":["post-105420","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\/105420","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=105420"}],"version-history":[{"count":4,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/105420\/revisions"}],"predecessor-version":[{"id":105574,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/105420\/revisions\/105574"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/105572"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=105420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=105420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=105420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}