Recommend a project for each task
For the Process button's sorting step: the project each given task
probably belongs in, or null when none clearly fits. The AI only
recommends — nothing is written; the user picks. It reads each
project's description (what belongs there) and the user's global
ai_context.
Ids that are not the caller's own live tasks are ignored. A
project_id is always one of the caller's own or shared projects,
never the Inbox; a model answer naming any other project is dropped,
so a task can be missing from recommendations (no recommendation).
Entries follow the order of ids.
AI disabled (server-wide, or the user's Insights mode set to off)
returns { recommendations: [] } with 200, never an error. Uses the
Insights feature's AI mode, model and timeout.
Authorizations
API token created via POST /api/tokens or the db:create-token CLI command
Request Body
Responses
Recommendations (empty when AI is off)
