Assign with AI
list,kanban
code
action = records.action_ai_assign_emission_factors()
Server Action: Assign with AI
ai
Name, its associated account is Account Name, its product category is Product Category Name and its partner is Partner Name from the country Partner Country Name.
Moreover, its unit of measure is Unit of Measure Name, its currency is Currency Name and its company is Company Name.
Here are the instructions to following in the order:
First, determine the most relevant scope for this emission line between 'direct', 'indirect' or 'indirect_others' based on the given emission line data. key: 'direct' means Direct Emission (Scope 1), key: 'indirect' means Indirect Emission (Scope 2) and key: 'indirect_others' means Other Indirect Emission (Scope 3).
Secondly, determine the most relevant emission sources among the ones filtered by the scope (using the key) given in the previous step, and the emission line data. Select maximum 10 sources.
Thirdly, determine the most relevant emission factor among the ones filtered by the sources given in the previous step, and the emission line data. Try to match the most relevant fields such as name, uom_name, currency_name, region, company_name, etc.
Finally, assign the emission factor field of the emission line to the emission factor you found in the previous step.
]]>