What the model is told
Create a Freshservice ticket on behalf of the customer or employee. 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 them the ticket ID returned in the id field of the response.
Request
POSThttps://YOUR_DOMAIN.freshservice.com/api/v2/tickets
Headers
Content-Typeapplication/jsonAuthorizationBasic YOUR_BASE64_FRESHSERVICE_API_KEY_AND_X
Body
{
"email": "{{email}}",
"subject": "{{subject}}",
"description": "{{description}}",
"status": 2,
"priority": 2
}Parameters
email stringThe requester's email address.subject stringA short summary of the issue.description stringThe full detail of the issue as the requester described it.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "ed41601e-4a7e-4ad0-82f2-c131a7f456f2",
"type": "HTTP_REQUEST",
"label": "Create Freshservice Ticket",
"name": "create_freshservice_ticket",
"customName": false,
"description": "Create a Freshservice ticket on behalf of the customer or employee. 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 them the ticket ID returned in the id field of the response.",
"parameters": [
{
"name": "email",
"type": "string",
"description": "The requester'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 requester described it."
}
],
"config": {
"endpoint": {
"method": "POST",
"url": "https://YOUR_DOMAIN.freshservice.com/api/v2/tickets"
},
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Basic YOUR_BASE64_FRESHSERVICE_API_KEY_AND_X"
}
],
"body": "{\n \"email\": \"{{email}}\",\n \"subject\": \"{{subject}}\",\n \"description\": \"{{description}}\",\n \"status\": 2,\n \"priority\": 2\n}",
"timeout": null
}
}
}IDs are regenerated on every copy.