Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1d636d
commit e189d5d
Showing
13 changed files
with
244 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"ecmaVersion": 6, | ||
"libs": [], | ||
"loadEagerly": [], | ||
"dontLoad": [ | ||
"node_modules/**" | ||
], | ||
"plugins": { | ||
"doc_comment": true | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const fs = require('fs') | ||
|
||
const BotDriver = require('../../index').BotDriver | ||
const Capabilities = require('../../index').Capabilities | ||
const Source = require('../../index').Source | ||
|
||
const driver = new BotDriver() | ||
.setCapability(Capabilities.PROJECTNAME, 'IBM Watson Conversation Sample') | ||
.setCapability(Capabilities.CONTAINERMODE, 'watsonconversation') | ||
.setCapability(Capabilities.WATSONCONVERSATION_USER, '0274cb6f-3680-4cf7-bd6b-71c7f447542d') | ||
.setCapability(Capabilities.WATSONCONVERSATION_PASSWORD, 'ZWDE5xo02sby') | ||
.setCapability(Capabilities.WATSONCONVERSATION_WORKSPACE_ID, '97513bc0-c581-4bec-ac9f-ea6a8ec308a9') | ||
.setCapability(Capabilities.WATSONCONVERSATION_COPY_WORKSPACE, false) | ||
.setCapability(Capabilities.SCRIPTING_XLSX_SHEETNAMES, 'Dialogs') | ||
.setCapability(Capabilities.SCRIPTING_XLSX_SHEETNAMES_UTTERANCES, 'Utterances') | ||
.setCapability(Capabilities.SCRIPTING_XLSX_STARTROW, 2) | ||
.setCapability(Capabilities.SCRIPTING_XLSX_STARTCOL, 1) | ||
|
||
|
||
const script = fs.readFileSync('./Book2.xlsx') | ||
const compiler = driver.BuildCompiler() | ||
//compiler.Compile(script, 'SCRIPTING_FORMAT_XSLX', 'SCRIPTING_TYPE_CONVO') | ||
//console.log(JSON.stringify(compiler.convos, null, 2)) | ||
compiler.Compile(script, 'SCRIPTING_FORMAT_XSLX', 'SCRIPTING_TYPE_UTTERANCES') | ||
console.log(JSON.stringify(compiler.utterances, null, 2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
SCRIPTING_FORMAT_XSLX: 'SCRIPTING_FORMAT_XSLX', | ||
SCRIPTING_FORMAT_TXT: 'SCRIPTING_FORMAT_TXT', | ||
SCRIPTING_FORMAT_YAML: 'SCRIPTING_FORMAT_YAML', | ||
SCRIPTING_TYPE_CONVO: 'SCRIPTING_TYPE_CONVO', | ||
SCRIPTING_TYPE_UTTERANCES: 'SCRIPTING_TYPE_UTTERANCES' | ||
} |
Oops, something went wrong.