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 teamService teamLeaglety's lawyers, who take requests from the company. The action is Ask the service team.Read more opens SettingsSettingsThe section for the company profile, people and roles, approvals, reminders, AI, backups and your account.Read more → AI and promptsAI and promptsThe settings screen where an Admin writes and approves the instructions Leaglety AI follows.Read more. A company's people do not: Leaglety sends a company person to Settings → AI usageAI usageThe screen that shows what Leaglety AI has cost the company this month, by person and model.Read more instead.
- The service team's AdminAdminThe role that can do everything in its organisation, from its people and settings to every record, except read a POSH complaint.Read more or CounselCounselA lawyer role, at the company or on the legal desk, that works on obligations, contracts, matters, notices and drafts.Read more, or a person with the prompt editor grant, may propose a version.
- Only a Leaglety operator approves a version. A proposed version stays a DraftDraftA document written in the product, built from sections and clauses, and sent for approval before it is final.Read more, 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, VersionVersionOne saved state of a document, kept in order so a person can see what changed.Read more, OwnerOwnerThe person responsible for an obligation or a matter. A record with no owner says Unassigned.Read more, 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#
- 01On PromptPromptAn instruction an Admin writes for Leaglety AI, which Leaglety AI follows only once approved.Read more library, press New prompt, or Revise on a row.
- 02Fill in the form. A new prompt takes Prompt ID, Name, Task and TemplateTemplateA starting document for a contract, with sections and clauses a person fills in.Read more. A revision takes Name and Template.
- 03Write the template with the facts slot: Use
{{facts}}where the facts go. - 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 ApproveApproveThe action that moves an approval step forward, by the person or role that step names.Read more 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#
| Message | What 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#
| State | When it shows | What to do |
|---|---|---|
| No prompts yet | The library holds no version for this task | Press New prompt |
| No AI drafts yet | No draft has been made with Leaglety AI | Make a draft from Leaglety AI |
| Nothing yet | No AI action has been recorded | Nothing; the log fills as the AI is used |
| New prompt and Revise absent | The person cannot propose a version | Ask the service team's Admin or Counsel |
| API configuration absent | The person is not a Leaglety operator | Nothing; it is operator-only |
| A company person opens the address | The person is at a company, not the service team | Use Settings → AI usage instead |