16 lines
305 B
JavaScript
16 lines
305 B
JavaScript
if (router.hasNext()) {
|
|
recognizedObject.goTo = router.next().id;
|
|
recognizedObject.input = router.next().input;
|
|
} else {
|
|
recognizedObject.input = recognizedObject.req.body.input;
|
|
}
|
|
|
|
console.log({
|
|
agentRouter: {
|
|
goTo: recognizedObject.goTo,
|
|
input: recognizedObject.input,
|
|
},
|
|
});
|
|
|
|
next();
|