Chat Widget
Use it when you need visitor data capture and routing into your messaging operation.
Main fields
sendToken: outbound channel tokencontactToken: contacts project tokendefaultCountry: default country (BR,US, etc.)sector: target queue/sector (optional)captureEmail,hidePoweredBy,autoOpenlanguages: text configuration by country/language
Example
<script>
window.sendeasyConfig = {
sendToken: "YOUR_SEND_TOKEN",
contactToken: "YOUR_CONTACT_TOKEN",
defaultCountry: "US",
captureEmail: true,
hidePoweredBy: false,
autoOpen: false,
chatButtonColor: "#000000",
chatButtonTextColor: "#FFFFFF",
sendButtonColor: "#58BE55",
sector: "QUEUE_ID",
languages: {
US: {
questions: [
"Hello, how can we help you today?",
"What is your name?",
"What is your email?",
"Finally, what is your WhatsApp number?",
],
finish: "Thank you! We will contact you shortly.",
thanksMessage: "{name}, we received your message and will reply shortly.",
chatButton: "Chat",
chatPlaceholder: "Type your message...",
closeChatButton: "Close Chat",
},
},
};
</script>
<script src="https://widget.sendeasy.pro/sendeasy-widget-chat-dev.js" defer></script>