Hi @yamzap 
I had a quick peek at this and there is definitely a way to do this, but requires some custom coding. I used ChatGPT to help me write a script:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Zapier Chatbot Toggle</title>
<style>
/* Style the chatbot container (you can adjust positioning as needed) */
#chatbot-container {
display: none; /* initially hidden */
position: fixed;
bottom: 20px;
right: 20px;
z-index: 9999;
/* Optionally add a border or shadow for visual effect */
border: 1px solid #ccc;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* Style the button */
#open-chat-btn {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 10000;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
</style>
</head>
<body>
<!-- Chatbot container with embed code -->
<div id="chatbot-container">
<script async type="module" src="https://interfaces.zapier.com/assets/web-components/zapier-interfaces/zapier-interfaces.esm.js"></script>
<zapier-interfaces-chatbot-embed
is-popup="false"
chatbot-id="cm4qw3n6f002w2sqb6xjrz6s2"
height="600px"
width="400px">
</zapier-interfaces-chatbot-embed>
</div>
<!-- Button to open the chat -->
<button id="open-chat-btn">Open Chat</button>
<script>
// When the button is clicked, show the chatbot container
document.getElementById('open-chat-btn').addEventListener('click', function() {
var container = document.getElementById('chatbot-container');
// Toggle the display state
if (container.style.display === 'none' || container.style.display === '') {
container.style.display = 'block';
} else {
container.style.display = 'none';
}
});
</script>
</body>
</html>
On a test site, I added an HTML/code block and when publishing it, it looks like this:
https://cdn.zappy.app/e2accd8ad5587779309cf167fdb4cd74.gif
There is definitely a need to style this—but I believe this should get you going.
To note: I am not an engineer myself, so I’m unable to provide updates on the above code, but I hope this points you in the right direction.
To add:
- I’ve shared this feedback with our product team—thanks for the idea!
- Not sure if this is possible, but it could be you could embed the Chatbot (help docs here) and have it show upon a button click.
Hope this helps!
To open a chatbot popup on a custom button click, follow these steps:
-
Add a Button in HTML
html
CopyEdit
<button id="openChatbot">Chat with Us</button>
-
Integrate Chatbot Script
Ensure your chatbot widget (e.g., Drift, Intercom, Tidio) is embedded in your site.
-
Trigger Chatbot Popup with JavaScript
javascript
CopyEdit
document.getElementById("openChatbot").addEventListener("click", function() { // Example for Tidio Chatbot tidioChatApi.open(); });
-
For Custom Chatbot
If using a self-built chatbot, toggle a hidden chat window using CSS and JavaScript.