You can interact with chatbot functionality from within the COMSOL Multiphysics® software using the Chatbot window. This functionality enables you to:
Currently, OpenAI is the only supported provider, and the chatbot functionality is only available for Windows® operating systems. In this article, we will cover how to set up and enable the Chatbot window.
To learn about the COMSOL API and how the Chatbot window can interact with it, see the following resources: Overview of the COMSOL API and Using the Chatbot Window in COMSOL Multiphysics®.
A UI screenshot of the Model Builder with the Chatbot window open and the Configure Chatbot Provider dialog open, prompting you to specify a chatbot provider and enter an API key to start using the chatbot. A UI screenshot of the Model Builder with the Chatbot window open and the Configure Chatbot Provider dialog open, prompting you to specify a chatbot provider and enter an API key to start using the chatbot. The COMSOL Multiphysics® UI with the Chatbot window opened (lower right) and the corresponding Configure Chatbot Provider dialog selected. After specifying a chatbot provider and supplying the API key, the chatbot functionality can be used.Note: The Chatbot window is not included by default when you install COMSOL Multiphysics®. You must manually opt to install it before it can be accessed within the software.
Before configuring the settings in the software to use the chatbot functionality, you must first choose to install chatbot components. By default, the components are not selected to be included in your installation of COMSOL Multiphysics®. To include chatbot components, check the Chatbot Components option in the Select products to install window of the Products tab of the COMSOL Installer.
A UI screenshot of the COMSOL Installer with the Products tab selected and the Chatbot Components checkbox highlighted.
A screenshot of the COMSOL Multiphysics® 6.3 Installer with the Products tab open and the Chatbot Components checkbox highlighted.
When you have selected the Chatbot Components checkbox, you can resume the remaining steps to complete your installation of the COMSOL® software. The installation process will vary slightly depending on whether you are updating your currently existing installation of COMSOL Multiphysics® versus upgrading your installation to a new major version. Further details on the distinction between these variants and how to install the software are available here: "COMSOL® Installation Companion".
Note: The chatbot is only available for installation for COMSOL Multiphysics® version 6.3.
Following this step, you will need to obtain an API key from an AI model platform (OpenAI, currently) to enable use of the Chatbot window in the software. This process will vary slightly depending on if you access the AI model from a personal account or a corporate account. See the respective instructions below on how to obtain an API key and configure the Chatbot window.
The following process is valid for scenarios where there is no centralized management of the OpenAI platform in your organization and you are allowed to use your own personal account:
A screenshot of the OpenAI Platform web interface with the menu to create a new project opened.
A screenshot of the OpenAI Platform web interface with the menu to create a new project opened.
A screenshot of the OpenAI Platform web interface with the menu to generate a new secret API key opened.
COMSOL Multiphysics with the Chatbot window opened and the Configure Chatbot Provider dialog opened.
You are now ready to use the Chatbot window in the software.
A UI screenshot of the Model Builder where the Chatbot window is opened and a general conversation has been initiated. A UI screenshot of the Model Builder where the Chatbot window is opened and a general conversation has been initiated.The COMSOL Multiphysics® UI with the Chatbot window configured with an OpenAI API key. You can update or change the API key later from the Preferences window.
The following process is valid for scenarios where there is centralized management of the OpenAI Platform in your organization and you are supposed to be connected to a corporate account. For these cases, most steps should be performed by a manager of the corporate account; the other steps should be taken by a designated COMSOL Multiphysics® user. The process listed below indicates who should perform each step. The first four steps are identical to that of when obtaining a personal account API key but should be performed by the manager.
A screenshot of the OpenAI Platform web interface with the Billing section of the settings opened. A valid payment method is added and the credit balance is recharged.
A screenshot of the OpenAI Platform web interface with the menu to create a new project opened.
A screenshot of the OpenAI Platform web interface with the dialog to invite a new team member to an organization.
A screenshot of the OpenAI Platform web interface with the dialog to add a new team member to a project.
A screenshot of the OpenAI Platform web interface with the menu to generate a new secret API key.
COMSOL Multiphysics with the Chatbot window opened and the Configure Chatbot Provider dialog opened.
You are now ready to use the Chatbot window in the software.
A UI screenshot of the Model Builder where the Chatbot window is opened and a programming conversation has been initiated. A UI screenshot of the Model Builder where the Chatbot window is opened and a programming conversation has been initiated.The COMSOL Multiphysics® UI with the Chatbot window configured and displaying part of a conversation. Here, the generated code can easily be sent to the Java Shell window, where it can be run to define a new Analytic function node in the model tree.
In addition to using the Configure OpenAI API Key dialog within the Chatbot window in COMSOL Multiphysics®, you can optionally also configure use of the chatbot tool by updating your preferences in the software. To do so, under the File menu, select Preferences. From there, select the Chatbot page.
® with the Chatbot category selected." />
The Preferences window with the settings for the Chatbot window opened.
Additional options are available here, such as for enabling or disabling the chatbot tool, entering your API key, designating the AI model that the chatbot tool uses, and more. More information regarding the Preferences settings is available in the documentation.
For more information about the chatbot tool, see the "Using a Chatbot" section of the Reference Manual documentation. You can also refer to the Learning Center entry "Modeling with ChatGPT®" to gain practice in using the chatbot functionality in your modeling process. Note that the procedure outlined in that entry can be done within the Chatbot window instead of needing to have both a session of COMSOL Multiphysics® and a web browser open. You can see examples that demonstrate using this functionality to serve as a helpful modeling assistant through the blog post on "Using the Chatbot Window in COMSOL Multiphysics®".
ChatGPT is a registered trademark of OpenAI, Inc.
Java is a registered trademark of Oracle and/or its affiliates.
Microsoft and Windows are trademarks of the Microsoft group of companies.
Envoyer des commentaires sur cette page ou contacter le support ici.