> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-bradley-turek-pfilter-operators-reference.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Library

export const BetaNote = ({generic = false}) => <Note>
    <strong>Note:</strong>{" "}
    {generic ? "" : "This feature is in beta. "}
    Beta Program participants can enable features{" "}
    <a href="https://embed.domo.com/embed/pages/DQ8Ek">here</a>. To join the
    Beta Program, fill out{" "}
    <a href="https://embed.domo.com/embed/pages/K8GMx">this form</a>. For beta
    questions or feedback, email{" "}
    <a href="mailto:beta.admin@domo.com">beta.admin@domo.com</a>.
  </Note>;

<BetaNote />

## Intro

This article explains how to use the AI Library to create Toolkits, build custom Agents with AI Agent Builder, and configure Agents for use across the Domo platform.

***

## Required Grants

To access the AI Library, the following grants must be enabled for your role:

* **Use AI Services —** Access to features and Apps built using the AI Services Layer.
* **Use AI Chat —** Access to the Domo AI Assistant.
* **Manage Conversational Agents —** View, edit, and delete any Conversational Agent feature in this instance.
* **Manage Toolkits —** View, edit, and delete any Toolkit feature in this instance.

Learn more about [grants](/s/article/360043438973).

## Access the AI Library

The AI Library can be found under the **AI and Machine Learning** navigation section.

<Frame>
  <img alt="AI Library navigation" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_ai_library_nav.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=0e9f262ee053334f31d9d575130682c4" width="967" height="1113" data-path="images/kb/ai_library_ai_library_nav.png" />
</Frame>

To power agents, teams can create AI Toolkits—packaged sets of capabilities that define what an agent can do. Toolkits allow users to combine tools, data, and workflows with the instructions and business context that guide how an agent operates. These reusable packages can include operational logic and domain-specific knowledge, enabling agents to take on roles such as a financial analyst or operations manager.

Toolkits may be created by customers, provided by Domo for common use cases, or connected to external services. Assigning Toolkits to agents allows organizations to control the actions and systems those agents can access. Toolkits can also be exposed externally through MCP, allowing AI assistants such as Gemini or Claude to access those capabilities through the Domo MCP Server.

<Frame>
  <img alt="AI Library overview" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_ai_library.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=27c8b80aa6116ff54604aaa069f405a7" width="1663" height="1242" data-path="images/kb/ai_library_ai_library.png" />
</Frame>

## Create a Toolkit

The following steps walk through creating a Toolkit to support a **User Management** Agent.

1. From the **New Asset** menu, choose **Toolkit**.

   <Frame>
     <img alt="New Asset menu with Toolkit option" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_create_tool.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=2749fd8ca6753c6b13cb404fbd4f44c4" width="1663" height="1244" data-path="images/kb/ai_library_create_tool.png" />
   </Frame>

2. Give the Toolkit a name and description. For this example, enter **User Management** as the name and **Tools to help manage Users** as the description.

   <Frame>
     <img alt="Toolkit name and description" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_create_tool_1.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=3f91451228da17bd58a4f63382ad8cd9" width="1663" height="1240" data-path="images/kb/ai_library_create_tool_1.png" />
   </Frame>

3. Under the **Add Tools** menu, choose between Domo-provided tools, Workflows, or Code Engine functions. Choosing **Domo Tools** or **Workflows** lists all Workflows you have access to.

   <Frame>
     <img alt="Add Tools menu" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_create_tool_2.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=c89574c6ae0f67b7dfab70504d0b89f3" width="1665" height="1245" data-path="images/kb/ai_library_create_tool_2.png" />
   </Frame>

   <Frame>
     <img alt="Workflows tool selection" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_create_tool_4.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=f00e4b6d8d793f51458ab798c371f0f8" width="1662" height="1242" data-path="images/kb/ai_library_create_tool_4.png" />
   </Frame>

4. Choose **Code Engine** and search for the **DOMO User's** package.

   <Frame>
     <img alt="Code Engine package search" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_create_tool_5.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=70792995f955ec0213450a26d2a0ad2f" width="1662" height="1243" data-path="images/kb/ai_library_create_tool_5.png" />
   </Frame>

