# Help in Botfront webchat

**URL:** <https://forum.rasa.com/t/help-in-botfront-webchat/40832>\
**Category:** Rasa Open Source\
**Created:** [March 3, 2021, 1:45pm UTC](https://forum.rasa.com/t/help-in-botfront-webchat/40832 "2021-03-03T13:45:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul\_namdev](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@rahul\_namdev](https://forum.rasa.com/u/rahul_namdev)\
**Post date:** [March 3, 2021, 1:45pm UTC](https://forum.rasa.com/t/help-in-botfront-webchat/40832/1 "2021-03-03T13:45:16Z")

</div>

Hi , i’m trying webchat by botfront. I got it running but how do i make it open by default.

```auto
<!DOCTYPE html>
<html lang="en">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<head>
  <link rel=icon href="1.png">
  <title>hello</title>
  <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style_new.css">
</head>

<body>
  <div id="webchat"/>

<script>!(function () {
  let e = document.createElement("script"),
    t = document.head || document.getElementsByTagName("head")[0];
  (e.src =
    "https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.js"),
    (e.async = !0),
    (e.onload = () => {
      window.WebChat.default(
        {
          customData: { language: "en" },
          socketUrl: "https://bf-botfront.development.agents.botfront.cloud",
          storage:"session"
        },
        null
      );
    }),
    t.insertBefore(e, t.firstChild);
})();
window.WebChat.Open()
</script>
</body>
</html>

```

I’m tryin this , but this doesn’t work. Please help me get this open by default and not on click.

Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![fkoerner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fkoerner/32/11784_2.png) [@fkoerner](https://forum.rasa.com/u/fkoerner)\
**Post date:** [March 4, 2021, 7:05am UTC](https://forum.rasa.com/t/help-in-botfront-webchat/40832/2 "2021-03-04T07:05:13Z")

</div>

Hi! We’re not the creators of Botfront, and I can only help you with Rasa-related questions. This looks more like a web design issue. I think you should ask your question to the Botfront community [here](https://github.com/botfront/botfront/discussions)

---

<div class="post-metadata">

**Author:** ![webdev-rohit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/webdev-rohit/32/18943_2.png) [@webdev-rohit](https://forum.rasa.com/u/webdev-rohit)\
**Post date:** [March 23, 2022, 7:26am UTC](https://forum.rasa.com/t/help-in-botfront-webchat/40832/3 "2022-03-23T07:26:59Z")

</div>

Hi @rahul_namdev were you able to get the widget automatically open on page load? If yes, then please could you share the code.

---

<div class="post-metadata">

**Author:** ![webdev-rohit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/webdev-rohit/32/18943_2.png) [@webdev-rohit](https://forum.rasa.com/u/webdev-rohit)\
**Post date:** [March 23, 2022, 7:27am UTC](https://forum.rasa.com/t/help-in-botfront-webchat/40832/4 "2022-03-23T07:27:54Z")

</div>

Hello @nik202 , can you help out with the first post in this thread…

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [March 23, 2022, 4:48pm UTC](https://forum.rasa.com/t/help-in-botfront-webchat/40832/5 "2022-03-23T16:48:34Z")

</div>

@webdev-rohit can you create the new thread for your issue, its quit old thread.

---

<div class="post-metadata">

**Author:** ![webdev-rohit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/webdev-rohit/32/18943_2.png) [@webdev-rohit](https://forum.rasa.com/u/webdev-rohit)\
**Post date:** [March 29, 2022, 3:58pm UTC](https://forum.rasa.com/t/help-in-botfront-webchat/40832/6 "2022-03-29T15:58:40Z")

</div>

Sure @nik202 .
