Dograh

How to Connect a Voice Agent to Freshdesk: Tickets and Notes

How to Connect a Voice Agent to Freshdesk: Tickets and Notes
TutorialDecember 4, 2026·10 min read

How to Connect a Voice Agent to Freshdesk: Tickets and Notes

Abhishek Kumar
Abhishek Kumar·Co-founder, Dograh AI

Co-founder of Dograh, building the future of open-source voice AI agents. Own your voice AI stack.

To connect a voice agent to Freshdesk, save your API key as a Basic auth credential and give the agent HTTP API tools that open and check tickets during the call. Support teams on Freshdesk can set this up in Dograh, the open-source AI voice agent platform, and run it on Dograh Cloud or self-host it on their own servers.

Key Takeaways

  • Freshdesk uses your API key as the username, with any placeholder as the password.
  • Freshdesk rejects unexpected fields, so Dograh's summary webhook goes through your endpoint.
  • Notes added through the API are private by default, so summaries stay internal.

A caller who leaves with a ticket number stops calling back to check. We set up the Freshdesk connection step by step in Dograh, our open-source AI voice agent platform, from the API key to private notes, then cover one webhook trap and Freshdesk's rate limits.

What you need before you start

These steps follow the published Dograh and Freshdesk docs. Run them on a trial server before production, against a Freshdesk trial or sandbox account, so a test call never opens a ticket in the queue your agents work every morning.

You need a Freshdesk login with an API key, your helpdesk address such as yourcompany.freshdesk.com and a Dograh agent that passes a browser test call. You also need a small endpoint of your own for two jobs, checking ticket status and writing the call summary. A few dozen lines in any language will do.

Everything here runs on Freshdesk's public API, called from Dograh's HTTP API tools, Pre-Call Data Fetch and Webhook node, rather than a built-in connector. Teams that already run Freshcaller, Freshdesk's own phone product, can install a voice AI app from the Freshcaller Marketplace instead. And if nobody needs a ticket number during the call, creating the ticket after the call is enough. The steps below fit when the caller should leave with a number and be able to check on it later. Which calls a support line should take, and what a technician needs in the ticket, are covered in our post on AI voice agents for IT helpdesks and MSPs. This post stays on the Freshdesk API.

Check: you can sign in to the Freshdesk trial account, and the agent answers a browser test call.

Step 1: Save the Freshdesk API key as a credential

Freshdesk authenticates API requests with your personal API key. Open Profile settings in Freshdesk, and the key sits below the change password section. Requests made with it act as you, so for production use the key of a dedicated agent account that has only the access the voice agent needs.

Freshdesk uses the key in an unusual way. It goes in as the Basic auth username, and the password can be any placeholder. In Dograh, open Credentials in the sidebar, click Add Credential and pick Basic Auth as the Credential Type. Put the API key in Username and the letter X in Password.

Check: the credential shows under Credentials with the type Basic Auth.

Step 2: Open the ticket during the call

The first tool opens a ticket while the caller is still talking. Open Tools, click Create New Tool and pick External HTTP API. Name it create_ticket and write a Description the agent can act on, such as "Open a support ticket once you know the problem and the caller's name." On the Settings tab, set HTTP Method to POST and Endpoint URL to https://yourcompany.freshdesk.com/api/v2/tickets, and pick the Basic Auth credential on the Authentication tab.

On the Parameters tab, add LLM Parameters for issue_summary, issue_details, caller_name and priority, and give priority the type Number. Then switch on Tool Body Template and paste the body below, built from Freshdesk's Create a Ticket fields:

{
  "subject": "{{issue_summary}}",
  "description": "{{issue_details}}<br>Call ID: {{initial_context.workflow_run_id}}",
  "name": "{{caller_name}}",
  "phone": "{{initial_context.caller_number}}",
  "source": 3,
  "status": 2,
  "priority": "{{priority}}"
}

What this does: It opens an Open ticket (status 2) marked as a phone ticket (source 3), with the caller's number as the requester and the call ID in the description. priority arrives as a real number from 1 (Low) to 4 (Urgent), because a value that is exactly one placeholder keeps its type.

Two Freshdesk rules shape this body. When a ticket has a phone number and no email, the name field is required, so the prompt asks for the caller's name before it calls the tool. And the description is HTML, which is why the line break is <br>. Freshdesk answers with the new ticket, and the id in that reply is the ticket number the agent reads back.

The request takes a moment, so in the tool's Messages card add a line under When the tool starts, such as "I'm opening a ticket for you now." If you want the caller's name before the greeting, Pre-Call Data Fetch can send a POST with the caller's details to an endpoint you run, which finds the Freshdesk contact by phone through Freshdesk's contacts filter.

Check: a test call opens a ticket in Freshdesk with the source Phone, and the agent reads its number back.

Dograh

Open Source Alternative to Vapi / Retell

Self-hosted voice agent platform — no per-minute fees

dograh-hq/dograh

Star on GitHub

Step 3: Check a ticket's status by its number

Status calls go by the ticket number the caller gives. Freshdesk's contacts filter finds a person by phone, but it does not find their ticket, and a phone match does not prove who is calling anyway. So the agent asks for the ticket number, and a second tool, get_ticket_status, sends it to your endpoint with POST as an LLM Parameter named ticket_id.

Your endpoint reads the ticket with GET /api/v2/tickets/[id], without the include options, which cost extra API credits. Then it checks the caller against the ticket's requester, for example by an email address the agent also asks for. Last, it returns two fields only, the status as a word and the last update time.

