Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

1. Description

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

Consists of fields (Fig.1):

Fig. 1. Templates

Available in:

  • Telegram App;
  • Telegram Bot.

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

UpdateUsageFieldSenderRecipient
titleHeader format of new, incoming chat

MemberUser/Agent
closeThe static chat end message

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👤 __*$(md2 .FirstName)$(if .LastName) $(md2 .LastName)$(end)*__
left👤 ~*$(md2 .FirstName)$(if .LastName) $(md2 .LastName)$(end)*~

If in the  field enter:

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

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

Specific to telegram-* providers only

  • this example uses MarkdownV2 text formatting for some messages;
  • included md2 template function - to escape value encoding control characters.

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.

  • No labels