AI assistant

images/download/attachments/113356915/image2023-8-16_19-21-42.png images/download/attachments/113356915/image2023-8-16_19-22-3.png

The AI virtual assistant that can help users with various aspects of CAM workflow. The AI assistant is based on ChatGPT technologies.

The AI wizard is called Éncy (pronounced like [ˈɛnsɪ]) and it greets the user with the following message: “Hi, I’m Éncy, your SprutCAM X AI assistant. Ask away, and I’ll be happy to help!”

The AI assistant is powered by the OpenAI API, which uses deep learning models to understand and generate natural language. Engineers can communicate with the AI assistant using text commands in multiple languages, and the AI assistant responds accordingly.

To create the requests, CNC-engineers can use various macros that are automatically adapted to the context of the task being performed. Use “Ctrl + Space” key combination inside the prompt edit box to see possible macros values.

You can also perform some actions on blocks of code that the assistant displays. The list of actions is opened by clicking the button with three dots in the upper right corner of the code block.

images/download/attachments/113356915/image2023-8-21_11-33-9.png

The list of available actions and macros always depends on the context from which each specific chat tab was opened. For example, if the chat was opened from the G-code generation window, then the !!{GCodeWindow.SelectedText}!! element will be available in the macro list. This means that when sending a request, the selected text from the window will be substituted for this macro.

Éncy can perform the following tasks:

  • Explain the G-code generated as a result of post-processing. You can ask the AI assistant to clarify any line of code or command, and it will give you a detailed explanation of what it does and why it is necessary. Click “AI assistant” button inside G-code generation window with selected piece of text.

  • Generate a G-code using a text description of the operations. You can simply type what you want to do, such as “drill a 10 mm diameter hole at point (100, 25)” and the AI wizard will generate the corresponding G-code for you. In the window of the Job assignment of the G-code based operation, you need to click on the AI assistant button. In this case, elements will appear in the list of code block actions that allow you to quickly apply the code block generated by the assistant to the operation, calculate the operation and see the result immediately.

  • Write code in Python to create .dxf or .stl files. You can use the AI assistant to create 2D or 3D models of your parts using Python code. The AI assistant guides you through the process and shows you the results in real time. Just ask it to generate a python code which will make a dxf file the form you need, then click “Run as python script” inside actions list of generated code bock. If the script is correct, then the resulting file will be inside My documents folder, “$(ApplicationName)\AIActions” subfolder. You can import it standard way. If the script is incorrect, just copy the error message and ask the assistant to resolve the problem.

  • Provide reference information for the industrial robot or CNC-machine when creating kinematic schemes in MachineMaker, a zero code application for building digital twins from SprutCAM Tech. You can ask the AI assistant for any information about the robot or CNC-machine you are using, such as its dimensions, specifications, capabilities, limitations, etc.

  • Answer any user's question, even not related to the operation of the software. You can chat with the AI assistant about anything you want, such as CNC tips and tricks, industry news, best practices, etc. The AI assistant will try to answer your questions as best it can, or direct you to relevant resources if it doesn’t know the answer.

Access to OpenAI services may be limited, so we recommend that you enable the "Use my API key" option on the AI Settings tab. In this case, access to the service will be determined only by the capabilities of your OpenAI account.