Skip to content
Sign in
HomeDevelopers
Developers

One 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

acaocontatoLeft a name and WhatsApp at the 3rd favorite · nome, telefone
acaoguardouReached the 3rd favorite and the site already knows the person
acaoaviseAsked to be notified about a piece · produto
acaoorcamentoRequested a quote for services · servicos, nome, telefone
acaocarrinhoChanged the cart · itens, total
acaoadvisorAsked to talk to a person · base, pecas
acaoprontoThe window has loaded
acaosem-ambientesThe request brought no photos
acaofecharThe 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ê