{"id":4403,"date":"2023-05-17T16:10:09","date_gmt":"2023-05-17T14:10:09","guid":{"rendered":"https:\/\/botnation.ai\/send-variables-to-your-chatbot-messenger-from-an-m-me-link\/"},"modified":"2026-01-02T15:28:27","modified_gmt":"2026-01-02T14:28:27","slug":"send-variables-to-your-chatbot-messenger-from-an-m-me-link","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/send-variables-to-your-chatbot-messenger-from-an-m-me-link\/","title":{"rendered":"Send variables to your chatbot Messenger from an M.ME link"},"content":{"rendered":"<p>Communicate parameters and variables at the launch of your chatbot Messenger<\/p>\n\n\n\n<p>Botnation offers the possibility to send variables to a Messenger chatbot from an M.ME link that you can use on your site, your shares and also when setting up Facebook ad campaigns for your chatbot<\/p>\n\n\n\n<p>These <a href=\"https:\/\/botnation.ai\/en\/all-about-variables\/\" target=\"_blank\" rel=\"noreferrer noopener\">variables<\/a> will then be used in your chatbot available in the user\u2019s profile.<br> <br><strong>Examples of use:  <\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>By adding to the link to the chatbot a variable with a different value depending on the origin (website, ad campaign, directory, etc.), we can identify where the users come from.<br><\/li>\n\n\n\n<li>When a user is already identified on a website, we can redirect him to a chatbot Messenger with all the information already retrieved by the site as his login, his favorite section etc\u2026<\/li>\n<\/ul>\n\n\n\n<p>  Here is the nomenclature to send a variable and its value to your chatbot via a link:<\/p>\n\n\n\n<p><a href=\"https:\/\/m.me\/VOTRECHATBOT?ref=capsule:NOM_DE_LA_VARIABLE;VALEUR;\"><strong>https:\/\/m.me\/VOTRECHATBOT?ref=capsule:NOM_DE_LA_VARIABLE;VALEUR;<\/strong><\/a><\/p>\n\n\n\n<p><br>VOTRECHATBOT is the unique Messenger ID assigned to you by Facebook.  <\/p>\n\n\n\n<p>All settings must begin with \u201ccapsule:\u201d<\/p>\n\n\n\n<p>This is the \u201creference\u201d element (ref) that you will also find when configuring Facebook ad campaigns.<br><br>You can send as many variables as you want by separating them with ; (semicolons).<br><br><strong><a href=\"https:\/\/m.me\/VOTRECHATBOT?ref=capsule:NOM_DE_LA_VARIABLE_1;VALEUR_1;NOM_DE_LA_VARIABLE_2;VALEUR_2;NOM_DE_LA_VARIABLE_3;VALEUR_3\" rel=\"noreferrer noopener\" target=\"_blank\">https:\/\/m.me\/VOTRECHATBOT?ref=capsule:NOM_DE_LA_VARIABLE_1;VALUE_1;VARIABLE_NAME_2;VALUE_2;VARIABLE_NAME_3;VALUE_3<\/a>;<\/strong><\/p>\n\n\n\n<p> <br>Finally you can redirect the user to a particular sequence with the \u201cblockid\u201d parameter:<\/p>\n\n\n\n<p><a href=\"https:\/\/m.me\/VOTRECHATBOT?ref=capsule:NOM_DE_LA_VARIABLE_1;VALEUR_1;NOM_DE_LA_VARIABLE_2;VALEUR_2;NOM_DE_LA_VARIABLE_3;VALEUR_3;blockid;5d94a7b2981b660uied182\"><strong>https:\/\/m.me\/VOTRECHATBOT?ref=capsule:NOM_DE_LA_VARIABLE_1;VALEUR_1;NOM_DE_LA_VARIABLE_2;VALEUR_2;NOM_DE_LA_VARIABLE_3;VALEUR_3;blockid;5d94a7b2981b660uied182<\/strong><\/a><\/p>\n\n\n\n<p> <br>The blockID can be found by clicking on the \u201cShare\u201d icon in the title of a sequence (only in published chatbots).<\/p>\n\n\n\n<p><strong>\n  <em>CAUTION:<\/em>\n<\/strong><em> blockid; (semicolon) not blockid: (colon) <\/em> <\/p>\n\n\n\n<p><br>All these options are only valid for a Chatbot for Facebook Messenger, however the equivalent is available for a Web Chatbot by consulting <a href=\"https:\/\/botnation.ai\/en\/publish-your-facebook-messenger-chatbot\/\" target=\"_blank\" rel=\"noreferrer noopener\">this guide to setting up web chatbots<\/a>.<\/p>\n\n\n\n<p><strong>Plus:<\/strong><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/redirect-to-a-specific-sequence-of-a-messenger-chatbot-from-a-clickable-link\/\">Redirect to a specific sequence of a Messenger chatbot from a link<\/a><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/botnation-api-import-and-export-data-via-webhook\/\">Webhook \u2013 Import\/Export data<\/a><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/all-about-variables\/\">All about variables<\/a><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/publish-your-facebook-messenger-chatbot\/\">Configure and install your Web Chatbot<\/a><\/p>\n\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"categorie-support":[198,222],"class_list":["post-4403","support","type-support","status-publish","hentry","categorie-support-tutorials","categorie-support-variables-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support\/4403","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=4403"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=4403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}