ai*
This commit is contained in:
63
ai_sale/data/ai_prompt_button_data.xml
Normal file
63
ai_sale/data/ai_prompt_button_data.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="ai_prompt_sales_by_country" model="ai.prompt.button">
|
||||
<field name="name">Pie chart of sales by customer country</field>
|
||||
<field name="prompt">
|
||||
Show me a graph view, of type "pie chart" , using the Sales Analysis (model_name: sale.report) menu item. Group those sale orders by customer country (field_name: country_id).
|
||||
Don't mention model_name, field_name or any record ids in your response.
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="ai_prompt_top_sales_reps" model="ai.prompt.button">
|
||||
<field name="name">Top 5 sales reps by revenue</field>
|
||||
<field name="prompt">
|
||||
Search all sale order (model_name: sale.order) records, group them by user (field_name: user_id), sum the revenue (field_name: amount_total) from all the records and return
|
||||
the top 5. Don't mention model_name, field_name or any record ids in your response.
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="ai_prompt_sales_by_category" model="ai.prompt.button">
|
||||
<field name="name">Show sales by product category this month</field>
|
||||
<field name="prompt">
|
||||
Go to the Sales Analysis menu item (model_name: sale.report) and open the pivot view. Group by product category (field_name: categ_id). Set the measure to Total (measure_name: price_total) directly without computing the available measures.
|
||||
Don't mention model_name, field_name, measure_name or any record ids in the response.
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="ai_prompt_top_selling_products_chart" model="ai.prompt.button">
|
||||
<field name="name">Bar chart of top-selling products</field>
|
||||
<field name="prompt">
|
||||
Go to the Sales Analysis menu item (model_name: sale.report) and open the graph view of type "bar chart". Group by product_variant (field_name: product_id), in descending order. Set the measure as Total (measure_name: price_total) directly without computing the available measures.
|
||||
Don't mention model_name, field_name, measure_name or any record ids in the response.
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="ai_prompt_blog_ideas_catalog" model="ai.prompt.button">
|
||||
<field name="name">5 blog ideas from my product catalog</field>
|
||||
<field name="prompt">
|
||||
Read the names of all my products (model_name: product.template). Then based on this list, pick five of them at random. For each of those, come up with an idea of a blog post I could write.
|
||||
Example:
|
||||
The products are: Apple Pie, Cheese Burger, Bagel, Black embroidered t-shirt and Burger Menu Combo
|
||||
|
||||
The final output should be something like:
|
||||
- Apple Pie: 5 Apple pie recipes you haven't tried yet
|
||||
- Cheese Burger: Why the classic Burgers still rule
|
||||
- Bagel: 3 ingredients to try in your bagel
|
||||
- Black embroidered t-shirt: What should we wear with a black t-shirt?
|
||||
- Burger Menu Combo: Try out our new burger menu combo, we swear you won't leave hungry!
|
||||
Don't mention model_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_sale.ai_prompt_sales_by_country')),
|
||||
(4, ref('ai_sale.ai_prompt_top_sales_reps')),
|
||||
(4, ref('ai_sale.ai_prompt_sales_by_category')),
|
||||
(4, ref('ai_sale.ai_prompt_top_selling_products_chart')),
|
||||
(4, ref('ai_sale.ai_prompt_blog_ideas_catalog')),
|
||||
]"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user