Managing Yandex Cloud resources using an AI assistant
This feature is in the Preview stage.
You can use an AI assistant
When performing operations with resources, the AI assistant acts on behalf of the user requesting the operation via the chat. Thus, the scope of available actions depends on the roles assigned to this user account.
Before the operation, the AI assistant shows the plan: actions it will perform and resources it will modify. The AI assistant will apply the changes only after your confirmation.
Yandex Cloud does not use your requests and data from the AI assistant context to train the model.
Creating and deleting resources
In the example below, you will use an AI assistant to create a cloud network, a subnet, and a security group in it. Then you will delete the resources you created.
To use an AI assistant for resource management:
-
In the management console
, select the folder where you are going to run operations on Yandex Cloud resources. -
Click
AI Assistant or Chat with AI. -
In the AI assistant window, use the message input field to describe what you want to do with Yandex Cloud resources:
Note
By default the AI assistant performs operations on resources in the folder you selected in the management console before opening the AI assistant window.
-
Create a cloud network:
-
Send the following message:
Create a new cloud network named my-new-network.The AI assistant will show an action plan and the list of resources it will create. Check the plan.
-
If everything is correct, click Confirm.
The AI assistant will create a cloud network with this name and notify you accordingly:
Alright! You have successfully created a new cloud network named my-new-network. It is ready for use: you can now add subnets and other cloud resources.
-
-
Create a subnet by specifying the name of the new network and the availability zone for the subnet:
-
Send the following message:
In my-new-network, create a subnet in the ru-central1-a availability zone with this address range: 192.168.1.0/24.The AI assistant will show an action plan and the list of resources it will create. Check the plan.
-
If everything is correct, click Confirm.
Result:
Successfully created a new subnet with the provided parameters: Name: subnet-ru-central1-a Network: my-new-network Availability zone: ru-central1-a IP address range: 192.168.1.0/24 The subnet is ready for use.As you can see in the result, the AI assistant has given its own name to the new subnet since you have not specified the name in the request. Therefore, the assistant itself can set some standard values for most parameters of the resources you create.
-
-
Create a security group that allows inbound traffic on TCP ports
80and443as well as any outbound traffic:-
Send the following message:
In my-new-network, create a security group that allows any outgoing traffic as well as incoming traffic on TCP ports 80 and 443.The AI assistant will show an action plan and the list of resources it will create. Check the plan.
-
If everything is correct, click Confirm.
Result:
Successfully created a security group with the following settings: Name: web-security-group Network: my-new-network Rules: ✅ Incoming traffic (Ingress): TCP port 80 (HTTP) from any IP address (0.0.0.0/0) TCP port 443 (HTTPS) from any IP address (0.0.0.0/0) ✅ Outgoing traffic (Egress): All outgoing traffic is allowed (from any IP address and over any protocol) Security group is active and ready to connect to your VMs.
-
When using the AI assistant, you can specify multiple resources in a single request, rather than creating them one by one.
For example:
Create a new cloud network named my-new-network. In this network, create a subnet in the ru-central1-a availability zone and a security group allowing all outgoing traffic as well as incoming traffic on TCP ports 80 and 443.The AI assistant will then define the parameters of the new resoures and the order in which to create them and ask you to confirm the action plan:
Thank you for your request! So, you would like to create three resources: a network, a subnet, and a security group. This is a complex project, so let me outline the plan first. Suggested plan: 1. Create a network named my-new-network. 2. In this network, create a subnet in the ru-central1-a availability zone. I will assign it the standard CIDR block, 10.0.0.0/24. 3. Create a security group in the new network that allows: ● Any outgoing traffic. ● Incoming traffic on TCP ports 80 (HTTP) and 443 (HTTPS) from any address. All resources will be created in the folder with ID b1gt6g8ht345********. Is everything correct? May I proceed with this plan?You can accept the proposed plan or modify some of its parameters, e.g.:
Reduce the number of available subnet addresses to sixteen.The AI assistant will then provide an updated plan:
Excellent point! I will revise the plan. Here is the new plan: 1. Create a network named my-new-network. 2. In this network, create a subnet in the ru-central1-a availability zone. Now I will use the 10.0.0.0/28 CIDR block which contains exactly 16 IP addresses. 3. Create a security group in the new network that allows: ● Any outgoing traffic. ● Incoming traffic on TCP ports 80 (HTTP) and 443 (HTTPS) from any address. I am ready to proceed. Do you confirm?You may ask the assistant to make other changes or approve the plan. After your approval, the assistant will create the resources.
-
Delete all resoures you created by specifying their names or IDs:
-
Send the following message:
Delete subnet-ru-central1-a and web-security-group, then delete _my-new-network_.The AI assistant will show an action plan and the list of resources it is going to delete. Check the plan.
-
If everything is correct, click Confirm.
The AI assistant will delete all the specified resources.
-
-
Managing chats with the AI assistant
To manage multiple segments of a cloud infrastructure at the same time, you can create separate chats with the AI assistant. To manage your chats with the AI assistant:
- In the management console
, select the folder where you are going to manage your resources. - Click
AI Assistant or Chat with AI. - To start a new chat:
- Select a suggested prompt or enter your own query in the input field.
- In an active chat, click
in the top-right corner.
- To view your chat history, click
in the top-right corner of the AI assistant window.- To open a chat, click the line with its name in the chat history.
- To delete a chat, click
in the line with its name in the chat history and confirm the deletion.
Managing context
At the start of a new chat, the context of the current page is enabled by default.
In context mode, the AI assistant automatically retrieves the URL and page type, cloud service name, IDs of resources and other additional info. This allows the assistant to be more effective with existing resources and give recommendations for them. For example, it can explain the purpose and parameters of the resources currently in use.
You can start a conversation with the AI assistant with or without context; after the first message is sent, you cannot turn context on or off.
To disable context:
-
In the management console
, select the folder. -
Click
AI Assistant or Chat with AI. -
In the AI assistant window that opens, click
in the message input field next to the context name.To cancel context deactivation, click
.