“How do I upload or import a call workflow JSON?”
# support
v
“How do I upload or import a call workflow JSON?”
c
Hi Vishnu, Currently, direct support for uploading or importing a JSON workflow into the system isn't available. However, you can manually create a workflow using the API by specifying its nodes and edges. To create a workflow, you can use the [Create Workflow API](https://docs.vapi.ai/api-reference/workflow/workflow-controller-create) with a POST request. Here’s a basic example:
Copy code
bash
curl -X POST https://api.vapi.ai/workflow \
     -H "Authorization: Bearer <token>" \
     -H "Content-Type: application/json" \
     -d '{
        "nodes": [
          {
            "type": "conversation",
            "name": "Example Node"
          }
        ],
        "name": "Example Workflow",
        "edges": [
          {
            "from": "Example Node",
            "to": "Another Node"
          }
        ]
      }'
Ensure that you replace
<token>
with your actual authorization token and adjust the node and edge details to match your workflow's specifics. If you need detailed configuration of nodes such as using API requests or specific models, refer to the [API Request configuration](https://docs.vapi.ai/workflows/nodes/api-request).
4 Views