> For the complete documentation index, see [llms.txt](https://help.blinger.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.blinger.io/faq-1/faq/messaging-channels/zendesk.md).

# Zendesk

## How to merge Blinger widget with Zendesk live-chat?

![](/files/-LbSs1YLtHRx9mk7zBm_)

Step 1. Place the following code before the closing tag `</body>`:

```markup
<!-- Zendesk widget source -->
<script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=[your_zendesk_key]"> </script>

<!-- Init and customize Freshchat widget -->
<script>
    window.zESettings = {
        webWidget: {
            offset: {
                horizontal: '100px'
            },
        },
    };

    zE('webWidget:on', 'close', function() {
        zE('webWidget', 'hide');
    });
</script>

<!-- Init and customize Blinger Widget -->
<script>
    var showBlinger = function () {
        if (typeof Blinger !== 'undefined' && !Blinger.launcherWidget.isOpen) {
            document.getElementById('blinger-launcher-iframe').style.display = 'block';
        }
    };

    window['blingerBeforeRender'] = function () {
        var channel = new Blinger.Channels.SimpleActionChannel();
        channel.tooltip = 'Livechat';
        channel.color = '#75b145';
        channel.imageUrl = 'https://app.blinger.io/images/widget2/livechat.png';
        channel.action = function () {
            zE('webWidget', 'show');
            zE('webWidget', 'open');
        };

        Blinger.channelsWidget.addChannel(channel);
        Blinger.channelsWidget.resizeEnabled = true;
    };

    window['blingerInit'] = function () {
        document.getElementById('blinger-launcher-iframe').style.display = 'none';
    };

    var count = 0;
    var waitForZEWidgetloading = function () {
        var zEwidgetDisplay = zE('webWidget:get', 'display');

        if (zEwidgetDisplay === 'launcher') {
            var element = document.getElementById("launcher");
            element.parentNode.removeChild(element);
            showBlinger();
        } else {
            if (count < 20) {
                setTimeout(function () {
                    waitForZEWidgetloading();
                }, 300);
                count++;
            }
        }
    };

    waitForZEWidgetloading();

    (function (d) {
        var s = d.createElement("script");
        s.async = true;
        s.charset = "utf-8";
        s.src = "https://app.blinger.io/uploads/widgets2/[Value].js";
        d.head.appendChild(s);
    })(window.document);
</script>
```

Step 2. Insert widget's token from your Zendesk admin instead of `[your_zendesk_key]`.

```markup
<script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=[your_zendesk_key]"> </script>
```

{% hint style="info" %}
You can find widget's token in: **Admin > Widget > "Setup" tab**\
Token value goes after "key="
{% endhint %}

Step 3. Define the necessary number of the widget instead of `[Value]`.

```
 s.src = "https://app.blinger.io/uploads/widgets2/[Value].js"
```

{% hint style="info" %}
You can find the number of the widget you need after the value "Widget #", if you login to the administrator's account in Blinger and proceed to Widget module
{% endhint %}

{% hint style="info" %}
**Useful!**

The color and caption of Zendesk online-chat button can be defined using parameters **`channel.tooltip = 'Online chat'`**` ``and` **`channel.color = '#75b145'`**&#x61;ccordingly.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.blinger.io/faq-1/faq/messaging-channels/zendesk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
