|
<< Click to Display Table of Contents >> Raynet One Data Hub > 2026.2 > Administration and User Guide > Tasks > Creating or Editing Tasks > Configuration Generating Scripts with AI |
Raynet One Data Hub includes an AI-driven script generation feature for tasks that require custom scripts. Instead of writing a script manually, you can describe the desired script behavior in plain language and let the AI assistant generate the script for you. The generated script is inserted directly into the script text field, where you can review and modify it as needed.
|
Note: The AI functionality must be configured before use. Follow the step-by-step instructions in the Enabling AI Functionality section. |
The Generate with AI button is available for the following task types:
•PowerShell
•Python
•SQL
•MariaDB
To generate a script using AI, follow these steps:
1.Open or create a task of a supported type (PowerShell, Python, SQL, or MariaDB).
2.Navigate to the Configuration tab.
3.Locate the script text field. Below the script text field, click the Generate with AI button.
4.A chat window opens. Enter a description of what you want the script to accomplish. Be as specific as possible to get accurate results.
5.The AI assistant processes your request and generates the appropriate script.
6.Once the script has been generated successfully, it is automatically inserted into the script text field.
7.Review the generated script. You can edit it directly in the text field to adjust it to your specific requirements.
8.If the generated script does not meet your expectations, you can continue the conversation in the chat window to refine it, or close the chat and start over.
|
Tip: Provide clear and detailed descriptions of the desired script behavior. For example, instead of asking for "a PowerShell script", describe the specific data you want to collect, the target system, and the expected output format. The more context you provide, the more accurate the generated script will be. |
The AI assistant utilizes OpenAI's Large Language Models (LLMs) to analyze your natural language description and generate a script in the appropriate language for the selected task type. Raynet One Data Hub interacts with the OpenAI API to process your request. Token usage is typically minimal, resulting in low costs. You can monitor your exact usage and expenses via your OpenAI account.
When generating scripts with the AI assistant:
•Only your natural language description and relevant metadata are sent to OpenAI.
•No actual database records or collected asset data are transmitted.
•The generated script is processed and returned directly, without storing conversation history on external servers.
This ensures that your environment's sensitive data remains protected while you take advantage of AI-powered script creation.
For information on configuring the AI functionality, see Enabling AI Functionality.