Setting a slot that captures the value provided by initPayload

I tried everything but still, I am not able to set a slot via this method can you guys help me out. I also tried manually in shell still nothings works. What I want to achieve is when user login my website bot should capture the value provided by initPayload and set slot with it. Versions used: 2.1.2, 2.2.4 and 2.3.4

Could you give us some samples of your code?

Here in greet_payload you can have a look what I am trying to do.
Explaination: I am capturing username from website and sending to bot but bot gets it as None, it’s not receiving it

<script>!(function () {
    let propUser = window.localStorage.getItem('user')
    let propName = propUser ? propUser.split('@')[0] : '';
    let greet_payload = propUser ? `/greet{"login_token":"${propUser}"}` : '/greet';
    console.log(propUser, propName, greet_payload)
    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: "http://localhost:5005",
            initPayload: greet_payload
          },
          null
        );
      }),
      t.insertBefore(e, t.firstChild);
  })();
  </script>

How about the login_token slot? is auto_fill: false ?

yes