n8n-nodes-typebot 1.0.0 → 1.0.1
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.
|
@@ -790,7 +790,7 @@ class Typebot {
|
|
|
790
790
|
}
|
|
791
791
|
responseData = await this.helpers.request({
|
|
792
792
|
method: 'POST',
|
|
793
|
-
url:
|
|
793
|
+
url: `${baseUrl}/v1/typebots/${publicId}/startChat`,
|
|
794
794
|
body,
|
|
795
795
|
json: true,
|
|
796
796
|
});
|
|
@@ -800,7 +800,7 @@ class Typebot {
|
|
|
800
800
|
const message = this.getNodeParameter('message', i);
|
|
801
801
|
responseData = await this.helpers.request({
|
|
802
802
|
method: 'POST',
|
|
803
|
-
url:
|
|
803
|
+
url: `${baseUrl}/v1/sessions/${sessionId}/continueChat`,
|
|
804
804
|
body: { message },
|
|
805
805
|
json: true,
|
|
806
806
|
});
|
|
@@ -825,7 +825,7 @@ class Typebot {
|
|
|
825
825
|
}
|
|
826
826
|
responseData = await this.helpers.request({
|
|
827
827
|
method: 'POST',
|
|
828
|
-
url:
|
|
828
|
+
url: `${baseUrl}/v1/typebots/${typebotId}/preview/startChat`,
|
|
829
829
|
body,
|
|
830
830
|
json: true,
|
|
831
831
|
});
|
|
@@ -930,7 +930,7 @@ class Typebot {
|
|
|
930
930
|
const publicId = this.getNodeParameter('publicId', i);
|
|
931
931
|
responseData = await this.helpers.request({
|
|
932
932
|
method: 'GET',
|
|
933
|
-
url:
|
|
933
|
+
url: `${baseUrl}/v1/publicTypebots/${publicId}`,
|
|
934
934
|
json: true,
|
|
935
935
|
});
|
|
936
936
|
}
|