Teach the AI assistant

Guide Overview

Target audience: System administrators and AI administrators who decide what the assistant knows and how it behaves.
Reading time: ~15 minutes.
Outcome: A document is indexed and Ready for the assistant, you know who can find it and how close a passage must be, a website is set to be crawled, you know where the skills live and how to review them, and you can adjust the assistant’s mission and tools.

The assistant answers from the data a person may read. You extend what it can draw on with knowledge sources (documents, pages, recordings and typed text), keep websites up to date with website crawls, and shape how it works through skills and the assistant’s own settings.

Before You Start

You need

Why

The Settings access right (system administrator)

Knowledge Sources is a system administrator menu. A system administrator can do everything on this page.

The AI Administrator right

Opens Assistants, AI Skills and AI Skill Packs under Configuration. An AI administrator changes an assistant and creates and edits skills and skill packs. Creating or deleting an assistant stays with a system administrator.

An embedding connection

Indexing turns the text into searchable passages through the Embedding Vendor of AI ‣ Configuration ‣ Settings. The ready-made Viindoo connection covers this (see Connect AI vendors and choose data location).

Add a Knowledge Source

A knowledge source is a document, page or recording the assistant may use to answer.

  1. Go to AI ‣ Configuration ‣ Knowledge Sources. Each line shows the Source Name, the Source Type, the Status, a Reason when a source is paused or stopped, and the Company on a database with several companies.

    The list of knowledge sources with their type and status, two sources ready
  2. Click New and type the Source Name.

  3. Choose the Source Type: PDF File, Web Page, Typed Text, Image (OCR), PDF (OCR) or Audio (Transcript). With Viindoo Brain installed, Brain Page and Brain Space are also offered. Then give the content: the file, the web page address or the Text Content.

  4. Choose Text Cleaning: None (keep original) or Basic (clean). Set Restricted to User Groups when only some people may see answers drawn from the source.

  5. Click Save. The status bar starts at Draft. A scheduled job named AI: Process Pending Sources picks the source up in the background (it runs every five minutes), moves it to Processing and then to Ready. Chunk Count shows how many passages were indexed.

    A knowledge source in the Ready state with its status bar and one indexed passage
  6. When a source stops at Error, or pauses, read the reason at the top of the form. It is written in your own language, and the service’s own words are kept apart under it. Fix the cause, for example a corrected address or a readable file. Then open the assistant in AI ‣ Configuration ‣ Assistants, go to the Knowledge Sources tab and click Retry failed sources.

Note

When you change the embedding model (see Set How Close a Passage Must Be), every source is indexed again with the new model. A notice Being indexed again with the company’s current embedding model with a progress bar shows at the top of each source, and the list column Indexed Again (%) shows how far each source is.

Choose Who Can Find a Knowledge Source

The assistant searches your knowledge by meaning with the tool Search the company’s sources. It is a read-only tool that never asks first. It searches every knowledge source the person who asks may read, of any type, and gives back the closest passage of each record. It can also narrow the search to one kind of record, for example the pages of one space.

A source a person may read is searchable by every assistant that answers that person, including a source you attached to one assistant in its Knowledge Sources tab. Attaching a source does not make it private to that assistant. To keep a source private, set Restricted to User Groups on the source: only the members of those groups find it, whichever assistant they ask.

The tool is a record of AI ‣ Configuration ‣ Tools like every other tool (see Advanced configuration). A system administrator can read its weight in the first request and switch it off; do so only if you want the assistants to stop searching your knowledge by meaning.

Set How Close a Passage Must Be

Two settings decide which passages of your knowledge may answer a question. The Relevance Floor, set on the embedding model, is the score below which a passage means nothing; every knowledge search ignores such passages, whichever assistant asks (see Relevance Floor of an Embedding Model). A ready-made embedding model carries a floor of about 0.10, so questions typed without diacritics, short questions and questions in another language than the document still find their answer, and an unrelated question may bring back a few passages. The Minimum Relevance, set on each assistant, says how much more relevant than that floor a passage must be.

