A plugin to simplify embedding the chatbox iframe within svelte websites.
[!IMPORTANT]
Place theBotcomponent in the root+layout.svelte, at the bottom of the file (so thatBotloads last).
import Bot from '@hotelchatai/svelte-chatbox';
<Bot
src="https://v2.hotelchatai.com"
bot="website"
theme="forest"
enableTickets={false}
displayName="Amei (阿美)"
/>
src - The bot root endpoint (almost always "https://v2.hotelchatai.com")bot - Bot codename corresponding to the hotel. For example, "roumei" for Roumei Boutique Hotel. "website" corresponds to our website's chatbot. Ask us for hotel codenames.theme - Any of Daisy UI themes.enableTickets - Enables users to open tickets that hotel workers can check. Recommend leaving off to not confuse users for now.displayName - Robot's visible chatbox name