Hi,
In the docs example, the function is an “Update Object” using that function to set an App Variable named “CSV String”. That App Variable may be included in the prompt you send to Open AI using the Web Request action node.
The “projects” data source has cardinality Many, and holds a list of Projects. In this simple example, only direct properties of the project are included, e.g. title, project number, description. If you want to included “deep data bindings” (e.g. projects.company.name) you should add runtime properties on the Projects data source (return projects.company.name) since this example function only gives you the “first level” (direct) properties of each project (e.g. it will give you projects.title, projects.number, projects.company - i.e. the ID of the company, not name). Adding a runtime property on the data source (e.g. “companyName”) will also be included that in the CSV string.