- 02 Aug 2024
- 2 Minutes to read
- Print
- PDF
Service Automation Copilot for Skills
- Updated on 02 Aug 2024
- 2 Minutes to read
- Print
- PDF
Overview
Generative AI Capability feature revolves around leveraging generative AI, a subset of artificial intelligence, to assist users in creating code for service automation. The AI system generates and displays the corresponding code based on the user input.
Benefits
How does it work?
In order to generate the code, the application must be integrated with AI service provider platform which requires API details of the platform. As of now, the integration is available for CodeLlama platforms.
Note
The AI platform integration is currently performed in the back end. To use CodeLlama, the API and token must be updated from the back end.
Prerequisite
To use the Copilot feature on the Skills page, the copilot option should be enabled first.
Navigate to Application Settings > Copilot page.
On the Copilot page, enable the Copilot option and provide the required details in mandatory fields as shown below.
Figure: Application Settings - Copilot option
Field DescriptionField
Description
Enable Copilot
Switch this toggle to enable the copilot option.
Provider *
Provider field indicates the company or entity that supplies the AI or machine learning service.
Model *
Model field specifies the particular AI or machine learning model being utilized. This can vary significantly depending on the provider and the task at hand.
This is a mandatory step to utilize the Copilot feature. If you miss this step, don't worry! We'll guide you to this page when you visit the Skills page if this option is not enabled beforehand.
Figure: New Skill page
Upon clicking Application Settings hyperlink, you will be guided to Copilot page to enable the option.
View Copilot
To view Copilot feature on Skills page, perform the following steps:
Navigate to Menu > Skills > Manage Skills > New Skill.
Select the desired Language from the drop-down, which is a mandatory field.
Click the “Empower your skills with Copilot” drop-down to see the prompt window with text field and Generate button.
Figure: Copilot prompt window
In the prompt text box, type in the requirement and click Generate to generate the code. The code is displayed in the skill editor block.
Figure: Copilot skill generation
Let’s see Copilot functionality in action!
Note
When you click Review Your Skill button after generating the skill through Copilot, the following validation message is displayed.
Reason: The Review Your Skill option is useful when you write the code yourself or make changes to the Copilot-generated code. It ensures the code is correct by performing a check/validation.
The code generated by Copilot, powered by AI, is typically accurate and may not require further validation.
What happens if the Copilot option is disabled?
The following warning message is displayed if the copilot option is disabled.
Review Your Skill
This option can be used to check and validate the skill entered in the block, ensuring it is correct and error-free.
Upon clicking Review Your Skill button, Copilot Suggestions grid is displayed as follows:
Figure: Copilot Suggestions grid
If you wish to keep the original skill code, select the first option. If you wish to use the copilot recommended code, select the second option.
Once a skill is generated by Copilot and saved, it appears on the Skill List page. To differentiate between normal skills and those generated by Copilot, Copilot skills are highlighted with an icon, as shown below:
Figure: Skills list page with copilot skill