1.3.5 • Published 2 months ago
wayble-chat v1.3.5
Wayble Chat UI
The official chat client for Wayble AI
Setup & Run
npm install
npm run dev
npm run build
Chat Media Types
Link
{
"type": "link",
"link": {
"title": "string",
"href": "string"
}
}
Image
{
"type": "image",
"image": {
"src": "string",
"alt": "?string",
"width": "?int",
"height": "?int"
}
}
Mapsted
{
"type": "mapsted",
"mapsted": {
"title": "string",
"url": "string"
}
}
List
{
"type": "list",
"list": {
"item": "mapsted",
"items": [
{
"type": "mapsted",
"mapsted": {
"title": "string",
"url": "string"
}
}
]
}
}
Media Type Example
{
"media": [
{
"type": "list",
"list": {
"item": "mapsted",
"items": [
{
"type": "mapsted",
"mapsted": {
"title": "Coffee Shop East 21",
"url": "https://domain.com/wayfinding?building=1&floor=2&entity=4"
}
},
{
"type": "mapsted",
"mapsted": {
"title": "Coffee Shop West",
"url": "https://domain.com/wayfinding?building=1&floor=3&entity=5"
}
}
]
}
},
{
"type": "list",
"list": {
"item": "product",
"items": [
{
"type": "product",
"product": {
"title": "",
"image": {
"src": "/static/products/hat.jpeg",
"alt": "My fancy hat",
"width": "",
"height": ""
}
}
}
]
}
}
]
}
API Interface
A short description of the public API interface exposed by the chat client
Actions
POST: getChat()
- Fetches the chat object and its messagesPOST: createChat()
- Creates a chat and returns the chat object and its messagesPOST: sendChatMessage()
- Sends a message to the chatbot/chat and return the chat message (reply)
Events
onChatLoaded()
- Fired when the chat is loadedonChatMessageSent()
- Fired when a message is sent to the chatbot/chatonChatMessageReceived()
- Fired when a message is received from the chatbot/chat
Hooks
handlePushUpdateHook
- Run when a push update is received
1.3.5
2 months ago
1.3.4
2 months ago
1.3.3
2 months ago
1.3.2
4 months ago
1.3.1
4 months ago
1.3.0
4 months ago
1.2.0
5 months ago
1.1.11
5 months ago
1.1.9
5 months ago
1.1.8
5 months ago
1.1.7
6 months ago
1.1.6
6 months ago
1.1.5
6 months ago
1.1.4
6 months ago
1.1.3
6 months ago
1.1.2
6 months ago
1.1.1
6 months ago
1.0.0
6 months ago