<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>JavaScript API on Olark</title>
    <link>https://www.olark.com/api/</link>
    <description>Recent content in JavaScript API on Olark</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language><atom:link href="https://www.olark.com/api/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Add a custom prechat survey</title>
      <link>https://www.olark.com/api/system_custom_prechat/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_custom_prechat/</guid>
      <description>Dynamically add questions to your prechat survey with &amp;lsquo;system.custom_prechat&amp;rsquo;. Pass an array of the questions you&amp;rsquo;d like to add using the format below:
olark.configure(&#39;system.custom_prechat&#39;, [ { type: &amp;quot;textarea&amp;quot;, is_required: false, label: &#39;What can we help with today?&#39;, placeholder_text: &amp;quot;I need help with...&amp;quot; } ]);  The type property refers to the type of question you would like to ask your visitors and is used in form styling and validation. Options include:</description>
    </item>
    
    <item>
      <title>Allowed domains</title>
      <link>https://www.olark.com/api/system_allowed_domains/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_allowed_domains/</guid>
      <description>Set which domains the chatbox will be displayed on. If your website spans multiple domains&#39; subdomains, you can choose which subdomains will work.
Note that chats cannot continue across top-level domains. In order for chats to go from a top-level domain to a subdomain, the top-level domain cannot be a naked domain (i.e. the URL should be http://www.example.com, not http://example.com).
Use * as a wildcard. Separate multiple domains with commas, e.</description>
    </item>
    
    <item>
      <title>Attention Grabber animation</title>
      <link>https://www.olark.com/api/calloutbubble_slide/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/calloutbubble_slide/</guid>
      <description>Enables the Attention Grabber slide-out animation.
Animate Attention Grabber on checkout page If you&amp;rsquo;d like to reach out to people on your checkout page to ensure you make the sale, or offer a discount, you might wish to animate the Attention Grabber on that page only, to give it extra prominence.
// Check if the page URL contains &#39;checkout&#39; if(window.location.href.indexOf(&amp;quot;checkout&amp;quot;) &amp;gt;= 0){ // Enable the Attention Grabber olark.configure(&#39;CalloutBubble.slide&#39;, true ); }  When the Attention Grabber slides out, it looks like this:</description>
    </item>
    
    <item>
      <title>Attention Grabber image height</title>
      <link>https://www.olark.com/api/calloutbubble_bubble_height/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/calloutbubble_bubble_height/</guid>
      <description>Set the Attention Grabber image height in pixels.
For example:
olark.configure(&#39;CalloutBubble.bubble_height&#39;, 25 );  Results in an attention grabber with a height of 25px.
This only works if you either, have the Attention Grabber switched on in the Attention Grabber settings, or are using the API call to Enable the Attention Grabber.</description>
    </item>
    
    <item>
      <title>Attention Grabber image width</title>
      <link>https://www.olark.com/api/calloutbubble_bubble_width/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/calloutbubble_bubble_width/</guid>
      <description>Set the Attention Grabber image width in pixels.
For example:
olark.configure(&#39;CalloutBubble.bubble_width&#39;, 100 );  Results in an attention grabber with a width of 100px.
This only works if you either, have the Attention Grabber switched on in the Attention Grabber settings, or are using the API call to Enable the Attention Grabber.</description>
    </item>
    
    <item>
      <title>Change Chatbox Position</title>
      <link>https://www.olark.com/api/system_hb_position/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hb_position/</guid>
      <description>Change the position of the chatbox. This can also be changed site wide from the Theme Settings Page.</description>
    </item>
    
    <item>
      <title>Change Chatbox Size</title>
      <link>https://www.olark.com/api/system_hb_chatbox_size/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hb_chatbox_size/</guid>
      <description>Change the size of the chatbox. The chatbox can be configured to appear in one of three different sizes: small, medium, or large. By default, it uses the medium size. Changing the size of the chatbox will also modify the size of the chat button.
This configure call will only accept a string value indicating the size you would like to use. For example
olark.configure(&#39;system.hb_chatbox_size&#39;, &#39;sm&#39;); // Small  olark.configure(&#39;system.hb_chatbox_size&#39;, &#39;md&#39;); // Medium  olark.</description>
    </item>
    
    <item>
      <title>Change Font Family</title>
      <link>https://www.olark.com/api/system_hb_custom_style_font/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hb_custom_style_font/</guid>
      <description>Choose what font you&amp;rsquo;d like the chatbox to have. Use this call with an Array of valid loaded fonts. Note that the fonts must be loaded on your site for the chatbox to be able to use them.
olark.configure(&#39;system.hb_custom_style&#39;, { general: { fonts: [&#39;Bitter&#39;, &#39;serif&#39;], corners: &#39;&#39;, secondaryColor: &#39;&#39; } });  </description>
    </item>
    
    <item>
      <title>Change operator group</title>
      <link>https://www.olark.com/api/api_chat_setoperatorgroup/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_setoperatorgroup/</guid>
      <description>Note: This method requires a plan that supports the Groups feature.
 Locks the visitor to a specific group of operators. All messages from the visitor will now go to that group of operators instead of all operators. See the operator configuration page to find the Group ID.
Choose operator group by button click When the visitor clicks the Talk to our Sales Team button, lock to the Sales Group specifically.</description>
    </item>
    
    <item>
      <title>Change Text Position</title>
      <link>https://www.olark.com/api/system_right_to_left/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_right_to_left/</guid>
      <description>Change the text position for right to left language support. This can also be changed site wide from the Theme Settings Page.</description>
    </item>
    
    <item>
      <title>Change the Border Radius</title>
      <link>https://www.olark.com/api/system_hb_custom_style_corners/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hb_custom_style_corners/</guid>
      <description>We have two options that allow you to have &amp;lsquo;soft&amp;rsquo; or &amp;lsquo;hard&amp;rsquo; corners for the chatbox. By default the chatbox will have soft corners.
olark.configure(&#39;system.hb_custom_style&#39;, { general: { fonts: [&#39;&#39;], corners: &#39;hard&#39;, secondaryColor: &#39;&#39; } });  </description>
    </item>
    
    <item>
      <title>Change the Color of Visitor Messages</title>
      <link>https://www.olark.com/api/system_hb_custom_style_secondary_color/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hb_custom_style_secondary_color/</guid>
      <description>Change the color of your visitor messages. This configuration key will only accept hex values.
olark.configure(&#39;system.hb_custom_style&#39;, { general: { fonts: [&#39;&#39;], corners: &#39;&#39;, secondaryColor: &#39;#ffe6ff&#39; } });  </description>
    </item>
    
    <item>
      <title>Configure the default language</title>
      <link>https://www.olark.com/api/system_localization/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_localization/</guid>
      <description>You can change the language of the chatbox per page by using the following configuration call. If you want to change the language of the chatbox site wide you can do so from your Text &amp;amp; Forms settings. We support the following languages.
olark.configure(&amp;quot;system.localization&amp;quot;, &amp;quot;en-US&amp;quot;); // English (United States) olark.configure(&amp;quot;system.localization&amp;quot;, &amp;quot;de-DE&amp;quot;); // Deutsch (Deutschland) olark.configure(&amp;quot;system.localization&amp;quot;, &amp;quot;es-ES&amp;quot;); // Spanish (Spain) olark.configure(&amp;quot;system.localization&amp;quot;, &amp;quot;fr-FR&amp;quot;); // Français (France) olark.configure(&amp;quot;system.localization&amp;quot;, &amp;quot;it-IT&amp;quot;); // Italian (Italy) olark.configure(&amp;quot;system.localization&amp;quot;, &amp;quot;nl-NL&amp;quot;); // Dutch (Netherlands) olark.</description>
    </item>
    
    <item>
      <title>Define Targeted Chat rules</title>
      <link>https://www.olark.com/api/api_rules_definerule/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_rules_definerule/</guid>
      <description>Note: You can create Targeted Chat rules without any coding on the Targeted Chat settings page.
 Create Targeted Chat rules that help you automate decisions about how and when to interact with visitors and operators. You can create rules to perform actions such as:
 Initiating chat with a visitor who has been browsing for more than 30 seconds Notifying an operator when a visitor lands on the page from a Google AdWords campaign Highlighting important visitors in your buddy list  Be sure to check out the getDetails API call to learn how to access detailed customer information for making creative rules.</description>
    </item>
    
    <item>
      <title>Disable the Mobile Chatbox</title>
      <link>https://www.olark.com/api/system_hb_disable_mobile/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hb_disable_mobile/</guid>
      <description>Disable the mobile chatbox. This can also be changed site wide from the Theme Settings Page.</description>
    </item>
    
    <item>
      <title>Dynamically change the chatbox language</title>
      <link>https://www.olark.com/api/api_box_setlocale/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_box_setlocale/</guid>
      <description>You can dynamically change the chatbox language after the page has loaded. By using this call the default localization strings provided by Olark will be used and will override any text you have set in the Text &amp;amp; Forms dashboard. This call, however, will not override any language configuration calls like olark.configure(&#39;locale.welcome_title&#39;, &#39;Foo&#39;), the string provided by that call always takes highest priority.
You can see a list of languages we support here.</description>
    </item>
    
    <item>
      <title>Enable Attention Grabber</title>
      <link>https://www.olark.com/api/features_attention_grabber/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/features_attention_grabber/</guid>
      <description>You can enable the Attention Grabber on a page by page basis using this API call.
Show Attention Grabber on checkout page If you&amp;rsquo;d like to reach out to people on your checkout page to ensure you make the sale, or offer a discount, you might wish to show the Attention Grabber on that page only.
// Check if the page URL contains &#39;checkout&#39; if(window.location.href.indexOf(&amp;quot;checkout&amp;quot;) &amp;gt;= 0){ // Enable the Attention Grabber olark.</description>
    </item>
    
    <item>
      <title>Enable Chat Ratings</title>
      <link>https://www.olark.com/api/features_feedback/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/features_feedback/</guid>
      <description>Enable the post-chat survey on a specific page. You can also enable this on the Chat Ratings settings page.</description>
    </item>
    
    <item>
      <title>Enable Google Analytics</title>
      <link>https://www.olark.com/api/features_google_analyics/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/features_google_analyics/</guid>
      <description>Use this API call to enable the Google Analytics integration on a single page.
You can also enable this in your Google Analytics Extension settings.</description>
    </item>
    
    <item>
      <title>Enable Greeter</title>
      <link>https://www.olark.com/api/features_greeter/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/features_greeter/</guid>
      <description>Enable the Greeter on a specific page.
You can also enable this on the Greeter extension page.</description>
    </item>
    
    <item>
      <title>Enable Pre-chat Survey</title>
      <link>https://www.olark.com/api/features_prechat_survey/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/features_prechat_survey/</guid>
      <description>You can enable the Pre-chat Survey feature on a specific page. This can also be done on your Text &amp;amp; Forms settings page.
You can read more about using the Pre-chat Survey in our help section.</description>
    </item>
    
    <item>
      <title>Expand chatbox on load</title>
      <link>https://www.olark.com/api/box_start_expanded/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/box_start_expanded/</guid>
      <description>Expand the chatbox by default when the page loads.
Note that when the chatbox is expanded, Attention Grabber images are hidden. Also, sending a message will automatically expand the chatbox in all cases by default.</description>
    </item>
    
    <item>
      <title>Expand the chatbox</title>
      <link>https://www.olark.com/api/api_box_expand/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_box_expand/</guid>
      <description>Expands the chatbox to its fully expanded height. It will also show the chatbox if not already visible, in the same way as api.box.show.
Using this API call overrides any existing Targeted Chat rules that may hide the chatbox.
Click to chat link A classic use of the Javascript API is to make your own click-to-chat button. Clicking this button will show the Olark chatbox and expand it to its maximum height.</description>
    </item>
    
    <item>
      <title>Floating Chatbox</title>
      <link>https://www.olark.com/api/system_hb_detached/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hb_detached/</guid>
      <description>Normally, the chatbox is anchored to the bottom of the webpage. This detaches the chatbox from the bottom of the page, allowing it to float near the bottom instead.
olark.configure(&#39;system.hb_detached&#39;, true);  </description>
    </item>
    
    <item>
      <title>Get visitor details</title>
      <link>https://www.olark.com/api/api_visitor_getdetails/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_visitor_getdetails/</guid>
      <description>Gets the email address, full name, geolocation, and other details for this visitor. The value will be returned to the specified returnCallback.
The name, email and phone number fields are the last-known visitor information, either from your pre-chat survey, a completed offline message form, or previously updated via the API.
Geolocation information is provided to the best of our knowledge, based on the visitor&amp;rsquo;s IP.
 Note: As part of our effort to remove personally identifiable information from our API, this call no longer provides access to the visitor&amp;rsquo;s IP address.</description>
    </item>
    
    <item>
      <title>Hide the chatbox</title>
      <link>https://www.olark.com/api/api_box_hide/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_box_hide/</guid>
      <description>Hides the chatbox. This box will make the chatbox disappear on the page, but operators will still be able to see visitors in their visitor list.
Hide the chatbox if not logged in You might want Olark to be loaded in the background on a particular page, but not show immediately. Here&amp;rsquo;s how that might look in PHP:
&amp;lt;?php // Check to see if the user is logged in if (!</description>
    </item>
    
    <item>
      <title>Hide the minimize button</title>
      <link>https://www.olark.com/api/system_hide_minimize_button/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hide_minimize_button/</guid>
      <description>Normally the chatbox shows an icon in the top right corner that, when clicked, allows the user to minimize it. This configuration option allows you to remove that button so that, once the chatbox has been expanded, the user can not manually minimize it. However, the chatbox can still be minimized and expanded with api calls.</description>
    </item>
    
    <item>
      <title>Load chatbox in DOM element</title>
      <link>https://www.olark.com/api/box_inline/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/box_inline/</guid>
      <description>Instead of having the Olark chat window fixed to the bottom corner of your page, Olark will instead search your page for an element with the ID olark-box-container and load the chatbox there instead.
For example, you might have a &amp;lt;div&amp;gt; in your sidebar that displays the chatbox.
&amp;lt;div id=&amp;quot;olark-box-container&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;  You can find our complete instructions to embed the Olark widget on your website here
This rudimentary example shows the chatbox inside a wrapper, with a header.</description>
    </item>
    
    <item>
      <title>Minimize the chatbox</title>
      <link>https://www.olark.com/api/api_box_shrink/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_box_shrink/</guid>
      <description>Minimizes the chatbox. Opposite of api.box.expand.
Click-to-minimize button If you have your own click to chat button, you might also want to make click to minimize button:
&amp;lt;a href=&amp;quot;javascript:void(0);&amp;quot; onclick=&amp;quot;olark(&#39;api.box.shrink&#39;)&amp;quot;&amp;gt; Minimize chat &amp;lt;/a&amp;gt;  </description>
    </item>
    
    <item>
      <title>Notify operators of first-time visitors</title>
      <link>https://www.olark.com/api/welcomeassist_notify_op_of_new_visitor/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/welcomeassist_notify_op_of_new_visitor/</guid>
      <description>If the Greeter function is enabled, you can use this call to enable/disable the advanced notification per page.
You can also enable this on the Greeter extension page.</description>
    </item>
    
    <item>
      <title>Offline Attention Grabber image</title>
      <link>https://www.olark.com/api/calloutbubble_offline_bubble_image_url/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/calloutbubble_offline_bubble_image_url/</guid>
      <description>Sets the Attention Grabber image while all your operators are set to away or offline.
Like the other Attention Grabber calls, this works on a page by page basis. You can choose an offline Attention Grabber for use across the entire site in the Attention Grabber settings
This call would be useful if you wanted a different image on a particular page, such as the contact page, or if you only wanted the Attention Grabber to appear on one page.</description>
    </item>
    
    <item>
      <title>Offline message sent</title>
      <link>https://www.olark.com/api/api_chat_onofflinemessagetooperator/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_onofflinemessagetooperator/</guid>
      <description>When an offline message is sent to the operator, this will call the given callback with an event object
Track visitors who send you an offline message Use your favorite analytics software to keep track of visitors who have sent an offline message to an operator (since they might be more valuable):
&amp;lt;script&amp;gt; olark(&#39;api.chat.onOfflineMessageToOperator&#39;, function(event) { // Example code yourAnalytics.track(&amp;quot;sent_an_offline_message&amp;quot;); }); &amp;lt;/script&amp;gt;  Or, you could send a message back explaining that no-one is around, and point the visitor to your help center</description>
    </item>
    
    <item>
      <title>On chatbox expand</title>
      <link>https://www.olark.com/api/api_box_onexpand/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_box_onexpand/</guid>
      <description>Whenever the chatbox is expanded, the given callback function will be triggered.
Watch for visitors clicking the chatbox A visitor to your site might expand the chatbox, but not initiate a conversation. You can check to see if a conversation has started and if not, send the visitor a message after 3 seconds.
&amp;lt;script&amp;gt; // Triggers when the chat box has been expanded olark(&#39;api.box.onExpand&#39;, function() { // Use getDetails to grab visitor information olark(&#39;api.</description>
    </item>
    
    <item>
      <title>On chatbox hide</title>
      <link>https://www.olark.com/api/api_box_onhide/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_box_onhide/</guid>
      <description>Whenever the chatbox is hidden, the given callback function will be triggered.
Notify an operator when a visitor closes the chat box You can notify your operator that the visitor has closed the chatbox if you have already started chatting:
&amp;lt;script&amp;gt; // Checks to see if the coversation has started olark(&#39;api.chat.onBeginConversation&#39;, function(){ // Triggers when the chat box has been hidden olark(&#39;api.box.onHide&#39;, function() { // Notifies the operator. The visitor does not see this.</description>
    </item>
    
    <item>
      <title>On chatbox load</title>
      <link>https://www.olark.com/api/api_chat_onready/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_onready/</guid>
      <description>Use this API call to detect when the Olark chatbox has loaded. You can create your own callback function once the onReady event fires.
For example, you would use onReady if you need to manipulate elements on your page only when you know for sure that Olark has loaded. You might be doing an A/B test for live chat, and want to send an event to your analytics when Olark has loaded on a page.</description>
    </item>
    
    <item>
      <title>On chatbox minimize</title>
      <link>https://www.olark.com/api/api_box_onshrink/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_box_onshrink/</guid>
      <description>Whenever the chatbox becomes minimized, the given callback function will be triggered.
Track when visitors minimize your Olark widget If you are trying to track when visitors shrink the Olark widget, to perhaps track via analytics the efficacy of different auto-messaging rules, you can use this following example to do so.
&amp;lt;script&amp;gt; olark(&#39;api.box.onShrink&#39;, function(event) { // Example code yourAnalytics.track(&amp;quot;visitor_minimized_olark&amp;quot;); }); &amp;lt;/script&amp;gt;  Notify an operator when a visitor minimizes the chat box You can notify your operator that the visitor has minimized the widget if you have already started chatting:</description>
    </item>
    
    <item>
      <title>On chatbox show</title>
      <link>https://www.olark.com/api/api_box_onshow/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_box_onshow/</guid>
      <description>Whenever the chatbox is shown (unhidden), the given callback function will be triggered.
Update visitor status when chat box visible If you have chosen to have your chatbox hidden by default, you can indicate in your buddy list that a visitor can now see the chatbox. This means they might be about to send a message:
olark(&#39;api.box.onShow&#39;, function() { olark(&#39;api.chat.updateVisitorNickname&#39;, { snippet: &amp;quot;is visible&amp;quot; }); });  </description>
    </item>
    
    <item>
      <title>On conversation start</title>
      <link>https://www.olark.com/api/api_chat_onbeginconversation/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_onbeginconversation/</guid>
      <description>Whenever a visitor or operator sends the first message, the given callback function will be triggered.
Show premium users in visitor list Olark already sends some nice information to the operator when the chat first begins, but you can send your own information too. Here&amp;rsquo;s how you might highlight that a visitor to your site is a premium customer:
&amp;lt;script&amp;gt; // Triggers when the first message has been sent // Including automated messages from the Greeter or Targeted Chat rules olark(&#39;api.</description>
    </item>
    
    <item>
      <title>On message to operator</title>
      <link>https://www.olark.com/api/api_chat_onmessagetooperator/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_onmessagetooperator/</guid>
      <description>Whenever a message is sent to the operator, this will call the given callback with an event object.
Track messages to operators Use your favorite analytics system to keep track of visitors who have sent a message to an operator (since they might be more valuable):
&amp;lt;script&amp;gt; olark(&#39;api.chat.onMessageToOperator&#39;, function(event) { yourAnalytics.track(&amp;quot;chatted_with_operator&amp;quot;); }); &amp;lt;/script&amp;gt;  Track positive reactions Maybe you want to keep track of positive vs. negative reactions. You could watch when people send you smileys, indicating that they are happy:</description>
    </item>
    
    <item>
      <title>On message to visitor</title>
      <link>https://www.olark.com/api/api_chat_onmessagetovisitor/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_onmessagetovisitor/</guid>
      <description>Whenever a message is sent to the visitor, this will call the given callback with an event object.
Track operator response times Use your favorite analytics system to keep track of how long it takes an operator to respond to a visitor:
&amp;lt;script&amp;gt; olark(&#39;api.chat.onMessageToOperator&#39;, function(event) { // Get the timestamp for when the visitor sends a message var visitorSentAt = +new Date; olark(&#39;api.chat.onMessageToVisitor&#39;, function(event) { // Get the timestamp for when the operator sends a message var operatorSentAt = +new Date; // Calculate the difference between the two times and track the event // Check your anayltics software API to see how to push an event yourAnalytics.</description>
    </item>
    
    <item>
      <title>On operator command</title>
      <link>https://www.olark.com/api/api_chat_oncommandfromoperator/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_oncommandfromoperator/</guid>
      <description>Whenever a command is sent from the visitor, e.g. !track this is a lead, this will call the given callback with an event object.
Commands must begin with an exclamation point ! and come at the start of a message. You can also see a list of the default operator commands in our help section. To see these while chatting, type !help into a chat at any time to see the list of commands you can perform.</description>
    </item>
    
    <item>
      <title>On operators available</title>
      <link>https://www.olark.com/api/api_chat_onoperatorsavailable/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_onoperatorsavailable/</guid>
      <description>Whenever any operator comes online, the given callback will be triggered.
Indicate you have operators available Show a green icon whenever you have operators available to chat, or a red one when you are away:
&amp;lt;!-- HTML element to show chatbox status --&amp;gt; &amp;lt;div id=&amp;quot;chat-indicator&amp;quot;&amp;gt;Live chat&amp;lt;/div&amp;gt; &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt; /* Operators available */ .green-icon { background-color: green; } /* Operators offline */ .red-icon { background-color: red; } &amp;lt;/style&amp;gt; &amp;lt;script&amp;gt; olark(&#39;api.chat.onOperatorsAvailable&#39;, function() { // Identify the element, and give it a class name document.</description>
    </item>
    
    <item>
      <title>On operators unavailable</title>
      <link>https://www.olark.com/api/api_chat_onoperatorsaway/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_onoperatorsaway/</guid>
      <description>Whenever all operators are offline, the given callback will be triggered.
Indicate your operators are offline Show a red icon whenever you have operators available to chat:
&amp;lt;!-- HTML element to show chatbox status --&amp;gt; &amp;lt;div id=&amp;quot;chat-indicator&amp;quot;&amp;gt;Live chat&amp;lt;/div&amp;gt; &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt; /* Operators available */ .green-icon { background-color: green; } /* Operators offline */ .red-icon { background-color: red; } &amp;lt;/style&amp;gt; &amp;lt;script&amp;gt; olark(&#39;api.chat.onOperatorsAvailable&#39;, function() { // Identify the element, and give it a class name document.</description>
    </item>
    
    <item>
      <title>Online Attention Grabber image</title>
      <link>https://www.olark.com/api/calloutbubble_bubble_image_url/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/calloutbubble_bubble_image_url/</guid>
      <description>Sets the Attention Grabber image while your operators are set to available.
Like the other Attention Grabber calls, this works on a page by page basis. You can choose an online Attention Grabber for use across the entire site in the Attention Grabber settings
This call would be useful if you wanted a different image on a particular page, such as the contact page, or if you only wanted the Attention Grabber to appear on one page.</description>
    </item>
    
    <item>
      <title>Page change notifications</title>
      <link>https://www.olark.com/api/system_give_location_to_operator/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_give_location_to_operator/</guid>
      <description>Gives notifications about what page the visitor is on. By default, each time a visitor navigates to a new URL while on your site, this will be sent as a notification to your operator. Set to false to disable this behavior.</description>
    </item>
    
    <item>
      <title>Pre-chat visitor notifications</title>
      <link>https://www.olark.com/api/system_disable_default_visitor_information/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_disable_default_visitor_information/</guid>
      <description>This will turn off all of the initial pre-chat notifications that give you visitor context - including location, current URL and number of previous conversations - allowing you to show just your own custom pre-chat information instead.</description>
    </item>
    
    <item>
      <title>Prevent non-local URL wrapping</title>
      <link>https://www.olark.com/api/system_chat_does_not_follow_external_links/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_chat_does_not_follow_external_links/</guid>
      <description>If you have a link in your chatbox that goes to a non-local URL, for example a page on another domain, Olark will by default wrap the new page. This means that the chatbox will still appear on the new page, even if it&amp;rsquo;s not your website.
However, increasingly websites are not allowing cross-domain access, meaning that the wrapped content may not work correctly. You can choose to disable this wrapping behavior by setting this API call to true.</description>
    </item>
    
    <item>
      <title>Require email</title>
      <link>https://www.olark.com/api/system_require_email/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_require_email/</guid>
      <description>Require visitors fill out their email address in the pre-chat survey before chatting. This requires the pre-chat survey to be enabled first.
This setting can also be enabled on the pre-chat survey section of the Text &amp;amp; Forms settings page.
You can read more about using the pre-chat survey in our Help Center.
Even if the pre-chat survey is enabled in your settings, you would need to enable the plugin using this line to use the system.</description>
    </item>
    
    <item>
      <title>Require name</title>
      <link>https://www.olark.com/api/system_require_name/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_require_name/</guid>
      <description>Require visitors fill out their name in the pre-chat survey before chatting. This requires the pre-chat survey to be enabled first.
This setting can also be enabled on the pre-chat survey section of the Text &amp;amp; Forms settings page.
You can read more about using the pre-chat survey in our Help Center.
Even if the pre-chat survey is enabled in your settings, you would need to enable the plugin using this line to use the system.</description>
    </item>
    
    <item>
      <title>Require phone number</title>
      <link>https://www.olark.com/api/system_require_phone/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_require_phone/</guid>
      <description>Require visitors fill out their phone number in the pre-chat survey before chatting. This requires the pre-chat survey to be enabled first.
This setting can also be enabled on the pre-chat survey section of the Text &amp;amp; Forms settings page.
You can read more about using the pre-chat survey in our Help Center.
Even if the pre-chat survey is enabled in your settings, you would need to enable the plugin using this line to use the system.</description>
    </item>
    
    <item>
      <title>Send message to visitor</title>
      <link>https://www.olark.com/api/api_chat_sendmessagetovisitor/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_sendmessagetovisitor/</guid>
      <description>Send a message to the visitor. It will appear as if the message came from an operator.
Trigger an automated message Send a welcome message whenever a visitor clicks on a help me button:
&amp;lt;!-- HTML button --&amp;gt; &amp;lt;a id=&amp;quot;help-me&amp;quot; href=&amp;quot;#&amp;quot;&amp;gt;Live chat help&amp;lt;/a&amp;gt; &amp;lt;script&amp;gt; document.getElementById(&#39;help-me&#39;).onclick = function() { olark(&#39;api.chat.sendMessageToVisitor&#39;, { body: &amp;quot;Let me know if you have any questions.&amp;quot; }); // Stops the link reloading the page return false; } &amp;lt;/script&amp;gt;  </description>
    </item>
    
    <item>
      <title>Send operator notification</title>
      <link>https://www.olark.com/api/api_chat_sendnotificationtooperator/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_sendnotificationtooperator/</guid>
      <description>Send a notification message to the operator. The operator will see [info] to indicate that this message was not sent from the visitor.
Notify operator on landing pages You can send your operator a notification when the visitor lands on a particular page, such as a landing page:
&amp;lt;script&amp;gt; // Checks if the current URL contains &#39;landing&#39; if (document.location.href.indexOf(&#39;landing&#39;) != -1) { olark(&#39;api.chat.sendNotificationToOperator&#39;, { // Send a custom notification body: &#39;visitor landed on the billing page&#39; }); } &amp;lt;/script&amp;gt;  Notify operators on landing pages after one minute Perhaps you want to notify an operator when a visitor is hesitating on a page for more than 60 seconds, so you can choose to initiate a chat with them:</description>
    </item>
    
    <item>
      <title>Send visitor notification</title>
      <link>https://www.olark.com/api/api_chat_sendnotificationtovisitor/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_sendnotificationtovisitor/</guid>
      <description>Send a notification message to the visitor. The message will look like a notification, and will not show up as coming from a particular operator.
Notify a visitor if no immediate response Assure a visitor that the operator will be back later if there is no response from an operator in 60 seconds:
&amp;lt;script&amp;gt; // Set a timer variable var lastMessageTimeout; // Wait for a message to the visitor olark(&#39;api.chat.onMessageToVisitor&#39;, function(){ // If a message is sent, reset the timer clearTimeout(lastMessageTimeout); // Start the timer lastMessageTimeout = setTimeout(function(){ // Send a custom notification to the visitor olark(&#39;api.</description>
    </item>
    
    <item>
      <title>Set Dark Theme</title>
      <link>https://www.olark.com/api/system_hb_dark_theme/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hb_dark_theme/</guid>
      <description>Choose a light or dark theme for the chatbox. This can also be changed site wide from the Theme Settings Page.
You can enable a dark theme on a specific page. You can also do this for your entire site from the Theme Settings Page.</description>
    </item>
    
    <item>
      <title>Set Google Analytics ID</title>
      <link>https://www.olark.com/api/system_google_analytics_id/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_google_analytics_id/</guid>
      <description>Set the Google Analytics ID for your account on a specific page.
For example, you might have separate domains using the same Olark account, but different Google Analytics IDs.
&amp;lt;?php // Get the current domain $host = $_SERVER[&#39;HTTP_HOST&#39;]; if ($host == &amp;quot;example.com&amp;quot;) { olark.configure(&#39;system.google_analytics_id&#39;, &#39;YOUR-GA-ID&#39; ); } elseif ($host == &amp;quot;test.org&amp;quot;) { olark.configure(&#39;system.google_analytics_id&#39;, &#39;OTHER-GA-ID&#39; ); } ?&amp;gt;  Check out our related help guide for this here. You can also view advanced troubleshooting help for Google Analytics + Olark here.</description>
    </item>
    
    <item>
      <title>Set Greeter delay in seconds</title>
      <link>https://www.olark.com/api/welcomeassist_welcome_delay_in_seconds/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/welcomeassist_welcome_delay_in_seconds/</guid>
      <description>Set the time after which the Greeter message will be sent to first-time visitors on your site.
You can also enable this on the Greeter extension page.</description>
    </item>
    
    <item>
      <title>Set Greeter Welcome Messages</title>
      <link>https://www.olark.com/api/welcomeassist_welcome_messages/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/welcomeassist_welcome_messages/</guid>
      <description>Set the welcome messages to send to the visitors when the Greeter function activates. If you have more than 1 message enabled in the call, we will choose a random one to send to the visitor when they meet the greeter criteria.
You can also enable this on the Greeter extension page.</description>
    </item>
    
    <item>
      <title>Set operator group</title>
      <link>https://www.olark.com/api/system_group/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_group/</guid>
      <description>Set the group before the chatbox loads. You can get the ID for each group by clicking on it from the Operator settings page.
This differs from the setOperatorGroup API call in that it can only be done before the chatbox loads. To set the operator group after the chatbox has loaded, use setOperatorGroup instead.</description>
    </item>
    
    <item>
      <title>Set Theme Color</title>
      <link>https://www.olark.com/api/system_hb_primary_color/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hb_primary_color/</guid>
      <description>Set the primary color of the chatbox. This can also be changed site wide from the Theme Settings Page.
This configure call will only accept a hex string. For example
olark.configure(&#39;system.hb_primary_color&#39;, &#39;#744da8&#39;);  </description>
    </item>
    
    <item>
      <title>Show as Tab</title>
      <link>https://www.olark.com/api/system_hb_show_as_tab/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hb_show_as_tab/</guid>
      <description>Show the chatbox as a tab. This can also be changed site wide from the Theme Settings Page.</description>
    </item>
    
    <item>
      <title>Show Button Text</title>
      <link>https://www.olark.com/api/system_hb_show_button_text/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_hb_show_button_text/</guid>
      <description>Show the button text on the chatbox icon. This can also be changed site wide from the Theme Settings Page.</description>
    </item>
    
    <item>
      <title>Show the chatbox</title>
      <link>https://www.olark.com/api/api_box_show/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_box_show/</guid>
      <description>Shows the chatbox. Showing the chatbox will make it appear on the page. This will override settings such as Invisible Olark.
Should you wish to show the widget on specific pages, you can also create these rules using our Targeted Chat tool, instead of updating the code on your page.
Show the chatbox on error If a visitor runs into an error, you might want to make sure that the chatbox is displayed:</description>
    </item>
    
    <item>
      <title>Single page applications</title>
      <link>https://www.olark.com/api/system_is_single_page_application/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/system_is_single_page_application/</guid>
      <description>Olark uses polling to check your visitor&amp;rsquo;s status while on your site. Visitors who leave your site, or have been idle for a long time without changing page, will eventually stop sending polling requests. If you have a single page application where the visitor does not change pages, they may incorrectly be detected as being idle.
You can prevent this by setting is_single_page_application to true.</description>
    </item>
    
    <item>
      <title>Start chatbox hidden</title>
      <link>https://www.olark.com/api/box_start_hidden/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/box_start_hidden/</guid>
      <description>Suppose you usually show the chatbox, but wish to hide it on specific pages. You can do so using the following Javascript API function. You can enable this option on your Setup page as Hide the chatbox by default.
The api.box.hide function is useful for when the chatbox has already loaded on a site and you wish to hide it again. For example, when the visitor clicks a particular button.</description>
    </item>
    
    <item>
      <title>Switch on the Greeter</title>
      <link>https://www.olark.com/api/welcomeassist.welcome_new_visitors/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/welcomeassist.welcome_new_visitors/</guid>
      <description>Use this call to switch the Greeter on. You can then use the calls below to control how the Greeter behaves.
You can also enable this on the Greeter extension page.</description>
    </item>
    
    <item>
      <title>Update CRM custom fields</title>
      <link>https://www.olark.com/api/api_visitor_updatecustomfields/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_visitor_updatecustomfields/</guid>
      <description>If you have custom data that you want to keep track of for a visitor, such as an internal customer ID or some internal data, you can give it to Olark using this API.
 Note: Custom fields are not sent automatically to CRM integrations. Custom fields will, however, be sent with Webhooks by default. Once set up, Custom fields are sent to the CRM only, they do not appear in the chat console.</description>
    </item>
    
    <item>
      <title>Update visitor email</title>
      <link>https://www.olark.com/api/api_visitor_updateemailaddress/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_visitor_updateemailaddress/</guid>
      <description>Keep track of an email address for this visitor, to link it with your CRM cases and display in the visitor list.
Update the visitor&amp;rsquo;s email address You can grab information from your registered users and send it to Olark.
&amp;lt;script&amp;gt; olark(&#39;api.visitor.updateEmailAddress&#39;, { emailAddress: &#39;johndoe@olark.com&#39; }); &amp;lt;/script&amp;gt;  </description>
    </item>
    
    <item>
      <title>Update visitor name</title>
      <link>https://www.olark.com/api/api_visitor_updatefullname/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_visitor_updatefullname/</guid>
      <description>Keep track of a full name for this visitor, to link it with your CRM cases and display in the buddy list.
Update the visitor&amp;rsquo;s name You can grab information from your registered users and send it to Olark.
&amp;lt;script&amp;gt; olark(&#39;api.visitor.updateFullName&#39;, { fullName: &#39;John Doe&#39; }); &amp;lt;/script&amp;gt;  For example, if you were using PHP and pulled the visitor&amp;rsquo;s name from your own database, you might write:
&amp;lt;script&amp;gt; olark(&#39;api.visitor.updateFullName&#39;, { fullName: &#39;&amp;lt;?</description>
    </item>
    
    <item>
      <title>Update visitor nickname</title>
      <link>https://www.olark.com/api/api_chat_updatevisitornickname/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_updatevisitornickname/</guid>
      <description>Important Note:
updateVisitorNickname is best used to display visitor information other than name and email in the buddy list. To display a name and/or email in the buddy list use api.visitor.updateFullName and api.visitor.updateEmailAddress respectively.
 Add information to the visitor&amp;rsquo;s nickname in the operator&amp;rsquo;s buddy list. You can only set a &amp;lsquo;snippet&amp;rsquo; of the nickname, since other extensions may be trying to update the nickname at the same time.</description>
    </item>
    
    <item>
      <title>Update visitor phone</title>
      <link>https://www.olark.com/api/api_visitor_updatephonenumber/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_visitor_updatephonenumber/</guid>
      <description>Keep track of a phone number for this visitor, to link it with your transcripts and display in the visitor list.
Update a visitor&amp;rsquo;s phone number You can grab information from your registered users and send it to Olark.
&amp;lt;script&amp;gt; olark(&#39;api.visitor.updatePhoneNumber&#39;, { phoneNumber: &#39;(123) 456-7890&#39; }); &amp;lt;/script&amp;gt;  </description>
    </item>
    
    <item>
      <title>Update visitor status</title>
      <link>https://www.olark.com/api/api_chat_updatevisitorstatus/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.olark.com/api/api_chat_updatevisitorstatus/</guid>
      <description>Add information to the visitor&amp;rsquo;s status in the operator&amp;rsquo;s buddy list. You can only set a &amp;lsquo;snippet&amp;rsquo; of the status, since other extensions may be trying to update the status at the same time.
Display number of items in a shopping cart To show custom information, like the number of items somebody has in their shopping cart:
&amp;lt;script&amp;gt; olark(&#39;api.chat.updateVisitorStatus&#39;, { snippet: &#39;has 10 items in cart&#39; }); &amp;lt;/script&amp;gt;  Do you have multiple pieces of information?</description>
    </item>
    
  </channel>
</rss>
