Apps and custom sites
A site is a web application your operators work in, such as a help desk or a webmail. It lists the application's addresses and its screens. Each screen says which parts of the page the extension reads and, if you want sends checked, which button sends. A check then runs prisms on one screen of a site.
You rarely need to set up a site yourself. Picking a built-in app in Add a check saves it for you. The sites the account has are listed under Apps and custom sites, a line at the bottom of the Extension page. Each site is one line: its name, whether it is built in or custom, its addresses, its screens and how many checks run on it. Only admins see it.
Add a site
Section titled “Add a site”Choose Add site on Apps and custom sites. The page lists the built-in apps, each with its screens and whether there is an address to enter, then Custom to build your own. Saving a new site opens Add a check with it picked, since a check on it is the next step.
In Add a check, Another app... opens the custom site editor directly, and saving the site brings you back with it picked.
Built-in apps
Section titled “Built-in apps”The built-in apps are Gmail, Outlook on the web, Talkt and Prismlet demo helpdesk. Prismlet keeps their screens and selectors up to date. When one of these applications changes its page, Prismlet ships the fix and every account that uses the app gets it. You only choose the addresses.
| App | Screens | Addresses |
|---|---|---|
| Gmail | Compose, Open email, Inbox | One fixed address |
| Outlook on the web | Compose | Four addresses, all ticked to start with |
| Talkt | Reply box, Interaction log | app.talkt.com and eu.talkt.com, both ticked to start with |
| Prismlet demo helpdesk | Ticket | One fixed address |
A built-in app saved from Add a check gets every address in this table. To drop one, open the app under Apps and custom sites and untick it.
The editor lists each built-in screen with what it reads and whether it has a Send button, so you can see what the extension reads. It shows no selectors, and Save site, at the top of the page, appears only once you change something, such as an address. Outlook on the web finds the message body and the Send button by their English labels, so for Outlook in another language you need a custom site.
The Prismlet demo helpdesk is a made-up support desk at prismlet.com/demo/helpdesk/. Use it to try the extension before you set up your own application.
Custom sites
Section titled “Custom sites”Custom is for any other web application. You give the site a Site name, its addresses, and one to ten screens. Each screen is one line in the editor, with its name, its key and what it reads. Choose the line to open the screen. A site with one screen shows it open. Each screen needs CSS selectors, which the next sections explain. The editor groups them under CSS selectors, for whoever knows the page's HTML.
Addresses
Section titled “Addresses”A site has one to ten addresses. An address is the exact start of the application's URL: the scheme and host, with no path and no trailing slash, such as https://support.example.com. List one per line under Site addresses, one per line. Use more than one when the same application answers on several hosts, such as a regional copy.
The extension only works on a page whose address is one of these. The extension from the Chrome Web Store shows the Check button and guards Send only on https addresses.
Selectors
Section titled “Selectors”A CSS selector is a short pattern that picks elements out of a web page. The same patterns style pages in CSS. You find them with your browser's developer tools: right-click the element, choose Inspect, and look at its tag, id, class and other attributes.
textareapicks every<textarea>.#replypicks the element withid="reply"..reply-boxpicks elements withclass="reply-box".button[type="submit"]picks buttons whosetypeattribute issubmit..reply-box textareapicks a<textarea>anywhere inside an element with classreply-box.
Say your help desk's reply form looks like this:
<section class="reply-box"> <textarea name="reply"></textarea> <button type="submit" class="send">Send</button></section>The screen's Work area is section.reply-box, the part of the page to read is textarea[name="reply"] with Read set to Input or textarea value, and the Send button is button.send.
Prefer attributes the application is unlikely to change, such as name, id, role or aria-label. Generated class names like css-1x2y3z often change with each release of the application. The editor checks that every selector is valid CSS when you save, but it cannot check that the selector matches your pages. Open the page and check it in the panel.
Screens
Section titled “Screens”A screen is one kind of place on the site, such as a reply box or an open ticket. A site has one to ten screens. Each has:
- Screen name, which operators and checks see, such as Reply box.
- A key, shown small beside the name on the screen's line, such as
reply_box. Checks refer to the screen by its key. The editor makes it from the name of a new screen, and it is fixed once the site is saved. - Page address starts with, the page path, which starts with
/. The screen applies on pages whose path starts with it, such as/tickets/. Use/to match every page. - Work area, under CSS selectors, which matches the part of the page that holds one piece of work, such as one reply form. Each match is its own work area. Gmail, for one, matches every open compose window separately, and the operator checks each on its own.
Parts of the page to read
Section titled “Parts of the page to read”Under Parts of the page to read, list the text or images the extension captures in each work area. A screen has one to 20 of them. Each has a Label and a key, shown small above the label's box. The editor makes the key from the label of a new part, and it is fixed once the site is saved. Add a part adds one. Each part's CSS selector sits under CSS selectors, named after its label. The selector is looked up inside the work area, not across the whole page.
Read says what to take from the part of the page:
- Input or textarea value reads what is typed in an
<input>or<textarea>. Use it for those two, since Visible text / rich text editor fails on them. - Visible text / rich text editor reads the text the page shows. It also reads the body of a frame from the same site inside the element, which is how rich text editors such as TinyMCE store a draft.
- Image (img element) reads one
<img>and sends the picture, resized to 2048 pixels on the long side. The image must load from the application's own address, or from a host that allows other sites to read it. A prism needs an image field to read it, and the account's model must read images. See Fields.
The extension cannot read frames from another site, editors inside a shadow root, PDF text, or text inside images.
Every part of the page must hold something. One that is missing or empty fails the capture, and nothing is sent to Prismlet. Each text part reads up to 20,000 characters, and text over the limit fails the same way. Built-in apps set lower limits on short parts, such as 1,000 characters for a Gmail subject. A built-in part that holds a growing log, such as Talkt's conversation, keeps the most recent text instead. It reads the newest whole lines that fit and starts with [earlier messages omitted]. Drafts never do this. The site editor does not set limits, so every part of a custom site reads up to 20,000 characters.
Send button
Section titled “Send button”Send button is optional. Set the Send button so Warn and Block can act before the reply is sent. The send guard explains what happens then.
- Send button, under CSS selectors, matches the button that sends. The extension uses the match nearest the work area: inside it first, then around it. A Send button often sits outside the text box it sends.
- Keys that also send lists the shortcuts that send from inside the work area: Enter, Ctrl+Enter and Cmd+Enter. Tick the ones the application uses.
Leave the selector empty on screens that only show answers, such as an inbox or an interaction log.
Customize selectors
Section titled “Customize selectors”A built-in app follows Prismlet's selectors until you choose Customize selectors in its editor. Prismlet asks first, since the site then stops getting Prismlet's fixes. Choosing Customize copies the current screens into the site, and from then on you edit them like a custom site. Customize only when your copy of the application differs, such as Outlook in another language.
Unverified sites
Section titled “Unverified sites”A built-in app whose selectors have not yet been tested on the live application carries an Unverified note on its line under Add site and in the editor. Its selectors may miss on your pages. Open the application with the extension and check that each screen captures the right text before you rely on its send guard.
Saving a site
Section titled “Saving a site”Choose Save site at the top of the page, which is off until you change something. Saving changes every check on the site, even when you changed only an address. The extension loads the checks again the next time an operator presses Check. A capture taken with the old selectors cannot run, so the operator captures again.
A save is refused when it would drop a screen or a part of the page that a check reads, because that check could no longer capture its text. The error starts with Change the check first and names the check and the part of the page by its key. Change that check first, then save the site.
Delete a site
Section titled “Delete a site”Delete on a site's line removes a site that no check runs on. A site that any check runs on, on or off, cannot be deleted, and the confirm names those checks. Move them to another app first: open each check, choose Change on the line that says where it runs, pick another app, and save.