Get Insight Workflow By Id
Get a InsightWorkflow by ID.
/api/v1/insights/workflows/{workflow_id}Authentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Path parameters
workflow_id
integer
path
required
Responses
200Successful Response
application/json
response
InsightWorkflowOutput
required
17 fields
namestringrequiredHuman-readable name of insight workflow
sourcestringrequiredSource of the workflow
descriptionstringrequiredText description of workflow
insight_tool_idsinteger[]requiredOrdered list of IDs of tool configurations to be executed in the workflow
Item schema
itemsintegerrequiredconditionsInsightWorkflowConditionrequiredConditions (filters) on which a workflow should be triggered.
7 fields
min_durationinteger | nulloptionalMinimum duration of the calls in seconds
max_durationinteger | nulloptionalMaximum duration of the calls in seconds
sample_rateinteger | number | nulloptionalSample rate as a percentage of calls
3 options
Option 1integeroptionalOption 2numberoptionalOption 3nulloptionalagent_listinteger[] | string[] | nulloptionalList of agents
Item schema
Option 1integer[]optionalItem schema
itemsintegerrequiredOption 2string[]optionalItem schema
itemsstringrequiredOption 3nulloptionalprompt_liststring[] | nulloptionalList of prompts
Item schema
itemsstringrequiredfolder_listinteger[] | nulloptionalList of folder IDs
Item schema
itemsintegerrequiredsheet_infoobject | nulloptionalInformation about the sheet to be used for the workflow
1 options
{key}stringoptionalstart_datetimestring (date-time) | nulloptionalTarget session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only
end_datetimestring (date-time) | nulloptionalTarget session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation
idintegerrequiredInternal ID of the insight workflow
insight_toolsInsightToolOutput[]requiredList of insight tool configurations used in the workflow
Item schema
itemsInsightToolOutputrequiredResponse model for an insight tool configuration.
10 fields
namestringrequiredHuman readable name of insight tool
descriptionstringrequiredText description of insight tool configuration
versionintegerrequiredVersion of insight tool
tool_argumentsunspecifiedrequiredArguments for calling the insight tool
insight_tool_definition_idintegerrequiredUnique ID for insight tool definition used by this tool configuration
idintegerrequiredUnique ID for insight tool
insight_tool_definitionInsightToolDefinition | nulloptionalInsight Tool Definition
6 options
idintegerrequiredUnique ID for insight tool definition
namestringrequiredHuman-readable name of insight tool definition
typestringrequiredType of insight tool definition
descriptionstringrequiredText description of insight tool definition
tool_parametersunspecifiedrequiredParameters for tools that use this definition and their associated types
tool_result_setunspecifiedrequiredResult key/types for insight tool definition
created_atstring (date-time)optionalTimestamp of at which insight tool configuration was created
updated_atstring (date-time)optionalTimestamp at which insight tool configuration was last updated
last_updated_bystringrequiredEmail of user who last updated insight tool configuration
statusstringrequiredStatus of the insight workflow
estimateInsightWorkflowEstimaterequiredEstimate of the number of calls that will be processed by the workflow and their cost
6 fields
backfill_countintegerrequiredNumber of extant calls that will be processed by the workflow
backfill_durationnumberrequiredEstimated duration of the calls that will be processed by the workflow
estimated_daily_countintegerrequiredEstimated number of calls that will be processed by the workflow daily
estimated_daily_durationnumberrequiredEstimated duration of the calls that will be processed by the workflow daily
estimated_daily_costnumberrequiredEstimated cost of the calls that will be processed by the workflow daily
estimated_backfill_costnumberrequiredEstimated cost of the backfill of the calls that will be processed by the workflow
queue_countinteger | nulloptionalNumber of calls in the workflow queue (pending or processing)
failed_countinteger | nulloptionalNumber of workflow executions currently in FAILED status
created_atstring (date-time)optionalTimestamp at which the insight workflow was created
updated_atstring (date-time)optionalTimestamp of most recent update to the insight workflow
last_updated_bystringrequiredEmail of user who last updated Insight Workflow
last_folder_upload_atstring (date-time) | nulloptionalTimestamp of the most recent file upload to any folder associated with this workflow (null for non-upload workflows or until a file has been uploaded)
Response example
{
"name": "string",
"source": "string",
"description": "string",
"insight_tool_ids": [
0
],
"conditions": {
"min_duration": "string",
"max_duration": "string",
"sample_rate": "string",
"agent_list": "string",
"prompt_list": "string",
"folder_list": "string",
"sheet_info": "string"
},
"start_datetime": "string",
"end_datetime": "string",
"id": 0,
"insight_tools": [
{
"name": "string",
"description": "string",
"version": 0,
"tool_arguments": "string",
"insight_tool_definition_id": 0,
"id": 0,
"insight_tool_definition": "string",
"created_at": "string",
"updated_at": "string",
"last_updated_by": "string"
}
],
"status": "string",
"estimate": {
"backfill_count": 0,
"backfill_duration": 0,
"estimated_daily_count": 0,
"estimated_daily_duration": 0,
"estimated_daily_cost": 0,
"estimated_backfill_cost": 0
},
"queue_count": "string",
"failed_count": "string",
"created_at": "string",
"updated_at": "string",
"last_updated_by": "string",
"last_folder_upload_at": "string"
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
