**Source URL:** https://platform.veevavault.help/en/gr/1457458/

# Configuring Help Agent & AI Notebooks



**Important**: The functionality described on this page is only available to customers who have Vault AI enabled on their Vault.

The Help Agent allows the _AI_ tab to answer process-oriented questions related to your company-specific procedures and Vault features. The _AI_ tab generates a response by reading your company's procedural documentation (SOPs, work instructions, policies, training, and so on) in an AI notebook to answer organization specific questions and product documentation in Vault Help to answer Vault feature questions.

The Help Agent and AI notebooks work together to allow the _AI_ tab to reference your company-specific documents based on user questions. AI notebooks can only access company-specific documents uploaded to a Quality Vault with QualityDocs enabled. There are two types of AI notebooks the Help Agent can access: [local][1] and [remote][2].

The Help Agent has access to Vault Help product documentation by default. If AI notebooks are not activated in your Vault, the Help Agent can still use Vault Help to answer questions about Vault features. You cannot configure the Help Agent to stop using Vault Help or to use AI notebooks independent of Vault Help.

**Note**: Only standard (`__v`) AI notebooks are available in 26R3. You cannot create custom AI notebooks. In addition, only the Help Agent can access AI notebooks. You cannot use other agents, such as the Query Agent or Super Agent, to access AI notebooks.

## About Local and Remote AI Notebooks

The Help Agent can access local and remote AI notebooks to help the _AI_ tab answer questions about your company's processes and procedures. The type of AI notebook your Vault uses depends on your application. See below for more details.

### Local AI Notebook {#local-ai-notebook}

A local AI notebook is any AI notebook available in a Quality Vault. Local AI notebooks must contain all your company-specific documents. For example, a RIM AI notebook on a Quality Vault can contain Regulatory SOPs and Health Authority documents. It should not contain documents from other applications, such as Clinical Operations or Medical.

### Remote AI Notebook {#remote-ai-notebook}

A remote AI notebook is any AI notebook available in a non-Quality Vault. You must associate a remote AI notebook with a Vault to Vault Connection between the Quality and non-Quality Vault. The Vault to Vault connection allows the remote AI notebook to access any documents stored in the corresponding local AI notebook in the Quality Vault. The remote AI notebook itself cannot contain your company-specific documents.

For example, a Clinical Operations Vault contains a remote AI notebook and a corresponding local AI notebook exists in a Quality Vault. However, no connection exists between the two Vaults. If a Clinical Operations user asks the _AI_ tab a question about clinical trial processes, the _AI_ tab cannot reference any documents in the local AI notebook and cannot provide an answer.

If the Vault to Vault connection or the source local AI notebook is invalid at runtime, Vault inactivates the remote AI notebook and sends a notification to the Vault Owner.

## AI Notebook Configuration Overview

The sections below provide a generic overview of configuring local and remote AI notebooks. See the sections in this article for detailed information.

### Local AI Notebook Configuration Overview

Follow the steps below to configure a local AI notebook:

1. Enable Vault AI and the _AI_ tab in your Vault.  
2. [Activate][3] the local AI Notebook in your Quality Vault.  
3. Upload your company-specific documents to your Quality Vault Library.  
4. Load your company-specific documents to a local AI Notebook using the [_Visual Hierarchy_][9] object or the [_AI Notebook Documents_][10] object.  
5. Use the _AI Notebook_ object's Sharing Settings to assign users to your AI notebooks.  
6. Optional: Grant your _AI_ tab users [permission to access][8] your company-specific documents.
7. [Activate][5] the Help Agent on the local AI notebook's Vault 24 hours after loading your documents. This gives Vault time to finish an indexing process that allows the Help Agent to search and reference your documents.

### Remote AI Notebook Configuration Overview

Follow the steps below to configure a remote AI notebook:

