Step 4: Intelligent assistant
Claybridge Studio's intelligent assistants offer a powerful and straightforward way to make the most out of our data through an intuitive and accessible chat interface. With this technology, data (often complex and vast) becomes more manageable and useful. These assistants can analyze and extract relevant information from these datasets, significantly easing access to key information. This enables users to obtain precise and quick answers to their queries, streamlining decision-making processes and enhancing productivity.
The ability to conduct guided procedures is especially helpful as it allows users to follow clear and specific instructions to complete tasks or perform complex actions in a simpler, structured manner. Furthermore, integration with external systems provides access to information and functionalities from different sources, expanding the assistant's capabilities to offer comprehensive and updated solutions.
It's time to create our specialized intelligent assistant for museums. We'll consolidate all the previously done work to build and empower our bot.
Create bot
Let's go to the bots section in the side menu and click on the button.


You'll be presented with a window to fill in our bot's information. We'll enter the following details:
| Field | Description | Value |
|---|---|---|
| Title | Name of the intelligent assistant. | ArtiBot |
| Description | Brief description of the bot. Should be entered in each available language. | Allows answering questions about museums. |
| Strategy | Type of strategy the bot will use. Can be router, sequential, or LLM. | LLM |
| Tags | List of tags related to the bot. | |
| Access Mode | Selects the access mode to the bot. Public access or members only. | Public access |
| Members | List of members who will have access to the bot and their associated privilege. |
Once all the necessary information is provided, click on the Create button.


Configure bot
Once our bot is created, a detailed page will appear showcasing all the information and various configuration parameters. This page is divided into different tabs to organize all the available information.


Let's briefly explain the information available on each tab and the parameters we can adjust for our bot:
| Tab | Description |
|---|---|
| Home | We will obtain general information about the bot, such as its title, description, and tags. Configuration options include enabling document management in the chat, or setting a skill for greeting or responding when the bot does not understand the question. We can also configure disambiguation messages, which are useful for showing suggestions to the user when the bot is unsure of the correct answer. Depending on our bot's strategy, we can also configure the interpretation of results and reading comprehension. |
| Skills | Management of all the skills the bot has to operate. Certain parameters can be configured for each assigned skill. |
| LLM | Here you can configure various parameters for using the LLM model, such as specifying the model, temperature, or the maximum number of tokens per response. |
| User Preferences | Default values for temperature, search skills, languages the user can select in the chat, permissions to access the Internet, and enabling OCR use in documents. |
| API Details | Configurations related to accessing your bot. You can activate it, allow access via Microsoft Bot Framework, enable telemetry, or set a limit on the number of messages. |
| Source Code | You can view all the configuration of your bot through its associated Yaml source code. |
| Test Bot | You can test your bot by specifying specific versions, identities, languages, and audiences. Additionally, you can view development information associated with each chat message. This option is very similar to testing a skill. You can get more information here. |
| History | A list of all the different versions the bot has. |
Alright, now that we have a better understanding of the various configuration options available for our bot, let's proceed to configure ours. For our example, we'll make the following parameter changes:
- In the Skills tab, we need to assign our previously created search skill.
- Click on the button and select
museum_search. - With our skill selected, we set the audience to global and establish the confidence at
0.5.
- Click on the button and select


- In the LLM tab, we will specify our service and the desired behavior for our bot:
- Write the behavior we want for our bot; it can be specified only in English.
- Select the service connection as the built-in model in Claybridge Studio,
builtin_llm. - Set the maximum tokens per response to
1024. - We can also enable streaming responses to get results as they are being generated.
Behavior
You are ArtiBot, a helpful museums expert companion. You are helping {{identity.displayName}} with a question or a task.
Your primary role is to assist users by providing information, answering questions, and engaging in conversation.
When you are asked with a question, always use the search tool to find relevant passages to create the answer.
Each source has an id number. Always include the id number for each fact you use in the response. Use square brakets to reference the source, e.g. [1]. Don't combine sources, list each source separately, e.g. [3][4].
You can only issue numerical refences to the URLs. You should never generate URLs or links apart from the ones provided in tool results.


- In the User Preferences tab, we will set the default options that the user will use in the chat:
- Set the temperature to
Balanced. - Select our search skill,
museum_search. - Select the allowed languages,
Spanish. - Leave the allow Internet access option
disabled. - Leave the enable OCR in documents option
disabled.
- Set the temperature to
If we enable the Allow user to change checkbox in User Preferences, the user will be able to edit these values in the chat.


- In the API details tab, check the
Enable botoption. This allows the bot to be available for use.


Finally, click on Save, and now our bot is configured.
Train bot
Training our bot is a crucial and fundamental step. It involves ensuring that it's fully configured with all the parameters, skills, and services we've provided.
Training is essential for the bot to understand how to respond to different queries or commands, apply skills at the right moment, and provide accurate and relevant responses. This stage also allows it to adapt to various situations and scenarios, offering a consistent and useful user experience.
Moreover, training isn't just about learning information; it's also about understanding how to interact with users in a natural and effective manner. This involves adjusting its behavior to provide clear and friendly responses, generating a satisfying and seamless interaction.
To start the training, click on the Train button and wait for the process to complete.
Bravo! ArtiBot 🤖 is now ready to help us with our questions about museums. Let's give it a try! 💬