Crear ticket en Freshdesk, con una API

Crea un ticket. Identifica al solicitante con requester_id, email, phone o unique_external_id; un email o phone que aún no existe en Freshdesk crea el contacto.

Identificador
freshdesk_create_ticket

La llamada

POST https://connect.reportei.com/api/tools/freshdesk_create_ticket/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "requester_id": 1
  }
}

Tu sistema envía el id de la conexión de tu cliente y los argumentos de la tool. Los headers son los mismos de toda la API de Connect: el token de tu producto y el token de tu cliente.

Parámetros

Las descripciones de los parámetros siguen la documentación oficial de la app, en inglés.

ParámetroTipoObligatorioDescripción
requester_idintegerNoId of an existing contact as the requester, from List contacts.
emailstringNoEmail address of the requester. A new address creates the contact.
phonestringNoPhone number of the requester. A new number creates the contact, and without email the name becomes mandatory.
unique_external_idstringNoExternal id of the requester, the id in your own system. A new id creates the contact.
namestringNoName of the requester.
subjectstringNoSubject of the ticket.
descriptionstringNoContent of the ticket, as HTML or plain text.
statusintegerNo2 Open (the default), 3 Pending, 4 Resolved or 5 Closed. Custom statuses of the helpdesk are the choices of the status field in List ticket fields.
priorityintegerNo1 Low (the default), 2 Medium, 3 High or 4 Urgent.Valores: 1, 2, 3, 4
sourceintegerNoChannel of the ticket: 1 Email, 2 Portal (the default), 3 Phone, 7 Chat, 9 Feedback widget or 10 Outbound email.Valores: 1, 2, 3, 7, 9, 10
typestringNoTicket type, one of the choices of the ticket_type field in List ticket fields, such as Question or Incident.
responder_idintegerNoId of the agent to assign the ticket to, from the choices of the agent field in List ticket fields.
group_idintegerNoId of the group to assign the ticket to, from the choices of the group field in List ticket fields.
product_idintegerNoId of the product of the ticket, from the choices of the product field in List ticket fields.
company_idintegerNoId of the company of the requester, from Search companies. Only with the Multiple Companies feature.
tagsarrayNoTags of the ticket.
cc_emailsarrayNoEmail addresses copied on the ticket.
due_bystringNoWhen the ticket is due to be resolved. Without it, the SLA policy of the helpdesk sets it.
fr_due_bystringNoWhen the first response is due. Without it, the SLA policy of the helpdesk sets it.
custom_fieldsobjectNoCustom field values keyed by the name of each custom field in List ticket fields, for example cf_order_number. Dates go as YYYY-MM-DD.

Conexiones posibles

Tu cliente conecta su cuenta de Freshdesk una sola vez, con uno de los modos de abajo. La misma conexión sirve para todas las tools del toolkit.

Usuario y contraseña

Tu cliente ingresa las credenciales de la app en una pantalla de Connect, o tu sistema las envía con POST /api/customer-toolkits, sin pantalla.

Al conectar, tu cliente también indica {domain}: la dirección de su cuenta en la API de la app.

La respuesta

Si la llamada tiene éxito, Connect conserva el status y el cuerpo de la respuesta de la app. Los errores HTTP devueltos por la app usan el objeto {error, api_error}; la autenticación o validación pueden fallar antes de la ejecución. El header X-Toolkit-Execution-Id identifica la ejecución registrada, disponible en GET /api/tools/executions/{uuid}.

Lista para agentes de IA

El input de esta tool es un JSON Schema, disponible en GET /api/tools/freshdesk_create_ticket. Se convierte en la definición de tool de tu agente sin conversión.

Otras tools de Freshdesk

Ver las 13 tools

Toolkits de la misma categoría

Ver los 100 toolkits

Mira Connect aplicado a tu producto.

Pruébalo durante 15 días sin tarjeta, o cuéntale tu caso a nuestro equipo.