Insight Workflow List
List the existing insight_workflows
/api/v1/insights/workflows/Authentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Query parameters
page
integer | null
query
optional
The page number from which to start (0-based)
0Minimum 0Example 0limit
integer
query
optional
The maximum number of items to return
25Minimum 0Example 25search_fields
enum<string>[]
query
optional
String names of fields to search. Correspond by index to search field values
[]Example nameItem schema
itemsenum<string>required["id","name","name_exact","description","status","conditions","insight_tool_ids","updated_at"]search_field_values
string[]
query
optional
Values of fields to search. Correspond by index to search fields. Unless field name contains "list", an individual search field value cannot be a list
[]Example Some Object NameItem schema
itemsstringrequiredorder_by
enum<string> | null
query
optional
The field whose value should be used to order the results
["id","name","name_exact","description","status","conditions","insight_tool_ids","updated_at"]Example nameorder_by_direction
enum<string> | null
query
optional
The direction in which to order the results
["asc","desc"]fields
enum<string>[] | null
query
optional
The fields to include in the response
[]Example []Item schema
itemsenum<string>required["id","name","name_exact","description","status","conditions","insight_tool_ids","updated_at"]start_datetime
string | null
query
optional
The start datetime for filtering results
2023-01-01T00:00:00Zend_datetime
string | null
query
optional
The end datetime for filtering results
2024-01-01T00:00:00ZResponses
200Successful Response
application/json
response
ListResponse_InsightWorkflowOutput_
required
5 fields
itemsInsightWorkflowOutput[]requiredList of items returned from the query
Item schema
itemsInsightWorkflowOutputrequiredResponse model for an insight workflow.
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)
pageintegerrequiredThe page number of the results (0-based)
page_sizeintegerrequiredThe number of items returned per page
total_pagesinteger | nulloptionalThe total number of pages of results given the indicated page size
total_countinteger | nulloptionalThe total number of items returned from the query
Response example
{
"items": [
{
"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"
}
],
"page": 0,
"page_size": 0,
"total_pages": "string",
"total_count": "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"
}
]
}