The status needs translating because Freshdesk stores it as a number, 2 for Open, 3 for Pending, 4 for Resolved and 5 for Closed. An agent handed a bare 3 may read out the digit. The endpoint also keeps the full ticket, with its description and other people's replies, out of the agent's context, since Dograh passes the whole reply body to the agent as data.

Check: asking about the test ticket returns a word such as Open, and a wrong email returns no details.

Step 4: Log the call summary as a private note

The call summary belongs on the ticket as a private note, and it has to take a detour to get there. Freshdesk refuses any request that carries a field it does not expect, with the error code invalid_field. Dograh's Webhook node adds a top-level call_disposition key to every payload that does not set one, and Freshdesk would refuse that key with a 400, which Dograh does not retry. So the Webhook node posts to your endpoint, and the endpoint writes the note.

After the call, the agent's call summary carries an extra key. Sent straight to Freshdesk it is refused with a 400, because Freshdesk refuses a field it does not expect. Instead it goes to the team's own endpoint, which writes the note and skips a repeat, and it lands on the ticket in Freshdesk as a private note.
Freshdesk checks every field it receives, so the key Dograh adds on its own is enough to turn the whole note away. Routing the summary through a small endpoint lets the team control exactly what Freshdesk sees and write each call's note only once.

Select Add node on the canvas and add a Webhook node, set HTTP Method to POST and Endpoint URL to your endpoint, and use this Payload Template:

{
  "call_id": "{{workflow_run_id}}",
  "ticket_id": "{{gathered_context.ticket_id}}",
  "summary": "{{gathered_context.call_summary}}",
  "outcome": "{{gathered_context.call_disposition}}",
  "duration_seconds": "{{cost_info.call_duration_seconds}}",
  "transcript_url": "{{transcript_url}}"
}

What this does: It sends one object per finished call. ticket_id and call_summary come from variable extraction, so switch on Enable Variable Extraction on the node where the ticket is opened and add both, as our post on extracting call data into your CRM shows.

The endpoint then calls Freshdesk's Add Note request, POST /api/v2/tickets/[ticket_id]/notes, with the summary as the HTML body. Freshdesk makes an added note private by default, so the customer never sees it. When ticket_id is empty, because the call ended before a ticket opened, the endpoint can open one with the summary instead.

Dograh retries temporary failures, up to five attempts in all, so the same call can reach your endpoint twice. Keep the call_id of each note you write and skip a repeat. The same duplicate check appears in code in our post on webhook-driven voice agents.

Check: after a test call, the ticket shows one private note with the summary, and a second delivery of the same call adds nothing.

Join the Dograh Community

Dograh is an OSS alternative to Vapi. Join our Slack community for queries, releases, best practices & community interactions.

Step 5: Plan for errors and Freshdesk's rate limits

A note or ticket that fails after the call gets retried by your endpoint a set number of times, then goes to a person. During the call there is no second chance, because HTTP API tools send one request, wait 5 seconds by default and do not retry.

When Freshdesk refuses a request, the agent gets status set to error, the status code and Freshdesk's reply. A missing name on a phone-only ticket comes back as a 400, which is why the prompt asks for the name first. Write in the prompt what the agent says on an error, such as "I couldn't open the ticket just now, but your details will reach the team after this call." The summary webhook makes that true, because your endpoint can open the ticket from it.

Freshdesk's rate limits count every API call a minute across the whole account, 100 on Growth, 400 on Pro and 700 on Enterprise. A sum of our own makes this concrete. On Growth, a busy minute in which 40 callers each open a ticket and check one status uses 80 of the 100 calls, before any other app on the account makes a request, and Growth also caps ticket creates at 50 a minute. A team on Growth with other busy integrations should move status checks to the endpoint's cache or plan for a higher tier.

Check: with the API key changed to a wrong value, a test call plays the fallback line and the summary still reaches your endpoint.

Step 6: Keep ticket data private

Read nothing from a ticket until the caller is verified. The ticket number plus a detail only the requester has, such as the email on the ticket, is the check this post uses. A record found by phone says nothing about who is on the line.

Keep the call's own data inside the team too. Notes added through the API are private by default, so leave that default alone. Dograh's recording and transcript links are download links that open without a login, so they belong only in private notes, never in a reply the customer receives. Send only the fields the ticket needs.

A self-hosted Dograh keeps the API key, the endpoint and the call records on your servers. Speech and language providers still receive the audio and text they process, and Freshdesk receives only the fields a tool or the Webhook node sends. Freshdesk is a hosted service, so whatever goes into a ticket sits with Freshworks from then on.

Check: no public reply on the test ticket holds a transcript or recording link.

Before you ship it

Run the whole path once more on the trial account. Open a ticket by phone, check its status in a second call, and confirm one private note per call. Then break the API key for a minute and confirm the fallback line plays and the summary still lands.

Decide who owns the endpoint and the API key, and remember that changing the key in Freshdesk breaks the credential until you paste the new one. If your team also runs Zendesk, Jira or ServiceNow, our post on connecting a voice agent to Zendesk, Jira or ServiceNow shows the same pattern on those three.

Glossary

invalid_field
Freshdesk's error code for a request that carries a field it does not expect. It is why a Dograh Webhook node, which adds call_disposition, posts to your endpoint first.
Private note
A note on a Freshdesk ticket that only agents can see. Notes added through the API are private unless the request sets private to false.
Ticket source
The Freshdesk field that records where a ticket came from. The value 3 marks it as a phone ticket.
API credit
Freshdesk's unit for its per-minute rate limit. Most requests use one, and each include option on a ticket read uses one more.

Frequently Asked Questions

Get started with Dograh

Build, deploy, and scale AI agents with Dograh. Join the community of developers building the future.