Freshdesk

Create Freshdesk Ticket

Opens a new support ticket for a customer in Freshdesk.

Unverified

What the model is told

Create a Freshdesk support ticket for the customer. Confirm their email, a short subject and the detail of the issue with them first. The ticket is created as open with medium priority. Tell the customer the ticket ID returned in the id field of the response.

Request

POSThttps://YOUR_DOMAIN.freshdesk.com/api/v2/tickets

Headers

  • Content-Typeapplication/json
  • AuthorizationBasic YOUR_BASE64_FRESHDESK_API_KEY_AND_X

Body

{
  "email": "{{email}}",
  "subject": "{{subject}}",
  "description": "{{description}}",
  "status": 2,
  "priority": 2,
  "source": 7
}

Parameters

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

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "1660f860-940c-43d0-a1cd-3663dc4f60cc",
    "type": "HTTP_REQUEST",
    "label": "Create Freshdesk Ticket",
    "name": "create_freshdesk_ticket",
    "customName": false,
    "description": "Create a Freshdesk support ticket for the customer. Confirm their email, a short subject and the detail of the issue with them first. The ticket is created as open with medium priority. Tell the customer the ticket ID returned in the id field of the response.",
    "parameters": [
      {
        "name": "email",
        "type": "string",
        "description": "The customer's email address."
      },
      {
        "name": "subject",
        "type": "string",
        "description": "A short summary of the issue."
      },
      {
        "name": "description",
        "type": "string",
        "description": "The full detail of the issue as the customer described it."
      }
    ],
    "config": {
      "endpoint": {
        "method": "POST",
        "url": "https://YOUR_DOMAIN.freshdesk.com/api/v2/tickets"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        },
        {
          "name": "Authorization",
          "value": "Basic YOUR_BASE64_FRESHDESK_API_KEY_AND_X"
        }
      ],
      "body": "{\n  \"email\": \"{{email}}\",\n  \"subject\": \"{{subject}}\",\n  \"description\": \"{{description}}\",\n  \"status\": 2,\n  \"priority\": 2,\n  \"source\": 7\n}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.