Passing IP address to the bot as metadata using Web Messenger API

(Josh Watts) #1

Hi there,

I’m just playing around with the Web messenger API to see what’s possible. Could someone show me what js I’d need to add to my script in order to get the IP address of a user (where they’ve approved in browser obviously). I know I need to use setConfig and metadata but that’s about as far as I got?

Thanks!