AI Interpolator v2: Allow multiple rules on one field

Created on 10 June 2024, 6 months ago
Updated 9 September 2024, 3 months ago

Problem/Motivation

Currently the AI Interpolator only allows for one rule per field. The problem with this is that any kind of fallback or conditional logic is not possible. Think of the following example - you are a publication that wants to generate an header image for an article. In best cases you want real photos, but you are not against the idea of AI generated photos. If two (or more) rules were allowed you could say that it first should got to Pixabay and search for an appropriate image, but if not generate an image.

This would also allow for triggering different rules based on different conditionals or flows, using the ECA module.

User interface changes

Add an add more button to the AI interpolator rules.
In normal use cases it runs the first rule first and if it doesn't fill data it runs the second.

Data model changes

All rules needs to be stored as an array in configuration, with a weight.

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024