Domyślne prompty AI

Domyślne prompty określają, jak AI zachowuje się, gdy użytkownik otwiera konwersację z określonego modelu w Odoo. Pozwalają użytkownikom:

  • Automatycznie wywołać określonego agenta AI

  • Zastosuj instrukcje kontekstowe

  • Wyświetl predefiniowane przyciski akcji

  • Dostosuj zachowanie AI w zależności od modelu

Domyślne polecenia są specyficzne dla modelu, choć mogą być stosowane do wszystkich modeli. Oznacza to, że AI może zachowywać się inaczej w zależności od miejsca uruchomienia w systemie.

Gdy użytkownik otwiera konwersację AI z rekordu, Odoo dostarcza pełny kontekst tego rekordu agentowi AI. Obejmuje to wartości pól i istotne metadane.

Każda konwersacja jest związana z kontekstem. Po otwarciu z leadu AI otrzymuje informacje o tym Leadzie. Po otwarciu z faktury AI otrzymuje kontekst księgowy. Konwersacja jest izolowana i resetowana po zamknięciu.

Konfiguracja

Przed skonfigurowaniem domyślnego polecenia, utwórz lub skonfiguruj AI agenta w aplikacji AI.

Informacja

Aplikacja AI zawiera wstępnie skonfigurowanych agentów i domyślne polecenia. Różnią się one w zależności od innych aplikacji zainstalowanych w bazie danych.

Przejdź do Aplikacja AI ‣ Konfiguracja ‣ Domyślne polecenia i kliknij Nowy. Utwórz Nazwę reguły, a następnie wybierz akcję w polu Gdy użytkownicy muszą.

Następnie wybierz model w polu W modelu. Kontroluje to, do jakich rekordów ma zastosowanie ta reguła. Na przykład, jeśli reguła dotyczy biletów Punktu Pomocy, wybierz Bilety Punktu Pomocy z menu rozwijalnego. W tym polu można dokonać wielu wyborów. Aby umożliwić użycie tej reguły przez dowolny model, pozostaw pole puste.

W polu Wywołaj agenta wybierz, którego agenta powinna dotyczyć ta reguła. Następnie dodaj Instrukcje dla reguły.

Informacja

Choć agent może już posiadać istniejące polecenie definiujące jego zachowanie, instrukcje w domyślnym poleceniu definiują akcje w kontekście bieżącego modelu. Zobacz Zrozumienie struktury poleceń AI poniżej, aby uzyskać dodatkowe informacje.

Rekord reguły domyślnego polecenia w aplikacji AI.

Przyciski

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. 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.

On the Buttons tab, click Add a line to open the Create Available User Prompts pop-up. In the Title field, enter a name for this prompt. Whatever is entered in this field is visible on the button for the prompt.

Polecenia AI skonfigurowane jako przyciski w konwersacji z agentem.

In the Prompt field, enter a prompt to be sent to the AI when the button is clicked. Click Save & Close or Save & New when finished.

Zrozumienie struktury poleceń AI

Konwersacje AI w Odoo są zbudowane przy użyciu wielu warstw konfiguracyjnych.

  • Each agent has a prompt that defines the global identity and behavior of an AI agent. It is configured directly on the agent’s record and applies wherever 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 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. When a button is clicked, Odoo combines the AI agent’s global instructions, the default prompt Context, and the 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.

Zobacz także

Agenci AI