# Streamline Tool Object div strong 🔨 In Development — This section is still being developed and may change. Represents an automation workflow or Flow-Plate integration that can be triggered by Freddy AI assistants. ## Properties **`id`** string Unique identifier for the streamline tool. Format: `auto_` followed by alphanumeric characters. **`name`** string Human-readable name for the automation workflow. **`description`** string Detailed description of what the workflow does and its purpose. **`category`** string Workflow category. Values: `marketing`, `sales`, `hr`, `it`, `operations`, `communication`, `data_processing`. **`workflowType`** string Type of workflow execution. Values: `sequential`, `parallel`, `conditional`, `event_driven`. **`triggerType`** string How the workflow can be triggered. Values: `manual`, `scheduled`, `event`, `api`. **`capabilities`** object Technical capabilities and execution details. details summary Show capabilities **`executionTime`** object Expected execution time ranges. details summary Show execution time **`minimum`** integer Minimum execution time in seconds. **`maximum`** integer Maximum execution time in seconds. **`average`** integer Average execution time in seconds. **`supportedParameters`** array of objects Parameters that can be passed to the workflow. details summary Show parameter structure **`name`** string Parameter name. **`type`** string Parameter data type (e.g., "string", "number", "boolean", "object"). **`required`** boolean Whether the parameter is mandatory. **`description`** string Description of what the parameter controls. **`default`** any optional Default value if not provided. **`outputFormat`** object What the workflow returns upon completion. details summary Show output format **`success`** object Structure of successful execution response. **`error`** object Structure of error response. **`status`** array of strings Possible status values. Example: `["pending", "running", "completed", "failed"]`. **`pricing`** object optional Pricing information for workflow execution. details summary Show pricing **`costPerExecution`** number Cost per workflow run. **`freeTier`** integer optional Number of free executions per month. **`volumeDiscount`** object optional Discounts for high-volume usage. **`permissions`** object Required permissions to execute this workflow. details summary Show permissions **`requiredRoles`** array of strings optional User roles required to trigger. Example: `["admin", "manager"]`. **`requiredScopes`** array of strings optional API scopes required. Example: `["automation:execute", "data:write"]`. **`status`** string Workflow availability status. Values: `active`, `inactive`, `maintenance`, `deprecated`. **`isTemplate`** boolean Whether this is a template workflow that can be customized. **`createdBy`** string User ID of the person who created this workflow. **`createdAt`** integer Unix timestamp (seconds) when the workflow was created. **`updatedAt`** integer Unix timestamp (seconds) when the workflow was last updated. ## Returns A [ApiResponse](#apiresponse) object containing the API response data. ## Example Streamline Tools Email Campaign Workflow ```json { "id": "auto_email_campaign", "name": "Email Campaign Automation", "description": "Automated email campaign creation and distribution workflow with A/B testing and analytics.", "category": "marketing", "workflowType": "sequential", "triggerType": "manual", "capabilities": { "executionTime": { "minimum": 30, "maximum": 3600, "average": 300 }, "supportedParameters": [ { "name": "campaignName", "type": "string", "required": true, "description": "Name of the email campaign" }, { "name": "targetAudience", "type": "array", "required": true, "description": "List of recipient email addresses" }, { "name": "contentTemplate", "type": "string", "required": false, "description": "Email template to use", "default": "default_template" } ], "outputFormat": { "success": { "campaignId": "string", "sentCount": "number", "openRate": "number" }, "error": { "errorCode": "string", "message": "string" }, "status": ["pending", "running", "completed", "failed"] } }, "pricing": { "costPerExecution": 0.5, "freeTier": 10, "volumeDiscount": { "tier1": { "minExecutions": 100, "discountPercent": 10 }, "tier2": { "minExecutions": 500, "discountPercent": 25 } } }, "permissions": { "requiredRoles": ["marketing", "admin"], "requiredScopes": ["email:send", "analytics:read"] }, "status": "active", "isTemplate": false, "createdBy": "user_marketing_manager", "createdAt": 1728057600, "updatedAt": 1728057600 } ``` Invoice Processing Workflow ```json { "id": "auto_invoice_processing", "name": "Invoice Processing Automation", "description": "Automated invoice processing with approval routing, payment processing, and accounting integration.", "category": "operations", "workflowType": "conditional", "triggerType": "event", "capabilities": { "executionTime": { "minimum": 10, "maximum": 1800, "average": 120 }, "supportedParameters": [ { "name": "invoiceAmount", "type": "number", "required": true, "description": "Total invoice amount" }, { "name": "vendorId", "type": "string", "required": true, "description": "Vendor identifier" }, { "name": "requiresApproval", "type": "boolean", "required": false, "description": "Whether manual approval is needed", "default": true } ], "outputFormat": { "success": { "invoiceId": "string", "status": "string", "paymentScheduled": "boolean" }, "error": { "errorCode": "string", "message": "string" }, "status": ["received", "processing", "approved", "paid", "rejected"] } }, "pricing": { "costPerExecution": 0.2, "freeTier": 50 }, "permissions": { "requiredRoles": ["accounting", "manager", "admin"], "requiredScopes": ["invoice:process", "payment:initiate"] }, "status": "active", "isTemplate": true, "createdBy": "user_accounting_admin", "createdAt": 1728057600, "updatedAt": 1728057600 } ``` Customer Onboarding Workflow ```json { "id": "auto_customer_onboarding", "name": "Customer Onboarding Automation", "description": "Complete customer onboarding workflow with account setup, welcome emails, and training materials.", "category": "sales", "workflowType": "parallel", "triggerType": "api", "capabilities": { "executionTime": { "minimum": 60, "maximum": 7200, "average": 600 }, "supportedParameters": [ { "name": "customerEmail", "type": "string", "required": true, "description": "New customer email address" }, { "name": "customerName", "type": "string", "required": true, "description": "New customer full name" }, { "name": "planType", "type": "string", "required": true, "description": "Subscription plan selected" } ], "outputFormat": { "success": { "customerId": "string", "accountCreated": "boolean", "welcomeEmailSent": "boolean", "trainingScheduled": "boolean" }, "error": { "errorCode": "string", "message": "string" }, "status": ["initializing", "account_setup", "email_sent", "training_scheduled", "completed"] } }, "pricing": { "costPerExecution": 0.1, "freeTier": 100 }, "permissions": { "requiredRoles": ["sales", "customer_success", "admin"], "requiredScopes": ["customer:create", "email:send", "training:schedule"] }, "status": "active", "isTemplate": true, "createdBy": "user_sales_ops", "createdAt": 1728057600, "updatedAt": 1728057600 } ```