generate interaction model

This commit is contained in:
GotPPay
2017-12-03 00:15:11 +01:00
parent d5120a1ba2
commit 74ee9de93f
3 changed files with 53 additions and 6 deletions

View File

@@ -11,8 +11,9 @@ class App extends Component {
constructor(props){
super(props);
this.state={_id:'5a22ffd36ce046c749739453',
this.state={_id:'5a232fb86ce046c749739455',
skillID:'',
skillName:'',
invocationName:'Saburly',
invocationAnswer:'We are saburly',
allIntents:[],
@@ -23,7 +24,7 @@ class App extends Component {
getSkill(this.state._id).then(l=> l.text()).then(result=>{
let jResult = JSON.parse(result)[0];
if (jResult===undefined) return;
this.setState({ skillID:jResult.skillID, invocationName: jResult.invocationName,
this.setState({ skillID:jResult.skillID,skillName:jResult.skillName, invocationName: jResult.invocationName,
invocationAnswer: jResult.invocationAnswer,
allIntents: jResult.intents})
})