-
Notifications
You must be signed in to change notification settings - Fork 11.7k
[IMP] AI: Default Prompts update #17929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jero-odoo
wants to merge
1
commit into
saas-19.2
Choose a base branch
from
saas-19.2-ai-default-prompts-jero
base: saas-19.2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+21
−10
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -54,17 +54,26 @@ In the :guilabel:`Call the Agent` field, select which agent this rule should app | |||||
| Buttons | ||||||
| ------- | ||||||
|
|
||||||
| Within each default prompt, buttons can be configured with predefined prompts. While users have the | ||||||
| option to write out a prompt, they can also click one of the buttons to begin the conversation. | ||||||
| Within each default prompt, buttons can be configured with predefined prompt instructions. When a | ||||||
| user clicks a button, Odoo combines the default prompt *Context* with the selected button prompt and | ||||||
| sends both to the |AI| model. | ||||||
|
|
||||||
| On the *Buttons* tab, click :guilabel:`Add a line`, then enter a prompt in the :guilabel:`AI Prompt` | ||||||
| field. | ||||||
| This structure allows organizations to create reusable AI actions for common workflows, such as | ||||||
| rewriting content, summarizing information, applying tone guidelines, or generating standardized | ||||||
| responses. | ||||||
|
|
||||||
| These prompts are then available for a user to select in a conversation. | ||||||
| On the *Buttons* tab, click :guilabel:`Add a line` to open the *Create Available User Prompts* | ||||||
| pop-up. | ||||||
|
|
||||||
| In the :guilabel:`Title` field, enter a name for this prompt. Whatever is entered in this field is | ||||||
| visible on the button for the prompt. | ||||||
|
|
||||||
| .. image:: default_prompts/ai-chatter.png | ||||||
| :alt: AI prompts configured as buttons in a conversation with an agent. | ||||||
|
|
||||||
| In the :guilabel:`Prompt` field, enter a prompt to be sent to the AI when the button is clicked. | ||||||
| Click :guilabel:`Save & Close` or :guilabel:`Save & New` when finished. | ||||||
|
|
||||||
| .. _ai/prompt-structure: | ||||||
|
|
||||||
| Understanding AI prompt structure | ||||||
|
|
@@ -73,16 +82,18 @@ Understanding AI prompt structure | |||||
| |AI| conversations in Odoo are structured using multiple configuration layers. | ||||||
|
|
||||||
| - Each :ref:`agent <ai/agents/prompts-in-odoo>` has a prompt that defines the global identity and | ||||||
| behavior of an AI agent. It is configured directly on the |AI| agent record and applies wherever | ||||||
| behavior of an AI agent. It is configured directly on the AI agent record and applies wherever | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
For simplicity, maybe, unless "AI agent" is a record the way a contact is a record? |
||||||
| the agent is used. The Agent Prompt defines who the AI is. | ||||||
|
|
||||||
| - A default prompt configures how an |AI| agent behaves when launched from a specific model. Default | ||||||
| - A default prompt configures how an AI agent behaves when launched from a specific model. Default | ||||||
| prompt instructions adapt the agent's behavior to the functional context of the model. The default | ||||||
| prompt defines how the AI should behave in this specific context. | ||||||
|
|
||||||
| - Button prompts represent predefined user requests within an |AI| chat window. They appear as | ||||||
| clickable buttons when a conversation is opened. Button prompts do **not** redefine the agent's | ||||||
| identity or contextual behavior. Instead, they specify what the |AI| should do at that moment. | ||||||
| - Button prompts represent predefined user requests within an AI chat window. When a button is | ||||||
| clicked, Odoo combines the AI agent's global instructions, the default prompt Context, the | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| selected button prompt. The Context provides the overall behavioral framework and functional | ||||||
| background for the interaction, while the button prompt specifies the exact task the AI should | ||||||
| perform at that moment. | ||||||
|
|
||||||
| .. seealso:: | ||||||
| :doc:`agents` | ||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Combine the paragraphs? Feels like a natural extension of the thought.