import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.insights.workflows.activate(workflow_id=303095, insight_workflow_activate={
"is_acknowledged": True,
"estimate": {
"backfill_count": 100,
"backfill_duration": 1000,
"estimated_daily_count": 10,
"estimated_daily_duration": 3674.11,
"estimated_daily_cost": 45.25,
"estimated_backfill_cost": 4561,
},
})
# Handle response
print(res){
"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"
}Activate an InsightWorkflow.
import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.insights.workflows.activate(workflow_id=303095, insight_workflow_activate={
"is_acknowledged": True,
"estimate": {
"backfill_count": 100,
"backfill_duration": 1000,
"estimated_daily_count": 10,
"estimated_daily_duration": 3674.11,
"estimated_daily_cost": 45.25,
"estimated_backfill_cost": 4561,
},
})
# Handle response
print(res){
"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"
}Request model to activate an insight workflow.
Flag to indicate if the user has acknowledged the estimate
Estimate of the number of calls that will be processed by the workflow
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
Successful Response
Response model for an insight workflow.
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