Add the chat to your theme
The chat sits inside your store's pages, at the spot where you add the ShopGuide Chat block. A round bubble in the corner of the screen takes shoppers to it. This page shows how to add the block and what its settings do.
Before you start
- ShopGuide is installed. See Install ShopGuide.
- You know how to open the theme editor. See Find your way in the theme editor.
Steps
- In your Shopify admin, open Online Store › Themes. Make a copy of your live theme first: click the ... button next to it and choose Duplicate. Then click Customize on the copy. The theme editor opens. You work on the copy, so shoppers see nothing until you publish it.
- Pick a page type from the page menu at the top. Start with product pages, then collection pages, then the home page. A block you add to a page type shows on every page of that type. For example, one block on the product page template shows on all your product pages.
- In the left sidebar, click Add section at the spot where the chat should go. Each part of the page has its own Add section link. On product pages, that's right below the main product section (the photos, price and buy button). Place the chat where shoppers see it has a spot for each page type.
- Open the Apps tab and click ShopGuide Chat.
- Leave the block's settings as they are. You set the chat's launch messages and look in the ShopGuide app.
- Click App embeds in the icon bar on the far left and switch on Path Explorer Tracker. It counts which pages shoppers visit, so ShopGuide can show you your numbers and shoppers' paths through your store. Shoppers see nothing. You only do this once for the whole theme.
- Click Save.
- Repeat steps 2 to 4 and step 7 for the other page types shoppers visit, such as search, blog posts, the 404 page and your own pages. Each page type needs its own block. Leave the chat off the cart page, where it distracts from paying.
- Publish the theme copy under Online Store › Themes when you're done.
Add it once per page
Use one ShopGuide Chat block per page type. If a page has two, the one higher up is used and the other hides itself. In the editor, the hidden one shows this note: "ShopGuide Chat is already placed higher up on this page, so this copy is hidden." To change which one is used, move or remove one of them.
Another way: an AI Guide page
ShopGuide can make a page in your store called AI Guide, with the chat on it. Shoppers can go there to talk to the chat. Shopify lists it with your other pages under Online Store › Pages. To make it, open Settings in ShopGuide, click the Store Setup tab, and click Create AI Guide Page.
- If you see ShopGuide Chat block embedded, the page is ready.
- If you see "One more step: add the ShopGuide Chat block in the theme editor", click Open in Theme Editor. Then add the ShopGuide Chat block as in steps 3, 4 and 7.
Click Add to navigation to put the page in your store's menu.
Settings on the block
Click the block in the theme editor to see its settings. They only change the page the block is on. Most stores leave them as they are.
| Setting | Default | What it does |
|---|---|---|
| Use custom launch message | Off | Shows the message and buttons below on this page instead of the launch message from the ShopGuide app. |
| Custom Launch Message | "Hello! How can I help you today?" | The first message shoppers see on this page. The help text under the field lists the tags you can type to show live values, such as the product name. |
| Button 1 Text to Button 6 Text | "Product Advice", "FAQ", "Contact", then empty | The buttons under the message. Buttons 4 to 6 are optional. An empty field uses the matching button from the ShopGuide app, if there is one. |
| Use custom settings | Off | Uses the block's Chat Heading and Primary Color on this page instead of your app settings. Both apply as soon as you tick the box, so check both, even if you only want to change one. |
| Chat Heading | "ShopGuide" | The title at the top of the chat on this page. Every other page uses the heading from Customize › General Settings. |
| Primary Color | Blue-green | The color of shopper messages and the chat's border on this page. |
| Product Discussed | Empty | On product pages, the chat always talks about that page's product. On other pages, pick a product here if the chat should talk about it. |
| Enable Product Comparison | Off | Shows a table that compares products on this page. |
| Default Comparison Product 1 (Handle) to 3 | Empty | The products the table starts with. A handle is the last part of a product's web address, such as my-product-name. |
| Show Side Panel on Load | Off | Opens the side panel when the chat loads. The side panel sits next to the chat and shows products. |
| Default Side Panel Item 1 to 3 | Empty | What the side panel shows. A product handle shows that product's card. Any other text shows a button with that text. |
A launch message on the block replaces the app's launch message in every language. On product and collection pages, leave Use custom launch message off and set the message in the app instead. See Launch messages.
What you'll see when it works
Open the page in the editor's preview or on your live store after you publish. The chat shows on the page where you put the block, with your launch message and buttons. The bubble sits in the bottom corner of the screen. Click it, and the page scrolls to the chat. Type a question, and the chat answers.
If it doesn't work
| What you see | What to do |
|---|---|
| ShopGuide Chat isn't in the Apps tab | Check that ShopGuide is installed. Then close the theme editor and open it again. |
| The chat shows in the editor but not on your store | Publish the theme copy under Online Store › Themes. |
| The chat is missing on some pages | Add the block to that page type too. Each page type needs its own block. |
More fixes: Fix theme problems.