A Most Coveted Feature… And Our API

OnlineLiveChat can be a particularly useful tool for handling support requests in a web application. One of our most popular feature requests was for web apps to be able to log users in automatically.

You spoke, we listened.

In fact, along with building out this fantastic new feature, we’ll be including it in our own backend pronto!

Here’s the technical gist: we have added a _olc_visitor variable for you to inject a visitor’s information. Pass the user’s name and email address into the variable et voila, your users will automatically be signed in to the OnlineLiveChat live chat software. It doesn’t even matter where you declare the variable – before or after the main embed snippet.

<script type="text/javascript">
	var _olc_visitor = {
		name: "John Doe",
		email: "john@doe.com"
	}
</script>

Here’s a quick, copy-and-paste PHP snippet to clarify:

<script type="text/javascript">
	var _olc_visitor = {
		name: "<?php echo $user["name"]; ?>",
		email: "<?php echo $user["email"]; ?>"
	}
</script>

A Special Bonus:

We have added a Developers API section to give a technical overview of integrating with OnlineLiveChat. If you’re not a programmer, just send your developer to this page, it should have everything he/she needs to install and customize OnlineLiveChat on your website.