Shopify: the theme block, the app proxy and your keys

Where the chat is anchored in the theme editor, how browser requests are routed, and why no key appears in the store’s HTML.

Administrateur2 min readIntégrations

On Shopify, Rofis installs as an app. The chat is added to the product page from the theme editor, just like any other block. What changes compared with a script pasted into the theme is the request path: they go through your store, and your keys remain server-side.

01Install in three steps

  • Install the Rofis app and connect your store. The connection goes through Shopify authorization: you approve access from your admin.

  • Open the theme editor on the product page template.

  • Add the Rofis Chat block where you want it, then save the theme.

02The theme block

The block can be placed wherever you want on the product page: below the price, under the add-to-cart button, in a column. You move it like the other blocks in your theme, without touching the code. The FAB, the floating button available on every page, is configured separately in Rofis.

03The app proxy, in one sentence

The visitor’s browser does not talk directly to Rofis: it talks to your store, at an address such as /apps/rofis/, and Shopify forwards the request while signing it. Rofis verifies that signature before responding.

The chat goes through Shopify. Nothing secret is sent to the browser.

04The catalog follows your changes

When installed, Rofis retrieves your catalog. After that, every product creation, update, or deletion is sent to it by Shopify. A regular reconciliation catches anything that may have been missed. You can turn off automatic synchronization in Rofis if you prefer to trigger it yourself.

05Orders and attributed sales

When a visitor adds an item to the cart from the chat, Rofis flags the cart. Orders then come through Shopify order notifications. An order is attributed if one of its line items concerns a product discussed in the conversation.

06Where each setting lives

The block placement is configured in the Shopify theme editor. Everything else — appearance, active pages, documents, instructions, conversations, attributed sales — is configured in the Rofis back office.

Essayez Rofis 30 jours.

30 jours aux capacités Growth : 5 000 fiches, 25 000 réponses IA, 3 boutiques. Ensuite, vous choisissez votre plan.