The problem
A team handles clients inside Front.com – emails, chats, one shared inbox. But to actually act on a conversation (quote it, create an order, look the client up in your system), they have to switch to a separate app, find the client by email there and re-type the data. Context gets lost, and across dozens of conversations a day that is real wasted time.
Front has an answer for this: plugins. It is a side panel that sits next to the open conversation and can simply be your own web page loaded in a frame. I will show how to build such a panel and how to pass it data from the current conversation.
How it works under the hood
A Front plugin is an ordinary web page shown in a frame (iframe) next to the conversation. Front gives it a Plugin SDK – a small script that lets the page know which conversation is open right now: who the sender is, the subject, the link to the thread.
The whole trick comes down to three things:
- Load the SDK and wait for it to be ready.
- Subscribe to the context – Front calls your function when the user opens a conversation and passes the sender data.
- Do something with it – e.g. show a button that opens your system with the client email already filled in.
Reading the conversation – the code
The key part. We load the SDK (here from a CDN, as a global script), subscribe to the context and pull the email and subject of the open conversation out of it. When there is no single conversation (e.g. a list view), we simply show nothing.
// 1. Load the Front Plugin SDK (global `Front`)
function loadSdk() {
return new Promise((resolve, reject) => {
if (window.Front?.contextUpdates) return resolve();
const s = document.createElement("script");
s.src = "https://cdn.jsdelivr.net/npm/@frontapp/plugin-sdk/dist/index.umd.js";
s.onload = () => resolve();
s.onerror = () => reject(new Error("Failed to load Front SDK"));
document.head.appendChild(s);
});
}
// 2. Subscribe to context - Front calls the function on conversation change
loadSdk().then(() => {
window.Front.contextUpdates.subscribe((ctx) => {
if (ctx?.type === "singleConversation" && ctx.conversation) {
const c = ctx.conversation;
const email = c.recipient?.handle ?? ""; // client email
const subject = c.subject ?? ""; // conversation subject
const convUrl = c.id
? `https://app.frontapp.com/open/${c.id}` // link to the thread
: "";
// ...show the panel with client data here
}
});
});
One note from practice: depending on the conversation type, the recipient may arrive as a single object or as an array. It is worth guarding against that with one line, instead of catching an error in production later:
const raw = c.recipient;
const recipient = Array.isArray(raw) ? raw[0] : raw;
const email = recipient?.handle ?? "";
A button that opens your system
With the client email from the conversation, we can open our own app with a ready parameter in the URL. The form on the other side then fills the client in by itself – no re-typing. One practical note: a new browser tab inherits the browser session (being logged in), so the in-frame panel does not have to handle login on its own.
function openQuote(email, convUrl) {
const params = new URLSearchParams();
if (email) params.set("email", email);
if (convUrl) params.set("front_url", convUrl); // save the conversation link with the quote
const url = `${window.location.origin}/quote/new?${params.toString()}`;
window.open(url, "_blank", "noopener,noreferrer"); // new tab = normal app session
}
On the app side you just read that parameter from the URL and fill it into the form – and if such a client already exists in the database, pull in the rest of their data (company, tax id, individual terms). For the team it is one click instead of several jumps.
What I deliberately skipped
It is tempting to have the in-frame panel show the full client card from the database right away. But the plugin frame runs without a login session (it is a separate context), so pulling data would need separate authorization inside the frame – more code and more places where something could leak. Passing just the email in the URL and showing the rest in the logged-in app, in a new tab, is simpler and safer. Not everything is worth over-engineering.
The result
The team reads a conversation in Front, clicks a single button in the side panel and lands in the system with the client already filled in. No switching, no re-typing the email, no searching. And the plugin itself is simply your own page in a frame – so it looks and behaves like the rest of your system.

