이 튜토리얼에서는 트리거를 사용하여 사용자에게 태그를 지정하는 방법을 배웁니다. 트리거에 의해 태그가 추가되었는지도 알 수 있습니다.
워크플로우에는 아래 단계가 포함됩니다.
트리거 작업을 사용하면 사용자의 프로필에사용자 태그를직접 추가할 수 없습니다. 이 문제를 해결하려면 다음 작업을 사용하여 사용자 지정 워크플로를 만드세요. 요청자|사용자 지정 사용자 필드: 그런 다음 태그를 추가합니다.
1단계: 사용자 지정 사용자 필드 만들기
- 사용자 지정 사용자 필드만들기 드롭다운 필드 유형 선택
- 태그로 사용자 필드 값을 추가합니다. 이 예에서는
vip
사용자 태그 - 클릭 저장
2단계: 트리거 만들기
- 트리거 만들기
- 사용자 태그에 대한 티켓 조건 추가
- 작업아래에서조회 관계>요청자 >사용자 지정 사용자 필드 | 사용자 필드 값 선택
-
저장을 클릭합니다.
트리거는 vip
태그를 사용자 및 해당 사용자로부터 오는 모든 후속 티켓에 추가할 수 있습니다.
3단계: 트리거에 의해 사용자 태그가 추가되었는지 확인
아래 단계에 따라 사용자 태그가 트리거에 의해 추가되었는지 확인하세요.
-
관리 센터>사람>사용자 필드> 사용자 필드 열기로 이동하여 페이지 위쪽에 있는사용자 지정 필드 ID바로 뒤에 있는 숫자를 찾습니다.
- 아래 URL을 사용하여
fieldID
포인트 1에서 찾은 사용자 필드 ID 및 대신Zendesk 하위 도메인으로yoursubdomain
https://yoursubdomain.zendesk.com/api/v2/user_fields/fieldID
결과에서"id"
- 아래의 이 URL을 사용하여
yoursubdomain
실제Zendesk 하위 도메인:https://yoursubdomain.zendesk.com/api/v2/triggers/active.json?active=true&page=1
- 해당 페이지에서 트리거 목록의 포인트 2에서 값 ID를 찾습니다.
사용자 지정 사용자 필드 값 및 태그와 함께 트리거 이름이 나타납니다.
번역 고지 사항: 본 문서는 콘텐츠에 대한 기본적인 이해를 제공하기 위해 자동 번역 소프트웨어를 사용하여 번역되었습니다. 정확한 번역을 제공하고자 합당한 노력을 기울였으나 Zendesk는 번역의 정확성을 보장하지 않습니다.
번역된 문서에 포함된 정보의 정확성과 관련하여 질문이 있으시면 문서의 공식 버전인 영문 버전을 참조하시기 바랍니다.
댓글 6개
Alik Fedorenko
We are also running into the need to automatically tag users when an organization is assigned to a user.
0
Victoria Thrash
Christine Diego the issue is that triggers only work when there is a ticket. we need to be able to update users regardless if there is a ticket.
1
Christine Diego
At the moment, there's no trigger action that can add a tag on the user profile, however you can use the custom user field option and use it on the trigger to add a user tag on the user profile. The trigger will add the tag to the user and any subsequent tickets from that user.
You can also post this as a feature request in feedback forum. Our Product Team reviews this forum regularly and it has inspired many of the enhancements we've made to Zendesk over the years.
0
Support Admin
Hello Christine Diego,
No, I did not try the custom field approach because it won't work for assigning a user to a user segment. That assignment is only based on "real" tags (no support for user fields). In other words, this method doesn't accomplish what the title says.
All this method does is to provide a way to initiate a trigger based on a custom user field (sort of the wrong direction ;-) ).
So is there another way to add a user to a user segment via a trigger?
0
Christine Diego
Unfortunately, there's no trigger action that will allow you to add tags on the user profile. Tags are added to tickets via triggers. Have you created the custom user field as mentioned on the article and trigger? Please take note that the trigger will fire when a ticket has been created.
0
Support Admin
Sorry, but I am not seeing how this adds a tag to the user profile. Are some steps missing?
My use case (as it is for many others) is to trigger off the user tag to assign a user to user segment (which only works off tags, and not any other fields), for example, to control visibility to articles.
How can automatically add a tag to the user profile?
0
댓글을 남기려면 로그인하세요.