Zendesk
Create Zendesk Ticket for Email
Opens a prioritised ticket for a requester identified by email.
Unverified
What the model is told
Create a Zendesk ticket for a customer identified only by their email address, with a priority. Confirm the email, the subject and the priority with the customer first. Allowed priorities are low, normal, high and urgent. Tell them the ticket has been created.
Request
POSThttps://YOUR_SUBDOMAIN.zendesk.com/api/v2/tickets.json
Headers
Content-Typeapplication/jsonAuthorizationBasic YOUR_BASE64_EMAIL_SLASH_TOKEN_AND_API_TOKEN
Body
{
"ticket": {
"subject": "{{subject}}",
"priority": "{{priority}}",
"comment": {
"body": "{{description}}"
},
"requester": "{{email}}"
}
}Parameters
subject stringA short summary of the issue.description stringThe detail of the issue.email stringThe requester's email address.priority stringThe priority: low, normal, high or urgent.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "ac39056b-f298-48aa-b480-1315dc1a3bd5",
"type": "HTTP_REQUEST",
"label": "Create Zendesk Ticket for Email",
"name": "create_zendesk_ticket_for_email",
"customName": false,
"description": "Create a Zendesk ticket for a customer identified only by their email address, with a priority. Confirm the email, the subject and the priority with the customer first. Allowed priorities are low, normal, high and urgent. Tell them the ticket has been created.",
"parameters": [
{
"name": "subject",
"type": "string",
"description": "A short summary of the issue."
},
{
"name": "description",
"type": "string",
"description": "The detail of the issue."
},
{
"name": "email",
"type": "string",
"description": "The requester's email address."
},
{
"name": "priority",
"type": "string",
"description": "The priority: low, normal, high or urgent."
}
],
"config": {
"endpoint": {
"method": "POST",
"url": "https://YOUR_SUBDOMAIN.zendesk.com/api/v2/tickets.json"
},
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Basic YOUR_BASE64_EMAIL_SLASH_TOKEN_AND_API_TOKEN"
}
],
"body": "{\n \"ticket\": {\n \"subject\": \"{{subject}}\",\n \"priority\": \"{{priority}}\",\n \"comment\": {\n \"body\": \"{{description}}\"\n },\n \"requester\": \"{{email}}\"\n }\n}",
"timeout": null
}
}
}IDs are regenerated on every copy.