Skip to content

Conversation

@thienvh332
Copy link

@thienvh332 thienvh332 commented Dec 17, 2025

Summary

This PR extends the AI flow by adding a new generic server_action option to the result_type field and introducing a field-based trigger condition specifically for the ai_thread_update usage.

Changes

  • Add server_action as a new selection value for the result_type field (generic, shared across usages).
  • Add a field-based trigger condition for the ai_thread_update usage.
  • Added an examples/ directory to contain usage examples for the module.

Motivation

The new server_action result type allows reusing standard Odoo server actions to process the output of the workflow.

The field-based trigger condition enables more precise control over when the ai_thread_update flow is triggered, reducing unnecessary executions and aligning better with real update scenarios.

Approach

The workflow directly calls the webhook with the LLM execution result, avoiding n8n data transformation, which keeps the implementation simple and consumer-agnostic while preserving full traceability in Odoo.

image

@thienvh332 thienvh332 marked this pull request as ready for review December 17, 2025 02:18
@thienvh332 thienvh332 force-pushed the 16.0-imp-ai_oca_bridge_2 branch from 03049fb to 8d1e49b Compare December 17, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant