{"id":4698,"date":"2023-07-25T10:51:22","date_gmt":"2023-07-25T08:51:22","guid":{"rendered":"https:\/\/botnation.ai\/how-to-assign-2-variables-to-the-same-button\/"},"modified":"2026-01-02T15:28:36","modified_gmt":"2026-01-02T14:28:36","slug":"how-to-assign-2-variables-to-the-same-button","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/how-to-assign-2-variables-to-the-same-button\/","title":{"rendered":"How to assign 2 variables to the same button"},"content":{"rendered":"<p>Can a \u201cUser input\u201d button store two variables at the same time?<\/p>\n\n\n\n<p>It is not possible to assign 2 different variables to the same button action.<\/p>\n\n\n\n<p><strong>However, it\u2019s perfectly possible to redirect a button to a sequence, which in turn can make as many assignments as required to different variables in your chatbot.  <\/strong><\/p>\n\n\n\n<p><strong>Plus:<\/strong><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/add-buttons-messenger\/\">Add buttons (Messenger)<\/a><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/add-buttons-web-chatbot\/\">Add buttons (Chatbot-Web)<\/a><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/assign-a-value-to-a-variable\/\">Assign a value to a variable<\/a><\/p>\n\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"categorie-support":[198,222,221],"class_list":["post-4698","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\/4698","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=4698"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=4698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}