# Support Ticket AI Callback

> When a high or urgent priority ticket arrives in Edesy Helpdesk, an AI voice agent calls the customer back within minutes, gathers the details and tags the ticket with the outcome. Setup with the ticket.created webhook, n8n and the Calls API, with what can and can't be written back today.

Source: https://edesy.in/docs/voice-agent/recipes/support-ticket-ai-callback

When a HIGH or URGENT ticket lands in Edesy Helpdesk, an AI voice agent calls the customer back within minutes, collects the details your team needs and tags the ticket with the outcome. A 3-minute call costs about ₹18 at ₹6 a minute, plus telephony. The summary can't be posted as a ticket note through the API yet.

**Works with:** Edesy Helpdesk **via webhooks in n8n or Make** (or your server **via API**), with the phone from your CRM or sheet · Native Helpdesk to Voice: **planned**

> **Note:** A native "AI callback" action in Edesy Helpdesk, with the summary posted on the ticket, is planned. [Request early access](https://edesy.in/integrations/request?app=edesy-helpdesk).

## How it works

```text
ticket.created (priority HIGH/URGENT) ──> n8n: verify X-Helpdesk-Signature
 { id, ticketNumber, subject,             │ phone: CRM / sheet by requester email
   priority, requester }                  ▼
                              POST /api/v1/calls ──> AI callback ──> call.analyzed
                                                                        │
                       PATCH /api/public/v1/tickets/:id  (tags, status) ◀┘
                       summary ──> assignee by email / Slack
```

## Before you start

- Edesy Helpdesk at [helpdesk.edesy.in](https://helpdesk.edesy.in), admin access.
- A Helpdesk API key from **Settings → API keys** (starts with `hd_`).
- The customer's phone in a system you can query by email (your CRM, an order database or a Google Sheet). Helpdesk webhooks and its public API don't include phone numbers.
- A voice agent, its ID, and a voice agent API key (`vp_live_...`).

## Set it up (n8n)

1. In n8n, add a **Webhook** node, method `POST`, **Respond: Immediately**. Copy the **Production URL**.
2. In Edesy Helpdesk, open **Settings**. In the **Webhooks** card, click **Add webhook**, paste the URL into **Endpoint URL**, choose **Type: Generic (signed)**, tick `ticket.created` under **Events**, and save.
3. Verify deliveries in a **Code** node: `X-Helpdesk-Signature` is `sha256=` plus the hex HMAC-SHA256 of the raw body. The event name is in `X-Helpdesk-Event`.
4. Add an **IF** node: continue only when `body.data.priority` is `HIGH` or `URGENT`.
5. Look up the phone by the requester's email in your CRM or sheet. Stop if none.
6. Add an **HTTP Request** node:

```bash
POST https://voice-agent.edesy.in/api/v1/calls
Authorization: Bearer vp_live_xxxxxxxx
Idempotency-Key: ticket-{{ $('Webhook').item.json.body.data.id }}
Content-Type: application/json

{
  "agentId": 1042,
  "phoneNumber": "{{ $json.phone }}",
  "variables": {
    "customer_name": "{{ $json.name }}",
    "ticket_number": "{{ $('Webhook').item.json.body.data.ticketNumber }}",
    "ticket_subject": "{{ $('Webhook').item.json.body.data.subject }}",
    "ticket_id": "{{ $('Webhook').item.json.body.data.id }}"
  }
}
```

7. Activate the workflow.

## Write the outcome back

1. Subscribe a second n8n workflow to `call.analyzed` in the voice agent (**Settings → Webhooks → Add Webhook**).
2. Read `variables.ticket_id` from the payload and tag the ticket:

```bash
PATCH https://helpdesk.edesy.in/api/public/v1/tickets/<ticket_id>
Authorization: Bearer hd_xxxxxxxx
Content-Type: application/json

{ "tags": ["ai-callback", "ai-callback-reached"], "status": "IN_PROGRESS" }
```

   The public API accepts `status` (`NEW`, `OPEN`, `IN_PROGRESS`, `PENDING`, `RESOLVED`, `CLOSED`, `SPAM`), `priority` and `tags`. Sending `tags` replaces the ticket's tags, so read the ticket first (`GET /api/public/v1/tickets/<id>`) and append.
3. Send `call_summary` and `recording_url` to the assignee by email or Slack from the same workflow.

## Data map

| Direction | Field | Meaning |
|---|---|---|
| From Helpdesk | `event`, `occurredAt` | `ticket.created` and when |
| From Helpdesk | `data.id`, `data.ticketNumber`, `data.subject`, `data.status`, `data.priority`, `data.channel` | The ticket |
| From Helpdesk | `data.requester`, `data.assigneeId` | Requester (email or name); no phone |
| Into the call | `customer_name`, `ticket_number`, `ticket_subject`, `ticket_id` | Used in the prompt and returned for write-back |
| Back in `call.analyzed` | `disposition` | `SUCCESS` (details collected), `CALLBACK_REQUESTED`, `TRANSFERRED`, `NO_ANSWER`, `WRONG_NUMBER` |
| Back | `extracted_data` | For example `order_id`, `issue_category`, `issue_resolved` (Boolean), `best_time_to_call` |
| Back | `call_summary`, `recording_url` | For the assignee |

## Sample agent prompt

```text
You are Arjun from the customer care team of QuickKart, Bengaluru. {{customer_name}}
raised ticket {{ticket_number}}: "{{ticket_subject}}". You are calling back to help.

Speak in English or Kannada-accented Hinglish; switch to Hindi, Kannada or Tamil if asked.
1. Say you are calling about ticket {{ticket_number}} and apologise for the trouble.
2. Ask them to describe the issue in their words. Ask for the order ID if relevant.
3. Ask what outcome they want (refund, replacement, delivery date) and the best time for a
   specialist to call.
4. If they are very upset or ask for a person, transfer to the support line.
Do not promise refunds or dates. Say the specialist will confirm within 4 working hours.
Set SUCCESS once details are collected, TRANSFERRED if transferred, CALLBACK_REQUESTED if
they can't talk now.
```

## Test it

1. Create a ticket from the Helpdesk dashboard with priority **High**, using a requester email that maps to your own phone in your sheet or CRM.
2. Your phone rings. Give an order ID and hang up.
3. Check the ticket now carries the `ai-callback` tags and the assignee got the summary.

## Consent, DND and calling hours

- The customer contacted you, so a callback about their own ticket is expected. Say who you are and which ticket in the first sentence.
- Edesy does not scrub against the NCPR (DND) registry.
- Urgent tickets arrive at night. Set **Settings → Call Settings → Calling Window**; callbacks requested outside it are held until it opens.
- If the customer asks for email only, add them to **Settings → Blocked Numbers**.

## What it can't do yet

- Helpdesk payloads and its public API have no phone numbers; you need another system to look them up.
- Posting the call summary as a ticket message needs a dashboard login; API keys can only change status, priority and tags.
- `ticket.created` currently fires for tickets created in the dashboard or through the API. Check it fires for your email or portal channel before relying on it for those.

## FAQ

**Which tickets get a callback?**
Only those that pass your filter, for example priority `HIGH` or `URGENT`. You can also filter on `channel` or words in `subject`.

**Can the agent solve the issue on the call?**
For simple questions, yes, if you add a [knowledge base](https://edesy.in/docs/voice-agent/knowledge-base) and tools such as order lookup. For anything else it collects details and hands over.

**Can it transfer to a human?**
Yes, with [call transfer](https://edesy.in/docs/voice-agent/features/call-transfer) to your support number.

**What does a callback cost?**
About ₹18 for a 3-minute call at ₹6 a minute plus telephony, on pay as you go.

**Does it work with Freshdesk or Zendesk?**
The same pattern works with any helpdesk that sends webhooks. See [Zendesk + AI voice agent](https://edesy.in/ai-voice-agent/integrations/zendesk) and [Freshdesk + AI voice agent](https://edesy.in/ai-voice-agent/integrations/freshdesk).

## Related

- Blog: [Helpdesk ticket AI callback](https://edesy.in/blog/helpdesk-ticket-ai-callback-2026)
- [Missed call to AI callback](https://edesy.in/docs/voice-agent/recipes/missed-call-ai-callback)
- [Call results to Google Sheets](https://edesy.in/docs/voice-agent/recipes/call-results-to-google-sheets)
- [Customer support bot example](https://edesy.in/docs/voice-agent/examples/customer-support)
- [AI voice agent](https://edesy.in/ai-voice-agent)

[Start free](https://voice-agent.edesy.in/signup?utm_source=edesy.in&utm_medium=docs&utm_campaign=support-ticket-ai-callback) · [Book a demo](https://edesy.in/demo?product=voice-agent) · Don't see your app? [Request it](https://edesy.in/integrations/request?ref=support-ticket-ai-callback)
