Create support ticket
Freshdesk accepts a flat JSON ticket body, which works well with custom tools. Collect name, email, and a clear description before creating the ticket.
What this tool does
Some issues need a tracked ticket rather than a chat reply, such as a warranty claim or a technical fault. This tool lets your agent create a ticket in Freshdesk with the customer’s name, email, subject and description. Freshdesk accepts a flat JSON body, so it works directly without a webhook. Your agent collects the details first, creates the ticket and shares the next steps, so the customer is not left wondering whether anyone saw their message.
Example conversation
Customer
The AC unit you installed last month is leaking water.
AI agent
Sorry to hear that. Could you share your name, email and a photo of the leak?
Customer
Mark Lee, mark@example.com. Photo attached.
Tool callcreate_support_ticket
subject: AC unit leaking, email: mark@example.com
AI agent
Thanks, Mark. I have opened a support ticket with your photo, and our service team will contact you today to arrange a visit.
Example only. Tool calls are shown so you can see when the agent uses this template. Your agent’s wording depends on your prompt and business information.
Who uses it
- HVAC and appliance companies logging warranty and repair requests.
- Software and agency teams turning chat issues into tracked tickets.
- Online stores handling damaged item or return claims.
Setup
- In Freshdesk, create an API key (Profile settings → API key).
- Base64-encode `YOUR_API_KEY:X` (literal X after the colon) and put `Basic …` in the Authorization header.
- Replace YOUR_DOMAIN in the Endpoint URL with your Freshdesk subdomain.
- In your prompt, tell the agent to call create_support_ticket after collecting subject, description, name, and email — and share the ticket id with the customer when available.
Copy into custom tool form
Copy each value into the matching field when you add a custom tool on the create or edit agent page. Replace any YOUR_… placeholders with your real credentials.
Tool name
Description
Endpoint URL
Paste into Endpoint URL (https:// is added automatically).
HTTP method
Tool inputs (all)
Tool input: subject
Input name
Input type
Input description
Reference value
Use this as the request query or body value and choose “Tool input” in the form.
Tool input: description
Input name
Input type
Input description
Reference value
Use this as the request query or body value and choose “Tool input” in the form.
Tool input: email
Input name
Input type
Input description
Reference value
Use this as the request query or body value and choose “Tool input” in the form.
Tool input: name
Input name
Input type
Input description
Reference value
Use this as the request query or body value and choose “Tool input” in the form.
Request body (all)
Field name
Field value
Field name
Field value
Field name
Field value
Field name
Field value
Field name
Field value
Field name
Field value
Headers (all)
Header values are encrypted when stored. Replace placeholders with your real secrets.
Header name
Header value
Header name
Header value
