Skip to content

Commit 7a976fb

Browse files
authored
feat(docs): document greetings methods
1 parent 2de0724 commit 7a976fb

File tree

11 files changed

+1063
-64
lines changed

11 files changed

+1063
-64
lines changed

payloads/management/v3.6/configuration-api/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ export { default as getProductSource } from "./responses/other/getProductSource.
3434

3535
export { default as listCustomerBans } from "./responses/bans/listCustomerBans.json"
3636
export { default as unbanCustomer } from "./responses/bans/unbanCustomer.json"
37+
38+
export { default as listGreetings } from "./responses/greetings/listGreetings.json"
39+
export { default as getGreeting } from "./responses/greetings/getGreeting.json"
40+
export { default as createGreeting } from "./responses/greetings/createGreeting.json"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"id": 123
3+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"id": 123,
3+
"type": "normal",
4+
"active": true,
5+
"name": "Welcome greeting",
6+
"group": 0,
7+
"rules": [
8+
{
9+
"condition": "and",
10+
"type": "visit_time_site",
11+
"operator": "greater_than",
12+
"value": "10"
13+
}
14+
],
15+
"properties": {
16+
"text": "Hello! How can I help you today?"
17+
},
18+
"rich_message": {
19+
"elements": [
20+
{
21+
"title": "Welcome!",
22+
"subtitle": "How can we help you today?",
23+
"buttons": [
24+
{
25+
"text": "Get Support",
26+
"type": "message",
27+
"value": "I need support",
28+
"postback_id": "support_request"
29+
}
30+
]
31+
}
32+
]
33+
}
34+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"greetings": [
3+
{
4+
"id": 123,
5+
"type": "normal",
6+
"active": true,
7+
"name": "Welcome greeting",
8+
"group": 0,
9+
"rules": [
10+
{
11+
"condition": "and",
12+
"type": "visit_time_site",
13+
"operator": "greater_than",
14+
"value": "10"
15+
}
16+
],
17+
"properties": {
18+
"text": "Hello! How can I help you today?"
19+
},
20+
"rich_message": {
21+
"elements": [
22+
{
23+
"title": "Welcome!",
24+
"subtitle": "How can we help you today?",
25+
"buttons": [
26+
{
27+
"text": "Get Support",
28+
"type": "message",
29+
"value": "I need support",
30+
"postback_id": "support_request"
31+
}
32+
]
33+
}
34+
]
35+
}
36+
}
37+
],
38+
"found_greetings": 1
39+
}

payloads/management/v3.7/configuration-api/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ export { default as getProductSource } from "./responses/other/getProductSource.
3434

3535
export { default as listCustomerBans } from "./responses/bans/listCustomerBans.json"
3636
export { default as unbanCustomer } from "./responses/bans/unbanCustomer.json"
37+
38+
export { default as listGreetings } from "./responses/greetings/listGreetings.json"
39+
export { default as getGreeting } from "./responses/greetings/getGreeting.json"
40+
export { default as createGreeting } from "./responses/greetings/createGreeting.json"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"id": 123
3+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"id": 123,
3+
"type": "normal",
4+
"active": true,
5+
"name": "Welcome greeting",
6+
"group": 0,
7+
"rules": [
8+
{
9+
"condition": "and",
10+
"type": "visit_time_site",
11+
"operator": "greater_than",
12+
"value": "10"
13+
}
14+
],
15+
"properties": {
16+
"text": "Hello! How can I help you today?"
17+
},
18+
"rich_message": {
19+
"elements": [
20+
{
21+
"title": "Welcome!",
22+
"subtitle": "How can we help you today?",
23+
"buttons": [
24+
{
25+
"text": "Get Support",
26+
"type": "message",
27+
"value": "I need support",
28+
"postback_id": "support_request"
29+
}
30+
]
31+
}
32+
]
33+
}
34+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"greetings": [
3+
{
4+
"id": 123,
5+
"type": "normal",
6+
"active": true,
7+
"name": "Welcome greeting",
8+
"group": 0,
9+
"rules": [
10+
{
11+
"condition": "and",
12+
"type": "visit_time_site",
13+
"operator": "greater_than",
14+
"value": "10"
15+
}
16+
],
17+
"properties": {
18+
"text": "Hello! How can I help you today?"
19+
},
20+
"rich_message": {
21+
"elements": [
22+
{
23+
"title": "Welcome!",
24+
"subtitle": "How can we help you today?",
25+
"buttons": [
26+
{
27+
"text": "Get Support",
28+
"type": "message",
29+
"value": "I need support",
30+
"postback_id": "support_request"
31+
}
32+
]
33+
}
34+
]
35+
}
36+
}
37+
],
38+
"found_greetings": 1
39+
}

src/pages/management/changelog/index.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The developer preview version provides a preview of the upcoming changes to the
2424

2525
### Canned responses
2626

27-
- Added canned response management methods:
27+
- Added canned response management methods:
2828
- [**Create Canned Response**](/management/configuration-api/v3.7#create-canned-response)
2929
- [**Update Canned Response**](/management/configuration-api/v3.7#update-canned-response)
3030
- [**List Canned Responses**](/management/configuration-api/v3.7#list-canned-responses)
@@ -48,6 +48,15 @@ Use [**Update an account**](/authorization/global-accounts-api#tag/Accounts/path
4848
- [**List Customer Bans**](/management/configuration-api/#list-customer-bans)
4949
- [**Unban Customer**](/management/configuration-api/#unban-customer)
5050

51+
### Greetings
52+
53+
- There are new methods:
54+
- [**Create Greeting**](/management/configuration-api/#create-greeting)
55+
- [**Update Greeting**](/management/configuration-api/#update-greeting)
56+
- [**Delete Greeting**](/management/configuration-api/#delete-greeting)
57+
- [**List Greeting**](/management/configuration-api/#list-greeting)
58+
- [**List Greeting**](/management/configuration-api/#get-greeting)
59+
5160
### Groups
5261

5362
- The "At least one Agent must have the `normal` priority" requirement was removed from the [**Create Group**](/management/configuration-api/#create-group) method's `agent_priorities` parameter.

0 commit comments

Comments
 (0)