ThothNodeJS provides RESTful services of Thoth. This is the project of a Conversational Agent, the Robot Brain of GBS Innovation Center
POST: /api/message
Content-Type: application/json
| Parameter | Type | Required | Note |
|---|---|---|---|
| input | object | required | |
| context | object | The context is generated from Watson Conversaion |
| Parameter | Type | Required |
|---|---|---|
| text | string | required |
| Parameter | Type | Required |
|---|---|---|
| conversation_id | string | required |
| system | object | required |
| defaultCounter | integer | required |
| Parameter | Type | Required |
|---|---|---|
| dialog_stack | array<string> | required |
| dialog_turn_counter | integer | required |
| dialog_request_counter | integer | required |
{
"input": {
"text": "hello"
},
"context": {
"conversation_id": "6e71bb87-ac67-448c-ae8c-28b422b9c9d8",
"system": {
"dialog_stack": [
"root"
],
"dialog_turn_counter": 2,
"dialog_request_counter": 2
},
"defaultCounter": 0
}
}{
"input": {"text": "sample"},
"output":{
"log_messages": [],
"text": "This is a sample",
"api": "getSample()",
"synthesizableText": "This is the synthesizableText for the sample.",
"specialContent": {"data": [
{"Name": "ABC",
"Info": "This is ABC",
"MimeList": [
{"Type": "audio","URL": "<URL>"},
{"Type": "vedio","URL": "<URL>"},
{"Type": "graphic","URL": "<URL>"}
]}
]}
}
}GET: /api/greeting
Content-Type: application/json
| Parameter | Type | Required | Note |
|---|---|---|---|
| id | object | required | List of userid seperated by comma ',' example:"user01,user02" |
| dept | object | required | The department code of the userId |
| Parameter | Type | Required |
|---|---|---|
| text | string[] | required |
| Parameter | Type | Required |
|---|---|---|
| text | string | required |
Content-Type: application/json
#License Copyright 2016 GCG GBS CTO Office under the Apache 2.0 license.