Skip to content

Latest commit

 

History

History
48 lines (43 loc) · 993 Bytes

dialog.md

File metadata and controls

48 lines (43 loc) · 993 Bytes

Dialog | Chat flow | 对话

A dialog is group of chat contents.

Context

{
    "context": {
        "title": "{title}",
        "uri": "{uri}",
        "description": "{markdown}"
    }
}

Participants

agents: [
    {
        "id": "agent_3",
        "name": "成天乐",
        "title": "",
        "avatarType": "robot", // will be supporte in future
        "semantics": [] // will be supporte in future
    },
]

Dialog Item

items: [
    {
        "id": "chat_item_1",
        "time": "Fri, 22 Nov 2019 15:35:17 GMT",
        "position": "left", // left/right
        "text": "老白啊,你听课就不能认真点?",
        "agentId": "agent_3",
        "delay": 1, // will be supporte in future
        "precedingAside": "some aside, then dialog happened.",
        "followingAside": "some aside after dialog"
    },
]

Tech Stack

Web Frontend:
tui.editor
Ractive