@tiledesk/tiledesk-server 2.3.52 → 2.3.54

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,127 @@
1
+ const existing_chatbot_mock = {
2
+ _id: "63234fd6c69f188814749e1b",
3
+ webhook_enabled: false,
4
+ type: "identity",
5
+ secret: "a3577185-a8bf-4547-a000-6ba81ccb0460",
6
+ language: "en",
7
+ description: "An identity bot",
8
+ id_project: "63234fd6c69f188814749e15",
9
+ trashed: false,
10
+ createdBy: "system",
11
+ createdAt: "2022-09-15T15:32:06.491Z",
12
+ updatedAt: "2022-09-15T15:32:06.491Z",
13
+ name: "Bot",
14
+ intents: [
15
+ {
16
+ "webhook_enabled": false,
17
+ "enabled": true,
18
+ "question": "👨🏻‍🦰 I want an agent",
19
+ "answer": "We are looking for an operator.. \\agent",
20
+ "intent_display_name": "agent_handoff",
21
+ "language": "en",
22
+ "form": {
23
+ "cancelCommands": [
24
+ "Cancel"
25
+ ],
26
+ "cancelReply": "Form canceled",
27
+ "id": 1,
28
+ "name": "Base",
29
+ "fields": [
30
+ {
31
+ "name": "userFullname",
32
+ "type": "text",
33
+ "label": "What is your name?",
34
+ "regex": "/^.{1,}$/"
35
+ },
36
+ {
37
+ "name": "userEmail",
38
+ "type": "text",
39
+ "regex": "/^.{1,}$/",
40
+ "label": "Hi ${userFullname}. Just one last question. What's your business email? 🙂",
41
+ "errorLabel": "${userFullname} this email address is invalid\n\nCan you insert a correct email address?"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ {
47
+ "webhook_enabled": false,
48
+ "enabled": true,
49
+ "question": "Close\nResolved",
50
+ "answer": "\\close",
51
+ "intent_display_name": "2SN1EO",
52
+ "language": "en"
53
+ },
54
+ {
55
+ "webhook_enabled": false,
56
+ "enabled": true,
57
+ "question": "defaultFallback",
58
+ "answer": "Could you please rephrase the question? Use short sentences and send it in just one message.\n\nAs an alternative you can go back to the Main Menu👇🏼\n* ↩︎ Main Menu tdAction:start",
59
+ "intent_display_name": "defaultFallback",
60
+ "language": "en"
61
+ },
62
+ {
63
+ "webhook_enabled": false,
64
+ "enabled": true,
65
+ "question": "\\start",
66
+ "answer": "Hello 👋. My name is Dean. Lovely of you to get in touch!\nMy only purpose in life is to help you navigate the frustrating waters of having to decide what to have for dinner.\n\nYet again. \n\nAs a proud gourmet and wine connoisseur, I'll take the freedom to give you some interesting suggestions.\n\nChoose one of the below for a juicy description.\n* 🍕The most ordered type of pizza\n* 👌Chef's favourite\n* 🍣The most highly rated sushi \n* 🍹Cocktail of the month\n* 🍻Oktoberfest specials\n* 🕹️ Or play a game while waiting",
67
+ "intent_display_name": "start",
68
+ "language": "en"
69
+ },
70
+ {
71
+ "webhook_enabled": false,
72
+ "enabled": true,
73
+ "question": "What can you do?\nWho are you?",
74
+ "answer": "Hi, I'm Dean 🤖\n\nYou can find more about me [here](https://tiledesk.com/chatbot-for-customer-service)\ntdImage:https://console.tiledesk.com/assets/images/tily-welcomebot.gif\n* ↩︎ Start over tdAction:start",
75
+ "intent_display_name": "7jLAZf",
76
+ "language": "en"
77
+ },
78
+ {
79
+ "webhook_enabled": false,
80
+ "enabled": true,
81
+ "question": "Sample Action",
82
+ "answer": "Hello 👋 Would you like to take a closer look at our offer?\n* Yes, please tdAction:yes_action\n* No tdAction:no_action",
83
+ "intent_display_name": "action1",
84
+ "language": "en"
85
+ },
86
+ {
87
+ "webhook_enabled": false,
88
+ "enabled": true,
89
+ "question": "Back to start",
90
+ "answer": "Choose one of the below for a juicy description.\n* 🍕The most ordered type of pizza\n* 👌Chef's favourite\n* 🍣The most highly rated sushi\n* 🍹Cocktail of the month\n* 🍻Oktoberfest specials",
91
+ "language": "en",
92
+ "intent_display_name": "back"
93
+ },
94
+ {
95
+ "webhook_enabled": false,
96
+ "enabled": true,
97
+ "question": "🍹Cocktail of the month",
98
+ "answer": "Looks like you may need a designated driver with this one...\ntdImage:https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/cosmopolitan-1592951320.jpg\n* Back to start",
99
+ "language": "en",
100
+ "intent_display_name": "booze"
101
+ }
102
+ ]
103
+ }
104
+
105
+ const empty_chatbot_mock = {
106
+ webhook_enabled: false,
107
+ type: 'internal',
108
+ secret: '0896478d-8eb3-4240-a6eb-cf2ea27b1a8e',
109
+ language: 'en',
110
+ public: false,
111
+ _id: '638db4d551144cfc72231bfd',
112
+ name: 'Dean for Quick Replies',
113
+ description: "This chatbot can recognize customers' purpose, context, and content. Then Providing some buttons as quick replies",
114
+ id_project: '6321b12a30e19d61d65ff080',
115
+ trashed: false,
116
+ createdBy: '6321b12930e19d61d65ff045',
117
+ createdAt: '2022-12-05T09:07:33.722Z',
118
+ updatedAt: '2022-12-05T09:07:33.722Z',
119
+ __v: 0
120
+ }
121
+
122
+ const import_faqs_res_mock = {
123
+ success: true,
124
+ msg: "Intents imported successfully"
125
+ }
126
+
127
+ module.exports = { existing_chatbot_mock, empty_chatbot_mock, import_faqs_res_mock };
@@ -1 +1 @@
1
- {"webhook_enabled":false,"language":"en","name":"examplebot","intents":[{"webhook_enabled":false,"enabled":true,"question":"\\start","answer":"Hello","intent_display_name":"start","language":"en"},{"webhook_enabled":false,"enabled":true,"question":"defaultFallback","answer":"I can not provide an adequate answer. Write a new question or talk to a human agent.\n* Back to start tdAction:start\n* See the docs https://docs.tiledesk.com/\n* 👨🏻‍🦰 I want an agent","intent_display_name":"defaultFallback","language":"en"}]}
1
+ {"webhook_enabled":false,"language":"en","name":"examplebot","intents":[{"webhook_enabled":false,"enabled":true,"question":"\\start","answer":"Hi","intent_display_name":"start","language":"en"},{"webhook_enabled":false,"enabled":true,"question":"question1","answer":"question1","intent_display_name":"question1","language":"en"},{"webhook_enabled":false,"enabled":true,"question":"defaultFallback","answer":"I can not provide an adequate answer. Write a new question or talk to a human agent.\n* Back to start tdAction:start\n* See the docs https://docs.tiledesk.com/\n* 👨🏻‍🦰 I want an agent","intent_display_name":"defaultFallback","language":"en"}]}