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.

Os botões de chat são exibidos nas páginas da loja e abrem o chat. Para exibir um campo de texto na parte inferior da loja, consulte Escolher o estilo da barra de mensagens. Os botões de chat são diferentes do widget de chat que abre a janela de chat, das respostas instantâneas e das perguntas e sugestões exibidas dentro da janela de chat. Configure os botões de chat com o Sidekick na página Visão geral no Inbox. O Sidekick cria botões de chat que combinam com o tema, e é possível visualizá-los e salvá-los no editor de temas. Para obter mais informações sobre o Sidekick, consulte Primeiros passos com o 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.
  • Página de pesquisa: perguntas geradas para cada pesquisa. Na loja virtual, os botões são exibidos depois que o cliente faz uma pesquisa. Se as perguntas não forem geradas a tempo, as perguntas padrão serão exibidas. A pré-visualização do editor de temas exibe as perguntas padrão.

É possível fornecer ao Sidekick um texto próprio de botão para qualquer tipo de página. No caso desse bloco, o texto fornecido é usado em vez de perguntas salvas ou geradas. Isso não altera as perguntas salvas nos produtos ou nas coleções.

Questions for products and collections

Por padrão, os botões de chat de produtos e coleções usam as perguntas salvas em cada produto ou coleção. Se alguns dos produtos ou coleções não tiverem perguntas, o Sidekick oferecerá as seguintes opções:

  • O Sidekick elabora perguntas para produtos ou coleções que não têm nenhuma pergunta e cria perguntas apenas para produtos ativos. Ele não substitui as perguntas existentes. Se todas as perguntas forem removidas de um produto ou de uma coleção, o Sidekick o ignorará, e será necessário adicionar as perguntas manualmente.
  • Sidekick adds chat buttons only to products or collections that already have questions.

Quando os botões de chat usam perguntas salvas, o produto ou coleção sem perguntas não exibe a seção de botões de chat, incluindo o respectivo título.

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:

  • Título: o texto que introduz os botões. O título padrão é Have a question? (Tem alguma dúvida?). Deixe em branco para ocultar o título.
  • Número de botões: a quantidade de botões a exibir, de 1 a 4. Quando os botões de chat de produtos e coleções usam perguntas salvas, essa opção limita a quantidade de perguntas exibidas.
  • 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:

  • Estilo: determina se os botões usam o estilo de botão principal ou secundário do tema. Os botões seguem as cores e a forma desse estilo e não têm configurações de cor ou forma separadas.
  • Exibir ícone: determina se um ícone será exibido em cada botão. Essa opção fica desativada por padrão.
  • Ícone: o ícone a ser exibido. A configuração está disponível apenas em temas com ícones compatíveis, como o Horizon. As escolhas dependem do tema e podem incluir Balão de chat, Ponto de interrogação, Coração, Estrela e Raio.
  • Preenchimento superior e Preenchimento inferior: o espaço acima e abaixo dos botões, de 0 a 100 px. O padrão de cada um é 0.

Na página inicial, um único botão tem um rótulo. O rótulo é tanto o texto no botão quanto a pergunta enviada ao agente do Inbox. O texto do botão da página inicial pode ter até 50 caracteres. O botão que tiver o texto em branco ou maior que 50 caracteres não será exibido. Para textos maiores que 50 caracteres, o editor de temas exibe uma dica.

Na página de pesquisa, um único botão tem uma pergunta padrão. Um botão individual não tem título, número de botões ou layout.

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.

Também é possível pedir ao Sidekick, no editor de temas, para alterar as configurações disponíveis do bloco. Por exemplo, peça para empilhar os botões, usar o estilo de botão secundário do tema ou alterar o título, o preenchimento ou o ícone. Revise as alterações e clique em Salvar.

Edit questions for products and collections

É possível adicionar, editar, remover ou reordenar as perguntas em um produto ou coleção no admin da Shopify. Cada produto ou coleção pode ter até 4 perguntas, e a ordem das perguntas define a ordem dos botões de chat. Se você reutilizar a mesma entrada de pergunta salva em mais de um produto ou coleção, a edição dessa entrada a alterará em todos os locais em que é usada.

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.

Solucionar problemas de botões de chat não exibidos

Se os botões de chat não forem exibidos, verifique estes itens:

  • Certifique-se de que o chat da loja virtual esteja ativado. Os botões de chat ficam ocultos quando a incorporação de app Chat da loja virtual está desativada.
  • Nas páginas de produtos e de coleções que usam perguntas salvas, certifique-se de que o item tenha perguntas salvas. Se não houver perguntas, a seção inteira, incluindo o título, não será exibida.
  • Nos botões da página inicial, garanta que cada rótulo tenha texto e não ultrapasse 50 caracteres.
  • Na página de pesquisa, conclua uma pesquisa para exibir os botões. A pré-visualização do editor de temas exibe as perguntas padrão.
  • Certifique-se de ter salvo as alterações do tema. Caso tenha editado um tema não publicado, publique o tema para exibir os botões na loja virtual.