Minimum Relevance is counted above the floor: 0 keeps every passage above the floor, and 1 keeps only identical text. A value below 0 or above 1 is refused when you save. Searching by words is never limited by it.

  1. Go to AI ‣ Configuration ‣ Assistants and open the assistant.

  2. In the Behaviour section, set Minimum Relevance and click Save. Point at the question mark beside the field to read its help.

    The assistant form with Minimum Relevance and its help

Because each person may read different documents, two people can legitimately get different answers, or one a grounded answer and the other a refusal. That is expected.

Warning

Changing the embedding model in AI ‣ Configuration ‣ Settings, section Default Models, line Knowledge Search, starts the indexing of all your knowledge again at once, which the vendor may charge for. From that moment, questions stop going to the trial connection and go to the model you chose.

Keep a Website Up to Date

  1. Go to AI ‣ Operations ‣ Website Crawls and click New.

  2. Type a Crawl Name and the URL Patterns, one per line. A * matches any text, so one pattern covers a whole site; a plain address is fetched alone.

  3. Set Re-crawl Every (days) (7 by default), and Restricted to User Groups if needed.

  4. Click Save. Last Crawl and Last Crawl Status fill in once a crawl has run, and the pages found are listed under Crawled Pages.

    A website crawl rule with its URL pattern and re-crawl schedule
  5. To stop a rule without deleting it, open it and use Action ‣ Archive (the gear beside the rule name). An archived rule is no longer crawled; the filter Archived lists it and Action ‣ Unarchive restores it.

The web crawler itself is set in AI ‣ Configuration ‣ Settings, section Knowledge: Firecrawl URL (leave it empty for the default) and Firecrawl API Key.

Note

Every internal user can open Website Crawls and read the rules. A system administrator or a user with the AI Content Manager right can edit them.

See and Manage Skills

A skill is a set of instructions the assistant loads when a task calls for it, such as a marketing brief or a month-end checklist. Skills are data: you read them, edit them and add your own, and no code is involved. Each assistant sees the short description of every skill and loads the full instructions of the one it applies. Skills come in packs.

  1. Go to AI ‣ Configuration ‣ AI Skill Packs. Each pack shows its Technical Code, Pack Name, Version and Vendor. The ready-made packs are Daily Work, Knowledge Base, Operating Layer and Website.

    The list of skill packs with their code, name, version and vendor
  2. Open a pack to see the skills it carries under Skills.

    A skill pack with the skills it carries
  3. Go to AI ‣ Configuration ‣ AI Skills to search every skill, with its Code, Skill Name, Version, Skill Pack and Company. Use the filters Global, Archived, Pack and Needs Review and the grouping by pack to narrow the list.

    The list of AI skills with their code, name, version and skill pack
  4. Open a skill. When To Use It (up to 1,024 characters) is what every assistant reads to decide whether to load the skill, so keep it short and specific. The tab Instructions holds the steps and the tools to use, read whole each time the skill is loaded. Always-On Rules (up to 800 characters, usually empty) are sent with every request. Tools lists the tools and the external tool servers the skill carries, and Files holds its files. A Global Skill is offered to every company; clear it and set a Company to keep a skill to one company.

    The skill Compose Content From Blocks with its description in When To Use It and its Instructions tab The Tools tab of the skill Compose Content From Blocks with the tools it carries
  5. Click New to write a skill of your own: give it a Skill Name, a Code and a clear When To Use It, write the steps in Instructions, add the tools they use in Tools, and save. A skill with no tool shows No tool yet: add the tools the instructions use.

  6. A skill whose instructions name a tool that does not exist shows the alert Needs Review with Suggested Tools, and the filter Needs Review lists such skills, until you rewrite its instructions. After a module update changed parts you had changed, the alert offers Keep My Version.

  7. To retire a skill without deleting it, use Action ‣ Archive; the Archived filter lists it and Action ‣ Unarchive restores it.

