Skip to main content

Freshdesk

Freshdesk is a help desk. Its automation rules react to a ticket being created or updated, and the Trigger Webhook action sends a request with the body you write. Sent to the Flows address, the request starts your flows: a ticket is created — the requester gets "we have your request" in Viber or SMS; the ticket is resolved — a thank-you and a request to rate the answer.

Written from Freshdesk documentation

This page is written from the public documentation of Freshdesk and has not been checked on a live account yet.

What you need​

  • A Freshdesk plan with webhooks in rules: Growth, Pro or Enterprise (Freshdesk and Freshdesk Omni); for accounts created before December 2025 also Blossom, Garden, Estate or Forest. Not Free and not during the trial.
  • Access to Admin → Workflows → Automations.
  • One address for all rules: the event is written in the body. Freshdesk makes up to 1,000 webhook calls an hour per account; calls above that wait for the next hour.

Step 1. Create a connection​

  1. Open Flows → Connections, press Connect a system and choose Freshdesk.
  2. Press Copy address. It looks like https://events.alphasms.net/hooks/<TOKEN> — keep it secret.

Step 2. Set up rules in Freshdesk​

  1. Open Admin → Workflows → Automations, the Ticket Creation tab, and press New Rule — "AlphaFlow — new ticket". In older Freshdesk Omni the path is Admin Settings → Configuration and Workflows → Ticket Automations. Conditions are up to you — for example, only the groups you need.
  2. Action — Trigger Webhook. Callback Request Type — POST; Callback URL — the address from the cabinet; Requires authentication — off; Add custom headers — off.
  3. Content: Encoding — JSON, the Advanced option. Paste body 1 and press Save.
  4. On the Ticket Updates tab create one more rule, "AlphaFlow — ticket status", on the event Status is changed (from Any Status to Any Status; the exact labels are not confirmed by the documentation). The action Trigger Webhook is set up the same way, with body 2. Save.
  5. If you need the closing of a ticket as a separate event, create one more rule on the Ticket Updates tab: Status is changed from Any Status to Resolved (the exact labels are not confirmed by the documentation), with body 2 in which "event" is "ticket_closed". Then leave Resolved out of the status rule, or the closing brings two events.

Body 1 — a ticket is created:

{
"event": "ticket_created",
"message_id": "freshdesk:{{ticket.id}}:created",
"contact": {
"phone": "{{ticket.requester.mobile}}",
"email": "{{ticket.requester.email}}"
},
"traits": { "first_name": "{{ticket.requester.firstname}}" },
"properties": {
"ticket_id": "{{ticket.id}}",
"status": "{{ticket.status}}",
"ticket_url": "{{ticket.portal_url}}"
},
"context": { "source": "freshdesk" }
}

Body 2 — the status changed. AlphaFlow takes the event from the body as it is: there is no table of statuses for this body, and a resolved ticket comes as ticket_status_changed unless you add the rule of step 5:

{
"event": "ticket_status_changed",
"contact": {
"phone": "{{ticket.requester.mobile}}",
"email": "{{ticket.requester.email}}"
},
"traits": { "first_name": "{{ticket.requester.firstname}}" },
"properties": {
"ticket_id": "{{ticket.id}}",
"status": "{{ticket.status}}",
"status_changed_on": "{{ticket.status_changed_on}}",
"ticket_url": "{{ticket.portal_url}}"
},
"context": { "source": "freshdesk" }
}
  • If the phones of your customers are in Work phone, not in Mobile, replace {{ticket.requester.mobile}} with {{ticket.requester.phone}}.
  • Body 2 has no message_id on purpose: an id made of the ticket and its status would swallow a second closing of the same ticket. Such an event is taken with the warning no_message_id, and a repeated call of Freshdesk becomes a second event.
  • Do not add free text such as the subject of the ticket. The documentation does not say that Freshdesk escapes values in JSON, and a quote in the text would break the body.

Step 3. Send a test​

Create a test ticket from a contact with a mobile phone, then move it to Resolved. The events appear in Flows → Connections → Event journal, and the connection shows Recognised: Freshdesk.

Events​

Rule in FreshdeskAlphaFlow eventProperties
Ticket Creation (body 1)ticket_createdticket_id, status, ticket_url
Ticket Updates, the status changed (body 2)ticket_status_changedticket_id, status, status_changed_on, ticket_url
A ticket is resolved — the separate rule of step 5 (body 2 with "event": "ticket_closed")ticket_closedticket_id, status, status_changed_on, ticket_url

{{ticket.status}} may come as a name (Resolved) or as a number: the documentation and the Freshworks community disagree. If you check status in the Filters of the start or in a Condition, allow both forms: Resolved or 4, Closed or 5. The rule of step 5 needs no such check.

The contact is found by the mobile phone and the email of the requester; the first name comes from traits. Freshdesk has no placeholder for your own id of the contact, only its own id.

Support events are not among the events of the ready-made templates (see Recommended events): create the flow From scratch and choose the event as its start.

Good to know​

  • Freshdesk counts 2xx as success and repeats a failed call every 30 minutes, up to 48 calls, with an e-mail to the administrators. The Flows address answers 200 at once, so there is nothing to repeat.
  • Freshdesk does not sign webhooks: the secret in the address is enough.
  • The time of the event is the time it arrives. The documentation does not give the format of Freshdesk dates, so the bodies do not pass them as the time of the event.
  • The address always answers 200. Above the daily event limit the event is refused in AlphaFlow with quota_exceeded and shown in the journal; the rules in Freshdesk stay on.

Freshdesk documentation​