Convert text into code
This page lists guidelines to effectively use Autopilot for converting text into code in Studio.
You can leverage the Generate Code action within a coded automation from the context menu to convert any prompt that you input into code. Autopilot can understand numerous instructions, and can help you:
- Generate any C# code.
- Refactor existing code.
- Generate a UiPath® automation.
Visit Generating code to check the various methods you can use for generating code.
note
To convert text into code, use Studio version 2024.10.1 or higher.
Prompt examples
- "Refactor the method below and make it more performant."
- "Create a method to compare 2 strings for similarity with the input parameters 'string1' and 'string2'."
- "Click on 'Products'".
- "Run Job 'myDemoJob' on Orchestrator."