Zendesk Trigger don't work

Hello together,

actually I’m trying to create a zendesk workflow which fires, if a new ticket is created or changed (closed, solved etc.) and then sends a slack message. Actually a really simple use case.

But somehow it don’t work… Did I configured something wrong or do you have an idea what could it be?

I used for auth. the api token.

Thanks in advance.

      {
      "nodes": [
        {
          "parameters": {
            "options": {},
            "conditions": {
              "any": [],
              "all": [
                {
                  "operation": "value"
                }
              ]
            }
          },
          "name": "Ticket Open",
          "type": "n8n-nodes-base.zendeskTrigger",
          "typeVersion": 1,
          "position": [
            450,
            150
          ],
          "webhookId": "0176d8bd-7f9c-4719-adc6-424ee3a708b1",
          "credentials": {
            "zendeskApi": "Zendesk API"
          }
        },
        {
          "parameters": {
            "operation": "get",
            "id": "="
          },
          "name": "Get Opened Ticket",
          "type": "n8n-nodes-base.zendesk",
          "typeVersion": 1,
          "position": [
            650,
            50
          ],
          "credentials": {
            "zendeskApi": "Zendesk API"
          }
        },
        {
          "parameters": {
            "channel": "customer-news",
            "text": "opened Ticket\n\n//Test by HD",
            "attachments": [],
            "otherOptions": {}
          },
          "name": "Push to Slack (Opened T)",
          "type": "n8n-nodes-base.slack",
          "typeVersion": 1,
          "position": [
            850,
            150
          ],
          "credentials": {
            "slackApi": "billwerk slack"
          }
        },
        {
          "parameters": {
            "options": {},
            "conditions": {
              "all": [
                {
                  "value": "new"
                }
              ]
            }
          },
          "name": "Ticket New",
          "type": "n8n-nodes-base.zendeskTrigger",
          "typeVersion": 1,
          "position": [
            450,
            -50
          ],
          "webhookId": "d5af5680-5b74-40a2-b99d-ae26c06daea2",
          "credentials": {
            "zendeskApi": "Zendesk API"
          }
        },
        {
          "parameters": {
            "operation": "get",
            "id": "="
          },
          "name": "Get New Ticket",
          "type": "n8n-nodes-base.zendesk",
          "typeVersion": 1,
          "position": [
            650,
            -150
          ],
          "credentials": {
            "zendeskApi": "Zendesk API"
          }
        },
        {
          "parameters": {
            "channel": "customer-news",
            "text": "New Ticket \n\n//Test by HD",
            "attachments": [],
            "otherOptions": {}
          },
          "name": "Push to Slack (New T)",
          "type": "n8n-nodes-base.slack",
          "typeVersion": 1,
          "position": [
            850,
            -50
          ],
          "credentials": {
            "slackApi": "billwerk slack"
          }
        }
      ],
      "connections": {
        "Ticket Open": {
          "main": [
            [
              {
                "node": "Get Opened Ticket",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Get Opened Ticket": {
          "main": [
            [
              {
                "node": "Push to Slack (Opened T)",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Ticket New": {
          "main": [
            [
              {
                "node": "Get New Ticket",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Get New Ticket": {
          "main": [
            [
              {
                "node": "Push to Slack (New T)",
                "type": "main",
                "index": 0
              }
            ]
          ]
        }
      }
    }

Hey @Hueseyin, what is the error you are having? are you not receiving the events? or is it showing you an error when activating or executing the workflow?

Keep in mind that the trigger/target endpoints used on the zendesk trigger node can be used just with the Team plan or higher. Meaning that if you are getting the error below, it’s probably because of that this.

Zendesk error response [403]: {“title”:“Forbidden,” “message”:“You do not have access to this page. Please contact the account owner of this help desk for further help.”}

1 Like

Hey @RicardoE105 I am pleased to read from you!

Actually we use the Professional Plan, so this should not cause the problems. I tested a scenario with get all tickets (via get all) and push to slack. This works well.

The combination Zendesk trigger + get (specific) ticket actually does not work. Nothing happens.

The only error reaction I got for once (and was never shown again) was


ERROR: Zendesk error response [404]: Invalid endpoint


Probably a onetime effect?
But the workflow with the configuration should work, right?

What do you have the “Subdomain” in the credentials set to?
It should be only something like “n8n” not the full domain.

Hey @jan thanks for taking care!

This is exactly what I typed in; only the domain name like “n8n” without anything else. But if it wouldn’t be set up correctly, it wouldn’t work at all, right? Because for tests i set up a zendesk node with “get all” and get all.

Is my trigger configured correctly? I really don’t know, what the issue is… :confused:

@Hueseyin just tested it, and it is working fine for me. It seems like the issue you are having is because you do not have an expression referencing the ticket id on the trigger node. Check the example below, and it should work now.

{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "options": {},
        "conditions": {
          "all": [
            {
              "value": "new"
            }
          ]
        }
      },
      "name": "Ticket New",
      "type": "n8n-nodes-base.zendeskTrigger",
      "typeVersion": 1,
      "position": [
        490,
        300
      ],
      "webhookId": "d5af5680-5b74-40a2-b99d-ae26c06daea2",
      "credentials": {
        "zendeskApi": "zendesk api"
      }
    },
    {
      "parameters": {
        "operation": "get",
        "id": "={{$node[\"Ticket New\"].json[\"ticket.id\"]}}"
      },
      "name": "Get New Ticket",
      "type": "n8n-nodes-base.zendesk",
      "typeVersion": 1,
      "position": [
        770,
        290
      ],
      "credentials": {
        "zendeskApi": "zendesk api"
      }
    },
    {
      "parameters": {
        "channel": "ricardo",
        "text": "New Ticket \n\n//Test by HD",
        "as_user": true,
        "attachments": [],
        "otherOptions": {}
      },
      "name": "Push to Slack (New T)",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 1,
      "position": [
        1020,
        290
      ],
      "credentials": {
        "slackApi": "asasas"
      }
    }
  ],
  "connections": {
    "Ticket New": {
      "main": [
        [
          {
            "node": "Get New Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get New Ticket": {
      "main": [
        [
          {
            "node": "Push to Slack (New T)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Hey @RicardoE105, your workflow runs, but only if I send a ticket myself and test the workflow. Tickets from e.g. customers strangely don’t trigger the workflow, even though the workflow is live. I do not understand this. :thinking:

Do the tickets in Zendesk have to be assigned to my Zendesk account (with the same email address I have the credentials in n8n) for the workflow to work?

Off the top of my head, I will say as long as the ticket is created in Zendesk, the trigger should call the workflow no matter to whom the ticket is assigned. I will test that use case when I have time and let you know.