@tiledesk/tiledesk-tybot-connector 0.2.68 → 0.2.69

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,8 +5,11 @@
5
5
  available on:
6
6
  ▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
7
7
 
8
+ # v0.2.69
9
+ - added flow attributes in reply action (original)
10
+
8
11
  # v0.2.68
9
- - added flow attributes in replyv2
12
+ - added flow attributes in replyv2 action
10
13
  - ReplyV2 now "re-forwards" the original message when the "no-match" connector is undefined (behaving exactly like the classic Reply)
11
14
 
12
15
  # v0.2.67
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.68",
3
+ "version": "0.2.69",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -104,6 +104,12 @@ class DirReply {
104
104
  if (this.context.reply && this.context.reply.attributes && this.context.reply.attributes.intent_info) {
105
105
  message.attributes.intentName = this.context.reply.attributes.intent_info.intent_name;
106
106
  }
107
+ // userFlowAttributes
108
+ let userFlowAttributes = TiledeskChatbotUtil.userFlowAttributes(requestAttributes);
109
+ if (this.log) { console.log("userFlowAttributes:", userFlowAttributes); }
110
+ if (userFlowAttributes) {
111
+ message.attributes["flowAttributes"] = userFlowAttributes;
112
+ }
107
113
  }
108
114
  // send!
109
115
  let cleanMessage = message;