Engati - User Guide
...
Deploying the bot
Website

Website Advanced

8min
1 launch configurations 1 launch configurations below is the list of configurations supported while launching the website chatbot 1 1 launch with a delay you can add the below line in the script and it will help you launch your bot on your website with a delay you configure here settimeout(function(){ chatwidget launchbot(); }, 3 1000); (note this will add a 3 seconds delay before launching the widget ) 1 2 trigger a path while launching chatbot typically, the launch flow on the engati chatbot begins with the welcome new user or greet returning user path but if you would want the bot to start with a particular path, you can follow the below steps i) chatbot widget invoked using script launch flow “path key” see below for an example to add launch flow to the script {bot key “dddxxxkey”,bot name “samplebot”,launch flow “d8e2cc7e37f04feb802f45e8f49e4598”, branding key “default”} ii) website chatbot using direct url and below on adding it to the direct url launch flow=path key to get the path key, go to build > paths and to the specific path that you want to trigger once there click on ‘edit path’ from the floating menu and copy the path key from the modal box that shows up 1 3 set attribute not every piece of information can be precoded in a bot some data are dynamic and are needed to be passed from the website you are deploying your bot on like with configuring the path that you want to start from, you can set attributes both while launching the chatbot widget within your webpage or as a direct url 1\ chatbot widget invoked using script you can set attributes from the script itself and configure its value as static data or dynamic (using a javascript variable in place of the value) note this attribute can be a new attribute or an existing attribute on the bot while invoking the chatbot widget using the javascript on the webpage, use the format below "user attributes" \[{"name" "fruitname","value" "apple"},{"name" "carname","value" "ford"}] example html \<script>!function(e,t,a){var c=e head||e getelementsbytagname("head")\[0],n=e createelement("script");n async=!0,n defer=!0, n type="text/javascript",n src=t+"/static/js/widget js?config="+json stringify(a),c appendchild(n)}(document,"https //app engati com",{bot key "236264a2d4994d3f",welcome msg\ true,"user attributes" \[{"name" "fruitname","value" "apple"},{"name" "carname","value" "orange"}],branding key "default",server "https //app engati com",e "p" });\</script> 2\ website chatbot using direct url in the bot direct url, some optional parameters can be appended while launching the bot parameters that you can pass \&launch flow=\<launch flow>\&data attrs={key1=val1 key2=val2} example https //app engati com/static/standalone/standalone html?bot key=51088b9bf4624fd6\&launch flow=welcome 82361\&env=p\&data attrs={name=john surname=paul} https //app engati com/static/standalone/standalone html?bot key=51088b9bf4624fd6\&launch flow=welcome 82361\&env=p\&data attrs={name=john surname=paul} “launch flow” will help start the bot on a particular flow “data attrs” can be used to pass some data attributes while launching the bot 3 parameter to override autopop on different web pages – to override, please use the ‘override pop up’ attribute while injecting the script into the webpage by default, the behavior will be as configured in the deploy section for the chatbot feel free to reach out to support\@engati com in case you face any issues