5. From the DOMO User's package, select the **createUser**, **updateUserRole**, and **fetchUser** functions.

   <Frame>
     <img alt="createUser function" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_create_tool_6.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=3e5b97f06e1a085acc558b5bee388050" width="1663" height="1243" data-path="images/kb/ai_library_create_tool_6.png" />
   </Frame>

   <Frame>
     <img alt="updateUserRole function" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_create_tool_7.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=93eeec2549a2d3a133a4d341e1985b4b" width="1663" height="1245" data-path="images/kb/ai_library_create_tool_7.png" />
   </Frame>

   <Frame>
     <img alt="fetchUser function" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_create_tool_8.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=8b56d6eeef13cc7181a3ca59a01e63eb" width="1665" height="1244" data-path="images/kb/ai_library_create_tool_8.png" />
   </Frame>

6. Save the Toolkit.

   <Frame>
     <img alt="Saved Toolkit" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_create_tool_9.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=8278550cc22172893c5d273e2ae76192" width="1662" height="1244" data-path="images/kb/ai_library_create_tool_9.png" />
   </Frame>

## Manage Toolkits

From the Toolkit menu, you can perform the following actions:

<Frame>
  <img alt="Toolkit actions menu" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_create_tool_10.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=d51dbee0ab112ed462e22299c2c1a3b8" width="1665" height="1242" data-path="images/kb/ai_library_create_tool_10.png" />
</Frame>

* **Edit —** Edit an existing Toolkit.

  <Frame>
    <img alt="Edit Toolkit dialog" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_create_tool_11.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=bb3ebfc42a162ca909428c8081eee9f1" width="732" height="453" data-path="images/kb/ai_library_create_tool_11.png" />
  </Frame>

* **Use in MCP —** View the connection details for this Toolkit.

* **Delete —** Remove this Toolkit from the library.

  <Frame>
    <img alt="Delete Toolkit confirmation" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_delete.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=70c7770a65452749cec5db0f0820ebfb" width="729" height="219" data-path="images/kb/ai_library_delete.png" />
  </Frame>

## Create an Agent

Agents built with these tools can be deployed across multiple experiences, including customizable AI chat interfaces embedded into dashboards, applications, and workflows across the Domo platform.

The following steps walk through creating the **User Management** Agent that uses the Toolkit created above.

1. From the **New Asset** menu, choose **Agent**.

   <Frame>
     <img alt="New Asset menu with Agent option" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_new_agent_1.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=29305d7a11ee63827bff2d8ab349b2a9" width="1665" height="1244" data-path="images/kb/ai_library_new_agent_1.png" />
   </Frame>

2. Give the Agent a name—for this example, **User Management**. On the first screen, choose a model, configure the output structure, provide instructions, and define the prompt the Agent will use.

   <Frame>
     <img alt="Agent model selection" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_new_agent_2.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=f6fce62d0f2644120e08bcc005a47b00" width="1662" height="1243" data-path="images/kb/ai_library_new_agent_2.png" />
   </Frame>

   <Frame>
     <img alt="Agent output structure" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_new_agent_3.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=dc9c38bdbda57cdd45697dbaea606c7d" width="1665" height="1243" data-path="images/kb/ai_library_new_agent_3.png" />
   </Frame>

   <Frame>
     <img alt="Agent instructions and prompt" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_new_agent_4.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=1e2fa59e36252bab556123a72903678b" width="1662" height="1242" data-path="images/kb/ai_library_new_agent_4.png" />
   </Frame>

3. On the second screen, add Toolkits and control the interactions between the user and the tools.

   <Frame>
     <img alt="Agent Toolkit configuration" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_new_agent_5.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=2c598bc6587e8d45c8d96a3448ad4d83" width="1662" height="1243" data-path="images/kb/ai_library_new_agent_5.png" />
   </Frame>

4. On the third screen, add Knowledge or Context to the Agent. Choose **Datasources** (structured data) or **Documents** (unstructured data).

   <Frame>
     <img alt="Agent Knowledge and Context" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_new_agent_6.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=c3bb07d07cebc82d6dc75dfa16368d07" width="1664" height="1243" data-path="images/kb/ai_library_new_agent_6.png" />
   </Frame>

