This section contains the FAQs related to the installation of various type of bot
Frequently Asked Questions #
Bot Installation FAQs #
How to install website bot using JavaScript?
Copy the Javascript code from the Flowmatix app
Go to your website’s HTML code
Paste the script in the
<head>or<body>tagNote:
Ensure that you paste the script before the tag is closed (
</head>or</body>)Make sure Flowmatix is the last script to execute, as some scripts may override the Flowmatix script
How to install a bot on a WordPress website?
Log into your Flowmatix account, go to the Bots Tab, select your bot, and navigate to the Install section
Go to the WordPress section and copy the API key
Open your website’s wp-admin using
yourdomain.com/wp-adminGo to Plugins, then Add New, search for Flowmatix, click Install Now, then Activate Plugin
Install and activate the Flowmatix plugin
Paste the Flowmatix API key in the box labeled “Flowmatix Snippet”
Save settings. The bot is now integrated
Bot is not showing up upon activation of WP-Rocket plugin
If you have both WP-Rocket and the Flowmatix script or plugin added to your WordPress site, the bot may not appear
To fix this:
Login to wp-admin and open WP-Rocket settings
Go to File Optimization, then JavaScript Files, then Load JavaScript Deferred
Add the Flowmatix bot script under Exclude JavaScript Files
Reference:
https://docs.wp-rocket.me/article/976-exclude-files-from-defer-jsWhat is the minimum browser version requirement for the Flowmatix website bot?
Flowmatix is a JavaScript-based software. Your browser must support JavaScript
Minimum supported browser versions include:
Google Chrome version 51 and above
Edge version 14 and above
Safari version 10 and above
Firefox version 52 and above
How to resolve latency issues on my website when I have a chatbot installed?
Chatbot scripts can slow page loading by initializing with the rest of the page content. This may lead to latency issues
To resolve this, use a delayed loading method. In the document ready function, create a timeout of 3 seconds and inject the Flowmatix script like this:
<script>
const scriptEle = document.createElement(“script”);
scriptEle.src = ‘https://cdn.flowmatix.ai/flowmatix.js’;
scriptEle.setAttribute(‘id’, ‘Flowmatix-messenger-widget’);
scriptEle.innerHTML = ‘[Your Bot ID]’;
document.onreadystatechange = function () {
if (document.readyState == “complete”) {
setTimeout(() => {
document.body.appendChild(scriptEle);
}, 3000);
}
}
</script>
Note: Replace
[Your Bot ID]with your actual bot IDWhat are the channels where I can install my bot?
As of 13/12/23, Flowmatix bots can be installed on
Website
Whatsapp
Facebook
Telegram
Standalone landing page
Instagram is coming soon
Why my bot is not showing up upon activation of wp-rocket plugin?
If you have both wp-rocket and Flowmatix Plugin/Script added to your WordPress site, You may face the issue of the Flowmatix not showing up on the website.
In case you are facing such issues, try the below steps, and it will solve the problem.
Login to your wp-admin panel and open the wp-rocket settings.
Go to the File Optimization → JavaScript Files -> Load JavaScript deferred
Add the Flowmatix bot script here under Exclude Java Script Files option, and done!
Also you can add this provided code snippet :
<script>
const scriptEle = document.createElement(“script”);
scriptEle.src = (‘src’, ‘https://cdn.Flowmatix .ai/botpenguin.js’);
scriptEle.setAttribute(‘id’, ‘Flowmatix-messenger-widget’);
scriptEle.innerHTML = ‘6ffd62fkb3013e15bc12ba60,6ffd62fkb3013e15bc12ba60’; // Replace with your chatbot IDs
document.onreadystatechange = function () {
if (document.readyState == “complete”) {
setTimeout(function() {
document.body.appendChild(scriptEle);
}, 10);
}
}
</script>