Zendesk

Add Public Comment to Zendesk Ticket

Adds a customer-visible reply to a ticket.

Unverified

What the model is told

Add a public comment to an existing Zendesk ticket, for example more detail from the customer. The comment is visible to the requester and may email them. Only use a ticket ID the customer has given you. Confirm the wording first.

Request

PUThttps://YOUR_SUBDOMAIN.zendesk.com/api/v2/tickets/{{ticketId}}.json

Headers

  • Content-Typeapplication/json
  • AuthorizationBasic YOUR_BASE64_EMAIL_SLASH_TOKEN_AND_API_TOKEN

Body

{
  "ticket": {
    "comment": {
      "body": "{{comment}}",
      "public": true
    }
  }
}

Parameters

  • ticketId numberThe numeric ticket ID.
  • comment stringThe comment text.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "3c34b548-9106-4d59-bae7-d0231a3b71dc",
    "type": "HTTP_REQUEST",
    "label": "Add Public Comment to Zendesk Ticket",
    "name": "add_public_comment_to_zendesk_ticket",
    "customName": false,
    "description": "Add a public comment to an existing Zendesk ticket, for example more detail from the customer. The comment is visible to the requester and may email them. Only use a ticket ID the customer has given you. Confirm the wording first.",
    "parameters": [
      {
        "name": "ticketId",
        "type": "number",
        "description": "The numeric ticket ID."
      },
      {
        "name": "comment",
        "type": "string",
        "description": "The comment text."
      }
    ],
    "config": {
      "endpoint": {
        "method": "PUT",
        "url": "https://YOUR_SUBDOMAIN.zendesk.com/api/v2/tickets/{{ticketId}}.json"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        },
        {
          "name": "Authorization",
          "value": "Basic YOUR_BASE64_EMAIL_SLASH_TOKEN_AND_API_TOKEN"
        }
      ],
      "body": "{\n  \"ticket\": {\n    \"comment\": {\n      \"body\": \"{{comment}}\",\n      \"public\": true\n    }\n  }\n}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.