{"id":3572,"date":"2023-04-28T14:07:29","date_gmt":"2023-04-28T13:07:29","guid":{"rendered":"https:\/\/botnation.ai\/how-to-record-a-variable-when-the-user-clicks-on-a-button\/"},"modified":"2026-01-02T16:34:44","modified_gmt":"2026-01-02T15:34:44","slug":"how-to-record-a-variable-when-the-user-clicks-on-a-button","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/how-to-record-a-variable-when-the-user-clicks-on-a-button\/","title":{"rendered":"How to record a variable when the user clicks on a button?"},"content":{"rendered":"<p>Or on a quick resply?<\/p>\n\n\n\n<p>Yes it is possible to record the value of a {{\u2026}} variable when clicking on a button of your <a href=\"https:\/\/botnation.ai\/en\" target=\"_blank\" rel=\"noreferrer noopener\">chatbot<\/a> and\/or a quickreply, you just have to select<strong>\u201cuser input<\/strong>\u201d in the action panel of the button when configuring the button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/10\/B_FBM_04_UK-1024x604.png.webp\" alt=\"\" class=\"wp-image-1682\"><\/figure>\n\n\n\n<p><strong>Plus:<\/strong><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/add-buttons-messenger\/\">The buttons (Messenger)<\/a><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/add-buttons-web-chatbot\/\">The buttons (Chatbot Web)<\/a><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/add-quick-replies-messenger\/\">Quick Replies (Messenger)<\/a><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/add-quick-replies-web-chatbot\/\">Quick Replies (Web Chatbot)<\/a><\/p>\n\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"categorie-support":[183,193,194,185,198,189,221],"class_list":["post-3572","support","type-support","status-publish","hentry","categorie-support-chatbot-web","categorie-support-facebook-messenger-en","categorie-support-features","categorie-support-fonctionnalites","categorie-support-tutorials","categorie-support-tutoriels","categorie-support-web-chatbot-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support\/3572","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=3572"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=3572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}