สร้าง Fulfillment ด้วยไลบรารีของไคลเอ็นต์ Actions on Google Java/Kotlin (Dialogflow)
ไลบรารีไคลเอ็นต์ Actions on Google Java/Kotlin เป็นวิธีที่แนะนำสำหรับการเข้าถึงและโต้ตอบกับแพลตฟอร์ม Actions on Google หากคุณกำลังสร้างเว็บฮุค Fulfillment ใน Java/Kotlin
เกริ่นนำ
ไลบรารีไคลเอ็นต์ Java/Kotlin
คือไลบรารี Fulfillment สำหรับ Actions on Google ที่มีฟีเจอร์ต่อไปนี้
- รองรับฟีเจอร์ Actions on Google ทั้งหมด รวมถึงการตอบกลับแบบข้อความและมัลติมีเดีย การลงชื่อเข้าใช้บัญชี พื้นที่เก็บข้อมูล ธุรกรรม และอื่นๆ
- มีชั้น Abstraction ที่มีสำนวนเหมือนใน Java หรือ Kotlin ที่รวม API เว็บฮุค HTTP/JSON สำหรับการสนทนา
- จัดการรายละเอียดระดับต่ำของการสื่อสารระหว่างการดำเนินการของคุณและแพลตฟอร์ม Actions on Google
- ติดตั้งได้โดยใช้ Gradle และ Maven ดูวิธีการตั้งค่าได้ใน README
- ช่วยให้คุณทำให้เว็บฮุคสำหรับดำเนินการตามคำสั่งซื้อใช้งานได้ในแพลตฟอร์มอย่างเช่น Google App Engine หรือ AWS Lambda
นอกจากนี้ คุณยังโฮสต์เว็บฮุค Fulfillment ของผู้ให้บริการระบบคลาวด์หรือในสภาพแวดล้อมที่โฮสต์เองและจัดการเองได้ด้วย
- ต้องใช้ JDK 8 ขึ้นไป
- คุณสามารถใช้ไลบรารีของไคลเอ็นต์ร่วมกับการผสานรวม Dialogflow สำหรับ Actions on Google หรือกับ Actions SDK ได้
หากต้องการดูตัวอย่างโค้ดแบบเต็มสำหรับการใช้ไลบรารีของไคลเอ็นต์ โปรดไปที่หน้าตัวอย่าง
ดูเอกสารอ้างอิง API
เอกสารอ้างอิง API จะโฮสต์ไว้ในหน้า GitHub สำหรับไลบรารีไคลเอ็นต์ของ Actions on Google Java/Kotlin
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-02 UTC
[null,null,["อัปเดตล่าสุด 2023-12-02 UTC"],[[["The Actions on Google Java/Kotlin client library is the recommended way to access and interact with the Actions on Google platform when building a fulfillment webhook in Java/Kotlin."],["This library supports all Actions on Google features, provides an idiomatic Java or Kotlin abstraction layer, and handles low-level communication details."],["It can be easily installed using build tools like Gradle and Maven, deployed on various platforms like Google App Engine or AWS Lambda, and requires JDK 8 or higher."],["Developers can use this client library with both Dialogflow integration and Actions SDK for their Action on Google projects."]]],["The Actions on Google Java/Kotlin client library facilitates interaction with the Actions on Google platform for fulfillment webhooks in Java/Kotlin. It supports all Actions on Google features and abstracts the conversation HTTP/JSON webhook API. The library handles communication with the platform, can be installed via Gradle or Maven, and can be deployed on various platforms like Google App Engine and AWS Lambda. It requires JDK 8 or higher and works with Dialogflow or the Actions SDK. Full code samples and the API reference are available online.\n"]]