@tiledesk/tiledesk-tybot-connector 0.2.57-rc2 → 0.2.58-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,12 +5,18 @@
|
|
|
5
5
|
available on:
|
|
6
6
|
▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
|
|
7
7
|
|
|
8
|
-
# v0.2.
|
|
8
|
+
# v0.2.58 (next-release)
|
|
9
|
+
- Added support for DTMF Menu (Reply for voice channel)
|
|
10
|
+
|
|
11
|
+
# v0.2.58-rc1
|
|
12
|
+
- Added support for DTMF Menu (Reply for voice channel)
|
|
13
|
+
|
|
14
|
+
# v0.2.57
|
|
9
15
|
- Changed env variables for AskGPT actions
|
|
10
16
|
- Added support for temperature, top_k, max_tokens and context for AskGPTV2 action
|
|
11
17
|
- Added support for context with variables for GptTask action
|
|
12
18
|
- fixed catching reply error in index.js: reply = await chatbot.replyToMessage(message);
|
|
13
|
-
- Added support for DTMF and Blind Transfer (Reply for voice channel)
|
|
19
|
+
- Added support for DTMF Form and Blind Transfer (Reply for voice channel)
|
|
14
20
|
|
|
15
21
|
# v0.2.56
|
|
16
22
|
- Fixing Customerio Action not passing testing
|
|
@@ -337,9 +337,9 @@ class TiledeskChatbotUtil {
|
|
|
337
337
|
static async updateConversationTranscript(chatbot, message) {
|
|
338
338
|
// console.log("transcript updating with:", message)
|
|
339
339
|
|
|
340
|
-
console.log("chatbot name is:", chatbot.bot.name);
|
|
340
|
+
//console.log("chatbot name is:", chatbot.bot.name);
|
|
341
341
|
const chatbot_name = chatbot.bot.name.trim();
|
|
342
|
-
console.log("chatbot name is:", chatbot_name);
|
|
342
|
+
//console.log("chatbot name is:", chatbot_name);
|
|
343
343
|
|
|
344
344
|
if (message && message.text && message.text.trim() !== "" && message.sender !== "_tdinternal" && !this.isHiddenMessage(message)) {
|
|
345
345
|
let transcript = await chatbot.getParameter("transcript");
|
package/package.json
CHANGED
|
@@ -298,6 +298,13 @@ class DirectivesChatbotPlug {
|
|
|
298
298
|
this.process(next_dir);
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
|
+
else if (directive_name === Directives.DTMF_MENU) {
|
|
302
|
+
// console.log("...DirReply");
|
|
303
|
+
new DirReply(context).execute(directive, async () => {
|
|
304
|
+
let next_dir = await this.nextDirective(this.directives);
|
|
305
|
+
this.process(next_dir);
|
|
306
|
+
});
|
|
307
|
+
}
|
|
301
308
|
else if (directive_name === Directives.BLIND_TRANSFER) {
|
|
302
309
|
// console.log("...DirReply");
|
|
303
310
|
new DirReply(context).execute(directive, async () => {
|
|
@@ -24,21 +24,25 @@ class Directives {
|
|
|
24
24
|
static SET_ATTRIBUTE = "setattribute";
|
|
25
25
|
static SET_ATTRIBUTE_V2 = "setattribute-v2";
|
|
26
26
|
static REPLY = 'reply';
|
|
27
|
-
static DTMF_FORM = 'dtmf_form';
|
|
28
|
-
static BLIND_TRANSFER = 'blind_transfer';
|
|
29
27
|
static RANDOM_REPLY = 'randomreply';
|
|
30
28
|
static CODE = 'code';
|
|
31
29
|
static WHATSAPP_ATTRIBUTE = 'whatsapp_attribute';
|
|
30
|
+
static FORM = "form";
|
|
31
|
+
static CAPTURE_USER_REPLY = "capture_user_reply";
|
|
32
|
+
static REPLACE_BOT_V2 = "replacebotv2";
|
|
33
|
+
/**** AI ****/
|
|
32
34
|
static ASK_GPT = "askgpt";
|
|
33
35
|
static ASK_GPT_V2 = "askgptv2";
|
|
34
36
|
static GPT_TASK = "gpt_task";
|
|
35
|
-
|
|
36
|
-
static CAPTURE_USER_REPLY = "capture_user_reply";
|
|
37
|
+
/**** INTEGRATIONS ****/
|
|
37
38
|
static QAPLA = 'qapla';
|
|
38
39
|
static MAKE = 'make';
|
|
39
|
-
static REPLACE_BOT_V2 = "replacebotv2";
|
|
40
40
|
static HUBSPOT = 'hubspot';
|
|
41
41
|
static CUSTOMERIO = 'customerio';
|
|
42
|
+
/**** VOICE CHANNEL ****/
|
|
43
|
+
static DTMF_FORM = 'dtmf_form';
|
|
44
|
+
static DTMF_MENU = 'dtmf_menu';
|
|
45
|
+
static BLIND_TRANSFER = 'blind_transfer';
|
|
42
46
|
|
|
43
47
|
// static WHEN_ONLINE_MOVE_TO_AGENT = "whenonlinemovetoagent"; // DEPRECATED?
|
|
44
48
|
// static WHEN_OFFLINE_HOURS = "whenofflinehours"; // DEPRECATED // adds a message on top of the original message when offline hours opts: --replace
|