HomeDevelopers
DevelopersOne line to turn it on. An API for the rest.
For whoever runs the agency's or the store's website: how to install the Studio, send the catalog and receive events.
<!-- imobidecor Studio: paste before </body> -->
<script src="https://imobidecor.com/embutir.js" defer></script>
<button type="button" id="decorate">Decorate this room</button>
<script>
document.getElementById("decorate").onclick = function () {
imobidecor.abrir({
origem: "YOUR_ORIGEM", // your site's record
fotos: ["PHOTO_DIGITAL"], // the fingerprint of each analyzed photo
nomes: ["Living room"], // the name of each room
comodos: ["sala"], // the room type of each photo
lang: "en"
});
};
</script># The catalog API (coming soon): distributors and stores plug in their # catalog — products, price and stock — instead of adding piece by piece. # Until then, pieces are added in the Ateliê. The record for each piece: sku the piece's code in your system nome how the piece is shown in the Studio preco the selling price estoque how many are ready to deliver medidas width, depth and height, in cm fotos four: front, side, three-quarter and detail # Add your pieces in the Ateliê; the API connects when it arrives.
// The Studio notifies your site on every request
imobidecor.abrir({
origem: "YOUR_ORIGEM",
fotos: ["PHOTO_DIGITAL"],
aoPedir: function (m) {
if (m.acao === "contato") {
// m.nome, m.telefone
// plus the summary: m.ambiente, m.ref, m.estilo, m.favoritos
}
if (m.acao === "orcamento") {
// m.servicos, m.nome, m.telefone
}
},
aoFechar: function () {
// the person is back on your page
}
});What turns it on is the origem: your site's record, which imobidecor sets up with you. In Leme, the Studio comes already turned on and needs no code.
What the Studio tells your site
acao
contatoLeft a name and WhatsApp at the 3rd favorite · nome, telefoneacao
guardouReached the 3rd favorite and the site already knows the personacao
aviseAsked to be notified about a piece · produtoacao
orcamentoRequested a quote for services · servicos, nome, telefoneacao
carrinhoChanged the cart · itens, totalacao
advisorAsked to talk to a person · base, pecasacao
prontoThe window has loadedacao
sem-ambientesThe request brought no photosacao
fecharThe person tapped “back”: the window closes and calls aoFechar()Every request carries the summary: ambiente, ref, estilo and favoritos.
Integrations
Connects with what you already use.
.csv spreadsheetAPIERPLeme
Spreadsheet, API and ERP are coming soon; until then, pieces go in through the Ateliê. On Leme, the Studio is already on.
Add your pieces in the Ateliê