Conversation Template
SYSTEM ADMINTENANT ADMINSITE ADMIN
A conversation template defines a custom layout of conversation window on the web client page. The Template contains custom html markup of a contact on the Web Client page with own CSS styles and a translation.
There are two entries which cannot be deleted or changed, only downloaded for editing / duplication purposes:
- Default Conversation Template
- Default Floating Conversation Template
Both templates consist of a HTML file and 14 JSON translation files.
Accessing files of a "Contact" template
Markup
Elements | HTML Tags | Status |
---|---|---|
Elements that can be used in template:
XML
XML
XML
XML
| HTML tags that can be used in the template:
XML
XML
XML
XML
XML
XML
| A contact status can have the following values:
XML
|
Floating Conversation
To hide an contact that is unavailable:
Insert ....
‘ng-show="conversationAvailable()">‘
CODE...in div with class container
Add div:
<div class="lwf-container" ng-show="!conversationAvailable()"> <span>{{'CONTACT_ANAVAILBALE'| translate}}</span> </div>
CODE- Upload translation file with translate for 'CONTACT_UNAVAILBALE'
Example HTML - Hide Conversation for unavailable contact
<div class="lwf-header contact-status" participants-header>
<div>
<div class="lwf-popup-status"><i class="fa fa-circle" aria-hidden="true"></i></div>
<div contact-name class="lwf-agent-name"></div>
<chat-unread-messages-count></chat-unread-messages-count>
<contact-card></contact-card>
</div>
<popup-actions close="true" escalate="true" maximize="true"></popup-actions>
</div>
<div class="lwf-body">
<div class="lwf-container" ng-show="conversationAvailable()">
<customer-form></customer-form>
<audio-modality></audio-modality>
<video-modality></video-modality>
<presentation-modality></presentation-modality>
<audio-video-action audio-title="{{ 'CONVERSATION_AUDIO_TITLE' | translate }}" video-title="{{ 'CONVERSATION_VIDEO_TITLE' | translate }}"></audio-video-action>
<chat-modality></chat-modality>
</div>
<div class="lwf-container" ng-show="!conversationAvailable()">
<span>{{'CONTACT_ANAVAILBALE'| translate}}</span>
</div>
</div>
XML
Example HTML with Custom CSS
<div class="modal-header draggable contact-status">
<div class="popup-title">
<div contact-avatar class="header-avatar"></div>
<div contact-name class="lw-agent-name"></div>
<div class="status"><i class="fa fa-circle" aria-hidden="true"></i><span contact-status></span></div>
<contact-card></contact-card>
<popup-actions close="true" escalate="true"></popup-actions>
</div>
</div>
<div class="modal-body">
<div class="container">
<div class="conversation-media">
<div class="conversation-actions">
<audio-video-action audio-title="Audio" video-title="Video" show-hint="true"></audio-video-action>
</div>
</div>
<div class="tabs">
<chat-modality></chat-modality>
<audio-modality></audio-modality>
<video-modality></video-modality>
</div>
</div>
</div>
CSS