This commit is contained in:
2026-11-08 20:08:53 +08:00
parent 7526a5fe4d
commit 9b924747c5
2692 changed files with 394867 additions and 0 deletions

View File

View File

@@ -0,0 +1,12 @@
{
"name": "AI Marketing Automation CRM",
"summary": "Add CRM rules to the AI generator context",
"author": "Odoo S.A.",
"category": "Hidden",
"license": "OEEL-1",
"depends": ["ai_marketing_automation", "marketing_automation_crm"],
"auto_install": True,
"data": [
"data/ai_skill.xml",
],
}

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="ai_skill_campaign_crm_targeting" model="ai.skill">
<field name="name">Campaign CRM Targeting</field>
<field name="description">Rules for campaigns targeting crm.lead: telling leads from opportunities, the fields to enrol and deduplicate on. Load before setting a campaign model to crm.lead or writing its enrolment.</field>
<field name="instructions">
Extends section 2 CAMPAIGN.
`crm.lead` becomes a valid `model_id`.
**A lead and an opportunity are both `crm.lead`**, told apart by `type`. Always constrain
`enroll_domain` on it: a campaign described as being for opportunities otherwise enrols every
lead as well.
The email field is `email_from`, not `email` - also the right `enroll_unique_field_id`. `user_id`
is the salesperson and may be empty, and a lead need not have a `partner_id` yet.
A campaign can start with an action rather than an email: the shipped Schedule Calls campaign is
one `action` step with `trigger_type` begin, booking a call with the lead's salesperson.
</field>
</record>
<record id="ai_marketing_automation.ai_agent_campaign_builder" model="ai.agent">
<field name="skill_ids" eval="[(4, ref('ai_skill_campaign_crm_targeting'))]"/>
</record>
</odoo>