Hi,
In general, it looks like you are running the code in the Execute Code. This means you run it on the server (cloud), so ipinfo gets the IP from the server because the bot runs inside the iFrame.
When you open the
you will see:
...return`<**iframe** id="${o(t.chatId)}"...
To get the user's IP address and the location (network provider's IP address location), you must execute that code on your page as javascript (in the user's browser).
Next, send the location info to your bot inside the payload when you start the chat - use Custom Trigger to start the chat and receive the payload.