최근 검색
최근 검색 없음
Get a notification once the agent answers a call.
2023년 8월 24일에 게시됨
Hello, I'm building an application on top of the Zendesk talk. I need to get a notification once the agent accepts the call, or when the ticket is created based on the voice channel. Could you please help me with this? I'm using ZAFClient.
0
4
댓글 4개
Boris Atayan
Thank you very much Tipene, it is precisely what I need 😎
0
Tipene Hughes
You'd need to have a backend service of some kind to ingest the API call from the webhook. If you want to have it self contained within a ZAF app, here's a basic example that should do what you're looking for:
This is just grabbing the ticket details via the
client.get
method then comparing the values and printing to console if it is successful. You can add some code in place of the console.log to create the notification type you need. I'd also suggest adding some error handling to catch any issues.I hope this helps! Let me know if you have any questions.
Tipene
1
Boris Atayan
Thank you Tipene for your response!
0
Tipene Hughes
It sounds like this might be a good use case for triggers and webhooks. You can use the trigger to listen for new tickets via the voice channel, then notify a webhook which you can use to make a call to an external API.
Let me know if this works!
1
댓글을 남기려면 로그인하세요.