การตอบกลับ (Dialogflow)
เมื่อคุณสร้างการดําเนินการสําหรับ Assistant คุณจะออกแบบการสนทนาสําหรับแพลตฟอร์มต่างๆ เช่น การสนทนาที่เน้นเสียงสําหรับลําโพงที่เปิดใช้งานด้วยเสียงหรือการสนทนาแบบภาพบนแพลตฟอร์มที่ Assistant รองรับ วิธีนี้ช่วยให้ผู้ใช้ทําสิ่งต่างๆ ได้อย่างรวดเร็วผ่านเสียงหรือภาพ
ขณะที่คุณสร้างการตอบสนอง คุณจะมีตัวเลือกในการตอบสนอง
ประเภทต่างๆ ที่น่าสนใจสําหรับ Assistant เพื่อแสดงต่อผู้ใช้
- คําตอบที่เรียบง่าย: คําตอบง่ายๆ จะอยู่ในรูปแบบฟองอากาศแชทในภาพและใช้การอ่านออกเสียงข้อความ (TTS) หรือภาษามาร์กอัปสังเคราะห์เสียงพูด (SSML) กับเสียง คําตอบอย่างง่ายไม่สามารถใช้กับประสบการณ์แบบหน้าจอเท่านั้นได้ และ
คําตอบประเภทอื่นจะรวมคําตอบที่เรียบง่ายอย่างน้อย 1 ข้อเสมอ
- การตอบกลับที่สมบูรณ์: การตอบกลับที่เป็นริชมีเดียจะเพิ่มองค์ประกอบทางภาพหรือฟังก์ชันลงในคําตอบที่เรียบง่ายเพื่อปรับปรุงการโต้ตอบของผู้ใช้กับการดําเนินการของคุณ ด้วยการตอบสนองที่หลากหลาย คุณยังสามารถแสดงข้อมูลแบบตารางหรือเล่นเนื้อหาเสียงแบบยาวได้
- คําตอบการเลือกสําหรับภาพ: คําตอบของการเลือกที่แสดงภาพจะมีตัวเลือกภาพเพื่อให้ผู้ใช้เลือกระหว่างตัวเลือกต่างๆ ที่ง่ายขึ้นตามชื่อหรือรูปภาพที่ง่ายขึ้น
ลองพิจารณาใช้ Interactive Canvas แทนเพื่อประสบการณ์การรับชมที่สมจริงยิ่งขึ้น
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-05-16 UTC
[null,null,["อัปเดตล่าสุด 2023-05-16 UTC"],[[["Actions on Google are designed to work across multiple surfaces, allowing users to interact through voice or visual elements."],["Developers can utilize various response types, including simple, rich, and visual selection responses, to enhance user interactions."],["Rich responses incorporate visual or functional elements, like displaying tabular data or playing audio, to enrich simple responses."],["Visual selection responses offer a visual interface for users to select options from a list, ideal for choices easily differentiated by title or image."],["For highly visual or immersive experiences, Interactive Canvas is recommended as an alternative development approach."]]],["Actions for the Assistant can be designed for voice or visual interactions. Fulfillment offers different response types: Simple responses use text or speech, forming the base for all responses. Rich responses enhance Simple responses with visual or functional elements, and allow display of tabular data or longer audio. Visual selection responses enable users to choose from multiple options via a visual interface with titles or images. Consider Interactive Canvas for more complex visual experiences.\n"]]