Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (41 sloc) 878 Bytes
title subtitle description redirect_from
Chat Box Triggers
Adjust chat behaviour.
Change how chat box behaves, define messages to be send or set your language.
/docs/javascript-api/chat/

Avatar

Set logo inside chat box, which is displayed by default when no agent is connected.

<script>
	smartsupp('chat:avatar', 'URL_TO_IMAGE');
</script>

Message

Set pre-filled message in chat box (text is not sent).

<script>
	smartsupp('chat:message', 'Hello, can you help me with...');
</script>

Send

Send custom text in conversation in chat box. For example linked to button action.

<script>
	smartsupp('chat:send', 'Hello, can you help me with...');
</script>

Open

Open chat box.

<script>
	smartsupp('chat:open');
</script>

Close

Close chat box.

<script>
	smartsupp('chat:close');
</script>
You can’t perform that action at this time.