{"id":31,"date":"2022-08-29T17:34:12","date_gmt":"2022-08-29T15:34:12","guid":{"rendered":"https:\/\/support.botnation.ai\/modify-a-system-variable\/"},"modified":"2026-01-02T15:27:22","modified_gmt":"2026-01-02T14:27:22","slug":"modify-a-system-variable","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/modify-a-system-variable\/","title":{"rendered":"Modify a system variable"},"content":{"rendered":"<p>Is it possible to change the value of a system variable?<\/p>\n\n\n\n<p>It is not possible to modify a <strong>system variable<\/strong>.<\/p>\n\n\n\n<p>As a reminder, on Botnation AI, you will find 3 types of variables:<\/p>\n\n\n\n<p>1) <strong>User<\/strong> variables (created by you, specific to the chatbot user)<\/p>\n\n\n\n<p>2) <strong>Global<\/strong> variables (created by you, available to all chatbot users)<\/p>\n\n\n\n<p>3) <strong>System<\/strong> variables (Botnation specific, not modifiable)<\/p>\n\n\n\n<p>\ud83d\udc49\ud83c\udffb For more information on these differences, check out <a href=\"https:\/\/botnation.ai\/fr\/support\/tout-savoir-sur-les-variables\">the article on the topic<\/a> or the <a href=\"https:\/\/www.youtube.com\/watch?v=bO86DGWOs5E&amp;t=1440s\" target=\"_blank\" rel=\"noreferrer noopener\">dedicated webinar<\/a>.<\/p>\n\n\n\n<p>In case 1), they are used to capture a specific data that you qualify and that the user fills in.<\/p>\n\n\n\n<p><em>Example<\/em>:<\/p>\n\n\n\n<p>User variable = {{AGE}}<\/p>\n\n\n\n<p>Chatbot question: How old are you?<\/p>\n\n\n\n<p>User response: 22<\/p>\n\n\n\n<p>\ud83d\udc49\ud83c\udffb Then: {{AGE}} = 22<\/p>\n\n\n\n<p>And then you can reset that variable and write to it again to change it.<\/p>\n\n\n\n<p>In the case of a system variable, the chatbot will retrieve the available information about the user, such as his user ID: {{USER_ID}}. It is its own.<\/p>\n\n\n\n<p>Also, the chatbot can retrieve the time: when this variable is triggered, it will give the time. At 16:28, the variable will indicate 16:28, at 19:43, it will indicate 19:43, in short, you have the idea! Logically, at 4:28 pm it cannot be another time.<\/p>\n\n\n\n<p>It is therefore understandable why system variables cannot be changed.<\/p>\n\n\n\n<p>However, to manipulate them freely, you just have to duplicate them by copying their value in another <strong>user variable<\/strong> (which is manipulatable, you know?) and then rewrite it.<\/p>\n\n\n\n<p>A variable can be copied into another one by initializing the second one by the content of the first one, following this logic:<\/p>\n\n\n\n<p><br>A = system variable.<br>B = A;<\/p>\n\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"categorie-support":[198,222,221],"class_list":["post-31","support","type-support","status-publish","hentry","categorie-support-tutorials","categorie-support-variables-en","categorie-support-web-chatbot-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support"}],"about":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/types\/support"}],"wp:attachment":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}