How to automatically analyze an attachment in Grist?

Hello,

I’m using Grist in self-host mode with the Request function enabled. My goal is to streamline data entry for my colleagues. Specifically, I want that when an agent uploads an attachment into a column, this attachment is automatically analyzed by a Python script, which would extract relevant information and populate other columns.

I tried achieving this by fetching the attachment via a Request and then analyzing it with Python, but I encountered a “cross-origin” error when making the request.

Do you have any suggestions on how to fix this issue or implement this functionality properly?

Thanks in advance!