@tiledesk/tiledesk-tybot-connector 0.2.35 → 0.2.36

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,9 @@
5
5
  available on:
6
6
  ▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
7
7
 
8
+ # v0.2.36
9
+ - Fixes json conversion in GptTask issue
10
+
8
11
  # v0.2.35
9
12
  - added validation check for requests ids (support-group- && automation-request-)
10
13
  - refactorized GptTask, AskGPT and Qapla actions in order to support integrations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -217,7 +217,8 @@ class DirGptTask {
217
217
  } else {
218
218
  if (this.log) { console.log("DirGptTask resbody: ", JSON.stringify(resbody)); }
219
219
  answer = resbody.choices[0].message.content;
220
- await this.#assignAttributes(action, answer);
220
+ let answer_json = await this.convertToJson(answer);
221
+ await this.#assignAttributes(action, answer_json);
221
222
  if (trueIntent) {
222
223
  await this.#executeCondition(true, trueIntent, trueIntentAttributes, falseIntent, falseIntentAttributes);
223
224
  callback(true);