Customer Portal

Get Involved. Join the Conversation.

Topic

    Kenton Banyai
    Chat InlayAnswered
    Topic posted June 14, 2019 by Kenton BanyaiRed Ribbon: 250+ Points, last edited June 14, 2019 
    83 Views, 3 Comments
    Title:
    Chat Inlay
    Summary:
    Unable to produce chat inlay on standard.php
    Content:

    I am trying to test the chat inlay functionality and I cannot get it to show on screen. I have tried variations of the code through the forums with no luck. 

    Where I have the div on the page it shows the text "Widget Error: standard/ProactiveChat - The widget could not be loaded. The widget must be contained within a version directory and must contain a valid info.yml file."

    Any reason it might not be loading? Any help would be much appreciated.

     

    Here is my closest guess to what i should be. 

      
    <script type="text/javascript" src="https://XXXXX.widget.custhelp.com/euf/rightnow/RightNow.Client.js"></script>
     
    <script type="text/javascript">
    RightNow.Client.Controller.addComponent(
    {
    instance_id: "spac_0",
    div_id: "myDiv",
    module: "ProactiveChat",
    type: 2
    },
    "https://XXXX.widget.custhelp.com/ci/ws/get"
    );
    </script>


     
    <div id="myDiv"><rn:widget path="standard/ProactiveChat" /></div>

    Best Comment

    Prashant Chirania

    Hi Kenton,

    Please share your CP interface URL, I shall give you the loader.js path. 

    'custhelp.widget.custhelp.com/s/oit/latest/common/v0/libs/oit/loader.js' is not accessible.

    Thanks
    Prashant

     

    Comment

     

    • Prashant Chirania

      Hi Kenton,

      The code that you have shared above is for legacy syndicated widget not 'Chat Inlay'. Here is what you need to do to have chat inlay on standard.php -

      1. If you want to access chat inlay on abc.custhelp.com then please enter abc\.custhelp\.com  in OIT_CORS_WHITELIST

      2. Please put following code in standard.php [Note: site-url attribute does not contain protocol]

      <inlay-oracle-chat-embedded
          class="inlay"
          id="chatInlay"
          site-url="XXXX.widget.custhelp.com"
          >
          </inlay-oracle-chat-embedded>
      <script id="oit-loader"
          src="https://XXXX.widget.custhelp.com/s/oit/latest/common/v0/libs/oit/loader.js"
          async>

         </script>

      Thanks
      Prashant

      • Kenton Banyai

        Thanks for the reply! I followed the instructions and am still getting a ERR_NAME_NOT_RESOLVED error in the console. It is referencing custhelp.widget.custhelp.com/s/oit/latest/common/v0/libs/oit/loader.js. It also isn't showing up on the screen at all. Is their any formatting for entering it in the OIT_CORS_WHITELIST? I tried some variations I have seen but still not responsive.

        • Prashant Chirania

          Hi Kenton,

          Please share your CP interface URL, I shall give you the loader.js path. 

          'custhelp.widget.custhelp.com/s/oit/latest/common/v0/libs/oit/loader.js' is not accessible.

          Thanks
          Prashant