Intercom

Create Intercom Ticket

Creates a ticket of a chosen ticket type for an existing or new contact in Intercom.

Unverified

What the model is told

Create an Intercom ticket for the customer, using the email address they have given. Confirm their email first. The ticket type is set up in advance by your team. Tell the customer the ticket has been created and give them the ticket_id value from the response.

Request

POSThttps://api.intercom.io/tickets

Headers

  • Content-Typeapplication/json
  • AuthorizationBearer YOUR_INTERCOM_ACCESS_TOKEN
  • Intercom-Version2.17

Body

{
  "ticket_type_id": "YOUR_INTERCOM_TICKET_TYPE_ID",
  "contacts": [
    {
      "email": "{{email}}"
    }
  ]
}

Parameters

  • email stringThe customer's email address.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "9571492f-5770-4ef2-a33b-5ea525f374b1",
    "type": "HTTP_REQUEST",
    "label": "Create Intercom Ticket",
    "name": "create_intercom_ticket",
    "customName": false,
    "description": "Create an Intercom ticket for the customer, using the email address they have given. Confirm their email first. The ticket type is set up in advance by your team. Tell the customer the ticket has been created and give them the ticket_id value from the response.",
    "parameters": [
      {
        "name": "email",
        "type": "string",
        "description": "The customer's email address."
      }
    ],
    "config": {
      "endpoint": {
        "method": "POST",
        "url": "https://api.intercom.io/tickets"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        },
        {
          "name": "Authorization",
          "value": "Bearer YOUR_INTERCOM_ACCESS_TOKEN"
        },
        {
          "name": "Intercom-Version",
          "value": "2.17"
        }
      ],
      "body": "{\n  \"ticket_type_id\": \"YOUR_INTERCOM_TICKET_TYPE_ID\",\n  \"contacts\": [\n    {\n      \"email\": \"{{email}}\"\n    }\n  ]\n}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.