Adding chat buttons to your online store for Shopify Inbox

You can add chat buttons to your online store pages so that customers can start a conversation from the page that they're viewing. When a customer clicks a chat button, the Inbox chat opens and sends the question on that button to your Inbox agent. You can add a single button, or a section of up to 4 buttons, to your home page, collection pages, product pages, search page, or another page that you choose.

聊天按钮显示在您的商店页面上,点击即可打开聊天。如果要在商店底部显示文本字段,请参阅选择消息栏样式。聊天按钮不同于打开聊天窗口的聊天小组件、即时解答以及聊天窗口内显示的问题和建议。您可以通过 Inbox 中的概览页面,使用 Sidekick 设置聊天按钮。Sidekick 会创建与您的模板相匹配的聊天按钮,您可以在模板编辑器中预览并保存这些按钮。如需详细了解 Sidekick,请参阅Sidekick 入门。

Requirements for adding chat buttons to your online store

Before you add chat buttons to your online store, you need to meet the following requirements:

Questions on chat buttons

Each chat button sends a question to your Inbox agent. Where the question comes from depends on the type of page that the chat button is displayed on:

  • Home page and other pages that you choose: Questions that Sidekick suggests for your store, or questions that you write. You can change them in the theme editor.
  • Collection pages: Each collection's own questions. Each collection can have up to 4 questions.
  • Product pages: Each product's own questions. Each product can have up to 4 questions.
  • 搜索页面:针对每次搜索生成的问题。在您的在线商店中,当客户进行搜索后便会显示这些按钮。如果未能及时生成问题,则显示默认问题。模板编辑器预览会显示默认问题。

对于任何页面类型,您都可以为 Sidekick 提供自己的按钮文本。对于该区块,将使用您提供的文本,而不是已保存或生成的问题。这不会更改您产品或产品系列中保存的问题。

Questions for products and collections

默认情况下,产品和产品系列聊天按钮使用保存到每个产品或产品系列上的问题。如果您的一些产品或产品系列没有问题,Sidekick 会为您提供以下选项:

  • Sidekick 会为没有问题的产品或产品系列编写问题。Sidekick 仅为活跃产品编写产品问题。Sidekick 不会覆盖现有问题。如果您已删除某个产品或产品系列中的所有问题,那么 Sidekick 会跳过该产品或产品系列,您需要自行添加其问题。
  • Sidekick adds chat buttons only to products or collections that already have questions.

当聊天按钮使用已保存的问题时,没有问题的产品或产品系列不会显示聊天按钮部分(包括其标题)。

If you have a large product catalog, then it might take time to write questions for each product and collection. Sidekick displays an estimate of how long it takes. Writing can stop before every product or collection has questions.

If some questions are missing, then you can add the questions yourself, or run Sidekick again. Sidekick skips products and collections that already have questions.

If the page already has chat buttons, then skip the final link to the theme editor. Alternatively, discard the new chat buttons instead of saving them.

Add chat buttons to a page

You can add a single button or a section of chat buttons. A single button sends one question. A section of chat buttons has a heading and up to 4 buttons, and each button sends its own question.

If you click a chat button in the theme editor, then it starts a real conversation. The conversation is displayed in your Inbox.

Steps:

  1. From your Shopify admin, go to Sales channels > Inbox.

  2. Click Overview.

  3. In the Help shoppers buy with confidence banner, click Add questions.

  4. In the Sidekick panel, select where on your store you want the buttons: the home page, collection pages, product pages, or the search page. To use another page, such as your FAQ page, enter its name instead.

  5. Select whether you want a single button or a section with up to 4 buttons.

  6. For product or collection pages with missing questions, select whether Sidekick writes the questions or adds buttons only where questions already exist. Questions that Sidekick writes are saved to your products and collections right away, even if you don't save the theme changes.

  7. Follow the link from Sidekick to open the theme editor.

  8. Make sure that the theme editor is displaying the page that you selected in Sidekick. In the Generate block panel, review the prompt that Sidekick prepared, and then press Enter or click Send. Sidekick generates the chat buttons and displays them in a preview.

  9. Review the chat buttons, and then click Save. If you're editing your published theme, then the chat buttons are live after you save. If you're editing an unpublished theme, then the chat buttons are live after you publish the theme.

Customize chat buttons

