Zendesk

Create Zendesk Ticket

Opens a support ticket for a customer.

Unverified

What the model is told

Create a Zendesk support ticket on behalf of the customer. Confirm their name and email first. Returns the new ticket (HTTP 201) including ticket.id; tell the customer the ticket number.

Request

POSThttps://YOUR_SUBDOMAIN.zendesk.com/api/v2/tickets.json

Headers

  • Content-Typeapplication/json
  • AuthorizationBasic YOUR_BASE64_EMAIL_SLASH_TOKEN_AND_API_TOKEN

Body

{
  "ticket": {
    "subject": "{{subject}}",
    "comment": {
      "body": "{{description}}"
    },
    "requester": {
      "name": "{{name}}",
      "email": "{{email}}"
    }
  }
}

Parameters

  • subject stringA short summary of the issue.
  • description stringThe detail of the issue.
  • name stringThe customer's full name.
  • email stringThe customer's email address.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "d4451459-e105-4873-9373-885763a522ea",
    "type": "HTTP_REQUEST",
    "label": "Create Zendesk Ticket",
    "name": "create_zendesk_ticket",
    "customName": false,
    "description": "Create a Zendesk support ticket on behalf of the customer. Confirm their name and email first. Returns the new ticket (HTTP 201) including ticket.id; tell the customer the ticket number.",
    "parameters": [
      {
        "name": "subject",
        "type": "string",
        "description": "A short summary of the issue."
      },
      {
        "name": "description",
        "type": "string",
        "description": "The detail of the issue."
      },
      {
        "name": "name",
        "type": "string",
        "description": "The customer's full name."
      },
      {
        "name": "email",
        "type": "string",
        "description": "The customer's email address."
      }
    ],
    "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    \"comment\": {\n      \"body\": \"{{description}}\"\n    },\n    \"requester\": {\n      \"name\": \"{{name}}\",\n      \"email\": \"{{email}}\"\n    }\n  }\n}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.