Chat Box Triggers

Adjust chat behaviour.

Change how chat box behaves, define messages to be send or set your language.

Navigation

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>