Skip to content

Commit c6ab166

Browse files
committed
added test for webhook
updated tdClientTest
1 parent f488d33 commit c6ab166

File tree

5 files changed

+835
-6
lines changed

5 files changed

+835
-6
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"webhook_enabled": false,
3+
"language": "en",
4+
"name": "Webhook Test",
5+
"slug": "webhook-test",
6+
"type": "tilebot",
7+
"subtype": "webhook",
8+
"intents": [
9+
{
10+
"webhook_enabled": false,
11+
"enabled": true,
12+
"actions": [
13+
{
14+
"_tdActionType": "intent",
15+
"intentName": "#4e8b1e8d-54d3-4156-a2a0-f11075386a79",
16+
"_tdActionId": "1ac87c5463ef4484bcd8c089efe5da43"
17+
}
18+
],
19+
"intent_id": "25d7f89c-40e8-4bba-82cd-6c7d7d6755c8",
20+
"question": "",
21+
"intent_display_name": "webhook",
22+
"language": "en",
23+
"attributes": {
24+
"position": {
25+
"x": 172,
26+
"y": 384
27+
},
28+
"readonly": true,
29+
"nextBlockAction": {
30+
"_tdActionTitle": "",
31+
"_tdActionId": "8637cfed-560e-45d8-8ac7-f16da8a47b55",
32+
"_tdActionType": "intent"
33+
}
34+
},
35+
"agents_available": false
36+
},
37+
{
38+
"webhook_enabled": false,
39+
"enabled": true,
40+
"actions": [
41+
{
42+
"_tdActionType": "web_response",
43+
"status": "200",
44+
"bodyType": "json",
45+
"payload": "{\n\t\"success\": true,\n\t\"message\": \"Your webhook is online!\",\n\t\"value\": 1\n}",
46+
"_tdActionId": "3b9d67587a95421db9d96c79c8a187a5"
47+
}
48+
],
49+
"intent_id": "4e8b1e8d-54d3-4156-a2a0-f11075386a79",
50+
"intent_display_name": "response",
51+
"language": "en",
52+
"attributes": {
53+
"position": {
54+
"x": 714,
55+
"y": 113
56+
},
57+
"nextBlockAction": {
58+
"_tdActionTitle": "",
59+
"_tdActionId": "e16c67bd-c5b8-4ee7-8ff1-ae8e76da14e2",
60+
"_tdActionType": "intent"
61+
}
62+
},
63+
"agents_available": false
64+
}
65+
]
66+
}

0 commit comments

Comments
 (0)