# Web Chat errors using zcc-sdk.js / Campaign embedded web tag - Not working

**URL:** <https://devforum.zoom.us/t/web-chat-errors-using-zcc-sdk-js-campaign-embedded-web-tag-not-working/88856>\
**Category:** Contact Center\
**Created:** [May 23, 2023, 3:25am UTC](https://devforum.zoom.us/t/web-chat-errors-using-zcc-sdk-js-campaign-embedded-web-tag-not-working/88856 "2023-05-23T03:25:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaunc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shaunc/32/48749_2.png) [@shaunc](https://devforum.zoom.us/u/shaunc)\
**Post date:** [May 23, 2023, 3:25am UTC](https://devforum.zoom.us/t/web-chat-errors-using-zcc-sdk-js-campaign-embedded-web-tag-not-working/88856/1 "2023-05-23T03:25:16Z")

</div>

Hi folks,

We’ve just purchased our licenses after testing webchat using the Flow’s script:

> \< script data-chat-entry-id=“XXXX” data-apikey=“XXXX” src=“https:// us01ccistatic. zoom .us/us01cci/web-sdk/chat-client.js”\>

This worked fine but we wanted to have some control over the appearance, so we swapped to the configured Campaign we setup:

> \< script data-apikey=“XXXXX” src=“https:// us01ccistatic .zoom .us/us01cci/web-sdk/zcc-sdk.js”\>

Full HTML with broken tags so it shows up 😅:

> \< div\>  
> \< button class=“btn float-btn btn-success” id=“supportchat”\>Start chat  
> \< script data-apikey=“XXXXX” data-el=“#supportchat” src=[https://us01ccistatic.zoom.us/us01cci/web-sdk/zcc-sdk.js](https://us01ccistatic.zoom.us/us01cci/web-sdk/zcc-sdk.js)\>  
> \< /script\>  
> \< /div\>

This has been placed on a already verified and added subdomain, and yet we’re getting errors and the chat won’t open.

> zcc-sdk.js:71 POST https:// us01cciapi. zoom. us/v1/auth/token/generate/in/visitor/mode 400  
> zcc-sdk.js:58 [Task:create\_token\_service] error  
> zcc-sdk.js:58 [Pipeline] Chat Service Pipeline error

> {status: false, errorCode: “19001”,…}  
> errorCode: “19001”  
> errorMessage: “ACCOUNT\_NOT\_FOUND[20006] - Bad Request, can not get entry id from request body”  
> status: false

Hoping for some help and guidance as I was directed here by a Zoom support agent.

---

<div class="post-metadata">

**Author:** ![justin.steinberg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/justin.steinberg/32/9988_2.png) [@justin.steinberg](https://devforum.zoom.us/u/justin.steinberg)\
**Post date:** [May 23, 2023, 12:21pm UTC](https://devforum.zoom.us/t/web-chat-errors-using-zcc-sdk-js-campaign-embedded-web-tag-not-working/88856/2 "2023-05-23T12:21:14Z")

</div>

When you use the data-el tag, it is not using Campaign mode, so you need to include the data-chat-entry-id in the script tag to identify which Web chat flow you want to trigger when user clicks on your #supportchat button. Once you add that it should work.

---

<div class="post-metadata">

**Author:** ![jackh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackh/32/59184_2.png) [@jackh](https://devforum.zoom.us/u/jackh)\
**Post date:** [April 30, 2024, 5:14pm UTC](https://devforum.zoom.us/t/web-chat-errors-using-zcc-sdk-js-campaign-embedded-web-tag-not-working/88856/3 "2024-04-30T17:14:04Z")

</div>

Hi, I’m just wondering if you ever figured this out correctly? We have a similar situation (and I will post a new post about it) but no errors in the browser console.

When we use

```auto
    <script
      data-apikey="xxxxxx"
      data-env="us01"
      src="//us01ccistatic.zoom.us/us01cci/web-sdk/zcc-sdk.js"
    ></script>

```

nothing shows up - this should be the campaign with the styling applied. Nothing, no errors, nothing. When we use:

```auto
    <script
      data-apikey="xxxxxx"
      data-env="us01"
      data-chat-entry-id="xxxxxx"
      src="//us01ccistatic.zoom.us/us01cci/web-sdk/chat-client.js"
    ></script>

It works fine but of course no styling.

thanks for any help!

  - Jack

```
