Push notifications from Zendesk to Slack | Community
Skip to main content

Push notifications from Zendesk to Slack

  • May 9, 2019
  • 58 replies
  • 0 views

Show first post

58 replies

Jacob20
  • Author
  • June 5, 2024

Hi Chris,

I'm glad you like the post, appreciate that!

I'm not familiar with Talk and how transcripts are handled but if it is added as an internal comment, you should be able to have your trigger hook into the right event and then use one of the comment placeholders for your webook and bring it into the Slack notification.


  • June 12, 2024

Hi @jacob20 ,

Thanks for your article. I've followed the steps exactly but no matter what I change in terms of auth in Zendesk or Slack, my response on "Test Webhook' returns a 400 no_text and the same under activity for the webhook, 400 Bad Request. 

Do you know how I can fix this issue? 

 

 


Jacob20
  • Author
  • June 13, 2024

Hi @joon 

 

I'm no longer as familiar with Slack, but it looks like the JSON payload you're sending is missing the ‘text’ element, what carries your message.

 

When I look at my Zendesk trigger that has the webhook action, I can see that I have the following payload:

{
 "text": 
 "*New ticket* : <https://YOUR-DOMAIN.zendesk.com/agent/tickets/{{ticket.id}}|{{ticket.title}}>.\n
 *Requester*: <https://YOUR-DOMAIN.zendesk.com/agent/users/{{ticket.requester.id}}/requested_tickets|{{ticket.requester.name}}>.\n
 *Organization*: {{ticket.requester.organization.name}}. \n
 *Status*: {{ticket.status}}.\n
 *Group*: {{ticket.group.name}}.\n"
}

With this payload I get the following message in Slack:

Hope that helps you out!

 


Jacob20
  • Author
  • June 13, 2024

This is what it looks like for me in the webhook activity log.


  • June 13, 2024

That was super helpful, our JSON did indeed have no text element which was an oversight on my part. Thanks so much!


Jacob20
  • Author
  • June 14, 2024

@joon That's awesome 👍

 

@casie Sorry I missed your question earlier!
Do you want to have comment updates on tickets create messages in Slack?
I don't see any technical reason you couldn't do this with the proper trigger condition and comment placeholders, however, that sounds like a lot of noise to introduce into Slack, and you may introduce PII that may give you a GDPR headache down the line.

Let me know if I completely misunderstood you 😊


Joy15
  • November 12, 2024

Hello Jacob the Moderator!
Is there a way to create a Team Publishing trigger? For exmple, when a help article has been reassigned?

 


Jacob20
  • Author
  • November 13, 2024

Hi @joy15 

I'm not sure that exact event is available, but webhooks do have some article-related events that could be investigated as a triggering event: Article events.

 

👆 This event could be used to start a flow (using a Zendesk webhook), but you would need some kind of middleware (Zapier, MS Power Automate or a ZIS flow for example) to take the Webhook response and modify it into a readable message and send that to Slack.