You can change the settings of your chat buttons in the theme editor. Sidekick adds the chat buttons as a block in a new section.

Sidekick creates the settings for your chat buttons, so the setting names can differ by theme. A section of chat buttons usually has the following settings:

  • 标题:介绍按钮的文本。默认标题为 有问题吗?。若留空则隐藏标题。
  • 按钮数量:要显示的按钮数量,范围介于 1 到 4 之间。当产品和产品系列聊天按钮使用已保存的问题时,此设置会限制显示的问题数量。
  • Layout: Whether the buttons are displayed in a row or stacked.
  • Questions: On your home page and other pages that you choose, the question for each button. On your search page, the default questions that are displayed when questions aren't generated for a search.

Chat buttons, including a single button, usually also have the following settings:

  • 样式:按钮是否使用您模板的主要或辅助按钮样式。按钮会遵循该样式的颜色和形状,并且没有单独的颜色或形状设置。
  • 显示图标:是否在每个按钮上显示图标。此选项默认关闭。
  • 图标:要显示的图标。此设置仅在支持图标的模板(例如 Horizon)上可用。选项取决于您的模板,可能包括聊天气泡、问号、心形、星形和闪电。
  • 顶部内边距和底部内边距:按钮上方和下方的空间,范围介于 0 到 100 像素之间。两者的默认值均为 0。

在主页上,一个按钮对应一个标签。该标签既是按钮上的文本,也是发送给 Inbox 代理的问题。主页按钮文本最多包含 50 个字符。未包含文本或文本长度超过 50 个字符的按钮不会显示。对于超过 50 个字符的文本,模板编辑器会显示提示。

在搜索页面上,一个按钮对应一个默认问题。单一按钮没有标题、按钮数量或布局。

Steps:

  1. From your Shopify admin, go to Online Store.

  2. Click Edit theme next to the theme that you want to edit.

  3. Open the template that has your chat buttons. To open a different template, click the Home page drop-down menu, and then select the template.

  4. In the theme editor sidebar, click the section or block that holds your chat buttons.

  5. Change the settings.

  6. Click Save.

您也可以在模板编辑器中要求 Sidekick 更改区块的可用设置。例如,要求其堆叠按钮、使用模板的辅助按钮样式,或更改标题、内边距或图标。查看更改,然后点击保存。

Edit questions for products and collections

您可以在 Shopify 后台中添加、编辑、移除或重新排序产品或产品系列上的问题。每个产品或产品系列最多可添加 4 个问题,并且问题的顺序即为聊天按钮的顺序。如果您在多个产品或产品系列中重复使用同一已保存的问题条目,则编辑该条目会使其在所有使用之处均发生更改。

Steps:

  1. From your Shopify admin, go to Products.

  2. Click the product that you want to edit. To edit a collection, click Collections, and then click the collection.

  3. Edit Conversation starters. On a product, this field is in the Product metafields section. On a collection, it's in the Metafields section. If Conversation starters isn't displayed, then click View all. You can add up to 4 questions.

  4. Click Save.

Remove chat buttons from a page

To stop displaying chat buttons on a page, remove the section or block from your theme in the theme editor. For more ways to remove a section, refer to Removing sections and blocks.

Steps:

  1. From your Shopify admin, go to Online Store.

  2. Click Edit theme next to the theme that you want to edit.

  3. Open the template that has your chat buttons. To open a different template, click the Home page drop-down menu, and then select the template.

  4. In the theme editor sidebar, click the section or block that holds your chat buttons.

  5. Click Remove section or Remove block.

  6. Click Save.

未显示聊天按钮的故障排除

如果您的聊天按钮未显示,请检查以下事项:

  • 确保在线商店聊天已开启。当在线商店聊天应用嵌入关闭时,聊天按钮会处于隐藏状态。
  • 在使用了已保存问题的产品和产品系列页面上,确保商品具有已保存的问题。如果没有问题,则不会显示整个部分(包括其标题)。
  • 对于主页按钮,确保每个标签均包含文本,且长度不超过 50 个字符。
  • 在搜索页面上,完成一次搜索以显示按钮。模板编辑器预览会显示默认问题。
  • 确保您已保存模板更改。如果您编辑了未发布的模板,请发布模板,以便在您的在线商店中显示按钮。