DEV

Freshdesk

Freshdesk Connection

Put Freshdesk to Work with @Human Automations and @Human Agents

The Freshdesk Connection documents all Triggers, Actions and Query Operations available for creating automations via the Freshdesk API.

What can you do with the Freshdesk Connection?

  • Connect to the Freshdesk API in a few clicks

  • Use the related Freshdesk Operations (see below) in @Human Automations or @Human Agents

Trigger Operations

Ticket Created

Triggers on: tickets/created

Triggered when a ticket is created in Freshdesk.

Ticket Updated

Triggers on: tickets/updated

Triggered when an existing ticket is updated in Freshdesk.

Contact Created

Triggers on: contacts/created

Triggered when a contact is created in Freshdesk.

Contact Updated

Triggers on: contacts/updated

Triggered when an existing contact is updated in Freshdesk.

Action Operations

Action: Create Ticket

Action: Update Ticket

Query Operations

Query: View Ticket

Query: List Tickets

Example link

Obtaining Access Credentials

Here’s the step-by-step guide to generate a Personal Access Token (PAT) in Freshdesk:

Prerequisites

  • Admin access to the Freshdesk account.

  • Freshdesk domain (e.g., yourcompany.freshdesk.com).

Steps to Generate PAT

  1. Log in to your Freshdesk account as an Admin at: https://<your_domain>.freshdesk.com/login (Replace <your_domain> with your actual Freshdesk subdomain.)

  2. Navigate to Profile Settings:

    • Click your profile icon (top-right) → "Profile Settings".

  3. Generate API Key:

    • Scroll to the "API Key" section.

    • Click "Generate API Key".

    • Enter your password for confirmation.

  4. Copy the PAT:

    • The API Key (PAT) will be displayed once.

    • Copy and store it securely (you won’t see it again).

Done. Use this token for system-to-system authentication.

Configuring Webhooks

  1. Log in to your Freshdesk account as an Admin.

  2. Navigate to Automations:

    • Click the Admin icon in the sidebar.

    • Under Workflows, click Automations.

  3. Select Rule Type:

    • Select the appropriate tab for your trigger: Ticket Creation (for new tickets) or Ticket Updates (for changes to existing tickets).

  4. Create New Rule:

    • Click New Rule.

    • Enter a Rule Name.

  5. Set Conditions:

    • Define the criteria under On tickets with these properties to determine when the webhook should fire.

  6. Trigger Webhook Action:

    • In the Perform these actions section, select Trigger Webhook from the dropdown menu.

  7. Configure Webhook Details:

    • Request Type: Select the method (e.g., POST).

    • URL: Enter the destination endpoint.

    • Encoding: Select JSON.

    • Content: Choose Simple and select the fields, or Advanced for a custom JSON body.

  8. Save Rule:

    • Click Preview and Save to activate the automation.

Code (Apache v2.0): Service Connectivity and Metadata

Code (Apache v2.0): List of External Resources and Internal Mapping

Last updated