0.1.0 • Published 5 months ago

codeclouders-chat-widget v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Clouders Embedded Chat , Welcome 👋

Fully Responsive Chat Component To Embedded In Your Website

Example

<clouders-chat
    width="450"
    height="606"
    window_title="Support Chat"
    flow_id="your-flow-id"
    host_url="https://your-host.com"
    position="bottom-right"
    is_chat_arabic="false"
    online_message="Available 24/7"
    company_logo="path/to/logo.png"
    starter_messages='[" Hi! How can I help you today?"]'
    message_suggestions='["How does this work?", "What can you help me with?", "Tell me more about your features"]'
    main_color="#7e3f3f"
></clouders-chat>

Installation

Option 2: Local Build

  1. Clone this repository to your local machine:
git clone https://github.com/
  1. Navigate to the project directory:
cd clouders-embedded-chat
  1. Build the project to generate the bundle:
npm install --legacy-peer-deps
npm audit fix --force
npm run build

# for startting the dev server
npm start
  1. After the build process completes, you'll find the bundle in the dist/build/static/js folder. You can include this JavaScript file in your HTML:
<script src="path/to/your/langflow-widget.js"></script>

Configuration

Use the widget API to customize your widget:

PropTypeRequiredDefaultDescription
widthnumberNo300Width of chat window in pixels
heightnumberNo650Height of chat window in pixels
window_titlestringNo"Chat"Title displayed in the chat window
flow_idstringYes-Unique identifier for the chat flow
host_urlstringYes-URL of the host server
positionstringNo"bottom-right"Position of chat window (e.g., "bottom-right", "top-left")
is_chat_arabicbooleanNofalseEnable RTL layout for Arabic
online_messagestringNo"We'll reply as soon as we can"Message shown when chat is online
company_logostringNo-URL or base64 of company logo
starter_messagesarrayNo[]Initial messages to show in chat
message_suggestionsarrayNo[]Suggested messages shown as quick replies
main_colorstringNo"#22C55E"Primary color for chat theme