Docs

DocsSettingsAI and usage

AI and prompts

How Leaglety's wording for its AI tasks is versioned, approved and used, and what the AI activity log holds.

ConceptWho can do this:Desk AdminDesk CounselParalegal

A prompt is the wording the AI uses for one task, such as a reply to a notice or a board resolution. Prompts belong to Leaglety, not to a company. Only the latest approved version is used; if no version is approved, the built-in wording is used.

Who sees this screen#

The service team opens Settings → AI and prompts. A company's people do not: Leaglety sends a company person to Settings → AI usage instead.

  • The service team's Admin or Counsel, or a person with the prompt editor grant, may propose a version.
  • Only a Leaglety operator approves a version. A proposed version stays a Draft, and the approved version stays in use until the new one is approved.

The tabs#

  • Prompt library lists one row per prompt, at its latest version, with ID, Name, Task, Version, Owner, Status and Used. A version that is not the one in use says "in use {version}".
  • AI drafts lists the drafts made with Leaglety AI, with Title, Type, Prompt, Status and Created. A title opens the draft.
  • AI activity log lists each AI action with When, Action, Entity, Prompt, By / reviewer and Note.
  • API configuration shows the provider, model, routing and whether a key is set. It is visible to a Leaglety operator only.
  • AI usage opens the usage screen (Check AI usage and cost).

Add or revise a prompt#

  1. 01On Prompt library, press New prompt, or Revise on a row.
  2. 02Fill in the form. A new prompt takes Prompt ID, Name, Task and Template. A revision takes Name and Template.
  3. 03Write the template with the facts slot: Use {{facts}} where the facts go.
  4. 04Press Save as draft.

The toast reads "Saved as a draft. A Leaglety operator approves it before it is used." A Leaglety operator then presses Approve on the Draft row. The toast reads "{id} {version} approved. It is used from now on."

Test the provider#

Under API configuration, press Test with sample prompt. The result shows the reply, the model and the cost of the test. A failure reads "The AI service did not answer. Check the server's settings and try again."

If something goes wrong#

MessageWhat to do
Choose the task the prompt is for.Choose a Task from the list.
Use letters, numbers, dots, dashes or underscores for the ID.Change Prompt ID.
That prompt ID is taken. Revise the prompt instead of adding it again.Open the prompt's row and press Revise.
Only a Leaglety operator approves a prompt.Ask a Leaglety operator to approve the draft.
That version is already approved.Nothing to do; it is in use.
That version cannot be approved.Reload the library and try the latest Draft.

States#

StateWhen it showsWhat to do
No prompts yetThe library holds no version for this taskPress New prompt
No AI drafts yetNo draft has been made with Leaglety AIMake a draft from Leaglety AI
Nothing yetNo AI action has been recordedNothing; the log fills as the AI is used
New prompt and Revise absentThe person cannot propose a versionAsk the service team's Admin or Counsel
API configuration absentThe person is not a Leaglety operatorNothing; it is operator-only
A company person opens the addressThe person is at a company, not the service teamUse Settings → AI usage instead