Documents and AI

Ask Logley a question

Ask a question in Logley’s chat and the assistant answers from your documents and records, showing what it read to get there. Name what you mean (a company, an invoice number, a place) and open the source before you rely on the answer.

ABOUT 8 MINUTESTUTORIALFOR EVERYONEGETTING STARTED · STEP 6 OF 7

Logley principleAnswers you can check

The assistant answers from what is stored in your Logley installation and shows you what it read, so you can trace an answer back to the page it came from instead of taking it on trust.

Goal

Ask one question about a document you already know, and open the source the answer was built from.

Open the chat

Chat is in the sidebar, directly under Dashboard, and has an address of its own at /chat. Admin, Editor and Viewer can use it, and a custom role needs the Chat permission. Chat is one of the features that stop when the licence has expired.

A new conversation shows a few example questions; clicking one puts it in the box, ready to edit or send.

Ask, and read what comes back

  1. Type the question

    Write it the way you would ask a colleague, in the box at the bottom of the page. Enter sends it; Shift+Enter starts a new line. You can stop an answer while it is being written.

  2. Watch what it looks up

    When the question needs your records, labels appear above the answer while the assistant works (Listing invoices, Reading a supplier profile, Searching document contents), each ticked when it finishes, or crossed if it fails. Hover over one to see what it searched for.

    Two lookups finished, the third still running. The labels belong to the live answer only.
  3. Read the answer and its sources

    The answer comes in the language you asked in. If it was built from the text of your documents, a Sources list follows it: the documents its passages came from, each with its type and page. An answer built from records instead (an invoice list, a supplier profile) has no Sources list; the assistant is instructed to link the record it read.

    • A Show me how card comes with an answer when you ask how to do something one of Logley’s guided walkthroughs covers: uploading a document, exporting invoices or creating an automation rule.
  4. Open a source

    A source opens that document’s page in Logley: the original, and the values read from it. Open it before you act on the answer.

An answer built from records. Each row opens the invoice it came from. No document text was read, so there is no Sources list.
The same chat asked something only the document text answers. The Sources list names the document, its type and the page, and shows the passage the answer stands on.

Narrow the question as you type

Three characters open a list of suggestions when they start a word. Arrow keys move through it, Enter or Tab inserts the highlighted item, and Escape closes it.

The characters that open suggestions in the chat box
TypeThe list offersUse it to
@Company names Logley has read from your recent documents: suppliers, buyers, senders and consigneesPut a company into your question exactly as your documents spell it
!Document types: invoice, cmr, customs, delivery, contract, correspondence, otherSay which kind of document you mean
/CommandsGet a fixed report instead of a written answer
@ and the start of a name: the list keeps the companies whose name begins with what you typed, spelled as your documents spell them.

Commands are answered by counting in your database; the language model does not write them.

/ opens the five commands, each with what it returns.
Chat commands
CommandWhat you get
/summarizeDocuments uploaded in the last seven days: how many of each type, how many need review, and the five latest. With none that week, the latest overall.
/alertsHow many alerts there are and how many are unresolved; the unresolved ones counted by severity, and the five most recent.
/statsDocuments by type and by status; the number of invoices, their gross total per currency, and how many suppliers they come from.
/exportHow many documents match, with buttons to download the list as CSV or Excel. The file is the whole document list — filters narrow the count, not the download.
/briefWhere to generate a negotiation brief for a supplier. It does not write one in the chat.

With /summarize and /export, ! and @ are strict filters: /summarize !invoice covers invoices only, and a company name keeps only the documents whose supplier name contains it. The Summarize, Alerts and Stats buttons above the box fill it with the matching command.

What the assistant can look up

Besides the text of your documents, the assistant can read the records Logley built from them. It only reads; it cannot approve, change or delete anything. It works with your permissions: a lookup your role may not make is never offered to it, so a Viewer’s assistant cannot read rate cards, for example.

Kinds of question the assistant can answer
Ask aboutFor example
What a document says“What does the contract with Karpaty Trans say about late delivery?”
Invoices and payments“Which invoices from Wisła Cargo are overdue?” — by supplier, payment status, issue date or amount
Suppliers and shipments“Which suppliers are flagged at risk?” “Which shipments are still missing a CMR?”
Alerts and reports“What critical alerts are open?” “What did we spend per supplier in the last 90 days?”
The state of things now“What needs attention today?” — documents awaiting review, unpaid and overdue invoices, open alerts

Questions that work

  • Name the thing. A supplier, an invoice number, a route, a place. The assistant finds passages by what they mean and by the exact words they use, and a question that names the invoice is closer to the passage holding it than “what was the total?” would be. It looks records up by those names and numbers, too.
  • Use the spelling your documents use. Pick a company from the @ list rather than typing it from memory: the list holds each name as Logley read it from your recent documents, accents included.
  • Ask for the figure you want. “Total gross per currency” rather than “how much”. Amounts keep the currency on their record, and the assistant is instructed never to add different currencies together. It is given today’s date, so “last month” and “overdue” have a fixed point.
  • Ask one thing at a time. A question gets at most eight lookups; one that bundles several requests can run out before it finishes.
  • Follow up in the same conversation. The assistant reads up to the last ten messages with each question, so “and the due date?” works. Start a new conversation for an unrelated question.

When your documents do not say

The assistant is instructed to state only what its lookups returned, and to say it could not find something rather than invent a number, a reference or a file name. It is also told never to report that an invoice, supplier or document does not exist until a lookup has looked for it. An answer it writes without looking anything up is sent back to it once; if it still does not look, Logley answers the question from a search of your documents instead.

A greeting, or a question about what Logley can do, is answered without any lookup and has no sources.

An instruction is not a guarantee

A language model can still get an answer wrong, which is why it shows its sources. If it cannot find something you expected, rephrase with the distinctive word (the name, the number, the place) and check that the document has finished processing: the assistant can search a document’s text only once it has been indexed, which is the last step. Chat and the Search page both match your exact words as well as their meaning; how search finds the right document explains how.

Your conversations

Each question and answer is saved as you go, and the first question becomes the conversation’s title. Your conversations sit in a rail beside the answer, each with its message count and date; open one to carry on where you left off. Conversations in the header hides and shows that rail (it opens by itself on a wide screen, and remembers what you choose), and the box beside it, or Ctrl+K, filters the list. Each conversation also has an address of its own, so the back button and a refresh return to it. Starting a new one clears the context the assistant reads.

Conversations are private: the list shows only yours, and nobody else can open one by its address. The pencil beside a conversation renames it, and the bin deletes it with all its messages, after a tick to confirm. The labels showing what the assistant looked up belong to the live answer — a reopened conversation shows its answers without them.

Check the answer

Open the file the answer names (or the record it links to), find the value on the page, and compare. Checking an answer against the original document sets out a method you can repeat, and why the first source listed is not necessarily the one that holds the answer.

You have asked your first question

The answer, its sources and the conversation are saved. Open the source of every answer you intend to rely on.

GETTING STARTED · NEXT STEP 7 OF 7Create your first workflow
Continue

Continue exploring

Was this guide useful?

If something was missing or unclear, the contact page says where to write.

Contact