See how generative AI writes process automation scripts
Posted: Sun Dec 22, 2024 10:30 am
n this example, we put on our pizza chef hat and use scripts to calculate wait times for online pizza orders.
In our data table, we labeled some ingredients as "true" to indicate that they increase the total preparation time. Each "true" ingredient takes three minutes longer to prepare. To transform these "true" values into wait time for a customer, we use a script.
But instead of manually coding the PHP script, we're going to ask ProcessMaker AI Assistant to prepare it for us. All we have to do is describe what we're looking for...
"Count how many fields in the data table are equal to true, and multiply that count by 3. Return the value as WaitTime and return the count as AddedIngredients."
...and see how ProcessMaker's AI assistant magically transforms our short description into a working script.
Our AI-generated PHP script runs in the background. When the customer places their order, it automatically calculates the selected ingredients to present an estimated preparation time.
In the order window, they'll see that the four toppings they selected - pepperoni, sausage, bacon and green peppers - require a twelve-minute wait.
Generative AI conversation tools help prepare a poland business email list summary of prepared code. This collaborative tool seems basic at first glance, but it holds the secret to maintaining institutional knowledge in the event of staff turnover. When a new employee first enters your ProcessMaker instance, they can see detailed documentation on what each script is supposed to accomplish.
More Ways to Use ProcessMaker's AI Assistant to Improve Automated Scripts
Generative AI doesn’t just generate your script, it does many other tasks for you. ProcessMaker’s AI Assistant can also:
Clean scripts : Improve the structure and efficiency of existing code. Whether it’s an AI-generated script, a recently developed script by a colleague, or a script written a long time ago by a former employee.
Explain the purpose of a script: IDC estimates that half of the information that powers your organization is locked in the minds of employees. When they leave, your institutional knowledge disappears too. AI summarizes the purpose of a script in terms that everyone can understand. This feature helps maintain continuity, so everyone can interpret the purpose of process scripts.
Document a script: The same technology that explains your script can also generate industry-standard documentation. ProcessMaker’s AI assistant instantly adds comments to your scripts to explain how they work to your fellow coders.
ProcessMaker’s AI assistant doesn’t just handle the big jobs. It also saves you seconds and minutes doing the small jobs.
In our data table, we labeled some ingredients as "true" to indicate that they increase the total preparation time. Each "true" ingredient takes three minutes longer to prepare. To transform these "true" values into wait time for a customer, we use a script.
But instead of manually coding the PHP script, we're going to ask ProcessMaker AI Assistant to prepare it for us. All we have to do is describe what we're looking for...
"Count how many fields in the data table are equal to true, and multiply that count by 3. Return the value as WaitTime and return the count as AddedIngredients."
...and see how ProcessMaker's AI assistant magically transforms our short description into a working script.
Our AI-generated PHP script runs in the background. When the customer places their order, it automatically calculates the selected ingredients to present an estimated preparation time.
In the order window, they'll see that the four toppings they selected - pepperoni, sausage, bacon and green peppers - require a twelve-minute wait.
Generative AI conversation tools help prepare a poland business email list summary of prepared code. This collaborative tool seems basic at first glance, but it holds the secret to maintaining institutional knowledge in the event of staff turnover. When a new employee first enters your ProcessMaker instance, they can see detailed documentation on what each script is supposed to accomplish.
More Ways to Use ProcessMaker's AI Assistant to Improve Automated Scripts
Generative AI doesn’t just generate your script, it does many other tasks for you. ProcessMaker’s AI Assistant can also:
Clean scripts : Improve the structure and efficiency of existing code. Whether it’s an AI-generated script, a recently developed script by a colleague, or a script written a long time ago by a former employee.
Explain the purpose of a script: IDC estimates that half of the information that powers your organization is locked in the minds of employees. When they leave, your institutional knowledge disappears too. AI summarizes the purpose of a script in terms that everyone can understand. This feature helps maintain continuity, so everyone can interpret the purpose of process scripts.
Document a script: The same technology that explains your script can also generate industry-standard documentation. ProcessMaker’s AI assistant instantly adds comments to your scripts to explain how they work to your fellow coders.
ProcessMaker’s AI assistant doesn’t just handle the big jobs. It also saves you seconds and minutes doing the small jobs.