If you want to transfer data (incl rich text content) from an entity in db1 to one in db2, then there typically needs to be a connection between the dbs.
What is the meaning behind the transfer in your case?
Can you make the example concrete
I am setting up automation in database 2. The automation replaces one of the RichText fields with the result of the AI.
To do this, a prompt is made in the automation. Here I need to specify the content of the RichText field of one of the entities from database 1.
The whole process is shown in the images above
Well, the short answer is that AI canāt currently be used to populate from rich text fields.
But I had hoped by digging into the details we might be able to find a workaround, but that seems unlikely.
Filling RichText with AI is possible within a single database. To do this, just use Ā«AutomationsĀ» ā Ā«ButtonĀ» ā Ā«Overwrite FieldĀ» ā Prompt with [ai][/ai].
Butā¦ Ā«to add data from different databases to the AI promptĀ» ā I havenāt figured out a solution yet ))).
Well, if you want to do it with scripting, it may be possible. For example, you could use a script to populate the rich text field in db2 with the contents of the rich text fields of the linked entities in db1, and then use AI to take this description and overwrite the description with the output.
But thereās not a no-code solution.
I found a solution to my problem. It was on the surface. No code .
Itās probably obvious to experienced Fibery users. But no one suggested it. So I had to look it up.
Hereās everything we need: 2 databases, some RichText fields, the right relations.
The conditions of the problem in the form of screenshots were indicated in my question.
Hereās the solution:
Relations determine which data will be used in the Prompt.
This solution allows us to pull data only from the entities we need. Not a complete list of all field values of all entities in the database.
While in the DB2 database, we select the entity where we want to generate a response from the AI. And it is generated based on the DB1 database data that is defined by relation.