title: Promote Workflow To Assistant keywords: - promote workflow to assistant - post - promote - workflow - assistant # Promote Workflow To Assistant Promote a workflow to an assistant. #### Path Parameters **`workflow_id`** string required The workflow id parameter. #### Request Body **`name`** string optional Assistant name (defaults to workflow name) **`description`** string optional Assistant description **`primary_node_id`** string optional Node ID to use for settings (required if multiple FreddyLLM nodes) ## Returns **`assistant_id`** string Created assistant ID **`workflow_id`** string Workflow ID **`message`** string Success message Example ```bash cURL curl -X POST "https://api.aitronos.com/v1/workflows/{workflow_id}/promote-to-assistant" \ -H "X-API-Key: $FREDDY_API_KEY" \ -H "Content-Type: application/json" ``` ```python Python import os import requests api_key = os.environ["FREDDY_API_KEY"] response = requests.post( "https://api.aitronos.com/v1/workflows/{workflow_id}/promote-to-assistant", headers={"X-API-Key": api_key} ) print(response.json()) ``` ```javascript JavaScript const apiKey = process.env.FREDDY_API_KEY; const response = await fetch('https://api.aitronos.com/v1/workflows/{workflow_id}/promote-to-assistant', { method: 'POST', headers: { 'X-API-Key': apiKey, 'Content-Type': 'application/json' } }); const data = await response.json(); console.log(data); ``` **Response:** ```json 201 OK { "assistant_id": "asst_abc123def456", "workflow_id": "flow_abc123def456", "message": "Operation completed successfully" } ``` Errors ```json 401 Unauthorized { "success": false, "error": { "code": "AUTHENTICATION_REQUIRED", "message": "Authentication required. Please provide a valid API key.", "system_message": "Missing or invalid authorization header", "type": "authentication_error", "status": 401, "trace_id": "req_abc123xyz", "timestamp": "2025-11-11T10:30:00Z", "details": {} } } ``` ```json 403 Forbidden { "success": false, "error": { "code": "INSUFFICIENT_PERMISSIONS", "message": "You do not have permission to access this resource.", "system_message": "Insufficient permissions for this operation", "type": "authorization_error", "status": 403, "trace_id": "req_def456uvw", "timestamp": "2025-11-11T10:30:00Z", "details": {} } } ``` ## Related Resources - [Get Workflow](/docs/api-reference/workflows/get-workflow) - [Create Workflow](/docs/api-reference/workflows/create-workflow)