webhook sends us a different requester id for the same user | Community
Skip to main content

webhook sends us a different requester id for the same user

  • September 29, 2022
  • 3 replies
  • 0 views


Hello, we try to create our own chat bot to send messages from Discord to Zendesk.
We faced with the issue that the webhook sends us a different requester id for the same user. As a result, in Zendesk this user is displayed as a new user every time.

Can you suggest how we can fix this?
 
 

3 replies

Greg29
  • September 29, 2022

Hi Bohdan! Could you please share the configuration so that we can see what could be occurring? Please provide as many details as you can!


  • Author
  • October 4, 2022

Hello!

When user sends message in Discord, the ticket should be created or updated. We set up the trigger, which should display ticket details when it's creating or updating. And I noticed that the webhook, that we receive from Zendesk, sends different requester_id for the same user.

So for example, I have only one chat with only one person. Everytime this person writes to discord and ticket creates, Zendesk creates a new user for this person.

How not to receive different data for the same user?

My trigger configuration is: 

Conditions: ticket is created or ticket is updated

Config: 

{
 "ticket": {
 "requester_id":"{{ticket.requester.id}}",
 "id": "{{ticket.id}}",
 "ticket_url": "{{ticket.url}}",
 "ticket_status": "{{ticket.status}}",
 "ticket.requester.name": "{{ticket.requester.name}}",
 "subject":"{{ticket.title}}",
 "user":"{{current_user.name}}",
 "requester_id": "{{ticket.requester.id}}",
 "custom_fields":"{{ticket.ticket_field_360007938440}}",
 "latest_comment" : {
 "is_public": "{{ticket.latest_comment.is_public}}",
 "comment_author":"{{ticket.latest_comment.author.name}}",
 "value" : "{{ticket.latest_comment.value}}",
 "attachments" : [
 {% for attachment in ticket.latest_comment.attachments %}
 {
 "filename" : "{{attachment.filename}}",
 "url" : "{{attachment.url}}"
 }
 {% if forloop.last == false %}
 ,
 {% endif %}
 {% endfor %}
 ]
 }
}
}


Greg29
  • October 4, 2022
Thanks for those details, however I'm not seeing any updates in your account that have come via our webhook. Could you share a ticket id and a UTC timestamp of when this webhook ran so that I can see why it's trying to create a new user?