Templates (Viber)

1. Description

The page for setting the display of messages from the system.

Consists of fields (Fig.1):

Fig. 1. Templates

The ability to describe specific update templates for a particular message gateway has been provided:

UpdateUsageFieldSenderRecipient
titleHeader format of new, incoming chat

MemberUser/Agent
closeStatic message of chat ending

Member
joinParticipant connection message format

User/AgentMember
leftParticipant disconnection message formatUser/AgentMember

The template syntax for the text/template package can be found here.

Actions - evaluations of data or control structures - are separated by $( and ) .

For example, the corresponding templates might look like this:

UpdateMessage template
close🎈 Dialogue completed!
join👤 *$(.FirstName)*$(if .LastName) $(.LastName)$(end)
left👤 ~*$(.FirstName)*$(if .LastName) $(.LastName)$(end)~

If in the  field enter:

👤 ~*$(.FirstName)*$(if .LastName) $(.LastName)$(end)~

then when the Agent disconnects, the chat will display the name of the Agent who has left the chat.

1.1. Workspace member's name

Here you enter the text or template displayed for the agent's incoming chat. Anonymous name of the subscriber, for example.

Here you enter the text or template displayed to the subscriber when the Agent connects to the chat.

Here you enter the text or template displayed to the subscriber when the chat is closed.

Here you enter the text or template displayed to the caller when the Agent has left the chat.

To anonymize incoming chats, enter the text, for example:

Anonymous

In this case, templates, as such, are not used at all. The constant is described here.

All incoming chats from the gateway for which such a template is described will be displayed as Anonymous.