You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Create a chatbot with the specified properties. [See the documentation](https://www.chat-data.com/api-reference#tag/Chatbot-Operations/operation/chatbotCreate)",
7
+
version: "0.0.1",
8
+
type: "action",
9
+
props: {
10
+
app,
11
+
chatbotName: {
12
+
propDefinition: [
13
+
app,
14
+
"chatbotName",
15
+
],
16
+
},
17
+
sourceText: {
18
+
propDefinition: [
19
+
app,
20
+
"sourceText",
21
+
],
22
+
},
23
+
urlsToScrape: {
24
+
propDefinition: [
25
+
app,
26
+
"urlsToScrape",
27
+
],
28
+
},
29
+
customBackend: {
30
+
propDefinition: [
31
+
app,
32
+
"customBackend",
33
+
],
34
+
},
35
+
model: {
36
+
propDefinition: [
37
+
app,
38
+
"model",
39
+
],
40
+
},
41
+
},
42
+
43
+
asyncrun({ $ }){
44
+
constresponse=awaitthis.app.createChatbot({
45
+
$,
46
+
data: {
47
+
chatbotName: this.chatbotName,
48
+
sourceText: this.sourceText,
49
+
urlsToScrape: this.urlsToScrape,
50
+
customBackend: this.customBackend,
51
+
model: this.model,
52
+
},
53
+
});
54
+
$.export("$summary",`Successfully created Chatbot with ID '${response.chatbotId}'`);
description: "Delete a chatbot with the specified ID. [See the documentation](https://www.chat-data.com/api-reference#tag/Chatbot-Operations/operation/chatbotDelete)",
7
+
version: "0.0.1",
8
+
type: "action",
9
+
props: {
10
+
app,
11
+
chatbotId: {
12
+
propDefinition: [
13
+
app,
14
+
"chatbotId",
15
+
],
16
+
},
17
+
},
18
+
19
+
asyncrun({ $ }){
20
+
constresponse=awaitthis.app.deleteChatbot({
21
+
$,
22
+
chatbotId: this.chatbotId,
23
+
});
24
+
25
+
$.export("$summary",`Successfully deleted Chatbot with ID '${this.chatbotId}'`);
description: "Get status of the Chatbot with the specified ID. [See the documentation](https://www.chat-data.com/api-reference#tag/Chatbot-Operations/operation/GetChatbotStatus)",
8
+
version: "0.0.1",
9
+
type: "action",
10
+
props: {
11
+
app,
12
+
chatbotId: {
13
+
propDefinition: [
14
+
app,
15
+
"chatbotId",
16
+
],
17
+
},
18
+
},
19
+
20
+
asyncrun({ $ }){
21
+
constresponse=awaitthis.app.getChatbotStatus({
22
+
$,
23
+
chatbotId: this.chatbotId,
24
+
});
25
+
26
+
$.export("$summary",`Successfully retrieved status of the Chatbot with ID '${this.chatbotId}'`);
description: "Text data for the chatbot, subject to character limits based on your plan. Relevant only if the model is custom-data-upload",
34
+
optional: true,
35
+
},
36
+
urlsToScrape: {
37
+
type: "string[]",
38
+
label: "URLs to Scrape",
39
+
description: "A list of URLs is for text content extraction by Chat Data, i.e.: `https://www.chat-data.com`. Relevant only if the model is custom-data-upload",
40
+
optional: true,
41
+
},
42
+
customBackend: {
43
+
type: "string",
44
+
label: "Custom Backend",
45
+
description: "The URL of a customized backend for the chatbot",
46
+
optional: true,
47
+
},
48
+
model: {
49
+
type: "string",
50
+
label: "Model",
51
+
description: "The chatbot defaults to `custom-data-upload` if the model parameter is not provided",
0 commit comments