1. Enable Vault AI and the _AI_ tab in your Vault. Ensure Vault AI and the _AI_ tab are enabled in both the local AI notebook's Vault and remote AI notebook's Vault.  
2. Establish a Vault to Vault connection between your application Vault and the Quality Vault.  
3. [Activate][3] and [connect][4] the remote AI notebook to the Vault to Vault connection.  
4. Upload your company-specific documents to your Quality Vault Library.  
5. Optional: Grant your _AI_ tab users [permission to access][8] your company-specific documentation.  
6. Load your company-specific documents to a local AI Notebook using the [_Visual Hierarchy_][9] object or the [_AI Notebook Documents_][10] object. 
7. Use the _AI Notebook_ object's Sharing Settings to assign users to your AI notebooks.  
8. [Activate][5] the Help Agent on the local and remote AI notebook's Vault 24 hours after loading your documents. This gives Vault time to finish an indexing process that allows the Help Agent to search and reference your documents.

### Standard AI Notebooks

The below standard local and remote AI notebooks are available per application. All local AI notebooks are only available in Quality Vaults. The corresponding remote AI notebooks reside in their respective application Vaults.

A detailed _Description_ of each AI notebook is available on the configuration page in Vault (**Admin** > **Configuration** > **AI Notebooks** > **[AI Notebook]** > **Description**). The Help Agent uses the _Description_ to determine which AI notebook to use based on the user question.

| Local AI Notebook | Description | Corresponding Remote Vault Availability |
| :---- | :---- | :---- |
| Clinical Operations | Allows the Help Agent to answer questions around clinical operations, such as clinical trial executions, site monitoring, and protocol management. | Clinical Operations
Study Training |
| Commercial | Allows the Help Agent to answer questions around commercial content processes. | Commercial |
| Corporate Functions | Allows the Help Agent to answer questions around corporate, commercial, or business operations. | Platform
Clinical Operation
Commercial
LIMS
Medical
Regualtory
Study Training
Safety |
| Medical | Allows the Help Agent to answer questions around MedComms, MedInquiry, and Publications. | Medical |
| Quality | Allows the Help Agent to answer questions related to QMS, such as document control, governance, and data reliability or standards. | LIMS |
| Regulatory | Allows the Help Agent to answer questions related to regulatory information management, such as regulatory strategy, submissions, and Health Authority interactions.  | Regulatory |
| Safety | Allows the Help Agent to answer questions related to pharmacovigilance systems and processes, such as drug or device safety assessment, surveillance, reporting, or risk management. | Safety |

## How to Activate an AI Notebook {#activate-ai-notebook}

To activate a local or remote AI notebook: 

1. Navigate to **Admin** > **Configuration** > **AI Notebooks**.  
2. Locate and click the AI notebook you want to activate.  
3. Click **Actions** > **Edit**.  
4. Change the **Status** to **Active**.  
5. Click **Continue** in the _AI Notebook Activation_ dialog.  
6. Click **Save**.

The AI notebook is now active. If you set the **Status** to **Inactive**, the documents are removed from the AI notebook within 24 hours.

Ensure [user permissions][8] are configured to allow users to view AI notebook documents.

## Adding Documents to a Local AI Notebook

There are two methods to add documents to a local AI Notebook: Process Navigator association via the _Visual Hierarchy_ object or the _AI Notebook Documents_ object. Documents added using the _Visual Hierarchy_ object are also automatically added to the _AI Notebook Documents_ object as new records.

You can only use one method to add documents to a local AI notebook. If you attempt to use both, documents added via the Process Navigator association take precedence and replace any documents added using the _AI Notebook Documents_ object. If you remove the Process Navigator association by deleting the corresponding _Visual Hierarchy_ records, ensure the documents from the Process Navigator in the _AI Notebook Documents_ object reflect the documents you want included in the local AI notebook.

### How to Add Documents Using Visual Hierarchies {#load-docs-with-visual-hierarchies}

The _Visual Hierarchy_ object allows you to associate a local AI notebook to a visual hierarchy's parent process in the Process Navigator. This association allows you to include manually associated and automatically associated documents in the local AI notebook. Once associated, all documents in the visual hierarchy, including child processes, are added to the AI notebook.

