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.
ปุ่มแชทจะแสดงในหน้าร้านค้าของคุณและใช้เพื่อเปิดแชท หากต้องการแสดงช่องข้อความที่ด้านล่างของร้านค้า โปรดดูที่เลือกสไตล์แถบข้อความ ปุ่มแชทแตกต่างจากวิดเจ็ตแชทที่เปิดหน้าต่างแชท คำตอบแบบด่วน รวมถึงคำถามและคำแนะนำที่แสดงในหน้าต่างแชท คุณตั้งค่าปุ่มแชทด้วย Sidekick ได้จากหน้าภาพรวมในกล่องจดหมายเข้า Sidekick จะสร้างปุ่มแชทที่เข้ากับธีมของคุณ จากนั้นคุณสามารถดูตัวอย่างและบันทึกปุ่มดังกล่าวในตัวแก้ไขธีมได้ หากต้องการข้อมูลเพิ่มเติมเกี่ยวกับ Sidekick โปรดดูที่การเริ่มต้นใช้งาน Sidekick
On this page
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:
- You need to turn on the Inbox agent.
- You need to turn on online store chat.
- You need to have Sidekick available in your Shopify admin. Refer to considerations for using Sidekick.
- You're the store owner, or you have the Edit code permission.
- Your theme isn't a theme trial or a theme that's locked because of a licensing issue. Refer to unlicensed themes.
- The page that you add chat buttons to uses a template that supports theme blocks. Vintage themes don't support theme blocks. Refer to theme architecture version features.
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 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:
From your Shopify admin, go to Sales channels > Inbox.
Click Overview.
In the Help shoppers buy with confidence banner, click Add questions.
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.
Select whether you want a single button or a section with up to 4 buttons.
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.
Follow the link from Sidekick to open the theme editor.
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
. Sidekick generates the chat buttons and displays them in a preview.
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:
From your Shopify admin, go to Online Store.
Click Edit theme next to the theme that you want to edit.
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.
In the theme editor sidebar, click the section or block that holds your chat buttons.
Change the settings.
Click Save.
คุณยังสามารถขอให้ Sidekick ในตัวแก้ไขธีมเปลี่ยนการตั้งค่าที่มีอยู่ของบล็อกได้อีกด้วย ตัวอย่างเช่น ขอให้จัดเรียงปุ่มซ้อนกัน ใช้สไตล์ปุ่มรองของธีม หรือเปลี่ยนส่วนหัว การเว้นขอบด้านใน หรือไอคอน ตรวจสอบการเปลี่ยนแปลง จากนั้นคลิกบันทึก
Edit questions for products and collections
คุณสามารถเพิ่ม แก้ไข ลบ หรือจัดลำดับคำถามใหม่ในสินค้าหรือคอลเลกชันได้ในส่วนผู้ดูแล Shopify สินค้าหรือคอลเลกชันแต่ละรายการมีคำถามได้สูงสุด 4 ข้อ และลำดับของคำถามจะเป็นตัวกำหนดลำดับของปุ่มแชท หากคุณใช้รายการคำถามที่บันทึกไว้รายการเดียวกันซ้ำในสินค้าหรือคอลเลกชันมากกว่าหนึ่งรายการ การแก้ไขรายการดังกล่าวจะส่งผลให้เกิดการเปลี่ยนแปลงในทุกที่ที่มีการใช้งาน
Steps:
From your Shopify admin, go to Products.
Click the product that you want to edit. To edit a collection, click Collections, and then click the collection.
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.
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:
From your Shopify admin, go to Online Store.
Click Edit theme next to the theme that you want to edit.
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.
In the theme editor sidebar, click the section or block that holds your chat buttons.
Click Remove section or Remove block.
Click Save.
การแก้ปัญหาปุ่มแชทที่ไม่แสดง
หากปุ่มแชทของคุณไม่แสดง โปรดตรวจสอบรายการต่อไปนี้
- ตรวจสอบให้แน่ใจว่าแชทร้านค้าออนไลน์เปิดอยู่ ปุ่มแชทจะซ่อนอยู่เมื่อการฝังแอปแชทร้านค้าออนไลน์ถูกปิดไว้
- ในหน้าสินค้าและคอลเลกชันที่ใช้คำถามที่บันทึกไว้ ตรวจสอบให้แน่ใจว่ารายการดังกล่าวมีคำถามที่บันทึกไว้ หากไม่มีคำถาม ระบบก็จะไม่แสดงทั้งส่วน รวมถึงส่วนหัวด้วย
- สำหรับปุ่มหน้าแรก ตรวจสอบให้แน่ใจว่าป้ายกำกับแต่ละรายการมีข้อความและมีความยาวไม่เกิน 50 ตัวอักษร
- ในหน้าค้นหา ให้ทำการค้นหาเพื่อแสดงปุ่มต่างๆ การแสดงตัวอย่างของตัวแก้ไขธีมจะแสดงคำถามเริ่มต้น
- ตรวจสอบให้แน่ใจว่าคุณได้บันทึกการเปลี่ยนแปลงธีมแล้ว หากคุณแก้ไขธีมที่ยังไม่ได้เผยแพร่ ให้เผยแพร่ธีมเพื่อแสดงปุ่มในร้านค้าออนไลน์ของคุณ