https://github.com/conversationalcomponents/wordpress-plugin
Plugin for wordpress to connect CoCoHub bots
https://github.com/conversationalcomponents/wordpress-plugin
chatbot conversational-components conversational-interfaces wordpress-plugin
Last synced: about 2 months ago
JSON representation
Plugin for wordpress to connect CoCoHub bots
- Host: GitHub
- URL: https://github.com/conversationalcomponents/wordpress-plugin
- Owner: ConversationalComponents
- License: mit
- Created: 2020-01-20T13:08:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-27T10:11:18.000Z (about 3 years ago)
- Last Synced: 2024-12-24T13:33:03.519Z (over 1 year ago)
- Topics: chatbot, conversational-components, conversational-interfaces, wordpress-plugin
- Language: TypeScript
- Homepage: https://cocohub.ai
- Size: 4.35 MB
- Stars: 0
- Watchers: 5
- Forks: 3
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## CoCo WordPress ChatWindow Plugin
##### Quickstart
```bash
./build.sh
```
This will create cocohub.zip file. This is the built plugin, upload it to a wordpress installation.
Use with the shortcode [cocobot] or [cocobot component=componentid]
##### ChatWindow API:
Chat window is added to a DOM element called "erw-root"
It accepts the following parameters:
```js
{
name: string; // name to appear in header
human_id_or_url: string; // full url for exchange or ID of bot
bot_greeting?: string; // what the bot should say before chat begins, defaults to "Type anything to get started!"
is_fabless?: "false" | "true"; // when false/undefined, window is attached to a button, fixed in lower right corner. Otherwise it'll be placed under the root component
is_rtl?: "false" | "true"; // when false/undefined, direction of chat window is left-to-right. When true, direction is right to left
is_open_on_start?: "false" | "true"; // on desktop start open
height?: number; // desired height, defaults to 500
width?: number; // desired width, defaults to 300
}
```
Parameters are taken from attributes of "cocobot". Example:
```html
```