Using the visual hierarchy association allows the Process Navigator to manage documents in your local AI notebooks without manual interference. Any Document Association Criteria rules you create apply to the local AI notebook as well. For example, if a document is removed from the visual hierarchy due to a Document Association Criteria rule, it is also removed from the local AI notebook. 

Ensure any documents loaded to local AI notebooks through the visual hierarchy association are in steady state.

To add documents to a local AI notebook using a visual hierarchy in the Process Navigator:

1. Ensure a visual hierarchy exists in the Process Navigator with documents you want the Help Agent to reference in a local AI notebook.  
2. Add the _AI Notebook_ field to the _Visual Hierarchy_ object layout and activate the field.  
3. Navigate to **Business Admin** > **Visual Hierarchy**.  
4. Select the *Visual Hierarchy* record that corresponds to a visual hierarchy's parent process within the Process Navigator.  
5. Select an **AI Notebook**.  
6. Click **Save**.

The AI notebook is now associated with the visual hierarchy in the Process Navigator. Allow up to 24 hours before the Help Agent can begin referencing the documents.

**Note**: You cannot associate an AI notebook to an individual child process in the visual hierarchy.

### How to Add Documents Using the AI Notebook Documents Object {#load-docs-with-ai-notebook-documents-object}

The _AI Notebook Documents_ object contains records for each document in a local AI notebook. Directly creating records in the object allows you to manually control updates to documents in local AI notebooks, such as updating the document's version or removing documents.

To add documents to a local AI notebook using the _AI Notebook Documents_ object:

1. Navigate to **Business Admin** > **AI Notebook Documents**.  
2. Click **Create**.  
3. Select a **Document**. This drop-down displays all documents in your Quality Vault Library.  
4. Select a document **Version**.  
5. Select a **Local** **Notebook**.  
6. Click **Save**.

A new _AI Notebook Documents_ record is now created and the selected document is now available in the selected local AI notebook. The Help Agent can reference the latest version of the document in the AI notebook after a daily index process is complete.

## Enable & Check the Remote AI Notebook Connection {#enable-and-check-remote-ai-notebook-connection}

The Help Agent cannot reference a remote AI notebook unless it is associated with a Vault to Vault Connection between the non-Quality Vault and Quality Vault. You must ensure the connection is established and active in order for the remote AI notebook to access the documentation in the corresponding local AI notebook.

To enable a remote AI notebook connection:

1. Navigate to **Admin** > **Configuration** > **AI Notebooks** > **[Remote AI Notebook]**.  
2. Select **Actions** > **Edit**.  
3. Select the appropriate active Vault to Vault connection from the **Source Connection** drop-down.  
4. Click **Save**.

The remote AI notebook is now connected to the local AI notebook. Click the **Check Connection** button next to the _Source Connection_ field to ensure the remote and local AI notebooks are connected. A success message displays if there are no issues. If the source Vault to Vault connection is not active, the source Quality Vault is down for maintenance, or the local AI notebook is not active, an error message is returned.

**Note**: You can only activate a remote AI notebook if the corresponding Vault to Vault connection is active or pending. In addition, you can only select active Vault to Vault connections from the **Source Connection** drop-down.

## How to Activate the Help Agent {#activate-help-agent}

Follow the steps below to activate the Help Agent. If you are using the Help Agent with AI notebooks, complete the sections above before activating the Help Agent.

1. Navigate to **Admin** > **Configuration** > **Agents** > **Help Agent**.  
2. Click **Actions** > **Edit**.  
3. Change the **Status** to **Active**.  
4. Click **Save**.

The Help Agent can now answer Vault feature questions through the *AI* tab. If you configured and enabled AI notebooks, it can also answer company-specific questions.

## Best Practices

Use the following best practices when configuring the Help Agent and AI notebooks:

* The Help Agent's primary purpose is to allow the _AI_ tab to accurately answer user questions on company-specific procedures and Vault features. The Help Agent is not used for:  
  * Comparing document versions  
  * Locating similar documents or similarities and contradictions between documents  
  * Locating all documents on a specific topic  