5. On the fourth screen, define the user experience, including welcome messages and other display options.

   <Frame>
     <img alt="Agent user experience settings" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_new_agent_7.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=c9a1fe2a53f7607c7ee042e6ba815cc1" width="1664" height="1244" data-path="images/kb/ai_library_new_agent_7.png" />
   </Frame>

6. On the final screen, define the theme.

   <Frame>
     <img alt="Agent theme settings" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_new_agent_8.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=f8bdb7a9c2754643f42cb10fbd7639eb" width="1663" height="1244" data-path="images/kb/ai_library_new_agent_8.png" />
   </Frame>

   <Frame>
     <img alt="Agent theme preview" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_new_agent_9.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=3be174e07ed3cf3e356f6621946cce90" width="1663" height="1244" data-path="images/kb/ai_library_new_agent_9.png" />
   </Frame>

## Manage Agents

From the Agent menu, you can perform the following actions:

<Frame>
  <img alt="Agent actions menu" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_new_agent_menu.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=0f4e1a40a7b90ee6321857e0965ca3b8" width="1662" height="1244" data-path="images/kb/ai_library_new_agent_menu.png" />
</Frame>

* **View Details —** See an overview of the Agent and the tools it uses.

* **Edit —** Edit an existing Agent.

* **Embed —** Enable embedding for this Agent.

  <Frame>
    <img alt="Agent embed settings" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_agent_embed.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=08b9514db56ea1fa510956be8b0448f2" width="904" height="443" data-path="images/kb/ai_library_agent_embed.png" />
  </Frame>

* **Share —** Share this Agent with others in your company.

  <Frame>
    <img alt="Agent share dialog" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_agent_share.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=9e2756e6bee731392a41beeb26d93096" width="907" height="695" data-path="images/kb/ai_library_agent_share.png" />
  </Frame>

* **Delete —** Remove this Agent from the library.

  <Frame>
    <img alt="Delete Agent confirmation" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_delete.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=70c7770a65452749cec5db0f0820ebfb" width="729" height="219" data-path="images/kb/ai_library_delete.png" />
  </Frame>

## Configure an Agent

Navigate to the **AI Service Layer Settings** under the **AI Service Layer** section in the Admin Settings. Choose your Agent from the **Global Chat Agents** menu.

<Frame>
  <img alt="AI Service Layer chat settings" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_chat_settings.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=e74cec4e0e87e4bea3ad798b10c8a7ff" width="1661" height="1243" data-path="images/kb/ai_library_chat_settings.png" />
</Frame>

## Use an Agent

1. Choose **AI Chat** from the main navigation.

   <Frame>
     <img alt="AI Chat navigation" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_chat_nav.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=2a43286e879f069bffa34491170ca394" width="966" height="1037" data-path="images/kb/ai_library_chat_nav.png" />
   </Frame>

2. Your Agent is now active. In the input field, enter a request. To create a new user, provide a display name, email address, and role. For example:

   *"Create a new user; Joe Schmoe, [bikeb4work@gmail.com](mailto:bikeb4work@gmail.com), Admin"*

   <Frame>
     <img alt="AI Chat new user request" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_new_chat.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=277366f5c7023420f8390ea59925a8a3" width="622" height="828" data-path="images/kb/ai_library_new_chat.png" />
   </Frame>

   <Frame>
     <img alt="AI Chat user created response" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_user_created_1.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=6db86d5436d75e43537ee94ef4528284" width="618" height="822" data-path="images/kb/ai_library_user_created_1.png" />
   </Frame>

3. Navigate to **Admin** > **People** to confirm the new user was provisioned.

   <Frame>
     <img alt="People page showing new user" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_user_created_2.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=a56d8dd9c0971d9d86ef684861828985" width="1663" height="250" data-path="images/kb/ai_library_user_created_2.png" />
   </Frame>

4. To use a second tool in the Toolkit, try updating the user's role. For example:

   *"Change Joe Schmoe's (416551720) role from Admin to Privileged"*

   <Frame>
     <img alt="AI Chat role change response" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/9n8RBrsmI6YtlOAQ/images/kb/ai_library_user_role_change.png?fit=max&auto=format&n=9n8RBrsmI6YtlOAQ&q=85&s=d44e81c7d7db9a79f48c9d4f7e79a1cb" width="1661" height="760" data-path="images/kb/ai_library_user_role_change.png" />
   </Frame>
