What the model is told
Create a Zammad ticket for the customer. Confirm their email, a short title and the detail of the issue first. If the email is not known to Zammad, a new customer is created. Tell the customer the ticket number returned in the number field of the response.
Request
POSThttps://YOUR_SUBDOMAIN.zammad.com/api/v1/tickets
Headers
Content-Typeapplication/jsonAuthorizationToken token=YOUR_ZAMMAD_API_TOKEN
Body
{
"title": "{{title}}",
"group": "YOUR_ZAMMAD_GROUP",
"customer": "{{email}}",
"article": {
"subject": "{{title}}",
"body": "{{message}}",
"type": "note",
"sender": "Customer",
"internal": false
}
}Parameters
title stringA short summary of the issue.email stringThe customer's email address.message stringThe customer's message with the detail of the issue.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "685e112b-3ca9-4097-a3a3-2f77e93c20ed",
"type": "HTTP_REQUEST",
"label": "Create Zammad Ticket",
"name": "create_zammad_ticket",
"customName": false,
"description": "Create a Zammad ticket for the customer. Confirm their email, a short title and the detail of the issue first. If the email is not known to Zammad, a new customer is created. Tell the customer the ticket number returned in the number field of the response.",
"parameters": [
{
"name": "title",
"type": "string",
"description": "A short summary of the issue."
},
{
"name": "email",
"type": "string",
"description": "The customer's email address."
},
{
"name": "message",
"type": "string",
"description": "The customer's message with the detail of the issue."
}
],
"config": {
"endpoint": {
"method": "POST",
"url": "https://YOUR_SUBDOMAIN.zammad.com/api/v1/tickets"
},
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Token token=YOUR_ZAMMAD_API_TOKEN"
}
],
"body": "{\n \"title\": \"{{title}}\",\n \"group\": \"YOUR_ZAMMAD_GROUP\",\n \"customer\": \"{{email}}\",\n \"article\": {\n \"subject\": \"{{title}}\",\n \"body\": \"{{message}}\",\n \"type\": \"note\",\n \"sender\": \"Customer\",\n \"internal\": false\n }\n}",
"timeout": null
}
}
}IDs are regenerated on every copy.