* Only add company-specific documents to local AI notebooks that are applicable for your users to view.
* You can use either the _Visual Hierarchy_ object (Process Navigator association) or _AI Notebook Documents_ object to add documents to a given local AI notebook. If you use both methods for the same AI notebook, documents added via the Process Navigator association replace any documents added using the _AI Notebook Documents_ object. If you remove the Process Navigator association by removing the _AI Notebook_ field from the parent _Visual hierarchy_ records, ensure the documents from the Process Navigator in the _AI Notebook Documents_ object reflect the documents you want included in the local AI notebook.

## Limits

The following limits apply to AI notebooks:

* AI notebooks support the following file types: PDF, DOC, DOCX, TXT, PPT.  
* AI notebooks can contain up to 5,000 documents. If exceeded, only the first 5,000 documents are added to the AI notebook and a notification is sent informing you of the documents that didn't succeed.  
* AI notebooks support documents with up to 500 pages.  
* Only latest steady state document versions are supported for Process Navigator associations.
* Images inside customer-specific documents are not supported and will not appear in citations in the _AI_ tab.
* When Vault indexes the latest document version in an AI notebook, only the corresponding rendition is supported. If the rendition is updated after the indexing job, no re-indexing occurs.

## Related Permissions {#related-permissions}

The sections below list the permissions Admins need to configure the Help Agent and AI notebooks and users need to access documents from AI notebooks in the _AI_ tab. In addition to the permissions listed below, Admins also require the process owner permissions to associate AI notebooks to the Process Navigator.

Permissions can be granted through a security profile or user role.

### Admin Permissions {#admin-permissions}

The following permissions control an Admin's ability to configure the Help Agent and AI notebooks. Also, ensure Admins without the _Vault Owner_ role have _Owner_ or _Viewer_ access to the AI notebook through the Sharing Settings (**Business Admin** > **AI Notebooks** > **[AI Notebook]** > **Sharing Settings**). Vault Owners are automatically assigned the _Owner_ role on AI notebooks.

| Permission Label | Controls |
| :---- | :---- |
| Admin: Configuration: AI Notebook: Read, Edit | Controls your ability to view and edit _AI Notebook_ records. |
| Objects: AI Notebook Documents: Read, Create, Edit, Delete | Controls your ability to view, create, edit, and delete _AI Notebook Documents_ records. |
| Agent: Help Agent: Execute | Controls the Help Agents ability to read Vault Help and AI notebooks to provide answers in the _AI_ tab. |

### User Permissions {#user-permissions}

The ability for users to view AI notebook documents through the _AI_ tab is determined by the AI notebook's Sharing Settings. Navigate to **Business Admin** > **AI Notebooks** > **[AI Notebook]** > **Sharing Settings** and grant the appropriate users or groups the *Viewer* role. Complete this process on both the local and remote AI notebook's Vault.

If a user is assigned the _Vault AI User Actions_ permission set, they are automatically granted the below permissions.

**Note**: When the _AI_ tab references company-specific documents in a citation, users can hover over the citation to view a snippet of the content even if they lack permission to view the document. However, an error is returned if they click the direct link to the document. This behavior also applies if the user has an account on the remote AI notebook's Vault but not on the corresponding Quality Vault.

| Permission Label | Controls |
| ----- | ----- |
| Agent: Help Agent: Execute | Controls the Help Agents ability to read Vault Help and AI notebooks to provide answers in the _AI_ tab. |
| Objects: AI Notebook: Read | Controls the user's ability to access documents from AI notebooks via _AI_ tab citations. |

[1]: #local-ai-notebook
[2]: #remote-ai-notebook
[3]: #activate-ai-notebook
[4]: #enable-and-check-remote-ai-notebook-connection
[5]: #activate-help-agent
[6]: #related-permissions
[7]: #admin-permissions
[8]: #user-permissions
[9]: #load-docs-with-visual-hierarchies
[10]: #load-docs-with-ai-notebook-documents-object