import os
from syllable_sdk import SyllableSDK, models
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.insights.workflows.list(page=0, limit=25, search_fields=[
models.InsightWorkflowProperties.NAME,
], search_field_values=[
"Some Object Name",
], start_datetime="2023-01-01T00:00:00Z", end_datetime="2024-01-01T00:00:00Z")
# Handle response
print(res){
"items": [
{
"name": "<string>",
"source": "<string>",
"description": "<string>",
"insight_tool_ids": [
123
],
"conditions": {
"min_duration": 120,
"max_duration": 600,
"sample_rate": 0.1,
"agent_list": [
866324,
826325
],
"prompt_list": [
"123324"
],
"folder_list": [
16754,
67535
],
"sheet_info": {
"sheet_id": "1AGOCYz05AZYYOMzow2EYlgdDXSXaWIhyA3-zCxBm4go",
"sheet_name": "Q1 Sales Data"
}
},
"id": 123,
"insight_tools": [
{
"name": "<string>",
"description": "<string>",
"version": 123,
"tool_arguments": "<unknown>",
"insight_tool_definition_id": 123,
"id": 123,
"last_updated_by": "<string>",
"insight_tool_definition": {
"id": 123,
"name": "<string>",
"type": "<string>",
"description": "<string>",
"tool_parameters": "<unknown>",
"tool_result_set": "<unknown>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"status": "<string>",
"estimate": {
"backfill_count": 123,
"backfill_duration": 123,
"estimated_daily_count": 123,
"estimated_daily_duration": 123,
"estimated_daily_cost": 123,
"estimated_backfill_cost": 123
},
"last_updated_by": "<string>",
"start_datetime": "2025-12-10T00:00:00Z",
"end_datetime": "2025-12-11T00:00:00Z",
"queue_count": 10,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"page": 123,
"page_size": 123,
"total_pages": 4,
"total_count": 100
}List the existing insight_workflows
import os
from syllable_sdk import SyllableSDK, models
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.insights.workflows.list(page=0, limit=25, search_fields=[
models.InsightWorkflowProperties.NAME,
], search_field_values=[
"Some Object Name",
], start_datetime="2023-01-01T00:00:00Z", end_datetime="2024-01-01T00:00:00Z")
# Handle response
print(res){
"items": [
{
"name": "<string>",
"source": "<string>",
"description": "<string>",
"insight_tool_ids": [
123
],
"conditions": {
"min_duration": 120,
"max_duration": 600,
"sample_rate": 0.1,
"agent_list": [
866324,
826325
],
"prompt_list": [
"123324"
],
"folder_list": [
16754,
67535
],
"sheet_info": {
"sheet_id": "1AGOCYz05AZYYOMzow2EYlgdDXSXaWIhyA3-zCxBm4go",
"sheet_name": "Q1 Sales Data"
}
},
"id": 123,
"insight_tools": [
{
"name": "<string>",
"description": "<string>",
"version": 123,
"tool_arguments": "<unknown>",
"insight_tool_definition_id": 123,
"id": 123,
"last_updated_by": "<string>",
"insight_tool_definition": {
"id": 123,
"name": "<string>",
"type": "<string>",
"description": "<string>",
"tool_parameters": "<unknown>",
"tool_result_set": "<unknown>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"status": "<string>",
"estimate": {
"backfill_count": 123,
"backfill_duration": 123,
"estimated_daily_count": 123,
"estimated_daily_duration": 123,
"estimated_daily_cost": 123,
"estimated_backfill_cost": 123
},
"last_updated_by": "<string>",
"start_datetime": "2025-12-10T00:00:00Z",
"end_datetime": "2025-12-11T00:00:00Z",
"queue_count": 10,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"page": 123,
"page_size": 123,
"total_pages": 4,
"total_count": 100
}The page number from which to start (0-based)
x >= 00
The maximum number of items to return
x >= 0String names of fields to search. Correspond by index to search field values
id, name, name_exact, description, status, conditions, insight_tool_ids, updated_at 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
The field whose value should be used to order the results
id, name, name_exact, description, status, conditions, insight_tool_ids, updated_at "name"
The direction in which to order the results
asc, desc The fields to include in the response
id, name, name_exact, description, status, conditions, insight_tool_ids, updated_at The start datetime for filtering results
"2023-01-01T00:00:00Z"
The end datetime for filtering results
"2024-01-01T00:00:00Z"
Successful Response
List of items returned from the query
Show child attributes
Human-readable name of insight workflow
Source of the workflow
Text description of workflow
Ordered list of IDs of tool configurations to be executed in the workflow
Conditions (filters) on which a workflow should be triggered.
Show child attributes
Minimum duration of the calls in seconds
120
Maximum duration of the calls in seconds
600
Sample rate as a percentage of calls
0.1
List of agents
[866324, 826325]List of prompts
["123324"]List of folder IDs
[16754, 67535]Internal ID of the insight workflow
List of insight tool configurations used in the workflow
Show child attributes
Human readable name of insight tool
Text description of insight tool configuration
Version of insight tool
Arguments for calling the insight tool
Unique ID for insight tool definition used by this tool configuration
Unique ID for insight tool
Email of user who last updated insight tool configuration
Insight Tool Definition
Show child attributes
Unique ID for insight tool definition
Human-readable name of insight tool definition
Type of insight tool definition
Text description of insight tool definition
Parameters for tools that use this definition and their associated types
Result key/types for insight tool definition
Timestamp of at which insight tool configuration was created
Timestamp at which insight tool configuration was last updated
Status of the insight workflow
Estimate of the number of calls that will be processed by the workflow and their cost
Show child attributes
Number of extant calls that will be processed by the workflow
Estimated duration of the calls that will be processed by the workflow
Estimated number of calls that will be processed by the workflow daily
Estimated duration of the calls that will be processed by the workflow daily
Estimated cost of the calls that will be processed by the workflow daily
Estimated cost of the backfill of the calls that will be processed by the workflow
Email of user who last updated Insight Workflow
Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only
"2025-12-10T00:00:00Z"
Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation
"2025-12-11T00:00:00Z"
Number of calls in the workflow queue (pending or processing)
10
Timestamp at which the insight workflow was created
Timestamp of most recent update to the insight workflow
The page number of the results (0-based)
The number of items returned per page
The total number of pages of results given the indicated page size
4
The total number of items returned from the query
100