0

The botman widget appears okay but when i open it to view the chat frame it gives error 404 inside the chat frame.

This is the part where i declare the botman widget

<script>
    var botmanWidget = {
        frameEndpoint:'https://www.youtube.com/'
        aboutText: 'ssdsd',
        introMessage: "✋ Hi! I'm form ItSolutionStuff.com"
        title: 'BotMan'
    };
</script>
<script src='https://cdn.jsdelivr.net/npm/botman-web-widget@0/build/js/widget.js'></script>

and this is the chat.html file referenced by the botmanWidget

<html>
    <head>
    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/botman-web-widget@0/build/assets/css/chat.min.css">
    <title>BOtMANS</title>
    </head>
    <body>
    <script id="botmanWidget" src='https://cdn.jsdelivr.net/npm/botman-web-widget@0/build/js/chat.js'></script>
    </body>
</html>
3adma
  • 23
  • 4

1 Answers1

0

The frameEndpoint should be an URL. So either you put in an absolute URL, f. ex. https://your-url.com or a relative one with forward slashes /, f. ex. /config/botman/chat.html.

You can test, if your frame page is callable by using the current domain you run your site on and append /config/botman/chat.html.

codedge
  • 4,754
  • 2
  • 22
  • 38
  • I edited my code like this but still it gives error 404 and i tried adding a complete URL of a site and also it didn't work @codedge ` ` – 3adma Jan 23 '21 at 11:59
  • Can you please edit your post and show the example with a full URL? When the the full URL example does not work, then the URL to the `frameEndpoint` URL cannot be opened. This is not a problem of botman, but of your application. – codedge Jan 23 '21 at 12:04
  • i edited the code to open youtube but it is still not working – 3adma Jan 23 '21 at 12:21