Skip to content
Context docs
Tasks API

Workflow selection

Serverhttps://context.example.com/api/v1

Ask which saved workflows fit a case, with the results grouped by workspace.


Select workflows for a case

POST
https://context.example.com/api/v1
/workflow-selection
Bearer (tsk_<prefix>_<secret>)

Blocks until the selection finishes, which can take several minutes.

Select workflows for a case › Request Body

caseId
​string · required

SF case number, echoed in response

caseName
​string · required

SF case title

caseDescription
​string · required

Summary of tech pre-processed logs

userEmail
​string · email · required

Requesting user email, echoed in response

​object · required
problemAreas
​string[] · maxItems: 100

Compatibility shape: workflow tags to pre-filter by, sent at the top level. Prefer filters.problemAreas, which wins when both are present. Resolve with resolveProblemAreas — never read this field directly.

​object

Opaque metadata (logFiles, urgency, etc.)

Select workflows for a case › Responses

The selected workflows.

requestId
​string · required

Unique identifier for this selection request

caseId
​string · required

Echoed from request

userEmail
​string · required

Echoed from request

organization
​string · required

Organization name

​object[] · required

Results grouped by workspace (mapped to teams)

files
​string[] · required

File references from metadata

prompt
​string

Reserved for future optimized prompt generation