@tiledesk/tiledesk-tybot-connector 0.2.61 → 0.2.62-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,8 @@
5
5
  available on:
6
6
  ▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
7
7
 
8
+ # v0.2.62-rc1
9
+ - Added VXML actions (speech_form, play_prompt)
8
10
 
9
11
  # v0.2.61
10
12
  - fixed WebRequestv2 timeout
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.61",
3
+ "version": "0.2.62-rc1",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -312,6 +312,20 @@ class DirectivesChatbotPlug {
312
312
  this.process(next_dir);
313
313
  });
314
314
  }
315
+ else if (directive_name === Directives.SPEECH_FORM) {
316
+ // console.log("...DirReply");
317
+ new DirReply(context).execute(directive, async () => {
318
+ let next_dir = await this.nextDirective(this.directives);
319
+ this.process(next_dir);
320
+ });
321
+ }
322
+ else if (directive_name === Directives.PLAY_PROMPT) {
323
+ // console.log("...DirReply");
324
+ new DirReply(context).execute(directive, async () => {
325
+ let next_dir = await this.nextDirective(this.directives);
326
+ this.process(next_dir);
327
+ });
328
+ }
315
329
  else if (directive_name === Directives.RANDOM_REPLY) {
316
330
  // console.log("...DirRandomReply");
317
331
  new DirRandomReply(context).execute(directive, async () => {
@@ -75,8 +75,8 @@ class DirCaptureUserReply {
75
75
  // console.log("(DirCaptureUserReply) lockIntent");
76
76
  await this.chatbot.lockAction(this.requestId, actionId);
77
77
  // console.log("(DirCaptureUserReply) lockAction");
78
- let _lockedAction = await this.chatbot.currentLockedAction(this.requestId);
79
- let _lockedIntent = await this.chatbot.currentLockedIntent(this.requestId);
78
+ // let _lockedAction = await this.chatbot.currentLockedAction(this.requestId);
79
+ // let _lockedIntent = await this.chatbot.currentLockedIntent(this.requestId);
80
80
  // console.log("(DirCaptureUserReply) _lockedAction", _lockedAction)
81
81
  // console.log("(DirCaptureUserReply) _lockedIntent", _lockedIntent)
82
82
  callback();
@@ -43,6 +43,8 @@ class Directives {
43
43
  static DTMF_FORM = 'dtmf_form';
44
44
  static DTMF_MENU = 'dtmf_menu';
45
45
  static BLIND_TRANSFER = 'blind_transfer';
46
+ static SPEECH_FORM = 'speech_form';
47
+ static PLAY_PROMPT = 'play_prompt';
46
48
 
47
49
  // static WHEN_ONLINE_MOVE_TO_AGENT = "whenonlinemovetoagent"; // DEPRECATED?
48
50
  // static WHEN_OFFLINE_HOURS = "whenofflinehours"; // DEPRECATED // adds a message on top of the original message when offline hours opts: --replace