The skills that come with Viindoo AI include:

Skill

What it teaches the assistant

The Daily Work skills

Procedures of the day: brief me on my work, hand off and follow up, plan work, triage a request, prepare a period close, write to a customer or partner. They name only tools that exist.

Compose Content From Blocks

Write formatted content, such as a mass mailing or a post, from the blocks of the editor where it will sit, never from hand-written styles.

Website Page Authoring and Website Blog Authoring

Write a page, or a blog post, from the blocks and options of the installed theme. A new page always starts unpublished.

Forum Questions and Answers

The working order and the rules of a forum, for a task that asks and answers on it.

Social Post

Create and post one social post with one approval.

Financial Reports

Read a financial report for whole periods, compare two periods, and always say the period, the companies and the currency.

The skills Financial Reports and Social Post belong to no pack. They come with the apps that provide them.

Set Up an Assistant

  1. Go to AI ‣ Configuration ‣ Assistants and open the assistant.

    The form of the Viindoo AI Assistant with its role, mission, behaviour and run settings
  2. Write what it is for in Role and Mission, in a sentence or two. Other assistants read it to decide whether to hand work to this one. The tab System Prompt further down the form says how it behaves.

  3. Pick the Preferred Model Line or Preferred AI Model, the Reasoning Level, and untick Collect User Feedback if people should not see the thumbs up, thumbs down and flag buttons under its answers.

  4. In Behaviour, tick Answer Only From Attached Sources for an assistant that must not mix in its general knowledge, then attach sources on the Knowledge Sources tab. Passages Per Answer and Minimum Relevance tune how many passages are pulled in and how closely related they must be (see Set How Close a Passage Must Be). Per-Question Amount (USD) is the cost above which a question this assistant answers is marked for review; the question is never stopped or shortened, and 0 uses the amount of the company in Settings.

  5. Open the tab Tools to choose what the assistant can do. Preferred Tools are described to the model from its first call; left empty, every tool the person may run can be found. Load Tool Details On Demand decides how the rest are presented: Automatic (the default) describes in full the tools that fit the window of the model and lists the others by name, Always lists every tool by name, and Never describes every tool in full, which a model with a small window cannot read. Tool Prompt Cost (tokens) shows what the tools of the assistant weigh. Each person’s own access rights decide which tools are offered in every case.

    The Tools tab of an assistant with Preferred Tools, External Tool Servers, Load Tool Details On Demand and Tool Prompt Cost
  6. Use the tabs Knowledge Sources and Skills for the rest, then click Save. The Traces button lists the runs of this assistant.

Note

Leave Temperature and Max Tokens at their defaults unless your AI vendor’s documentation tells you otherwise.

Success Checkpoint

  • A typed-text source shows Ready and a Chunk Count above zero.

  • Minimum Relevance holds a value from 0 to 1 on the assistant you tuned.

  • The website crawl rule is saved, active, and shows its schedule.

  • You can find the skill and the pack you expect, and the assistant keeps its new mission after you save.

Common Problems

Problem

What to do

A source stays in Draft for a few minutes.

The scheduled job runs every five minutes. Wait for the next run.

A source stops at Error, or shows a reason.

Read the reason at the top of the source, fix the cause, then click Retry failed sources on the assistant.

Questions your documents cover find no source.

Lower Minimum Relevance to 0 (see Set How Close a Passage Must Be). Check that the person asking may read the source: a source restricted to user groups stays hidden from everyone else.

Every source shows Being indexed again.

The embedding model was changed. Wait until the progress of each source reaches 100%.

You cannot see Knowledge Sources in the menu.

It is reserved for system administrators.

You cannot create an assistant.

Only a system administrator creates or deletes an assistant. An AI Administrator can change one.

Next Steps