Creating Workflows
This guide walks you through creating your first workflow, from setting up a trigger to executing and monitoring the workflow.Prerequisites
Before creating a workflow, you’ll need:- A KnoxCall account
- Basic understanding of APIs (HTTP requests, JSON)
Step 1: Create a New Workflow
- Navigate to Workflows in the sidebar
- Click + Create Workflow
- Enter workflow details:
- Click Create
Step 2: Configure the Trigger
The trigger node is already on the canvas. Click it to configure:Manual Trigger (Recommended for First Workflow)
Webhook Trigger
Route Event Trigger
Step 3: Add an HTTP Request Node
Let’s add a node that makes an API call:- Click the + button on the trigger node’s output
- Select HTTP Request
- Configure the node:
Step 4: Add a Code Block Node
Let’s transform the response:- Click the + on the HTTP Request node
- Select Code Block
- Configure:
- Enter the code:
Step 5: Add a Condition Node
Let’s add conditional logic:- Click the + on the Code Block node
- Select Condition
- Configure:
- True: When user ID equals 1
- False: When user ID doesn’t equal 1
Step 6: Add Nodes to Each Branch
True Path
- Click the + on the Condition’s True output
- Select Code Block
- Name it: “Success Response”
- Code:
False Path
- Click the + on the Condition’s False output
- Select Code Block
- Name it: “Error Response”
- Code:
Step 7: Save Your Workflow
- Click Save in the top right
- Your workflow is saved as version 1
Step 8: Test Your Workflow
Manual Execution
- Click Run in the top right
- (Optional) Add input data for the trigger:
- Click Execute
Watch Execution
You’ll see:- Each node highlights as it executes
- Green checkmark when successful
- Red X if an error occurs
- Execution time per node
View Results
Click on any node to see:- Input: Data that went into the node
- Output: Data that came out
- Execution Time: How long it took
Step 9: Enable the Workflow
- Toggle Enabled to ON
- Your workflow is now active
Adding More Nodes
HTTP Request with POST
Loop Over Array
Delay
Error Handler
- Add an Error Handler node
- Connect it to nodes that might fail
- Configure what to catch:
- Add nodes after the error handler for recovery:
Using Variables
Trigger Data
Previous Node Output
Environment Variables
Loop Variables
Workflow Examples
Simple API Call
Data Sync
Error Handling
Execution History
View past executions:- Open the workflow
- Click Executions tab
- See list with:
- Status (completed, failed, running, cancelled)
- Started at
- Duration
- Trigger type
- Full node-by-node timeline
- Input/output for each node
- Error details
Versioning
Each time you save, a new version is created:- Click Versions tab
- See all saved versions
- Click a version to view it
- Click Restore to revert
Troubleshooting
”Variable not found”
”HTTP Request failed”
- Verify URL is correct
- Check if API requires authentication
- Ensure API is accessible from the internet
”Code Block error”
- Missing brackets
- Incorrect variable references
- Invalid JSON
”Condition always false”
Cause: Comparison type mismatch (string vs number). Fix: Use correct types:Best Practices
- Name nodes descriptively - “Fetch Customer Data” not “HTTP 1”
- Add error handlers for external API calls
- Test with sample data before enabling
- Use environment variables for secrets
- Keep workflows focused - one purpose per workflow
- Document complex logic in node names/descriptions
Next Steps
Workflows Overview
Understanding workflow concepts
Webhooks
Trigger workflows from webhooks
API Logs
Debug workflow API calls
Route Examples
API patterns to use in workflows
Statistics
- Level: beginner
- Time: 12 minutes
Tags
workflows, tutorial, getting-started, automation