
ERPAG Change Log / Product Update
We’re excited to introduce new features and improvements related to AI Scripting in this release.
ERPAG is introducing AI Scripting, currently available in beta. This new feature brings the concept commonly known as “vibe coding” directly into ERP customization.
With AI Scripting, users no longer need to be professional software developers to implement custom business logic. Instead of manually building every block, you can describe what the script should do using a text prompt in your preferred language. ERPAG then uses the selected AI model to generate the corresponding Blockly script.
We decided to implement this into our ERPAG software solution, as it was voted the most based on our recent user-poll!

Turn Business Requirements into Scripts
To start using AI Scripting, open the Blockly editor and select AI Scripting.
You can choose between two options:
- New code – generates a new script from your instructions.
- Update existing – analyzes and modifies the script already present in the workspace.
This makes AI Scripting useful both for creating new automations and improving existing ERPAG customizations.

Starting AI Scripting and choosing whether to create new code or update an existing script.
Describe the Required Logic in Plain Language
Inside the AI Scripting window, describe what the script needs to accomplish.
The instructions can be entered in your own language. You can explain the required business process in the same way you would describe it to a developer.
Files can also be attached to provide the AI model with additional context. For example, you can attach a sample JSON file that represents data received from another system.
In the example shown below, the AI is instructed to receive JSON through the API request body. Then, it creates a new Sales Order, searches for the customer by email address, creates the customer when no matching record exists, and uses the current date as the document date.

Providing natural-language instructions and attaching a sample JSON file.
Generated Blockly Script
After processing the prompt, the AI generates a Blockly script based on the available ERPAG blocks and database entities.
The generated code should always be reviewed and tested before it is used in a production environment. This is especially important when the script creates or modifies business documents.

An example of a generated Blockly script that creates a Sales Order from JSON data.
Configure Your Preferred AI Provider
Before AI Scripting can be used, an AI provider must be configured under Administration → API Authorizations → Add New → AI.
ERPAG includes predefined templates for several relevant AI providers, making the setup process easier. Available options can include ChatGPT, Gemini, Claude, DeepSeek, Kimi, ERPAG, and self-hosted AI models.
After selecting the provider, enter the required API endpoint, API key, model, and other settings supported by that provider.
The speed, quality, and cost of code generation depend on the selected AI provider and model. It also depends on the complexity of the requested business logic, the size of the existing script, the amount of attached context and files, and the API pricing policy of the selected provider.
More capable AI models will generally produce better results for complex requirements, although they may also have higher usage costs.

Selecting an AI provider in ERPAG API Authorizations.
New AI JSON Response Block
Alongside AI Scripting, ERPAG introduces a new Blockly block called AI JSON Response.
This block allows an ERPAG script to send instructions and files directly to an AI model and receive a structured JSON response.
The block supports selecting the configured AI provider, writing detailed AI instructions, defining the required response through a JSON Schema, and requiring strict schema compliance. Moreover, you can attach one or more files and process PDF files provided as Base64 data.
For example, a script can send a PDF document to an AI model and request that specific information be extracted according to a predefined schema. Furthermore, a response schema could require fields such as document number, document date, supplier or customer, currency, line items, tax amounts, and total amount.
Because the AI response follows a defined JSON structure, the returned values can be used in subsequent Blockly operations. Therefore, the script can validate data, create ERPAG documents, update records, trigger another process, or return the result through an API response.

The AI JSON Response block with instructions, JSON Schema, and a PDF attachment.
Integration at a Fraction of the Traditional Cost
One of the greatest benefits of AI Scripting is the ability to integrate ERPAG with external systems at a fraction of the traditional development cost.
Possible use cases include importing orders from webshops and marketplaces, receiving data from webhooks, and converting external JSON formats into ERPAG documents. Additionally, you could extract structured information from PDF documents, connect ERPAG with custom applications, process supplier and customer documents, create AI-assisted approval and classification workflows, and update existing ERPAG automations through natural-language instructions.
This allows companies to implement integrations and custom workflows more quickly. They no longer need to develop every transformation and automation manually from the beginning.
Beta Availability
AI Scripting is currently in beta.
Generated scripts may require corrections, additional instructions, or manual adjustments. Results can vary significantly between AI providers and models.
Users should review the generated Blockly blocks, test the script with sample data, and confirm that the correct documents and records are created. They should add validation and error-handling logic where necessary, and test the script in a controlled environment before production use.
As AI models continue to improve, this form of ERP customization is expected to become more reliable and accessible. In addition, it will be capable of handling increasingly complex business processes.
A New Approach to ERP Customization
AI Scripting does not replace ERPAG’s visual Blockly environment. Instead, it makes Blockly more accessible.
The AI translates a business requirement into visual blocks, while the user still has full visibility and control over the generated logic. The resulting script can be reviewed, edited, extended, copied, and tested using the existing ERPAG tools.
This combination of natural-language instructions, visual programming, structured AI responses, and ERPAG’s business blocks represents a new approach to ERP customization. As a result, users can move from an idea to a working automation much faster.



Recent Comments