The old way to put the LayBuild chat widget on a Shopify store was to open Edit code, find theme.liquid and paste a script tag before the closing body tag. It works until you change themes, and then the chat disappears and nobody notices for a week. We built a Shopify app so the widget is something you switch on in the theme editor. This post covers how the app works, how to connect it, and what it can see in your store (very little).
The app is new and is not on the Shopify App Store. We share it by install link, so ask for one through the contact page. The reason is billing: the App Store expects apps to charge through Shopify, and LayBuild AI bills you directly. We have not settled that with Shopify yet.
What the app does and does not do
The app adds the LayBuild AI chat widget to your storefront as a theme app extension. Your theme files are not edited. The assistant answers shoppers from the content you add in LayBuild AI, such as your shipping and returns policies, sizing guides and saved question-and-answer pairs, and your team can take over any chat from the LayBuild AI inbox.
It does not look anything up in Shopify. The app requests no access scopes, which means it cannot read your orders, products or customer list. A shopper who asks "where is my order" gets an answer from your shipping policy, or a handoff to your team. They do not get a live order status. If order lookup is what you need from a chatbot, this app will disappoint you, and it is better to know that before you install it.
What you need
- A LayBuild AI account with an active plan. Plans start at ₹1,499$19 a month, and there is no free plan. Nothing is added to your Shopify bill.
- The widget key and the identity secret, both from Admin → Widget in LayBuild AI.
Connecting your store
Open the install link and approve the app. Its page opens inside your Shopify admin, with no separate login.
Paste the widget key and the identity secret on that page and press Connect. People ask why the secret is needed when the WordPress plugin only wants the key. The widget key is public: it sits in the page source of every site that uses the widget, so anyone could copy yours. The identity secret is private, and matching it to the key is how we know the workspace is yours. If the two do not belong to the same workspace, the connection is refused.
When the connection succeeds, the page shows your workspace name. Press "Open theme editor". The editor opens on App embeds with LayBuild AI Chat listed. Switch it on and save. The chat is now on every storefront page, including product pages and the cart.
If your workspace restricts the widget to a list of allowed domains, connecting adds your shop's myshopify.com domain and its primary domain to that list for you. It never removes a domain.
What you can change in the theme editor
The settings live under App embeds → LayBuild AI Chat. Leave a field empty and the widget uses what you saved in Widget Studio in LayBuild AI.
| Setting | What it does |
|---|---|
| Position | Bottom right or bottom left |
| Theme | Light, dark, automatic, or whatever Widget Studio says |
| Accent colour, title, greeting, launcher label, avatar URL | Changes how the widget looks on this store |
| Agent ID | Sends chats to one agent when your workspace has several |
| Open on page load | Opens the chat without a click |
| Hide from logged-in customers | Shows the chat to guests only |
There is also an inline block. Add it to a section on any page, a contact or help page for example, and the chat renders inside the page instead of floating in the corner. The theme editor labels come in English and Hindi.
Recognising logged-in customers
By default every shopper is asked for a name and email before a chat starts. If you tick "Recognise logged-in customers" when you connect, a customer who is logged in to your store skips that form, and your agents see who they are talking to.
There is a trade-off, and you should know about it. To prove the email is real, the storefront has to sign it with your identity secret, and on Shopify the only place a theme extension can read a secret from is an app-data metafield. Only our app can read that metafield, but Shopify advises against keeping credentials there. So we store the secret only when you turn recognition on. With it off, we check the secret once when you connect and then discard it.
What the app stores, and what happens when you leave
On Shopify's side the app keeps two or three metafields on its own installation: the widget key, the LayBuild AI address the widget loads from, and the identity secret if recognition is on. On our side we keep one row linking your shop to your workspace. We use a Shopify access token once, to write those metafields, and do not keep it.
Disconnecting from the app page removes the chat from your storefront. Uninstalling does the same, and 48 hours later Shopify sends a request to erase the shop's data, at which point we delete the link. If a shopper asks you to erase their data and Shopify forwards that request, we find the shopper by email in your workspace and erase them with the same routine we use for any privacy erasure request. A shopper's request for a copy of their data goes to the workspace owner, who exports it from Admin → Data requests.
What is still missing
There is no App Store listing, so there are no reviews to read and no one-click install. Billing is outside Shopify. The app does not read orders or products, as described above. And LayBuild AI's own limits apply: search over your content is English-first, so answers are most reliable when your policies and the shopper's question are in English.
If you already pasted the script tag into theme.liquid, it keeps working. Remove it when you switch on the app embed, or the widget script will load twice.
Frequently asked questions
Is the LayBuild AI app on the Shopify App Store?
Not yet. We share it by install link on request. Ask through the contact page and we will send it.
What store data can the app read?
None. The app requests no Shopify access scopes, so it cannot read orders, products or customers. It stores your widget settings on the app installation and nothing else.
How am I billed?
You pay LayBuild AI directly for your plan. Nothing is added to your Shopify bill. You need an active plan for the assistant to reply.
Do I have to edit my theme code?
No. The chat is a theme app extension. You switch it on under App embeds in the theme editor, and switching it off removes it.
Can the chatbot tell a shopper where their order is?
No. It answers from the content you added in LayBuild AI, such as your shipping policy, and can hand the chat to your team. It has no access to order data.

