AI to choose relation field in notion

I have an AI agent that I want to create tasks for my team in notion.

There are 2 columns I can’t get the AI to dynamically decide on from the info that I give it.

First is the person to assign the task to and second a relation field to pull in my clients to then assign the task to the client.

My goal is to get the AI to dymanically decide who to assign the task to (person & client) based on my prompt.

Halp.

Hi Patrick, would you be able to provide a tool that allows the agent to list of users in the Notion workspace + all the clients from your database, and then define which ones to choose?

I’m not sure what you’re asking here Simo

Update. I changed the field to be the default “assignee” field for tasks and that solved my problem. Still trying to figure out relation fields though and how the AI can assign tasks to a specific client.

How can the AI know which client to select? Is there any input data that provides this information?