Send user information to live chat

Hi all,
Are you aware of any plug-in or a way to send user information to a live chat service without a complex API integration ? this is very useful if the user is logged in and we don’t want to ask for user info again like name , mobile number and email as they already provided us with these info.
I checked tawk.to APIs it seems we can do so but it’s not a straight forward task for an ordinary bubble user.
Would be great to have a plug in where we can just add live chat service key and send user info directly to the service.
any thoughts?

Thanks
Majd

@Majd, most chat apps enable you to pass data to them via javascript. They typically have the Javascript written for you and included on their site. You simply need to add it to your site and then customize the lookup fields for the user’s name, email, etc.

As such, it’s even easier than an API call.

2 Likes

Thanks @sridharan.s , I’m looking into this but to be honest it’s not a straight forward for non coder like me.
for example , this is tawk.to javaScripts https://developer.tawk.to/jsapi/
It shows list of all avilable scripts ,I tried to use the one send email and name , but still didn’t manage to do so , what I need is to send email and name when the chat session is started by user.
Do you think there is a way to do it ?
Thanks
Majd

Yes.

Maybe hire a low-cost javascript coder on upwork to help you set it up? It’s probably 15-30 mins of work if they don’t know Bubble. You’ll need to help them with the Bubble database looks to grab the current user’s name, and current user’s email. Plus, they can show you how and why it works the way it does.

Scott

2 Likes

Will do that, thanks @sridharan.s

1 Like

Have the same question/need. It would be great if we can pass the current logged in email to tawk.to. Did you ever figure this out? TIA.

Actually, found an easy solution… Add this snippet above your existing tawk snippet, conditional on “user logged in” and replace the two fields below with dynamic values from your DB…

var Tawk_API=Tawk_API||{};
Tawk_API.visitor = {
name : ‘visitor name’,
email : ‘visitor@email.com’
};

1 Like

Thanks @akalati

Hi Andy,
Is it possible to share some screenshots or step by step way to be able to do so.
What I tried to do is when a user clicks on a button “Online chat” I will send a Javascritp as this:
Tawk_API=Tawk_API||{};
Tawk_API.visitor = {
name : ‘visitor name’,
email : ‘visitor@email.com’
};

Then open a URL with the Tawk direct chat link.

But I still don’t get the name and email. I must be doing something wrong :frowning:
I think it’s also more about how do you start a new chat? do you use the direct link/widget or you create you own chat experience in the app?
Thanks
Majd

You need to replace the name and email data with dynamic data, like this…

image