{"id":4371,"date":"2023-05-17T15:59:01","date_gmt":"2023-05-17T13:59:01","guid":{"rendered":"https:\/\/botnation.ai\/backtracking-in-a-chatbot\/"},"modified":"2026-01-02T15:28:27","modified_gmt":"2026-01-02T14:28:27","slug":"backtracking-in-a-chatbot","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/backtracking-in-a-chatbot\/","title":{"rendered":"Backtracking in a Chatbot"},"content":{"rendered":"<p>Return to a previous step<\/p>\n\n\n\n<p>If you want to make the user go back to a previous step of your Botnation chatbot, you just have to <a href=\"https:\/\/botnation.ai\/en\/assign-a-value-to-a-variable\/\">assign a variable<\/a> dedicated to this at each important step of the user\u2019s journey, for example {{step}} = \u201cweather\u201d.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/05\/image-241.png.webp\" alt=\"\" class=\"wp-image-7520\"><\/figure>\n<\/div>\n\n\n<p>Then via a menu or expressions (\u201creturn\u201d, etc..) open a sequence which will be composed of <a href=\"https:\/\/botnation.ai\/en\/the-if-condition-feature\/\">If\/Then conditions<\/a> of type :<br><br>If {{step}} = \u201cweather\u201d then redirection to the weather sequence of the day<br>If {{step}} = \u201ccontact\u201d then redirect to the contact us sequence<br>etc\u2026<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/05\/image-243.png.webp\" alt=\"\" class=\"wp-image-7524\"><\/figure>\n<\/div>\n\n\n<p><strong>Plus:<\/strong><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/assign-a-value-to-a-variable\/\">Assign a value to a variable<\/a><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/the-if-condition-feature\/\">The if\/then\/else conditions<\/a><\/p>\n\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"categorie-support":[194,198,222,221],"class_list":["post-4371","support","type-support","status-publish","hentry","categorie-support-features","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\/4371","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=4371"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=4371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}