Can I Disable the "New User" Flow in Messenger Chat?

Updated by Kristof Orts

Yes. You can add the parameter flow = customer in the script. So your script should look like this:

<script>    
var chatgenieParams = {     
appId: "YOUR-APP-ID",     
flow: "customer"   
}   
function run(ch){ch.default.messenger().initialize(chatgenieParams);}!function(){var e=window.chatgenie;if(e)run(e);else{function t(){var t=document.createElement("script");t.type="text/javascript",t.async=true,t.readyState?t.onreadystatechange=function(){"loaded"!==t.readyState&&"complete"!==t.readyState||(t.onreadystatechange=null,window.chatgenie&&(e=window.chatgenie,run(e)))}:t.onload=function(){window.chatgenie&&(e=window.chatgenie,run(e))},t.src="https://messenger.chatgenie.io/widget.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}window.attachEvent?window.attachEvent("onload",t):window.addEventListener("load",t,!1)}}(); 
</script>

For the embedded Messenger chat:

<iframe src="https://messenger.chatgenie.io?appId=YOUR-APP-ID&flow=customer" class="messenger-inline"></iframe>

Which will prompt the user to enter their email and see if the user is a customer.


How did we do?