An open API service indexing awesome lists of open source software.

https://github.com/chihebnabil/dc-chat-widget

easy-to-use chat widget for your web applications
https://github.com/chihebnabil/dc-chat-widget

Last synced: 3 months ago
JSON representation

easy-to-use chat widget for your web applications

Awesome Lists containing this project

README

        

# DocsChatAI Chat Widget

`dc-chat-widget` is a and easy-to-use chat widget for your web applications.

[Watch the video](https://www.loom.com/embed/0e18a9d4d47c4446bb77e0f34c3fb4e3?sid=f25e5121-1ec5-4c18-ad15-db42275b4733)

## Before you start

Before you start using the chat widget, you need to:

- Create an account on [DocsChatAI.com](https://docschatai.com)
- Upload at least one file the workspace (Folder)
- Copy the workspace (Folder) ID from [this page](https://docschatai.com/workspaces) by clicking on the three dots on the right side of the workspace (Folder) and selecting `Copy ID`.

## Installation

Install the package via npm:

```sh
npm install dc-chat-widget
```

or Using unpkg CDN:

```html

```

## Usage

```javascript
import "dc-chat-widget";
```

Then add the following tag to your HTML:

```html

```

## Configuration

You can configure the chat widget by passing the following attributes:

- `workspace-id`: The workspace (Folder) ID of your chatbot (DocsChatAI.com).
- `title`: The title of the chat widget.
- `subtitle`: The subtitle of the chat widget.
- `theme`: The hex color code of the chat widget.
- `btn-size`: The size of the chat widget button. Default is `50px`.
- `btn-bottom`: The bottom position of the chat widget button. Default is `10px`.
- `btn-right`: The right position of the chat widget button. Default is `10px`.
- `font-family`: The font family of the chat widget. Default is `Arial, Helvetica, sans-serif`.
- `actions`: quick actions to be displayed in the chat widget. Default is `[]`.

```html

```

## Constributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.