bemade-addons/openwebui_connector/data/ai_prompt_template_data.xml
mathis ed9dda9bea [ADD] openwebui_connector, helpdesk_sale_order_ai: AI-powered sales order generation from helpdesk tickets
This commit introduces AI integration for helpdesk tickets to automatically generate sales orders:

- openwebui_connector: New module providing integration with OpenWebUI AI service
  * Configurable API connection (key, base URL, model)
  * AI prompt template system for reusable prompts
  * Uses Claude 3 Sonnet model by default

- helpdesk_sale_order_ai: Extends helpdesk_sale_order with AI capabilities
  * AI-powered analysis of ticket content to suggest products
  * Smart product quantity parsing from various formats
  * Dedicated UI tab for AI suggestions in helpdesk tickets
  * Auto-creation of sales orders with matched products

The integration streamlines the process of converting customer support requests into sales opportunities.
2025-07-15 15:18:01 -04:00

49 lines
2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Default Helpdesk AI Prompt Template -->
<record id="default_helpdesk_prompt_template" model="openwebui.prompt.template">
<field name="name">Default Helpdesk Template</field>
<field name="template_type">helpdesk</field>
<field name="is_default" eval="True"/>
<field name="sequence">10</field>
<field name="active" eval="True"/>
<field name="content">You are a helpful AI assistant for Bemade. Your task is to analyze a helpdesk ticket and suggest products or services that should be included in a sales order.
TICKET INFORMATION:
Customer: {customer}
Subject: {subject}
Description: {description}
Based on the ticket information above, please suggest products or services that should be included in a sales order. Format your response as a list of products with quantities. If possible, match to existing products in our catalog.
For each product suggestion, include:
1. Product name
2. Quantity
3. Brief justification for including this item
Format your response as follows:
```
PRODUCT SUGGESTIONS:
- 2x Product Name: Justification
- 1x Another Product: Justification
```
If you need more information to make accurate suggestions, please indicate what information is missing.</field>
</record>
<!-- Default General AI Prompt Template -->
<record id="default_general_prompt_template" model="openwebui.prompt.template">
<field name="name">Default General Template</field>
<field name="template_type">general</field>
<field name="is_default" eval="True"/>
<field name="sequence">20</field>
<field name="active" eval="True"/>
<field name="content">You are a helpful AI assistant for Bemade. Please analyze the following content and provide a concise and helpful response:
{content}
Please provide a clear and professional response.</field>
</record>
</data>
</odoo>