-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzendesk.html
203 lines (203 loc) · 6.81 KB
/
zendesk.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Zendesk AI Agent</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
color: #333;
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
h1, h2 {
color: #4a4a8c;
text-align: center;
}
.content {
max-width: 800px;
width: 100%;
padding: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
background-color: #fff;
border-radius: 8px;
}
ul {
list-style-type: none;
padding: 0;
}
li {
margin-bottom: 20px;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
th, td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #4a4a8c;
color: #fff;
width: 150px;
}
tr:hover {
background-color: #f1f1f1;
}
a {
color: #4a4a8c;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.function-title {
font-size: 1.2em;
margin-bottom: 5px;
}
.description {
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="content">
<h1>Zendesk AI Agent Functions</h1>
<p>This document provides an overview of the functions available for the Zendesk AI Agent integration.</p>
<h2>Available Functions:</h2>
<ul>
<li>
<div class="function-title">Create a new support ticket</div>
<table>
<tr>
<th>Function</th>
<td>create_ticket</td>
</tr>
<tr>
<th>Parameters</th>
<td>subject (required), comment_body (required), requester_name, requester_email, priority, tags, custom_fields</td>
</tr>
<tr>
<th>Description</th>
<td>Creates a new support ticket in Zendesk.</td>
</tr>
</table>
</li>
<li>
<div class="function-title">Update an existing support ticket</div>
<table>
<tr>
<th>Function</th>
<td>update_ticket</td>
</tr>
<tr>
<th>Parameters</th>
<td>ticket_id (required), status, priority, comment_body, public, tags, custom_fields</td>
</tr>
<tr>
<th>Description</th>
<td>Updates an existing support ticket in Zendesk.</td>
</tr>
</table>
</li>
<li>
<div class="function-title">Close a support ticket</div>
<table>
<tr>
<th>Function</th>
<td>close_ticket</td>
</tr>
<tr>
<th>Parameters</th>
<td>ticket_id (required), comment_body, public</td>
</tr>
<tr>
<th>Description</th>
<td>Closes a support ticket in Zendesk by setting its status to 'closed'.</td>
</tr>
</table>
</li>
<li>
<div class="function-title">Add a comment to a ticket</div>
<table>
<tr>
<th>Function</th>
<td>add_comment</td>
</tr>
<tr>
<th>Parameters</th>
<td>ticket_id (required), comment_body (required), public</td>
</tr>
<tr>
<th>Description</th>
<td>Adds a comment to an existing support ticket in Zendesk.</td>
</tr>
</table>
</li>
<li>
<div class="function-title">Retrieve ticket information</div>
<table>
<tr>
<th>Function</th>
<td>get_ticket</td>
</tr>
<tr>
<th>Parameters</th>
<td>ticket_id (required)</td>
</tr>
<tr>
<th>Description</th>
<td>Retrieves information about a specific ticket in Zendesk.</td>
</tr>
</table>
</li>
<li>
<div class="function-title">Verify support PIN</div>
<table>
<tr>
<th>Function</th>
<td>verify_support_pin</td>
</tr>
<tr>
<th>Parameters</th>
<td>caller_phone_number (required), entered_pin (required)</td>
</tr>
<tr>
<th>Description</th>
<td>Verifies the caller's support PIN against the stored PIN in Zendesk.</td>
</tr>
</table>
</li>
<li>
<div class="function-title">Retrieve current user's tickets</div>
<table>
<tr>
<th>Function</th>
<td>get_current_user_tickets</td>
</tr>
<tr>
<th>Parameters</th>
<td>caller_phone_number (required), status, priority</td>
</tr>
<tr>
<th>Description</th>
<td>Retrieves ticket numbers for the authenticated user based on their phone number.</td>
</tr>
</table>
</li>
</ul>
<p>For more information, visit the <a href="https://github.com/briankwest/zendesk">GitHub repository</a>.</p>
</div>
</body>
</html>