Advanced CRM support

Updated 4 months ago by Ionuț Colceriu

You can enable additional Briskine features if you're running your own web-based CRM, helpdesk, or similar software. You'll need to make minor source code (HTML) additions to enable them.

Enable the Briskine Bubble

The Briskine Bubble is enabled only on certain websites where we can test and make sure the bubble works correctly. You can manually enable the bubble for your web app by adding an attribute to the <body> HTML tag.

To enable the bubble, set the data-briskine-bubble="true" attribute on the <body> tag.

Prefill the dialog search query

The Autocomplete Dialog opens with a blank search query by default. You can prefill the search query by setting an attribute on the editable element.

This can be usefull when you have certain templates related to the current reply area. For example, if you have templates in multiple languages, tagged by language, you can automatically search for the ones you need when the dialog is opened.

To prefill the search query, set the data-briskine-search="SEARCH QUERY" attribute on the editable element you're currently on. This can be an input, textarea, contenteditable, or similar. When the dialog is opened, by using the bubble or the keyboard shortcut, it will already filter the shown templates with your search query.

Remember you can use advanced search operators in your query.

Use custom variables

Template variables are only available on certain websites by default. You can add your own custom variables by setting a custom attribute on the current active editable element.

Set the data-briskine-variables attribute on the current text area, to use those values when parsing the templates.

The value of the attribute must be an URI encoded JSON value. The JSON itself can contain any key and value you'd like to use in your templates.

For example, you can add the custom variable in your template, by using a JSON like {"custom":"custom-value"}. You'll then need to stringify and encode the JSON. With JavaScript, this will look like:

encodeURI(JSON.stringify({custom: 'custom-value'}))
// will return "%7B%22custom%22:%22custom-value%22%7D"

The attribute value will then look like data-briskine-variables="%7B%22custom%22:%22custom-value%22%7D".

You can then use the variable in a template like My custom value is {{custom}}, which will insert My custom value is custom-value.

Please reach out at support@briskine.com if you're having any difficulties with these features, or if you need any other help.


How did we do?