Files
dn20/ai_helpdesk/data/ai_prompt_button_data.xml
2026-11-08 20:08:53 +08:00

19 lines
839 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="ai_prompt_top_ticket_cause" model="ai.prompt.button">
<field name="name">Summarize what the last tickets complain about</field>
<field name="prompt">
Search for helpdesk tickets (model_name: helpdesk.ticket), retrieve the most recent 5 tickets and summarize what they complain about (field_name: description).
Include the ticket name (field_name: name) in the response. Don't mention model_name or field_name or any record ids in the response.
</field>
</record>
<record id="ai.ai_systray_action" model="ai.composer">
<field name="available_prompt_ids" eval="[
(4, ref('ai_helpdesk.ai_prompt_top_ticket_cause')),
]"/>
</record>
</data>
</odoo>