Recent searches


No recent searches

Andrey Sarapulov's Avatar

Andrey Sarapulov

Joined Apr 15, 2021

·

Last activity Nov 12, 2021

Following

0

Follower

1

Total activity

3

Votes

0

Subscription

1

ACTIVITY OVERVIEW

Latest activity by Andrey Sarapulov

Andrey Sarapulov commented,

Community comment Discussion - Tips and best practices from the community

@prakash.sati

Yes you can. Assuming you can come with a condition for that.

View comment · Posted Nov 12, 2021 · Andrey Sarapulov

0

Followers

1

Vote

0

Comments


Andrey Sarapulov created a post,

Post Discussion - Tips and best practices from the community

There are a number of posts in Zendesk Community space about the need to have dynamic Agent signatures or signatures with a conditional element. In this post I would like to share few tips how to use the Zignatures App to achieve the desired Agent signature behaviour.

How Zignatures App works?

In essence the App logic is the following: when Agent presses Submit button the App will interrupt the submission process => inject the signature code => let Zendesk calculate and render it => allow ticket submission process to be completed.

The native Zendesk Agent signature is added after the submit occurred.

The key difference between the Zignatures App and the native Zendesk signature is the scope of accessible user/ticket/account attributes. The native signature can access the current user attributes and the account attributes. While the Zignatures App can access the current user, account, ticket, comments and all other attributes available one a ticket. For example, render a signature depending on a ticket field is only possible using Zignatures App.

For Zignatures App to work:

  • Install the Zignatures App from Zendesk marketplace
  • Configure the App. The only mandatory field is "Text or HTML of the signature". It accepts the text, raw HTML or any other objects that are accepted by Zendesk comment editor (for example, Dynamic Content)

  • Complete the installation
  • Refresh the page
  • Go to a test ticket and add a public comment to see the signature

Signature configuration

There are a number of ways how signature in the App can be configured. 

  • Add a simple signature text into "Text or HTML of the signature". It may contain Zendesk placeholders
  • Add pure HTML that can also contain Zendesk placeholders The HTML has to be supported by the Zendesk Comment editor. The editor tend to be very restrictive and sanitise any HTML input. For example, many "exotic" HTML tags will not work nor fancy CSS
  • Add your HTML with Zendesk placeholders into a Dynamic content record and inject the Dynamic content into the App setting. This approach allows using any HTML with all sort of in line styles and rare HTML tags

Advanced configuration

The key advantage of using Zignatures App is the ability to use Liquid (Zendesk article and technical documentation). The Liquid is very powerful language that allows text manipulation, conditional statements and more.

Examples:

Render signature only for tickets created via email:

{% if ticket.via == "Mail" %} SIGNATURE {% else %} no signature {% endif %}

Render signature depending on a ticket tag:



{% if ticket.tags contains 'tag1' %}
{% elsif ticket.tags contains 'tag2' %}
{% elsif ticket.tags contains 'tag3' %}
{% elsif ticket.tags contains 'tag4' %}

{% elsif ticket.tags contains 'tag5' %}

{% else %}

{% endif %}

Render signature with dynamic Agent name and the avatar. This code should be added into Dynamic Content to work.

{% assign avatar_url = 'https://DEFAULT_IMAGE_URL' %}
{% case current_user.email %}
{% when 'AGENT 1 EMAIL VALUE' %}
{% assign avatar_url = 'https://AGENT_1_IMAGE_URL' %}
{% when 'AGENT 2 EMAIL VALUE' %}
{% assign avatar_url = 'https://AGENT_2_IMAGE_URL' %}
{% else %}{% endcase %}

{{current_user.name}}

{{current_user.name}}

There are a number of other use cases that the Zignatures App can help solving. Feel free to share your signature requirements in the comments and rate the Zignatures App on the marketplace.

Posted Feb 09, 2021 · Andrey Sarapulov

1

Follower

6

Votes

6

Comments