Automatic learning based on input and predefined items?

Look at Digital Twins and Machine Learning.

A simpler non-learning approach might work though.

You need persistence set up on your Items that need to interact with one another. Then use Presence Simulation to play it back after you’ve recorded the states.

What this will do is record all the state changes that take place on the Items into the database. Then one week later, it reproduces all of the recorded state changes. This would work well for adding events. Deleting them gets a little more tricky as you would have to remove the event from the database.

It’s not ideal but it could get you 80-90% to where you want to go.