พร้อมท์เริ่มต้น AI

พร้อมท์เริ่มต้น กำหนดว่า AI จะทำงานอย่างไรเมื่อผู้ใช้เปิดการสนทนาจากโมเดลเฉพาะใน Odoo ช่วยให้ผู้ใช้:

  • เรียกเอเจนต์ AI เฉพาะโดยอัตโนมัติ

  • ใช้คำแนะนำตามบริบท

  • แสดงปุ่มการกระทำที่กำหนดไว้ล่วงหน้า

  • ปรับเปลี่ยนพฤติกรรม AI ตามโมเดล

พร้อมท์เริ่มต้นจะเจาะจงกับโมเดล แม้ว่าจะสามารถนำไปใช้กับโมเดลทั้งหมดได้ ซึ่งหมายความว่า AI สามารถทำงานแตกต่างกันไปขึ้นอยู่กับว่าเปิดใช้งานจากที่ใดในระบบ

เมื่อผู้ใช้เปิดการสนทนา AI จากเรกคอร์ด Odoo จะให้บริบททั้งหมดของเรกคอร์ดนั้นแก่เอเจนต์ AI ซึ่งรวมถึงค่าฟิลด์และข้อมูลเมตาที่เกี่ยวข้อง

แต่ละการสนทนาจะถูกจำกัดอยู่ในบริบท เมื่อเปิดจากลีด AI จะได้รับข้อมูลเกี่ยวกับลีดนั้น เมื่อเปิดจากใบแจ้งหนี้ AI จะได้รับบริบทของระบบบัญชี การสนทนาจะถูกแยกออกและรีเซ็ตเมื่อปิด

การกำหนดค่า

ก่อนที่จะกำหนดค่าพร้อมท์เริ่มต้น ให้สร้างหรือกำหนดค่า|AI| :ref:`เอเจนต์ <ai/create-agent>`ในแอปพลิเคชัน AI

Note

แอปพลิเคชัน AI มาพร้อมกับเอเจนต์ที่กำหนดค่าไว้ล่วงหน้าและพร้อมท์เริ่มต้น ซึ่งจะแตกต่างกันไปตามแอปพลิเคชันอื่นๆ ที่ติดตั้งในฐานข้อมูล

ไปที่ แอป AI ‣ การกำหนดค่า ‣ พร้อมท์เริ่มต้น และคลิก สร้าง สร้าง ชื่อกฎ จากนั้นเลือกการดำเนินการในฟิลด์ เมื่อผู้ใช้ต้องการ

ถัดไป เลือกโมเดลในฟิลด์ บนโมเดล สิ่งนี้จะควบคุมว่ากฎนี้ใช้กับระเบียนใด ตัวอย่างเช่น หากกฎเฉพาะเจาะจงสำหรับตั้วการ์ด Helpdesk ให้เลือก ตั๋ว Helpdesk จากเมนูแบบเลื่อนลง สามารถเลือกได้หลายรายการในฟิลด์นี้ หากต้องการอนุญาตให้กฎนี้ใช้ได้กับโมเดลใดก็ได้ ให้เว้นฟิลด์ว่างไว้

ในฟิลด์ เรียกเอเจนต์ ให้เลือกว่าเอเจนต์ใดที่กฎนี้ควรใช้ ถัดไป เพิ่ม คำแนะนำ สำหรับกฎ

Note

แม้ว่าเอเจนต์อาจมีพร้อมท์ที่มีอยู่แล้วซึ่งกำหนดพฤติกรรมของพวกเขา แต่คำแนะนำในพร้อมท์เริ่มต้นจะกำหนดการดำเนินการในบริบทของโมเดลปัจจุบัน ดู ทำความเข้าใจโครงสร้างพร้อมท์ AI ด้านล่างสำหรับข้อมูลเพิ่มเติม

ระเบียนกฎพร้อมท์เริ่มต้นในแอป AI

ปุ่ม

Within each default prompt, buttons can be configured with predefined prompt instructions. When a user clicks a button, Odoo combines the default prompt Context with the selected button prompt and sends both to the AI model. This structure allows organizations to create reusable AI actions for common workflows, such as rewriting content, summarizing information, applying tone guidelines, or generating standardized responses.

On the Buttons tab, click Add a line to open the Create Available User Prompts pop-up. In the Title field, enter a name for this prompt. Whatever is entered in this field is visible on the button for the prompt.

พร้อมท์ AI ที่กำหนดค่าเป็นปุ่มในการสนทนากับเอเจนต์

In the Prompt field, enter a prompt to be sent to the AI when the button is clicked. Click Save & Close or Save & New when finished.

ทำความเข้าใจโครงสร้างพร้อมท์ AI

การสนทนา AI ใน Odoo ถูกจัดโครงสร้างโดยใช้หลายชั้นการกำหนดค่า

  • Each agent has a prompt that defines the global identity and behavior of an AI agent. It is configured directly on the agent's record and applies wherever the agent is used. The Agent Prompt defines who the AI is.

  • A default prompt configures how an AI agent behaves when launched from a specific model. Default prompt instructions adapt the agent's behavior to the functional context of the model. The default prompt defines how the AI should behave in this specific context.

  • Button prompts represent predefined user requests within an AI chat window. When a button is clicked, Odoo combines the AI agent's global instructions, the default prompt Context, and the selected button prompt. The Context provides the overall behavioral framework and functional background for the interaction, while the button prompt specifies the exact task the AI should perform at that moment.

ดูเพิ่มเติม

เอเจนต์ AI