If you don't feel like writing an expression by hand, you can describe the rule in your own words and let Marin.AI turn it into a valid formula.
How to use it
Open or edit a price grid.
Under each expression box (Generation, Applicability, Quantity, Unit price…), next to Try live, there is the Write with Marin.AI button. Press it: the Write the expression with Marin.AI window opens.
In Describe, in your own words, what this field should compute: write what the formula must do. Example: “if the fuel is diesel the price is the value times 10, if petrol times 12”.
Press Generate. While you wait you see “Asking Marin.AI…”.
Marin.AI shows the Proposed expression with an explanation, and BlueShell validates it automatically.
If you like it, press Use this expression: it is inserted into the box and the window closes. Then save the grid.
What to keep in mind
It also works on marina grids: you can have the “Quantity” and “Unit price” formulas written, for example for a rate at €/m per week, month or year.
Marin.AI knows the context of the box: for generation, for example, it knows it must use
band.*,variant.CODE,params.CODEandprev(and notboat/engine). Bear this in mind when you describe the rule: if you want to differentiate by fuel, remember that a variant (column) is needed.If the proposal fails validation, you will see the warning “Heads up: this expression did not pass validation — review it before saving.” (with the error detail). The text is inserted all the same, to be corrected by hand.
If the request does not succeed, “Marin.AI could not answer. Please try again.” appears.
Always review the proposal: Marin.AI is a writing aid, it does not replace your check. It is then a good idea to try the grid on a sample boat.
Each request uses a bit of your Marin.AI of today, which recharge every night at midnight: see Today's Marin.AI: usage and refill. Everything Marin.AI can do is in Marin.AI: getting started.
See also: Expressions and Testing a grid.
